1 2003-10-27 Paolo Carlini <pcarlini@suse.de>
4 * include/bits/locale_facets.tcc
5 (time_get::_M_extract_via_format): Deal with code 'e'.
6 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
7 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
9 * include/bits/locale_facets.tcc
10 (time_get::_M_extract_via_format): Tweak to absolutely avoid
11 dereferencing end iterators.
13 * include/bits/locale_facets.h (__verify_grouping):
14 Const-ify second parameter.
15 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
16 * src/locale-inst.cc (__verify_grouping): Ditto.
18 2003-10-27 Paolo Carlini <pcarlini@suse.de>
20 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
21 Various things: 1- Avoid absolutely end iterator dereferences;
22 2- Improve performance-wise the code skipping leading zeros;
23 3- Fix two bugs wrt early bail out in case of parsing errors
24 (see testcases); 4- General clean up.
25 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
26 use __builtin_expect to favor base 10 inputs.
27 * testsuite/22_locale/num_get/get/char/7.cc: New.
28 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
30 2003-10-26 Paolo Carlini <pcarlini@suse.de>
32 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
33 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
35 2003-10-25 Paolo Carlini <pcarlini@suse.de>
37 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
38 __pos in only incremented, never used its value, remove it.
40 2003-10-24 Robert Millan <robertmh@gnu.org>
42 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
44 * aclocal.m4: Regenerated.
45 * configure: Regenerated.
47 2003-10-24 Paolo Carlini <pcarlini@suse.de>
49 * include/bits/locale_facets.tcc (money_get::do_get(...,
50 long double&): Properly size the temporary buffer.
51 * testsuite/22_locale/money_get/get/char/11.cc: New.
52 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
54 * include/bits/locale_facets.tcc (num_put::_M_group_int,
55 num_put::_M_group_float, money_put::do_put(..., const
56 string_type&), collate::do_compare, collate::do_transform):
57 Prefer basic_string::data() to c_str() when the '\0'
58 terminator is not really needed.
60 2003-10-24 Paolo Carlini <pcarlini@suse.de>
62 * include/bits/locale_facets.tcc (__verify_grouping):
63 Prefer '=' to an unnecessary '&='.
65 2003-10-24 Paolo Carlini <pcarlini@suse.de>
67 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
68 Tweak my fix for libstdc++/12657.
70 2003-10-24 Paolo Carlini <pcarlini@suse.de>
72 * include/bits/locale_facets.tcc (money_get::do_get(...,
73 string_type&): Minor tweak to the previous commit.
75 2003-10-24 Paolo Carlini <pcarlini@suse.de>
77 * include/bits/locale_facets.tcc (money_get::do_get(...,
78 string_type&): Disregard the previous commit: doesn't hurt but
79 doesn't accomplish anything useful either. This is the right
80 one, speeding up greatly the function in case of early fail.
82 2003-10-24 Paolo Carlini <pcarlini@suse.de>
84 * include/bits/locale_facets.tcc (money_get::do_get(...,
85 string_type&): Move an if block, thus minimizing the amount
86 of code processed anyway when __tmp_units.size() == 0.
88 2003-10-24 Paolo Carlini <pcarlini@suse.de>
90 * include/bits/locale_facets.tcc
91 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
94 2003-10-23 Benjamin Kosnik <bkoz@redhat.com>
96 * docs/html/documentation.html: Add a pointer to the doxygen style
98 * docs/html/17_intro/TODO: Update.
99 * docs/html/test.html: Add instructions for running a subset of
102 2003-10-23 Paolo Carlini <pcarlini@suse.de>
104 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
105 string_type&)): Use find_first_not_of to strip leading
106 zeros; if __tmp_units == "0" never prefix it with '-';
107 always fail if __tmp_units is empty.
108 * testsuite/22_locale/money_get/get/char/10.cc: New.
109 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
111 2003-10-23 Phil Edwards <phil@codesourcery.com>
113 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
116 2003-10-22 Paolo Carlini <pcarlini@suse.de>
118 * include/bits/locale_facets.tcc (__int_to_char): Remove
119 the const int parameter.
120 (_M_insert_int): Update caller.
121 * src/locale-inst.cc (__int_to_char): Update instantiations.
123 2003-10-22 Benjamin Kosnik <bkoz@redhat.com>
125 * include/bits/locale_facets.h: Correct byname facets for "C"
127 * config/locale/generic/ctype_members.cc: Same.
128 * config/locale/generic/messages_members.h: Same.
129 * config/locale/gnu/ctype_members.cc: Same.
130 * config/locale/gnu/messages_members.h: Same.
131 * include/bits/codecvt.h: Same.
132 * src/ctype.cc: Same.
133 * testsuite/22_locale/codecvt_byname/1.cc: New.
134 * testsuite/22_locale/collate/1.cc: Edit.
135 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
136 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
137 * testsuite/22_locale/ctype/1.cc: Derivation tests.
138 * testsuite/22_locale/ctype/11844.cc: Move...
139 * testsuite/22_locale/ctype_base/11844.cc: ...here.
140 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
141 * testsuite/22_locale/ctype_byname/1.cc: Name.
142 * testsuite/22_locale/messages_byname/1.cc: New.
143 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
144 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
145 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
146 * testsuite/22_locale/numpunct/1.cc: Edit.
147 * testsuite/22_locale/numpunct_byname/2.cc: Move...
148 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
149 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
150 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
152 2003-10-22 Paolo Carlini <pcarlini@suse.de>
155 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
156 checking for the availability of int64_t.
157 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
158 * configure.ac: Call here.
159 * acconfig.h: Add undef for the corresponding symbols.
160 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
161 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
162 (__basic_file<char>::seekoff): Likewise, call lseek64 when
163 available, otherwise lseek, checking the __off parameter.
164 * include/bits/postypes.h: Typedef __streamoff_base_type
165 to int64_t if available, otherwise long long.
166 * aclocal.m4: Regenerate.
167 * config.h.in: Likewise.
168 * configure: Likewise.
170 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
171 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
173 2003-10-22 Paolo Carlini <pcarlini@suse.de>
176 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
177 Implement resolution of DR 292 (WP).
178 * docs/html/ext/howto.html: Add entry for DR 292.
180 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
182 * include/ext/mt_allocator.h: Change include to gthr.h.
183 * include/ext/rope: Same. Add _Refcount_base definitions.
184 * include/ext/pool_allocator.h: Adjust namespaces.
185 * include/bits/stl_threads.h (_Refcount_base): Move.
186 Put remaining into namespace __gnu_cxx.
188 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
191 * include/bits/locale_facets.h (ctype<char>): Remove
192 __ctype_abstract_base.
193 (ctype<char>::do_is): Remove.
194 (ctype<char>::do_scan_is): Remove.
195 * src/ctype.cc: Same. Inline the rest.
196 * testsuite/22_locale/ctype/is/char/9858.cc: New.
197 * config/os/aix/ctype_noninline.h: Adjust ctor.
198 * config/os/bsd/freebsd/ctype_noninline.h: Same.
199 * config/os/bsd/netbsd/ctype_noninline.h: Same.
200 * config/os/djgpp/ctype_noninline.h: Same.
201 * config/os/generic/ctype_noninline.h: Same.
202 * config/os/gnu-linux/ctype_noninline.h: Same.
203 * config/os/hpux/ctype_noninline.h: Same.
204 * config/os/irix/irix5.2/ctype_noninline.h: Same.
205 * config/os/irix/irix6.5/ctype_noninline.h: Same.
206 * config/os/mingw32/ctype_noninline.h: Same.
207 * config/os/newlib/ctype_noninline.h: Same.
208 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
209 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
210 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
211 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
212 * config/os/windiss/ctype_noninline.h: Same.
214 2003-10-21 Paolo Carlini <pcarlini@suse.de>
216 * src/locale.cc: Tweak a comment.
217 * src/localename.cc: Move a comment.
219 2003-10-20 Benjamin Kosnik <bkoz@redhat.com>
222 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
223 * testsuite_hooks.cc: Same.
224 * 22_locale/numpunct/members/pod/1.cc: Edit.
225 * 22_locale/numpunct/members/pod/2.cc: Same.
226 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
227 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
228 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
229 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
230 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
231 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
232 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
233 * 27_io/basic_istream/sentry/pod/1.cc: New.
234 * 27_io/basic_ostream/sentry/pod/1.cc: New.
235 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
236 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
238 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
240 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
241 of external _MIPS_SIM_ABI32.
243 2003-10-20 Phil Edwards <phil@codesourcery.com>
245 * configure.ac: Fix comment typo.
246 * configure.host: Add vxworks to host_os switch.
247 * crossconfig.m4: Remove old commented os_include_dir variables
248 left over from autotools transition.
249 (*-vxworks): New stanza.
250 (*-windiss): Add missing symbols.
251 * configure: Regenerate.
252 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
253 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
255 * config/os/windiss/os_defines.h: Define __C9X__.
257 2003-10-19 David Edelsohn <edelsohn@gnu.org>
260 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
262 2003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
264 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
265 confusion of the use of the gthr API when __gthread_active_p()
268 2003-10-17 Benjamin Kosnik <bkoz@redhat.com>
270 * src/Makefile.am: Add new files.
271 * src/Makefile.in: Regenerate.
272 * src/globals.cc: Split into..
273 * src/globals_io.cc: New.
274 * src/globals_locale.cc: New.
275 * src/ios.cc: Split into...
276 * src/ios_init.cc: New.
277 * src/ios_locale.cc: New.
278 * src/locale-inst.cc: Split into..
279 * src/wlocale-inst.cc: New.
280 * src/locale-misc-inst.cc: New.
281 * src/locale.cc, src/localename: Split into...
282 * src/locale_facets.cc: New.
283 * src/locale_init.cc: New.
284 * src/wstring-inst.cc: Add copyright info.
286 2003-10-16 Petur Runolfsson <peturr02@ru.is>
291 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
292 Change return value from streampos to streamoff.
293 (__basic_file::seekpos): Delete.
294 * config/io/basic_file_stdio.h: Same.
295 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
296 * include/Makefile.am (bits_headers): Add bits/postypes.h.
297 * include/bits/char_traits.h: Include bits/postypes.h instead of
299 * include/bits/fstream.tcc (basic_filebuf::open,
300 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
301 values, use == and != instead.
302 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
304 (basic_filebuf::imbue): Don't use ! on pos_type values, use
305 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
306 * include/bits/postypes.h: New file.
307 Add __streamoff_base_type typedef, streamsize.
308 (streamoff, streampos, wstreampos): Define typedefs, with
309 streamoff defined as...
310 (streamoff): New class. Document implementation defined
312 (fpos): New implementation. Document implementation defined
314 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
315 explicit conversion from pos_type to off_type.
316 * include/std/std_iosfwd.h: Include bits/postypes.h instead
318 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
319 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
320 * testsuite/27_io/fpos/11450.cc: New test.
321 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
322 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
323 * testsuite/27_io/types/3.cc: New test.
325 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
327 * configure.host: Remove fpos_include_dir.
328 * configure.ac: Remove FPOS_INC_SRCDIR.
329 * configure: Regenerate.
330 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
331 * aclocal.m4: Regenerate.
332 * include/Makefile.am (host_headers): Remove fpos.h.
333 (bits_headers): Add postypes.h.
334 * include/Makefile.in: Regenerate.
335 * config/os/gnu-linux/fposh: Remove.
336 * config/os/generic/fpos.h: Remove.
338 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
339 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
340 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
341 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
342 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
343 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
344 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
345 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
346 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
347 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
348 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
349 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
350 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
351 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
352 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
353 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
354 * testsuite/27_io/objects/char/10.cc: Same.
356 2003-10-16 Paolo Carlini <pcarlini@suse.de>
358 * src/locale.cc (locale::locale(const char*)): ... one
359 more comparison missed in the previous commit.
361 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
363 * acconfig.h: Add HAVE_DRAND48.
364 * crossconfig.m4: Remove ISATTY.
365 * aclocal.m4: Regenerated.
366 * config.h.in: Regenerated.
367 * configure: Regenerated.
369 2003-10-16 Bernardo Innocenti <bernie@develer.com>
371 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
372 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
373 Document SMP safeness of asm macros.
375 2003-10-16 Paolo Carlini <pcarlini@suse.de>
377 * src/locale.cc (locale::locale(const char*)): Tweak
378 a couple of comparisons to use basic_string operators.
380 2003-10-16 Paolo Carlini <pcarlini@suse.de>
383 * config/locale/gnu/monetary_members.cc
384 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
385 Don't leak memory if new throws.
386 * src/locale.cc (locale::locale(const char*)): In order not
387 to leak memory in case new throws, use a basic_string type
388 for __res too and avoid strdup.
390 2003-10-14 Jeff Bailey <jbailey@nisa.net>
393 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
394 * configure: Regenerate.
396 2003-10-14 Carlo Wood <carlo@alinoe.com>
399 * include/bits/demangle.h (session<Allocator>::
400 decode_unqualified_name(string_type& output)): Fail on a
401 <operator-name> when decoding <template-argument>.
402 * testsuite/demangle/regression/cw-15.cc: New.
404 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
407 * include/bits/stl_algo.h (unique): Fix.
408 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
409 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
410 * testsuite/25_algorithms/unique/2.cc: New.
412 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
414 * src/localename.cc (_M_replace_categories, M_replace_facet):
415 Const-ify a couple of variables.
417 2003-10-14 Petur Runolfsson <peturr02@ru.is>
418 Andreas Tobler <a.tobler@schweiz.ch>
420 * src/locale.cc (locale::_S_initialize): Workaround a confusion
421 of the use of the gthr API when __gthread_active_p() returns true.
423 2003-10-12 Petur Runolfsson <peturr02@ru.is>
424 Paolo Carlini <pcarlini@unitus.it>
427 * src/strstream.cc (pbackfail): Fix to use to_int_type.
428 * testsuite/backward/11460.cc: New, from the PR.
430 2003-10-12 Paolo Carlini <pcarlini@unitus.it>
432 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
433 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
434 * include/bits/basic_string.tcc: Likewise.
435 * include/bits/ios_base.h: Likewise.
436 * include/bits/istream.tcc: Likewise.
437 * include/bits/locale_facets.tcc: Likewise.
438 * include/bits/ostream.tcc: Likewise.
439 * include/bits/stl_function.h: Likewise.
440 * include/bits/stl_multiset.h: Likewise.
441 * include/bits/stl_pair.h: Likewise.
442 * include/bits/stl_set.h: Likewise.
443 * include/bits/streambuf_iterator.h
444 * include/std/std_iosfwd.h: Likewise.
445 * include/std/std_istream.h: Likewise.
446 * include/std/std_sstream.h: Likewise.
447 * include/std/std_streambuf.h: Likewise.
448 * src/ios.cc: Likewise.
449 * include/bits/c++config:
450 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
451 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
452 dg-error directive due to removal of a blank line.
453 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
455 2003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
456 Paolo Carlini <pcarlini@unitus.it>
458 PR libstdc++/11844/11740 (cont)
459 * config/os/generic/ctype_inline.h (ctype<char>::is):
460 Generically, use a bitmasksize of 15 (instead of 10);
461 Fix the logic to actually return (M & m) != 0 as per
464 2003-10-11 Bernardo Innocenti <bernie@develer.com>
466 * crossconfig.m4 (*-uclinux*): New target.
467 * configure: Regenerate.
469 2003-10-10 Paolo Carlini <pcarlini@unitus.it>
471 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
472 Avoid unnecessarily calling __builtin_alloca and dealing
473 explicitly with width() smaller than zero.
474 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
475 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
476 const char*), operator<<(basic_ostream<char, _Traits>&,
477 const char*), operator<<(basic_ostream, const basic_string&)):
480 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
482 * config/linker-map.gnu: Make more *_type_info bits visible.
483 Move new/delete bits back into GLIBCXX space.
485 * include/bits/locale_classes.h: Move _M_id out of line, so that
486 locale::id::_S_highwater can be removed from the export list.
487 * src/locale.cc (locale::id::_M_id): Define.
489 2003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
491 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
494 2003-10-09 Paolo Carlini <pcarlini@unitus.it>
497 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
498 to conform to the requirements of 22.2.1.
499 * config/os/bsd/freebsd/ctype_base.h: Likewise.
500 * config/os/djgpp/ctype_base.h: Likewise.
501 * config/os/generic/ctype_base.h: Likewise.
502 * config/os/gnu-linux/ctype_base.h: Likewise.
503 * config/os/hpux/ctype_base.h: Likewise.
504 * config/os/irix/irix6.5/ctype_base.h: Likewise.
505 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
506 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
507 * testsuite/22_locale/ctype/11844.cc: New.
509 * config/locale/generic/ctype_members.cc (do_is):
510 Generically, use a bitmasksize of 15 (instead of 10), since
511 we don't know the numerical encoding of the various categories
512 in the underlying /usr/include/ctype.h.
514 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
516 * src/string-inst.cc: Prune.
517 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
518 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
520 2003-10-09 Petur Runolfsson <peturr02@ru.is>
522 * src/io-inst.cc: Don't include iostream.
523 * include/bits/ios_base.h (ios_base::failure): Use string.
524 * src/Makefile.am: Add ios_failure.cc.
525 * src/Makefile.in: Regenerate.
526 * src/ios.cc: Move ios_base::failure definitions to...
527 * src/ios_failure.cc: ...here. New.
529 2003-10-09 Petur Runolfsson <peturr02@ru.is>
532 * include/bits/fstream.tcc (basic_filebuf::seekoff):
533 Move code needed for both seekoff and seekpos...
534 (basic_filebuf::_M_seek): ...here. New function.
535 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
536 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
537 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
539 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
541 2003-10-08 Paolo Carlini <pcarlini@unitus.it>
543 * include/bits/locale_facets.tcc: More minor cosmetic
544 changes and const-ifications of some variables.
546 2003-10-07 Paolo Carlini <pcarlini@unitus.it>
548 * include/bits/locale_facets.tcc: Minor cosmetic changes
549 and const-ifications of some variables.
551 * include/bits/locale_facets.tcc
552 (money_get::do_get(..., string_type&)): Simplify an if-else.
554 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
557 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
558 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
559 * config/locale/generic/ctype_members.cc: Same.
560 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
562 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
564 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
565 Improve performance-wise: avoid one traits::copy, avoid
566 the __builtin_alloca, streamline.
568 2003-10-05 Paolo Carlini <pcarlini@unitus.it>
570 * include/bits/locale_facets.tcc
571 (num_put::do_put(..., bool)): Prefer ?: to if-else.
572 (time_get::_M_extract_name): Qualify min with std::.
573 (__pad<>::_S_pad): Constify two variables; simplify an
574 if-else statement factoring out some code.
576 * include/bits/locale_facets.tcc: Minor cosmetic changes.
578 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
580 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
581 Constify a couple of variables.
582 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
585 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
586 Petur Runolfsson <peturr02@ru.is>
588 * include/ext/stdio_sync_filebuf.h: Don't include the whole
589 <fstream>, only <streambuf> and <cstdio>.
591 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
594 * include/bits/fstream.tcc (imbue): In case a codecvt facet
595 is not available, set _M_codecvt = 0.
596 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
598 2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
601 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
603 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
605 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
606 * src/locale.cc: Define.
607 * src/localename.cc: Use it.
608 * config/locale/generic/time_members.h: Same.
609 * config/locale/gnu/messages_members.h: Same.
610 * config/locale/gnu/time_members.h: Same.
612 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
615 * include/bits/fstream.tcc (seekoff): Ignore the openmode
617 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
618 seekpos): Remove the openmode argument.
619 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
620 seekpos): Remove redundant placeholder for the openmode argument.
621 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
622 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
623 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
624 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
625 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
627 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
629 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
630 (locale::facet::_S_get_c_locale): Same.
632 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
634 * config/linker-map.gnu: Export _S_get_c_locale instead of
637 2003-10-02 Petur Runolfsson <peturr02@ru.is>
639 * config/locale/generic/c_locale.cc
640 (category_names, locale::_S_categories): Const qualify.
641 * config/locale/gnu/c_locale.cc: Same.
642 * config/locale/generic/time_members.h (__timepunct::__timepunct):
643 Copy string contents before assigning to _M_name_timepunct,
644 qualify strcpy and strlen with std::.
645 * config/locale/gnu/time_members.h: Same.
646 * config/locale/gnu/messages_members.h (messages::messages):
647 Copy string contents before assigning to _M_name_messages,
648 qualify strcpy and strlen with std::.
649 * config/os/gnu-linux/ctype_noninline.h
650 (ctype<char>::classic_table()): Don't call locale::classic().
651 * include/bits/locale_classes.h
652 (locale::_S_categories): Const qualify.
653 (locale::_S_once, locale::_S_initialize_once,
654 locale::facet::_S_once, locale::facet::_S_initialize_once,
655 locale::facet::_S_get_c_locale): Declare.
656 (locale::_S_initialize): Don't define.
657 (locale::facet::_S_c_locale): Make private.
658 (locale::facet::_S_c_name): Same, const qualify.
659 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
660 parameters, add throw() specifier.
661 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
662 messages::_M_name_messages): Const qualify.
664 (locale::_S_once, locale::facet::_S_once): Define.
665 (locale::classic): Move initialization code...
666 (locale::_S_initialize_once): ...here.
667 (locale::_S_initialize): Call _S_initialize_once through
669 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
670 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
671 __gthread_once before returning _S_c_locale.
672 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
673 Drop unused parameters, add throw() specifier, don't initialize
674 locale::facet::_S_c_locale and _S_c_name.
676 * config/locale/generic/messages_members.h:
677 Replace _S_c_locale with _S_get_c_locale().
678 * config/locale/gnu/c_locale.cc: Same.
679 * config/locale/gnu/messages_members.h: Same.
680 * config/locale/gnu/numeric_members.cc: Same.
681 * config/locale/gnu/time_members.cc: Same.
682 * config/os/gnu-linux/ctype_noninline.h: Same.
683 * include/bits/locale_facets.h: Same.
684 * include/bits/locale_facets.tcc: Same.
685 * src/codecvt.cc: Same.
686 * src/ctype.cc: Same.
688 2003-10-02 Carlo Wood <carlo@alinoe.com>
690 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
691 Decode symbols that start with _GLOBAL_[ID]_ differently: the
692 trailing part ends with a terminating zero and is not necessarily an
694 * src/demangle.cc (): Same.
695 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
697 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
699 * testsuite/22_locale/locale/cons/12438.cc: Use
700 __gnu_test::try_named_locale("").
702 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
704 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
705 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
707 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
708 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
710 * config.h.in, configure: Regenerate.
711 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
714 2003-10-01 Nathan Myers <ncm@cantrip.org>
716 * include/bits/locale_facets.tcc (time_put::put): Avoid
717 expensive *__s++, in favor of *__s, ++__s.
719 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
721 * include/bits/locale_facets.tcc (time_put::put): Minor
722 tweak to the previous commit.
724 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
727 * include/bits/locale_facets.tcc (time_put::put): Deal
728 with the three issues pointed out by the PR.
729 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
730 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
731 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
732 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
733 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
735 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
737 * include/bits/stl_algo.h: Minor cosmetic reformattings.
739 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
741 * include/bits/stl_algo.h (search_n): Tweak, to spare the
744 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
746 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
747 qualify exception name.
749 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
752 * include/bits/locale_facets.tcc (locale::combine): Don't
753 leak memory if _M_replace_facet throws.
754 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
756 * include/bits/locale_classes.h (locale::locale(const locale&,
757 _Facet*)): Tweak, use consistently _M_remove_reference.
759 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
761 PR libstdc++/12352 (cont)
762 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
763 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
765 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
766 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
767 !_M_caches, !_M_names.
769 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
771 * configure.host: Handle Solaris 2.5 micro releases explicitly.
772 Remove wildcards from Solaris 2.6, 7-9: there were no
774 Treat Solaris 10 and up like 7-9.
776 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
778 * include/bits/stl_algo.h (search_n): Improve the previous
779 fix as suggested by Martin.
781 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
784 * include/bits/istream.tcc (peek): Set eofbit if sgetc
786 * testsuite/27_io/basic_istream/peek/char/12296.cc:
789 2003-09-29 Nathan Myers <ncm@cantrip.org>
790 Paolo Carlini <pcarlini@unitus.it>
793 * include/bits/stl_algo.h (search_n):
794 Use iterator_traits<>::difference_type for __n.
795 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
797 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
799 * testsuite/22_locale/locale/cons/12352.cc:
800 Use __attribute__((unused)) for test.
802 2003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
804 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
805 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
806 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
808 2003-09-26 Brad Spencer <spencer@infointeractive.com>
810 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
811 Explicitly qualify exceptions.
812 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
813 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
814 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
815 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
817 2003-09-25 Paolo Carlini <pcarlini@unitus.it>
820 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
821 size_t)): Don't leak if memory allocations for _M_facets,
822 _M_caches, and _M_names fail.
823 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
824 (locale::_Impl::_M_replace_categories(const _Impl*,
826 (locale::_Impl::_M_install_facet(const locale::id*,
827 const facet*)): Ditto.
828 * include/bits/locale_classes.h (locale::locale(const locale&,
829 _Facet*)): Don't leak memory.
830 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
832 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
833 bool)): Qualify with std:: strcpy, tweak.
834 * include/bits/locale_classes.h
835 (locale::_Impl::_M_check_same_name): Qualify strcmp.
837 2003-09-25 Brad Spencer <spencer@infointeractive.com>
840 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
842 * aclocal.m4: Regenerate.
843 * config.h.in: Regenerate.
844 * configure: Regenerate.
845 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
846 * config/io/basic_file_stdio.cc: Guard unistd.h.
847 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
848 * include/c_std/std_cwchar.h: Same.
849 * include/c_std/std_cwctype.h: Same.
851 2003-09-25 Benjamin Kosnik <bkoz@redhat.com>
854 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
855 * config/locale/generic/ctype_members.cc: Same.
856 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
857 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
859 * config/os/generic/ctype_inline.h: Update.
861 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
863 * src/Makefile.am (version_dep): New variable.
864 (libstdc___la_DEPENDENCIES): Use it to add dependency on
865 libstdc++-symbol.ver only when using symbol versioning.
866 * src/Makefile.in: Regenerate.
868 2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
870 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
871 * testsuite/testsuite_hooks.h: Same.
872 * testsuite/*/*.cc: Same.
874 2003-09-22 Petur Runolfsson <peturr02@ru.is>
876 * include/bits/istream.tcc (basic_istream::read,
877 basic_istream::readsome, basic_istream::putback,
878 basic_istream::unget, operator>>(basic_istream, CharT)):
879 Avoid redundant setstate(failbit) calls when sentry::operator bool()
882 2003-09-22 Carlo Wood <carlo@alinoe.com>
885 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
886 char const*, int, int)): Remove unused identifier
887 cv_qualifier for overloaded constructor.
889 2003-09-18 Benjamin Kosnik <bkoz@redhat.com>
892 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
893 WARN_FLAGS, remove -Wno-format.
894 * aclocal.m4: Regenerate.
895 * configure: Regenerate.
897 2003-09-18 Petur Runolfsson <peturr02@ru.is>
899 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
900 * config/io/basic_file_stdio.h: Same.
901 * include/std/std_fstream.h (__ctype_type): Delete.
902 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
904 2003-09-17 Benjamin Kosnik <bkoz@redhat.com>
907 * configure.host (abi_baseline_pair): Error out on solaris2
908 configurations without a minor version number.
910 2003-09-13 Phil Edwards <phil@codesourcery.com>
912 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
914 * docs/doxygen/user.cfg.in: And here.
916 2003-09-10 Daniel Jacobowitz <drow@mvista.com>
917 Andreas Jaeger <aj@suse.de>
920 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
921 abi_check if cross compiling.
922 * aclocal.m4: Regenerated.
923 * configure: Regenerated.
925 2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
927 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
928 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
929 (__cxa_vec_new3): Likewise.
931 2003-09-10 Petur Runolfsson <peturr02@ru.is>
933 * include/bits/fstream.tcc (basic_filebuf::seekoff):
934 Use codecvt::length to handle variable-width stateless encodings
936 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
937 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
939 2003-09-10 Alan Modra <amodra@bigpond.net.au>
941 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
944 2003-09-09 Alan Modra <amodra@bigpond.net.au>
946 * configure: Regenerate.
948 2003-09-09 David Edelsohn <edelsohn@gnu.org>
950 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
951 qualifier from _S_synced_with_stdio.
953 2003-09-09 Bernardo Innocenti <bernie@develer.com>
955 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
957 2003-09-04 Petur Runolfsson <peturr02@ru.is>
960 * include/bits/fstream.tcc
961 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
962 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
963 _M_ext_buf_size, _M_ext_next and _M_ext_end.
964 (basic_filebuf::underflow): Handle variable-width stateless
965 encodings (codecvt::encoding() == 0), including UTF-8.
966 * include/std/std_fstream.h (basic_filebuf):
967 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
968 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
969 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
970 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
971 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
972 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
973 * testsuite/27_io/objects/wchar_t/12.cc: New test.
974 * testsuite/27_io/objects/wchar_t/13.cc: New test.
976 2003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
978 * docs/html/faq/index.html: Note that a namespace alias can't be
979 used when specialising templates in extension namespace.
980 * docs/html/faq/index.txt: Regenerate.
982 2003-09-03 Petur Runolfsson <peturr02@ru.is>
985 * include/ext/stdio_sync_filebuf.h
986 (stdio_sync_filebuf::_M_unget_buf): Declare it.
987 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
988 (stdio_sync_filebuf::uflow): Store the returned character in
990 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
991 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
992 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
993 _M_unget_buf, if any, else eof().
994 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
995 _M_unget_buf, if any, else eof().
996 * testsuite/27_io/objects/char/12048.cc: Rename to...
997 * testsuite/27_io/objects/char/12048-1.cc: ...this.
998 * testsuite/27_io/objects/char/12048-2.cc: New test.
999 * testsuite/27_io/objects/char/12048-3.cc: New test.
1000 * testsuite/27_io/objects/char/12048-4.cc: New test.
1001 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
1002 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
1003 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
1004 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
1005 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
1006 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
1007 * testsuite/ext/stdio_sync_filebuf_char.cc
1008 (test02, test03, test04, test05): New tests.
1009 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
1010 (test02, test03, test04, test05): New tests.
1012 2003-09-03 Petur Runolfsson <peturr02@ru.is>
1014 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
1015 stringbuf or strstreambuf. Fix typos.
1017 2003-09-02 Phil Edwards <phil@codesourcery.com>
1019 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
1021 * config.h.in: Add _GLIBCXX_HOSTED.
1022 * libsupc++/eh_term_handler.cc: Test it here; initialize
1023 __terminate_handler to std::abort if freestanding.
1024 * aclocal.m4, configure: Regenerated.
1025 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
1027 2003-08-29 Nathan Myers <ncm@cantrip.org>
1030 * include/bits/locale_facets.tcc (__pad): delete dead code.
1032 2003-08-28 Alan Modra <amodra@bigpond.net.au>
1034 * configure.ac: Test $with_cross_host against $build_alias, not $build.
1035 * configure: Regenerate.
1037 2003-08-27 Petur Runolfsson <peturr02@ru.is>
1039 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
1040 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
1042 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1044 * Makefile.am: Remove trailing whitespace. Remove needless
1045 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
1046 * include/Makefile.am: Likewise.
1047 * libmath/Makefile.am: Likewise.
1048 * libsupc++/Makefile.am: Likewise.
1049 * po/Makefile.am: Likewise.
1050 * src/Makefile.am: Likewise.
1051 * testsuite/Makefile.am: Likewise.
1053 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
1054 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1055 testsuite/Makefile.in: Regenerated.
1057 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1059 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
1061 * aclocal.m4, configure: Regenerate.
1063 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
1065 * acinclude.m4: Include no-executables.m4.
1066 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
1067 * aclocal.m4: Regenerated.
1068 * configure: Regenerated.
1070 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
1072 * acinclude.m4: Don't call AC_ISC_POSIX.
1073 * aclocal.m4: Regenerated.
1074 * configure: Regenerated.
1076 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1078 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
1079 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
1080 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
1081 used elsewhere in this file.
1082 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
1083 * configure.ac: ...called here to expand all conditionals.
1084 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
1085 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
1086 (install-freestanding-headers): New target, a subset of
1087 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
1089 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1090 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1091 src/Makefile.in, testsuite/Makefile.in: Regenerated.
1093 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
1095 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
1096 pathnames from generated tag file.
1098 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
1100 * Makefile.am: Add comment.
1101 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
1103 * configure.ac: Use them both here, instead of hardcoded lists.
1105 * fragment.am: Add STAMP varaible.
1106 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
1108 (stamp-*): Move file creation rule outside of 'if' branches to
1109 ensure the stamp-* files are actually updated. Use $(STAMP).
1110 * src/Makefile.am: Remove now-nonexistant variable.
1111 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
1113 * po/Makefile.am: Include same fragment as all the others.
1115 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1116 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
1118 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
1120 * testsuite/data/cin_unget-1.txt: New.
1121 * testsuite/27_io/objects/char/12048.cc: New.
1123 2003-08-25 Zack Weinberg <zack@codesourcery.com>
1125 * config/os/hpux/os_defines.h: Unconditionally define
1126 _GLIBCXX_GTHREAD_USE_WEAK to 0.
1128 2003-08-19 Geoffrey Keating <geoffk@apple.com>
1130 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
1131 crosses to Darwin targets.
1132 * configure: Regenerate.
1134 2003-08-19 Petur Runolfsson <peturr02@ru.is>
1136 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
1138 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
1140 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
1141 in the patch from 3 minutes ago. Boy, is my face red.
1142 * configure: At least I remembered to regenerate this.
1144 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
1146 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
1147 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
1148 things from the top level.
1149 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
1150 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
1151 (currently unused). Strip the fake-VPATH shell fragment from
1152 automake-generated rules, if present.
1153 * linkage.m4: Add comment.
1155 * fragment.am: New file, containing factored-out common settings.
1156 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
1157 * Makefile.am: Include fragment.am. Remove common variables.
1158 * include/Makefile.am: Likewise.
1159 * libmath/Makefile.am: Likewise.
1160 * libsupc++/Makefile.am: Likewise.
1161 * po/Makefile.am: Likewise. Print rules during check.
1162 * src/Makefile.am: Likewise.
1163 * testsuite/Makefile.am: Likewise.
1165 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1166 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1167 src/Makefile.in, testsuite/Makefile.in: Regenerate.
1169 2003-08-11 John Levon <levon@movementarian.org>
1171 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
1172 remaining places for the name change from GLIBCPP_FORCE_NEW
1173 to GLIBCXX_FORCE_NEW
1175 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
1177 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
1179 * include/bits/basic_ios.tcc: Same.
1180 * include/bits/istream.tcc: Same.
1181 * include/bits/locale_facets.h: Same.
1182 * include/bits/ostream.tcc: Same.
1183 * include/std/std_istream.h: Same.
1184 * include/std/std_ostream.h: Same.
1185 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
1187 * include/ext/rope: Remove build warning.
1189 2003-08-11 Andreas Jaeger <aj@suse.de>
1191 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
1193 * include/Makefile.in: Regenerated.
1195 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
1197 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
1198 when calling AC_PROG_CC.
1199 * aclocal.m4, configure: Regenerate.
1201 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
1203 * acinclude.m4: Properly quote variable which will be expanded
1204 inside makefiles. Use CXX instead of CC to extract compiler info.
1205 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
1206 correct form in PACKAGE.
1207 * aclocal.m4, configure: Regenerate.
1209 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
1211 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
1212 (check-abi-verbose): Same.
1213 * testsuite/testsuite_performance.h (report_performance): Same.
1215 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
1217 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
1219 2003-08-07 Doug Gregor <dgregor@apple.com>
1221 * include/bits/char_traits.h (char_traits::not_eof): Match operand
1224 2003-08-07 Bernardo Innocenti <bernie@develer.com>
1227 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
1228 Replace variants with new BSET-based version.
1230 2003-08-07 Carlo Wood <carlo@alinoe.com>
1232 * include/bits/demangle.h: Do not use cctype functions that depend
1235 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
1237 * configure.in: Rename...
1238 * configure.ac: ...to this.
1239 * docs/html/17_intro/porting.texi: Update name.
1241 * docs/html/17_intro/porting.html: Regenerate.
1242 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1243 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1244 testsuite/Makefile.in: Regenerate (picks up new dependancy).
1246 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
1248 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
1249 pipe, open the window to let out the fumes, redo the option-handling
1250 logic to properly execute the detection test.
1251 * aclocal.m4, configure: Regenerate.
1253 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1255 Convert to new autotools.
1256 * acconfig.h: Update with correct names.
1257 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
1258 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
1259 * configure.in: Update. Split hardcoded cross-configury settings
1261 * crossconfig.m4: ...here. New file. Contents untouched.
1262 * acinclude.m4: Reorganize and rewrite as needed. Split large
1264 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
1266 * scripts/testsuite_flags.in: Update.
1268 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
1269 variables (already generated by automake).
1270 * include/Makefile.am: Ditto.
1271 * libmath/Makefile.am: Ditto.
1272 * libsupc++/Makefile.am: Ditto.
1273 * po/Makefile.am: Ditto.
1274 * src/Makefile.am: Ditto.
1276 * aclocal.m4: Regenerate using new versions.
1277 * config.h.in: Ditto.
1279 * Makefile.in: Ditto.
1280 * include/Makefile.in: Ditto.
1281 * libmath/Makefile.in: Ditto.
1282 * libsupc++/Makefile.in: Ditto.
1283 * po/Makefile.in: Ditto.
1284 * src/Makefile.in: Ditto.
1285 * testsuite/Makefile.in: Ditto.
1287 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1289 * po/libstdc++.pot: Re-extract/regenerate.
1291 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1293 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
1294 Remove unneeded variable assignments. Leave them for automake.
1295 * testsuite/lib/libstdc++-v3.exp: Rename...
1296 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
1298 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
1299 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
1302 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1304 * docs/doxygen/guide.html: run_doxygen uses bash.
1305 * docs/doxygen/mainpage.html: We'll be shipping tag files.
1306 * docs/doxygen/run_doxygen: Tweaks and improvements.
1307 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
1308 * docs/html/install.html: Update autoconf/automake requirements.
1309 * docs/html/test.html: Add section describing DejaGNU support.
1310 * docs/html/17_intro/confdeps.dot: New file, generates...
1311 * docs/html/17_intro/confdeps.png: ...this new file.
1312 * docs/html/Makefile: Generated here.
1313 * docs/html/17_intro/configury.html: New file.
1315 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
1317 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
1318 * testsuite/lib/libstdc++-v3.exp: ...to this.
1319 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
1321 2003-07-31 Doug Gregor <dgregor@apple.com>
1323 Add user specialization tests.
1324 * testsuite/23_containers/deque/1.cc: New.
1325 * testsuite/23_containers/list/1.cc: New.
1326 * testsuite/23_containers/map/1.cc: New.
1327 * testsuite/23_containers/multimap/1.cc: New.
1328 * testsuite/23_containers/multiset/1.cc: New.
1329 * testsuite/23_containers/set/1.cc: New.
1330 * testsuite/23_containers/vector/1.cc: New.
1332 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
1334 Reshuffle 23_containers testsuite.
1335 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
1336 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
1337 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
1338 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
1339 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
1340 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
1341 vector_resize.cc: Split into...
1342 * 23_containers/bitset/cons/1.cc: New.
1343 * 23_containers/bitset/cons/6282.cc: New.
1344 * 23_containers/bitset/count/6124.cc: New.
1345 * 23_containers/bitset/operations/1.cc: New.
1346 * 23_containers/bitset/operations/2.cc: New.
1347 * 23_containers/bitset/test/1.cc: New.
1348 * 23_containers/bitset/to_ulong/1.cc: New.
1349 * 23_containers/deque/cons/1.cc: New.
1350 * 23_containers/deque/cons/2.cc: New.
1351 * 23_containers/deque/operators/1.cc: New.
1352 * 23_containers/list/capacity/1.cc: New.
1353 * 23_containers/list/cons/1.cc: New.
1354 * 23_containers/list/cons/2.cc: New.
1355 * 23_containers/list/cons/3.cc: New.
1356 * 23_containers/list/cons/4.cc: New.
1357 * 23_containers/list/cons/5.cc: New.
1358 * 23_containers/list/cons/6.cc: New.
1359 * 23_containers/list/cons/7.cc: New.
1360 * 23_containers/list/cons/8.cc: New.
1361 * 23_containers/list/cons/9.cc: New.
1362 * 23_containers/list/modifiers/1.cc: New.
1363 * 23_containers/list/modifiers/2.cc: New.
1364 * 23_containers/list/modifiers/3.cc: New.
1365 * 23_containers/list/operators/1.cc: New.
1366 * 23_containers/list/operators/2.cc: New.
1367 * 23_containers/list/operators/3.cc: New.
1368 * 23_containers/list/operators/4.cc: New.
1369 * 23_containers/map/insert/1.cc: New.
1370 * 23_containers/map/operators/1.cc: New.
1371 * 23_containers/map/operators/1_neg.cc: New.
1372 * 23_containers/multiset/insert/1.cc: New.
1373 * 23_containers/priority_queue/members/7161.cc: New.
1374 * 23_containers/queue/members/7157.cc: New.
1375 * 23_containers/set/operators/1_neg.cc: New.
1376 * 23_containers/stack/members/7158.cc: New.
1377 * 23_containers/vector/bool/1.cc: New.
1378 * 23_containers/vector/bool/6886.cc: New.
1379 * 23_containers/vector/capacity/1.cc: New.
1380 * 23_containers/vector/capacity/2.cc: New.
1381 * 23_containers/vector/capacity/8230.cc: New.
1382 * 23_containers/vector/cons/1.cc: New.
1383 * 23_containers/vector/cons/2.cc: New.
1384 * 23_containers/vector/cons/3.cc: New.
1385 * 23_containers/vector/cons/4.cc: New.
1386 * 23_containers/vector/cons/6513.cc: New.
1387 * 23_containers/vector/element_access/1.cc: New.
1388 * 23_containers/vector/modifiers/1.cc: New.
1389 * 23_containers/vector/modifiers/2.cc: New.
1390 * 23_containers/vector/resize/1.cc: New.
1392 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1394 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
1396 * testsuite/thread/pthread2.cc: Likewise.
1397 * testsuite/thread/pthread3.cc: Likewise.
1398 * testsuite/thread/pthread4.cc: Likewise.
1399 * testsuite/thread/pthread5.cc: Likewise.
1400 * testsuite/thread/pthread6.cc: Likewise.
1401 * testsuite/thread/pthread7-rope.cc: Likewise.
1403 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
1405 * include/bits/c++config: Partial reversion (comment placement) of
1408 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
1410 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
1411 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
1412 (_GLIBCXX_AT_AT): Remove.
1413 (__USE_MALLOC): Remove.
1414 * include/std/std_fstream.h: Modify.
1415 * include/bits/basic_ios.h: Same.
1416 * include/bits/valarray_array.h: Same.
1417 * include/c_std/std_cmath.h: Same.
1418 * include/c_std/cmath.tcc: Same.
1419 * include/std/std_vector.h: Same.
1420 * include/std/std_string.h: Same.
1421 * include/std/std_stack.h: Same.
1422 * include/std/std_queue.h: Same.
1423 * include/std/std_list.h: Same.
1424 * include/std/std_deque.h: Same.
1425 * include/std/std_streambuf.h: Same.
1426 * include/std/std_sstream.h: Same.
1427 * include/std/std_ostream.h: Same.
1428 * include/std/std_istream.h: Same.
1429 * include/bits/valarray_array.tcc: Same, format.
1431 * include/c/std_cctype.h: Fix include guards.
1432 * include/c/std_cerrno.h: Same.
1433 * include/c/std_cfloat.h: Same.
1434 * include/c/std_climits.h: Same.
1435 * include/c/std_clocale.h: Same.
1436 * include/c/std_cmath.h: Same.
1437 * include/c/std_csetjmp.h: Same.
1438 * include/c/std_csignal.h: Same.
1439 * include/c/std_cstdarg.h: Same.
1440 * include/c/std_cstddef.h: Same.
1441 * include/c/std_cstdio.h: Same.
1442 * include/c/std_cstdlib.h: Same.
1443 * include/c/std_cstring.h: Same.
1444 * include/c/std_ctime.h: Same.
1445 * include/c/std_cwchar.h: Same.
1446 * include/c/std_cwctype.h: Same.
1447 * include/c_std/cmath.tcc: Same.
1448 * include/c_std/std_cmath.h: Same.
1450 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
1453 * include/bits/stl_tree.h: Replace C-style casts with C++-style
1454 casts. Changes to avoid casting away constness. Eliminate
1455 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
1456 initialization lists. Move out implementation of __black_count()
1458 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
1459 Rename_Rb_tree_base_iterator::_M_increment() to
1460 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
1462 * config/linker-map.gnu: Add and change symbols here.
1464 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
1466 * docs/html/22_locale/howto.html: Use locale::classic() instead
1469 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
1471 * testsuite/testsuite_hooks.h: Remove list include.
1472 (func_callback): Define as unique type, not std::list.
1473 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
1474 * testsuite/libstdc++-v3.dg/dg.exp: Same.
1475 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
1476 * testsuite/23_containers/bitset_ctor.cc:
1477 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
1478 * testsuite/18_support/numeric_limits.cc: Same.
1479 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
1480 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
1481 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
1482 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
1483 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
1484 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
1485 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
1486 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
1487 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
1488 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
1489 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
1490 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
1491 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
1492 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
1493 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
1494 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
1495 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
1496 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
1497 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
1498 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
1499 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
1500 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
1501 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
1502 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
1503 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
1504 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
1505 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
1506 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
1507 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
1508 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
1509 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
1510 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
1511 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
1512 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
1513 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
1514 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
1515 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
1516 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
1517 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
1518 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
1519 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
1520 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
1521 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
1522 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
1523 * testsuite/23_containers/bitset_ctor.cc: Same.
1524 * testsuite/23_containers/bitset_shift.cc: Same.
1525 * testsuite/23_containers/vector_ctor.cc: Same.
1526 * testsuite/23_containers/vector_element_access.cc: Same.
1527 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
1528 * testsuite/24_iterators/iterator.cc: Same.
1529 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
1530 * testsuite/25_algorithms/lower_bound.cc: Same.
1531 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
1532 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
1533 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
1534 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
1535 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
1536 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
1537 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
1538 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
1539 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
1540 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
1541 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
1544 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
1546 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
1547 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
1548 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
1549 GLIBCPP to GLIBCXX (and explain as needed).
1551 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
1555 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
1557 * testsuite/22_locale/messages/members/char/1.cc,
1558 testsuite/22_locale/messages/members/char/2.cc,
1559 testsuite/22_locale/messages/members/char/3.cc,
1560 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
1561 the origin of LOCALEDIR.
1562 * testsuite/lib/libstdc++-v3.exp: New file.
1564 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
1566 * include/bits/char_traits.h: Update copyright, tweak.
1567 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
1570 2003-07-24 Matt Austern <austern@apple.com>
1572 * /include/bits/char_traits.h (class char_traits): Put all the
1573 real work into the new class template __gnu_cxx::char_traits.
1574 Gave generic definitions for member functions. Types are taken
1575 from the new class template __gnu_cxx::_Char_types.
1576 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
1577 file. Test of std::char_traits<short>, which serves as a test of
1578 the char_traits primary template.
1580 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
1582 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
1584 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
1586 * testsuite/23_containers/map_operators.cc: Conform to
1587 container requirement as value must be Assignable.
1589 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
1591 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
1592 tests not only generation of pch files, but also their use.
1593 * aclocal.m4, configure: Rebuilt.
1595 2003-07-23 Steve Ellcey <sje@cup.hp.com>
1597 * config/cpu/hppa/atomicity.h: Change
1598 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
1599 to match misc-inst.cc
1601 2003-07-23 Steve Ellcey <sje@cup.hp.com>
1603 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
1604 * include/c_std/std_cctype.h: Ditto.
1605 * include/c_std/std_cerrno.h: Ditto.
1606 * include/c_std/std_cfloat.h: Ditto.
1607 * include/c_std/std_climits.h: Ditto.
1608 * include/c_std/std_clocale.h: Ditto.
1609 * include/c_std/std_cmath.h: Ditto.
1610 * include/c_std/std_csetjmp.h: Ditto.
1611 * include/c_std/std_csignal.h: Ditto.
1612 * include/c_std/std_cstdarg.h: Ditto.
1613 * include/c_std/std_cstddef.h: Ditto.
1614 * include/c_std/std_cstdio.h: Ditto.
1615 * include/c_std/std_cstdlib.h: Ditto.
1616 * include/c_std/std_cstring.h: Ditto.
1617 * include/c_std/std_ctime.h: Ditto.
1618 * include/c_std/std_cwchar.h: Ditto.
1619 * include/c_std/std_cwctype.h: Ditto.
1620 * include/std/std_algorithm.h: Ditto.
1621 * include/std/std_bitset.h: Ditto.
1622 * include/std/std_complex.h: Ditto.
1623 * include/std/std_deque.h: Ditto.
1624 * include/std/std_fstream.h: Ditto.
1625 * include/std/std_functional.h: Ditto.
1626 * include/std/std_iomanip.h: Ditto.
1627 * include/std/std_ios.h: Ditto.
1628 * include/std/std_iosfwd.h: Ditto.
1629 * include/std/std_iostream.h: Ditto.
1630 * include/std/std_istream.h: Ditto.
1631 * include/std/std_iterator.h: Ditto.
1632 * include/std/std_limits.h: Ditto.
1633 * include/std/std_list.h: Ditto.
1634 * include/std/std_locale.h: Ditto.
1635 * include/std/std_map.h: Ditto.
1636 * include/std/std_memory.h: Ditto.
1637 * include/std/std_numeric.h: Ditto.
1638 * include/std/std_ostream.h: Ditto.
1639 * include/std/std_queue.h: Ditto.
1640 * include/std/std_set.h: Ditto.
1641 * include/std/std_sstream.h: Ditto.
1642 * include/std/std_stack.h: Ditto.
1643 * include/std/std_stdexcept.h: Ditto.
1644 * include/std/std_streambuf.h: Ditto.
1645 * include/std/std_string.h: Ditto.
1646 * include/std/std_utility.h: Ditto.
1647 * include/std/std_valarray.h: Ditto.
1648 * include/std/std_vector.h: Ditto.
1650 2003-07-22 Doug Gregor <dgregor@apple.com>
1652 * include/bits/basic_string.h (basic_string::insert): Deprecate
1655 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
1657 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
1659 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
1660 (test03): Include typeinfo for bad_cast.
1661 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1662 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1663 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1665 2003-07-21 Doug Gregor <dgregor@apple.com>
1667 * include/bits/boost_concept_check.h:
1668 (_EqualityComparableConcept::__constraints): Remove != from the
1669 list of constraints; it is not listed in Table 28 of the C++98
1672 2003-07-18 Andreas Jaeger <aj@suse.de>
1674 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
1675 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
1676 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
1677 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
1679 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
1681 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
1682 * config/locale/generic/messages_members.h: Tweaks.
1683 * config/locale/generic/monetary_members.cc
1684 (moneypunct::_M_initialize_moneypunct): Use cache.
1685 (moneypunct::~moneypunct): Delete cache.
1686 * config/locale/generic/time_members.cc:
1687 (__timepunct::_M_initialize_timepunct): Use cache.
1688 * config/locale/generic/time_members.h:
1689 (__timepunct::~__timepunct): Delete cache.
1690 (__timepunct::__timepunct): Set cache.
1691 * config/locale/gnu/messages_members.h: Tweaks.
1692 * config/locale/gnu/monetary_members.cc:
1693 (moneypunct::_M_initialize_moneypunct): Use cache.
1694 (moneypunct::~moneypunct): Delete cache.
1695 * config/locale/gnu/time_members.cc:
1696 (__timepunct::_M_initialize_timepunct): Use cache.
1697 * config/locale/gnu/time_members.h:
1698 (__timepunct::~__timepunct): Delete cache.
1699 (__timepunct::__timepunct): Set cache.
1700 * include/bits/locale_facets.h (__timepunct_cache): New.
1701 (__moneypunct_cache): New.
1702 * include/bits/locale_facets.tcc: Tweak.
1703 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
1704 * src/locale-inst.cc: Instantiate caches.
1705 * src/globals.cc: Add "C" caches.
1706 * src/localename.cc: Use external "C" caches.
1708 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
1710 * docs/doxygen/guide.html: Fix typo.
1712 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
1714 * include/ext/pod_char_traits.h: Add state template argument.
1716 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
1718 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
1719 (num_get::_M_convert_int): To _M_insert_int.
1720 (num_get::_M_convert_float): To _M_insert_float.
1721 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1722 Use caches for ctype, num_get.
1723 (num_get::_M_extract_int): Same.
1724 (num_get::get(bool)): Same.
1725 (__verify_grouping): Use size_t.
1726 * src/locale-inst.cc: Update.
1727 * src/locale.cc: Adjust _S_atoms_in.
1729 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
1731 * docs/doxygen/mainpage.html: Move building/writing instructions...
1732 * docs/doxygen/guide.html: ...to here. New file.
1734 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
1736 * docs/html/ext/howto.html: Update URL for SGI STL docs.
1737 * docs/html/faq/index.html: Same.
1738 * docs/html/faq/index.txt: Regenerate.
1740 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
1743 * include/bits/locale_facets.tcc (money_get::do_get):
1744 Strip only _leading_ zeros.
1745 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
1746 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
1748 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1750 * include/ext/hash_map (class hash_multimap): Remove extra
1751 semicolons from __glibcxx_class_requires3 entries.
1752 * include/ext/hash_set (class hash_set): Ditto.
1753 (class hash_multiset): Ditto.
1755 2003-07-15 Petur Runolfsson <peturr02@ru.is>
1757 * include/bits/char_traits.h (char_traits<wchar_t>::move):
1758 Change last parameter from int_type to size_t.
1760 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
1762 * include/bits/stl_algo.h (includes, set_union, set_intersection,
1763 set_difference, set_symmetric_difference, max_element, min_element,
1764 next_permutation, prev_permutation, find_first_of, find_end):
1766 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
1767 restrictions in docs.
1768 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
1770 * docs/doxygen/doxygroups.cc (setoperations): New group.
1772 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
1774 * include/bits/basic_string.h: Document public functions.
1775 * docs/doxygen/TODO: Update c21 todo.
1777 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
1779 * include/bits/stl_list.h: Document more functions.
1780 * docs/doxygen/TODO: Update c23 todo.
1782 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
1784 * config/locale/gnu/c_locale.h (__convert_from_v): One more
1787 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
1789 * include/bits/stl_tempbuf.h: Qualify free with std::.
1790 * src/locale.cc: Include <cstdlib>, qualify getenv.
1792 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
1794 * config/locale/gnu/c_locale.h (__convert_from_v): Include
1795 <cstdio>. Qualify names.
1796 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
1798 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
1799 Nathan C. Myers <ncm-nospam@cantrip.org>
1802 * include/std/std_fstream.h (xsputn): Declare only.
1803 * include/bits/fstream.tcc (xsputn): Define, optimize for the
1804 always_noconv() case: when __n is sufficiently large flush
1805 the buffer and issue a direct write, if possible combining the
1806 two with writev in __basic_file<>::xsputn_2.
1807 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
1809 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
1811 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
1812 the availability of writev in <sys/uio.h>.
1813 * configure.in: Call here.
1814 * acconfig.h: Add undef for the corresponding symbol.
1815 * aclocal.m4: Regenerate.
1816 * configure: Regenerate.
1817 * config.h.in: Regenerate.
1818 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
1820 * include/std/std_fstream.h (sync): Constify a variable.
1822 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
1824 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
1825 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1827 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
1829 * config/locale/gnu/c_locale.h (__convert_from_v): Include
1830 <cstring> and <cstdlib>. Qualify names.
1832 2003-07-13 Mark Mitchell <mark@codesourcery.com>
1834 * config/locale/generic/c_locale.h: Include <cstdlib> and
1836 * include/bits/boost_concept_check.h: Add this-> to unqualified
1838 * include/bits/deque.tcc: Likewise.
1839 * include/bits/locale_facets.h : Likewise.
1840 * include/bits/ostream.tcc: Likewise.
1841 * include/bits/stl_algo.h: Likewise.
1842 * include/bits/stl_bvector.h: Likewise.
1843 * include/bits/stl_deque.h: Likewise.
1844 * include/bits/stl_list.h: Likewise.
1845 * include/bits/stl_tree.h: Likewise.
1846 * include/bits/stl_vector.h: Likewise.
1847 * include/bits/vector.tcc: Likewise.
1848 * include/ext/rope: Likewise.
1849 * include/ext/ropeimpl.h: Likewise.
1850 * include/ext/stdio_filebuf.h: Likewise.
1852 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
1854 * include/bits/basic_ios.h (copyfmt): Document.
1855 * include/bits/ios_base.h (event, event_callback, register_callback,
1856 xalloc, iword, pword): Document.
1857 (imbue, ~ios_base): Update docs on callbacks.
1859 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
1861 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
1862 warning messages if the environment cannot support symbol versioning.
1863 (port_specific_symbol_file): It's plural, add an 's' on the end.
1864 * configure.host: Likewise.
1865 * src/Makefile.am: Likewise.
1866 * config/linker-map.gnu: Remove one semicolon, heh.
1867 * scripts/extract_symvers: Don't assume useful 'export' syntax.
1868 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
1869 * aclocal.m4, configure, src/Makefile.in: Regenerated.
1871 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
1873 * include/bits/locale_facets.tcc: Use function object for
1874 __use_cache instead of template function. Partially specialize for
1876 * include/bits/locale_classes.h: Update friend declaration for
1878 (_M_install_cache): No throw exception specs.
1879 * src/locale.cc: Remove __use_cache specializations.
1880 * include/ext/pod_char_traits.h (length): Tweak.
1881 * include/bits/locale_facets.h (__numpunct_cache): Remove
1883 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
1885 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
1886 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
1887 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
1888 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
1889 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
1890 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
1892 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
1894 * src/ios.cc (_M_grow_words): Fix spelling.
1896 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
1898 * include/bits/stl_tree.h: Move larger member functions in
1899 _Rb_tree_base_iterator and _Rb_tree_node to...
1900 * src/stl_tree.cc: Here.
1901 * src/Makefile.in: Add stl_tree.cc.
1902 * src/Makefile.in: Regenerated.
1903 * config/linker-map.gnu: Add symbols here.
1905 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
1907 * testsuite/ext/pod_char_traits.cc: New.
1908 * include/ext/pod_char_traits.h: New.
1909 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
1910 * include/Makefile.in: Regenerate.
1911 * docs/html/21_strings/howto.html: Update.
1913 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
1915 * testsuite/performance/list_create_fill_sort.cc: New.
1917 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
1919 * config/locale/generic/numeric_members.cc: Correct type info.
1920 * config/locale/gnu/numeric_members.cc: Same.
1921 * include/bits/locale_facets.h: Same.
1923 * include/bits/char_traits.h: Correct spacing.
1925 * src/locale.cc: Wrap to 80 col.
1927 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
1929 * include/std/std_complex.h: Partially revert last
1930 changes: cmath functions must not be qualified.
1932 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
1934 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
1935 2.11 with globbing backport fix.
1936 * aclocal.m4, configure: Regenerated.
1938 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
1940 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
1941 if output is at all possible (!_M_reading), cannot be active.
1943 * include/std/std_fstream.h: Tweak comments to doxygen style.
1945 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
1947 * include/bits/locale_classes.h: Fully qualify standard
1948 functions with std::, thus avoiding Koenig lookup.
1949 * include/bits/locale_facets.tcc: Likewise.
1950 * src/locale.cc: Likewise.
1951 * src/localename.cc: Likewise.
1953 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
1955 * include/bits/allocator_traits.h: Fix doxygen markup.
1956 * include/ext/mt_allocator.h: Likewise.
1958 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
1960 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
1962 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
1964 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
1965 requirement. Add port_specific_symbol_file variable.
1966 * configure.host: Add docs for port_specific_symbol_file.
1967 Clean up try_cpu block for x86.
1968 * config/linker-map.gnu: No more "last symbol can't have a
1969 semicolon" kaka. Add hook for port-specific symbols.
1970 * src/Makefile.am: Remove trailing whitespace.
1971 (libstdc++-symbol.ver): Detect the presence of port-specific
1972 symbols, and add them accordingly.
1974 * docs/html/17_intro/porting.texi: Bring up to date.
1976 * src/Makefile.in, aclocal.m4, configure,
1977 docs/html/17_intro/porting.html: Regenerated.
1979 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
1981 * scripts/create_testsuite_files: New file.
1982 * testsuite/Makefile.am (all-local, check-performance): Use it.
1983 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
1984 * testsuite/Makefile.in: Regenerated.
1986 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
1988 * testsuite/performance/fstream_seek_write.cc: Likewise.
1989 * testsuite/performance/ofstream_insert_float.cc: Likewise.
1990 * testsuite/performance/ofstream_insert_int.cc: Likewise.
1991 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
1993 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
1995 * include/bits/stl_list.h: Performance and memory usage
1996 improvements. In particular, the behaviour of the constructor and
1997 destructor as the list header node is no longer dynamically
1998 allocated/de-allocated.
1999 * include/bits/list.tcc: Likewise.
2001 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
2003 * include/std/std_complex.h: Fully qualify standard
2004 functions with std::, thus avoiding Koenig lookup.
2005 * include/std/std_memory.h: Likewise.
2006 * include/std/std_valarray.h: Likewise.
2008 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
2010 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
2011 variable for grandparent and use const
2013 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
2015 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
2016 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
2017 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
2018 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
2019 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
2020 * testsuite/27_io/objects/char/7.cc: Ditto
2021 * testsuite/27_io/objects/char/9661-1.cc: Ditto
2023 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
2025 * include/std/std_bitset.h: Fully qualify standard
2026 functions with std::, thus avoiding Koenig lookup.
2028 * include/std/std_fstream.h: Change comment to doxygen style.
2030 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2032 * include/std/std_limits.h: More CPP->CXX changes.
2033 * scripts/check_survey.in: Likewise.
2035 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2037 Move from CPP to CXX.
2038 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
2039 * testsuite/Makefile.am: Same.
2040 * testsuite/Makefile.in: Regenerate.
2041 * po/Makefile.am: Same.
2042 * po/Makefile.in: Regenerate.
2043 * libsupc++/Makefile.am: Same.
2044 * libsupc++/Makefile.in: Regenerate.
2045 * libmath/Makefile.am: Same.
2046 * libmath/Makefile.in: Regenerate.
2047 * include/Makefile.am: Same.
2048 * include/Makefile.in: Regenerate.
2049 * src/Makefile.am: Same.
2050 * src/Makefile.in: Regenerate.
2052 * configure.host: Same.
2053 * configure.in: Same.
2054 * configure: Regenerate.
2055 * acinclude.m4: Same.
2057 * src: Change all files in this directory.
2059 * include: Same, standardize include guards.
2063 2003-07-04 Zack Weinberg <zack@codesourcery.com>
2065 * testsuite/22_locale/collate/compare/wchar_t/2.cc
2066 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
2067 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
2068 * testsuite/22_locale/collate/hash/wchar_t/2.cc
2069 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
2070 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
2071 * testsuite/22_locale/collate/transform/wchar_t/2.cc
2072 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
2073 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2074 XFAIL on all targets.
2076 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2078 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
2079 * aclocal.m4: Regenerate.
2080 * configure: Regenerate.
2082 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
2084 * include/bits/locale_facets.tcc (__int_to_char): Move common case
2087 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2088 Petur Runolfsson <peturr02@ru.is>
2090 * config/io/basic_file_stdio.cc: Revert.
2092 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2094 * include/bits/deque.tcc: Fully qualify standard
2095 functions with std::, thus avoiding Koenig lookup.
2096 * include/bits/gslice_array.h: Likewise.
2097 * include/bits/indirect_array.h: Likewise.
2098 * include/bits/list.tcc: Likewise.
2099 * include/bits/mask_array.h: Likewise.
2100 * include/bits/slice_array.h: Likewise.
2102 2003-07-04 Gawain Bolton <gbolton@free.fr>
2104 * include/bits/stl_tree.h: Performance and memory usage
2107 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
2109 * Makefile.am: Replace PWD with PWD_COMMAND.
2110 * Makefile.in: Regenerated.
2111 * docs/html/Makefile: Likewise.
2113 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2115 * include/bits/valarray_array.h: Fully qualify standard
2116 functions with std::, thus avoiding Koenig lookup.
2117 * include/bits/vector.tcc: Likewise.
2119 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2121 * include/Makefile.am: Update target_ to host_.
2122 * include/Makefile.in: Regenerate.
2123 * src/Makefile.am: Same.
2124 * src/Makefile.in: Regenerate.
2126 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
2128 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2130 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
2131 --enable-libstdcxx-debug-flags.
2132 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
2133 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
2134 * aclocal.m4: Regenerate.
2136 * docs/html/configopts.html: Update.
2138 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2140 Revert the fix for libstdc++/11378.
2142 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2145 * include/std/std_fstream.h (xsputn): In the unbuffered case,
2146 provided always_noconv(), issue directly _M_file.xsputn.
2147 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
2149 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2151 * include/bits/stl_list.h: Fully qualify standard
2152 functions with std::, thus avoiding Koenig lookup.
2153 * include/bits/stl_queue.h: Likewise.
2154 * include/bits/stl_raw_storage_iter.h: Likewise.
2155 * include/bits/stl_tempbuf.h: Likewise.
2156 * include/bits/stl_tree.h: Likewise.
2157 * include/bits/stl_uninitialized.h: Likewise.
2158 * include/bits/stl_vector.h: Likewise.
2159 * include/ext/rope: Change includes order.
2161 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2163 * configure.host (fpos_include_dir): Fix.
2165 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2167 * include/bits/stl_heap.h: Fully qualify standard
2168 functions with std::, thus avoiding Koenig lookup.
2169 * include/bits/stl_iterator_base_funcs.h: Likewise.
2171 * include/bits/stl_algo.h: Qualify __iterator_category too.
2172 * include/bits/stl_algobase.h: Likewise.
2173 * include/bits/stl_bvector.h: Likewise.
2175 * include/bits/stl_algo.h: Don't qualify the pair type.
2177 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
2179 * include/Makefile.am (target_headers): Add fpos.h
2180 (bits_headers): Remove.
2181 * include/Makefile.in: Regenerate.
2182 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
2183 * configure: Regenerate.
2184 * configure.host: Add fpos_include_dir.
2185 * config/os/gnu-linux/fpos.h: New.
2186 * config/os/generic/fpos.h: Add.
2187 * include/bits/fpos.h: Remove.
2189 * config/io/c_io_stdio.h: Remove fpos_t typedef.
2191 * include/bits/fstream.tcc: Tweaks.
2192 * include/std/std_fstream.h: Same.
2194 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
2195 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
2196 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
2197 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
2198 * testsuite/27_io/fpos/1.cc: New.
2200 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
2201 Petur Runolfsson <peturr02@ru.is>
2203 * include/std/std_streambuf.h: Remove _M_pos.
2204 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
2205 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
2206 use fread/fwrite instead of read/write.
2207 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
2208 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
2209 before reading again.
2210 * testsuite/27_io/objects/char/6.cc: Tweak.
2212 2003-07-03 David Edelsohn <edelsohn@gnu.org>
2214 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
2215 _GLIBCPP_USE_WCHAR_T.
2217 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2219 * include/bits/basic_string.tcc (_M_replace_aux): Constify
2222 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2224 * include/bits/stl_bvector.h: Fully qualify standard
2225 functions with std::, thus avoiding Koenig lookup.
2226 * include/bits/stl_construct.h: Likewise.
2227 * include/bits/stl_deque.h: Likewise.
2229 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2231 * testsuite/22_locale/num_put/put/char/7.cc: Include
2232 <testsuite_hooks.h>, tweak.
2233 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
2235 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
2237 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
2238 check* targets, but not libs/programs).
2239 * testsuite/Makefile.in: Regenerate.
2241 2003-07-01 Roger Sayle <roger@eyesopen.com>
2243 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
2244 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
2245 * aclocal.m4: Regenerate.
2246 * configure: Regenerate.
2248 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
2250 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
2251 * aclocal.m4: Regenerated.
2252 * configure: Regenerated.
2254 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
2257 * include/bits/fstream.tcc (underflow): For encoding() == 0
2258 don't read more than __buflen chars.
2259 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
2260 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
2261 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
2262 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
2264 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
2266 * 22_locale/num_put/put/char/7.cc: New.
2267 * 22_locale/num_put/put/wchar_t/7.cc: New.
2269 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
2271 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
2272 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
2274 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
2276 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
2277 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
2278 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
2279 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
2280 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
2281 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
2282 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
2283 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
2284 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
2285 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
2286 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
2287 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
2288 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
2289 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
2290 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
2291 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
2292 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
2293 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
2294 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
2295 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
2296 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
2297 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
2298 * data/seekoff-1.tst: Remove.
2299 * data/seekoff-1io.tst: New.
2300 * data/seekoff-1out.tst: New.
2301 * data/seekoff-2.tst: Remove.
2302 * data/seekoff-2io.tst: New.
2303 * data/seekoff-2out.tst: New.
2305 * data/seekpos-1.tst: Remove.
2306 * data/seekpos-1io.tst: New.
2307 * data/seekpos-1out.tst: New.
2308 * data/seekpos-2.tst: Remove.
2309 * data/seekpos-2io.tst: New.
2310 * data/seekpos-2out.tst: New.
2311 * data/seekpos.txt: New.
2313 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
2315 * src/locale.cc (__use_cache<numpunct>): Move from here ...
2316 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
2319 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2321 * include/bits/stl_algobase.h: Fully qualify standard
2322 functions with std::, thus avoiding Koenig lookup.
2324 2003-06-30 Doug Gregor <dgregor@apple.com>
2326 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
2327 subscripting empty string.
2329 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
2331 * testsuite/Makefile.am (check-am): Do not override.
2332 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
2333 * testsuite/Makefile.in: Regenerate.
2335 2003-06-30 Doug Gregor <dgregor@apple.com>
2337 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
2338 Don't initialize an insert_iterator with a singular iterator.
2340 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
2342 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
2343 * aclocal.m4: Regenerate.
2344 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
2345 GLIBCPP_ENABLE_PCH, default to yes.
2346 * configure: Regenerate.
2347 * docs/html/configopts.html: Add --enable-pch.
2349 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
2351 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
2352 (libstdc++-v3-init): Also set LD_RUN_PATH.
2354 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2356 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
2357 from here to filebuf and stringbuf.
2358 (~basic_streambuf()): Don't set _M_mode.
2359 (basic_streambuf()): Don't set _M_mode.
2360 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
2361 (~basic_filebuf()): Clean up.
2362 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
2363 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
2364 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
2365 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
2366 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
2367 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
2368 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
2370 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2372 * include/std/std_fstream.h (_M_underflow): Remove.
2373 (uflow): Remove, inherited from streambuf.
2374 (underflow): Only declare.
2375 * include/bits/fstream.tcc (_M_underflow): Rename to
2376 underflow, to which is equivalent for __bump == false,
2378 * include/std/std_sstream.h (_M_underflow): Remove.
2379 (uflow): Remove, inherited from streambuf.
2380 (underflow): Only declare.
2381 * include/bits/sstream.tcc (_M_underflow): Rename to
2382 underflow, to which is equivalent for __bump == false,
2385 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2387 * include/bits/stl_algo.h: Fully qualify standard functions
2388 with std::, thus avoiding Koenig lookup.
2390 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2392 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
2393 Improve type correctness-wise.
2394 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
2396 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
2398 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
2401 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2403 * include/std/std_streambuf.h (uflow): According to
2404 27.5.2.4.3,p16, don't check gptr() < egptr().
2406 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
2409 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
2410 (seekpos): Likewise.
2411 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
2413 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
2416 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
2418 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
2419 output name to libstdc++-v3-performance.sum.
2420 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
2421 * testsuite/Makefile.in: Regenerate.
2423 2003-06-27 Matthias Klose <doko@debian.org>
2425 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
2426 output of abi-check in libstdc++-v3-abi.sum.
2427 * testsuite/Makefile.in: Regenerate.
2429 2003-06-27 Krister Walfridsson <cato@df.lth.se>
2431 * config/os/bsd/netbsd/ctype_noninline.h
2432 (_C_ctype_): Declare.
2433 (ctype<char>::classic_table): Return _C_ctype_ + 1.
2434 (ctype<char>::ctype): Use classic_table.
2436 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
2437 Nathan C. Myers <ncm-nospam@cantrip.org>
2440 * include/bits/fstream.tcc (_M_underflow): Properly estimate
2441 the worst-case number of external bytes for a given get area.
2442 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
2444 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
2445 Petur Runolfsson <peturr02@ru.is>
2448 * include/bits/fstream.tcc (overflow): Properly estimate the
2449 worst-case number of external bytes for a given put area
2450 (by using codecvt::max_length()).
2451 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
2452 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
2453 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
2454 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
2456 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
2458 * config/linker-map.gnu: Remove ; after __numpunct_cache.
2460 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
2462 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
2463 to the imbued locale.
2464 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
2466 (num_put::_M_convert_float): Use.
2468 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
2469 Jerry Quinn <jlquinn@optonline.net>
2471 * config/linker-map.gnu: Add __numpunct_cache.
2472 * config/locale/gnu/numeric_members.cc
2473 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
2474 all elements for "C" locale.
2475 (numpunct::~numpunct): Delete _M_data.
2476 * config/locale/generic/numeric_members.cc: Same.
2477 * include/bits/basic_ios.tcc
2478 (basic_ios::init): Remove __locale_cache bits.
2479 (basic_ios::_M_cache_locale): Same.
2480 * include/bits/ios_base.h: Same. Tweaks.
2481 * include/bits/locale_classes.h: Tweaks. Reorder classes.
2482 (__use_cache): Make friends with _Impl, locale.
2483 (_Impl::_M_caches): Add.
2484 (_Impl::_M_install_cache): Add.
2485 * include/bits/locale_facets.h (__numpunct_cache): New.
2486 (numpunct): Encapsulate data members in __numpunct_cache member,
2487 _M_data. Adjust virtuals.
2488 (numpunct::numpunct): New ctor for the same.
2489 (__locale_cache_base): Remove.
2490 (__locale_cache): Remove.
2491 * include/bits/locale_facets.tcc (__use_cache): New function,
2493 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
2494 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
2495 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
2496 * src/locale-inst.cc: Same. Add __numpunct_cache.
2497 * src/locale.cc: Tweak inlines.
2498 (__use_cache): Define specializations.
2499 * src/localename.cc: Use global bits.
2500 (_Impl::~Impl): Deal with __numpunct_cache destruction.
2501 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
2502 (_Impl::_M_init_facet): Take into account __numpunct_cache.
2503 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
2504 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2506 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
2507 Paolo Carlini <pcarlini@unitus.it>
2509 * testsuite/performance/filebuf_copy.cc: New, testing char
2512 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
2513 Nathan C. Myers <ncm-nospam@cantrip.org>
2515 * include/bits/fstream.tcc (_M_underflow): When the actual
2516 end of file is reached, set 'uncommitted' mode to allow a
2517 next write without an intervening seek (see C++98 27.8.1.1,2
2519 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
2521 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
2523 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
2524 sputc): Move inline, from here...
2525 * include/std/std_streambuf.h: ... to here.
2527 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
2528 sputbackc, sungetc, sputc): Use __builtin_expect.
2530 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
2532 * docs/doxygen/mainpage.html: Use a useful title.
2534 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
2536 * docs/html/documentation.html: Remove assignment info.
2537 * docs/html/17_intro/contribute.html: Edits.
2538 * docs/html/17_intro/libstdc++-assign.tx: Remove.
2540 * docs/html/test.html: Update.
2544 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
2545 Ulrich Drepper <drepper@redhat.com>
2547 * testsuite/testsuite_performance.h: Tweak mallinfo.
2549 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
2550 Nathan C. Myers <ncm-nospam@cantrip.org>
2552 * include/std/std_fstream.h (_M_filepos): Remove.
2553 (_M_reading, _M_writing): New, encode the various I/O modes:
2554 'read', 'write' and 'uncommitted'.
2555 (sync): If there is something to flush, do it, then go to
2557 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
2558 with three different cases: __off > 0 (upon underflow),
2559 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
2561 (_M_underflow): Don't call overflow, set _M_reading to true
2563 (pbackfail): Set _M_reading to true on pback creation, tweak.
2564 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
2565 set _M_writing to true on success, tweak.
2566 (seekoff): Simplify, set _M_reading, _M_writing to false, call
2567 _M_set_buffer(-1) ('uncommitted').
2568 (open, close, setbuf): Set _M_reading, _M_writing to false and
2569 call _M_set_buffer(-1), tweak.
2570 (basic_filebuf): Don't set _M_buf_unified.
2571 (_M_destroy_internal_buffer): Don't call setg and setp.
2572 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
2573 _M_writing and _M_set_buffer(-1).
2574 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
2575 _M_out_lim, _M_buf_unified): Remove.
2576 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
2577 (setp): Don't set _M_out_lim.
2578 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
2579 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
2580 upon open the mode is 'uncommitted' and therefore the put area
2582 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
2583 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
2584 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
2585 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
2586 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
2587 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
2588 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
2589 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
2590 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
2591 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
2592 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
2593 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
2594 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
2595 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
2596 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
2597 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
2598 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
2599 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
2600 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
2601 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
2603 * include/bits/fstream.tcc (showmanyc): Use only the
2604 documented derivation interface to basic_streambuf (gptr(),
2605 setg(), etc.) to work right with user specializations.
2606 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
2607 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
2608 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
2610 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
2613 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
2615 * configure.host (freebsd*): Set abi_baseline_pair.
2616 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
2617 (at or near first release) to 3.3.
2618 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
2619 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
2620 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
2622 * include/ext/mt_allocator.h: Portability.
2623 * testsuite/testsuite_performance.h: Likewise.
2625 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
2627 * docs/html/17_intro/libstdc++-assign.txt: Update address.
2629 * testsuite/performance/ifstream_getline.cc: Fix.
2631 2003-06-23 Doug Gregor <dgregor@apple.com>
2633 * include/bits/boost_concept_check.h: Don't use _D or _R for type
2636 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
2637 Nathan C. Myers <ncm-nospam@cantrip.org>
2639 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
2640 is now used only for filebuf, when _M_buf_unified is true.
2641 epgtr() plays the role of _M_out_lim but it's only updated
2642 upon overflow, underflow, uflow, seekoff/pos.
2643 * include/bits/sstream.tcc (_M_underflow): New, implements
2644 stringbuf::underflow and uflow.
2645 (seekoff, seekpos): Tweak, use _M_update_egptr.
2646 * include/std/std_sstream.h (str): Rewrote, deal correctly
2647 with the new logic, in particular, when pptr() > egptr().
2648 (_M_sync): When __testout && !__testin set all the get area
2649 pointers to the current string end.
2650 (_M_update_egptr): New, internal function updating egptr()
2651 to the actual string end.
2652 (_M_underflow): New, declare.
2653 (underflow): Dispatch to _M_underflow(false).
2654 (uflow): Dispatch to _M_underflow(true).
2656 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
2657 seekpos): Use only the documented derivation interface to
2658 basic_streambuf (gptr(), setg(), etc.) to work right with
2659 user specializations.
2660 * include/std/std_sstream.h (str, _M_sync): Likewise.
2662 2003-06-20 Doug Gregor <dgregor@apple.com>
2664 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
2665 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
2666 dereference end iterator.
2667 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
2668 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
2669 index equal to the length of a string.
2670 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
2671 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
2672 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
2673 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
2674 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
2675 * testsuite/23_containers/list_modifiers.cc: Don't dereference
2676 singular reverse iterator.
2677 * testsuite/23_containers/vector_bool.cc: Don't increment singular
2679 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
2681 2003-06-20 Doug Gregor <dgregor@apple.com>
2683 * include/bits/basic_string.h (basic_string::replace): Dispatch
2684 _InputIterator version based on _Is_integer.
2685 * include/bits/basic_string.tcc (basic_string::replace):
2686 Renamed replace(iterator, iterator, size_type, _CharT) to
2688 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
2689 Test basic_string::assign(_InputIterator, _InputIterator),
2690 which calls basic_string::replace(iterator, iterator,
2691 _Input_iterator, _InputIterator).
2693 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
2695 * testsuite/testsuite_performance.h (resource_counter): Don't use
2696 mallinfo at the moment.
2698 2003-06-20 Matthias Klose <doko@debian.org>
2700 * configure.host: Set try_cpu to target_cpu for existing
2703 2003-06-19 Andreas Jaeger <aj@suse.de>
2705 * testsuite/Makefile.am (extract_symvers): Revert accidental
2707 * testsuite/Makefile.in: Regenerate.
2709 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
2710 * configure: Regenerated.
2712 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
2714 * include/std/std_sstream.h (_M_sync): Make non virtual.
2716 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
2718 * testsuite/testsuite_performance.h (time_counter): New.
2719 (resource_counter): New.
2720 (report_performance): New.
2721 (start_counters): New.
2722 (stop_counters): New.
2723 (clear_counters): New.
2724 * testsuite/performance/allocator.cc: Instrument.
2725 * testsuite/performance/cout_insert_int.cc: Same.
2726 * testsuite/performance/complex_norm.cc: Same.
2727 * testsuite/performance/filebuf_sputc.cc: New.
2728 * testsuite/performance/fstream_seek_write.cc: Same.
2729 * testsuite/performance/ifstream_getline.cc: Same.
2730 * testsuite/performance/map_create_fill.cc: Same.
2731 * testsuite/performance/ofstream_insert_float.cc: Same.
2732 * testsuite/performance/ofstream_insert_int.cc: Same.
2733 * testsuite/performance/string_append.cc: Convert.
2734 * scripts/check_performance: New.
2735 * testsuite/Makefile.am (check-performance): New.
2738 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
2739 Benjamin Kosnik <bkoz@redhat.com>
2741 * include/std/std_sstream.h (setbuf): Check __n >= 0.
2742 * include/bits/fstream.tcc (setbuf): Tweak.
2744 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
2746 * include/bits/sstream.tcc (seekoff): We can't seek beyond
2747 _M_out_lim, therefore _M_move_out_cur boils down to simply
2748 updating _M_out_cur.
2749 (seekpos): Likewise, clean up.
2751 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
2752 Paolo Carlini <pcarlini@unitus.it>
2754 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
2755 simply equivalent to the unbuffered case (0, 0) as far as
2756 _M_buf_size is concerned.
2758 2003-06-18 Andreas Jaeger <aj@suse.de>
2760 * testsuite/Makefile.am (new-abi-baseline): Create baseline
2762 (baseline_file): Use baseline_dir.
2763 (baseline_dir): New.
2764 (mkinstalldirs): New.
2766 * acinclude.m4: Rename baseline_file to baseline_dir, strip
2767 filename from baseline_dir.
2769 * testsuite/Makefile.in: Regenerated.
2770 * Makefile.in: Regenerated.
2771 * aclocal.m4: Regenerated.
2772 * configure: Regenerated.
2774 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
2776 * configure.in: Missed check_survey bit.
2777 * configure: Regenerated.
2779 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
2782 * config/abi/extract_symvers: Move to...
2783 * scripts/extract_symvers: ...here.
2784 * mkcheck.in: Move to..
2785 * scripts/check_survey.in: ...here.
2786 * testsuite_flags.in: Move to..
2787 * scripts/testsuite_flags.in: ...here.
2788 * configure.in: Change check and testsuite_flags locations.
2789 * configure: Regenerate.
2790 * testsuite/Makefile.am (current_symbols.txt): Change location.
2791 * testsuite/Makefile.in: Regenerate.
2792 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
2793 location of testsuite_flags.
2794 * Makefile.am (check-script): Move..
2795 (check-script-install): Move...
2796 * testsuite/Makefile.am: ... here.
2797 * testsuite/Makefile.in: Regenerate.
2798 * Makefile.in: Regenerate.
2800 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
2802 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
2804 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
2806 * Makefile.am (check-abi): Move...
2807 (new-abi-baseline): Move...
2808 * testsuite/Makefile.am: ...here.
2809 (new-abi-baseline): Conditionalize.
2810 (check-abi): Conditionalize.
2811 (check-abi-verbose): New.
2812 * Makefile.in: Regenerate.
2813 * testsuite/Makefile.in: Regenerate.
2814 * configure.in: Consolidate testsuite configure bits.
2815 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
2816 * configure: Regenerate.
2817 * aclocal.m4: Regenerate.
2818 * testsuite/abi_check.cc: Add --check-verbose.
2819 Only output detailed information if --check-verbose.
2821 2003-06-16 Andreas Jaeger <aj@suse.de>
2823 * testsuite/abi_check.cc: Create summary report.
2825 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
2827 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
2828 for systems with BUFSIZ != 8192.
2829 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
2830 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
2833 2003-06-16 Andreas Jaeger <aj@suse.de>
2835 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
2836 check-abi multilib aware.
2837 * aclocal.m4: Regenerate.
2838 * configure: Regenerate.
2840 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
2841 Andreas Jaeger <aj@suse.de>
2843 * configure.host: Set x86_64 abi_baseline pair correctly.
2845 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
2847 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
2848 fix for missing seeks between gets and puts into...
2849 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
2850 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
2851 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
2852 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
2853 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
2854 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
2856 2003-06-15 Richard Henderson <rth@redhat.com>
2858 * config/linker-map.gnu: Export virtual function thunks for
2861 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
2863 * config/abi/i686-pc-linux-gnu: To..
2864 * config/abi/i486-linux-gnu: ...this.
2865 * config/abi/alphaev67-unknown-linux-gnu: To..
2866 * config/abi/alpha-linux-gnu: ...this.
2867 * config/abi/ia64-unknown-linux-gnu: To...
2868 * config/abi/ia64-linux-gnu: ...this.
2869 * config/abi/x86_64-unknown-linux-gnu: To...
2870 * config/abi/x86_64-linux-gnu: ...this.
2871 * config/abi/i386-unknown-freebsd4: To...
2872 * config/abi/i386-freebsd4: ...this.
2873 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
2875 * configure.host: abi_baseline_triplet to abi_baseline_pair.
2876 Simplify cpu bits so that abi_baseline_pair can use the same
2878 * acinclude.m4: Same.
2879 * aclocal.m4: Regenerate.
2880 * configure.in: Can't get enable_abi_check to yes unless native.
2881 * configure: Regenerate.
2883 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
2885 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
2886 fix for missing seeks between gets and puts into...
2887 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
2888 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
2889 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
2890 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
2891 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
2892 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
2893 for missing seeks between gets and puts.
2894 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
2895 * testsuite/data/seekoff-1.tst: New.
2896 * testsuite/data/seekoff-2.tst: New.
2897 * testsuite/data/seekpos-1.tst: New.
2898 * testsuite/data/seekpos-2.tst: New.
2900 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
2902 Avoid multi-processor bus contention on increment/decrement-and-
2903 test of the reference count in the empty-string object, by comparing
2904 addresses first, and never touching the reference count of the empty-
2906 * include/bits/basic_string.h:
2907 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
2909 (_Rep::_S_empty_rep()): New accessor.
2910 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
2911 a base class _Rep_base.
2912 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
2913 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
2914 since no longer must increment its refcount.
2915 * include/bits/basic_string.tcc:
2916 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
2917 return immediately. The former might be unnecessary. The latter
2918 prevents begin() and end() from cloning it unnecessarily.
2919 (_S_construct(_InIterator, _InIterator, const _Alloc&,
2920 input_iterator_tag), _S_construct(_InIterator, _InIterator,
2921 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
2922 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
2923 (_M_mutate): Check for the empty string and treat it as shared.
2924 This is necessary here because _M_mutate is sometimes called with
2925 all-zero arguments; in all other uses of _M_is_shared, the test comes
2928 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
2930 * src/allocator-inst.cc: Explicitly instantiate.
2931 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
2933 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
2935 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
2937 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
2938 * aclocal.m4: Regenerate.
2939 * Makefile.am (SUBDIRS): Remove libio.
2940 * Makefile.in: Regenerate.
2941 * configure.in: Same.
2942 * configure: Regenerate.
2943 * config/io/basic_file_libio.cc: Remove.
2944 * config/io/basic_file_libio.h: Remove.
2945 * config/io/c_io_libio_codecvt.c: Remove.
2946 * config/io/c_io_libio.h: Remove.
2948 * src/Makefile.am: Same.
2949 * src/Makefile.in: Regenerate.
2950 * docs/html/configopts.html: Edits.
2951 * docs/html/explanations.html: Edits.
2953 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
2955 * include/bits/stl_alloc.h (__debug_alloc): Move out.
2956 (__malloc_alloc): Same.
2957 (__pool_alloc): Same.
2958 (__new_alloc): Same.
2960 * include/bits/allocator.h: ...this.
2961 * include/bits/stl_deque.h: Modify comment.
2962 * include/bits/stl_tree.h: Modify include.
2963 * include/std/std_memory.h: Same.
2964 * include/ext/rope: Same.
2965 * include/ext/slist: Same.
2966 * include/std/std_vector.h: Same.
2967 * include/std/std_stack.h: Same.
2968 * include/std/std_queue.h: Same.
2969 * include/std/std_list.h: Same.
2970 * include/std/std_deque.h: Same.
2971 * include/backward/alloc.h: Same.
2972 * include/ext/debug_allocator.h: New.
2973 * include/ext/malloc_allocator.h: New.
2974 * include/ext/pool_allocator.h: New.
2975 * include/ext/new_allocator.h: New.
2976 * include/bits/pthread_allocimpl.h: Remove.
2977 * include/bits/stl_pthread_alloc.h: Remove.
2978 * include/Makefile.am (ext_headers): Add.
2979 * include/Makefile.in: Regenerate.
2980 * src/stl-inst.cc: Use __gnu_cxx namespace.
2981 * src/stl-inst.cc: Move to...
2982 * src/allocator-inst.cc: Here.
2983 * src/Makefile.am (sources): Update.
2984 * src/Makefile.in: Regenerate.
2985 * config/linker-map.gnu: Remove __pool_alloc bits.
2986 * testsuite/ext/headers.cc: Add.
2987 * testsuite/ext/allocators.cc: Fixup.
2989 2003-06-11 Stefan Olsson <stefan@snon.net>
2990 Ola Rönnerup <fnolis@home.se>
2992 * include/Makefile.am (ext_headers): Add.
2993 * include/Makefile.in: Regenerate.
2994 * include/ext/mt_allocator.h: New file.
2996 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
2998 * include/bits/fstream.tcc (close): Clean up a bit.
3000 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
3002 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
3003 - the saved _M_in_cur, that is - cannot be null.
3004 (sync): Constify a variable.
3006 * include/std/std_streambuf.h: Tweak a comment.
3007 (in_avail): Constify a variable.
3009 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
3011 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
3012 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
3013 correctness of container::iterator typedefs. Fix whitespace.
3014 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
3016 * docs/html/documentation.html: Regenerate.
3018 * include/bits/basic_string.h, include/bits/basic_string.tcc,
3019 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
3020 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3021 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
3022 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
3023 include/bits/stl_vector.h, include/bits/vector.tcc,
3024 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
3025 Change _Iter names to _Iterator, and __pos to __position.
3027 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
3028 include/bits/stl_multiset.h, include/bits/stl_set.h:
3029 Remove emacs markers.
3031 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
3033 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3035 * include/bits/fstream.tcc (overflow): According to
3036 27.5.2.4.5, overflow() returns not_eof(eof()).
3037 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
3038 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
3040 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3042 * include/bits/fstream.tcc (_M_underflow): Check overflow return
3043 value; tweak slightly.
3045 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
3047 * include/bits/fstream.tcc (_M_underflow): Do not special
3048 case the unbuffered case, which really means simply a one char
3050 (basic_filebuf): Initialize _M_buf_size.
3051 (setbuf): Unbuffered means _M_buf_size == 1, since only
3052 _M_buf_size - 1 == 0 chars are going to be used for the
3053 put area and 1 for the get area.
3054 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
3055 (~basic_streambuf): Tweak.
3056 (basic_streambuf): Do not initialize _M_buf_size.
3057 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
3058 (~basic_filebuf): Tweak.
3059 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
3060 unbuffered situation (i.e., put area pointers NULL).
3061 * include/bits/streambuf.tcc (sbumpc): Clean up.
3062 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
3063 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
3064 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
3065 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
3066 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
3067 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
3068 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
3070 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
3072 * acinclude.m4: Move all AM_CONDITIONAL calls out.
3073 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
3075 * configure.in: Centralize AM_CONDITIONALs so that they are always
3076 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
3077 * aclocal.m4, configure: Regenerated.
3079 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
3081 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
3083 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
3085 * include/bits/stl_iterator.h
3086 (reverse_iterator::reverse_iterator()): Apply DR235: default
3087 constructor default-initializes data member. Instantiated on a
3088 pointer type, the member has to end up equal to zero.
3090 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
3092 * include/bits/stl_alloc.h: Cleanups.
3093 * include/ext/functional: Same.
3094 * include/ext/hash_map: Same.
3095 * include/ext/hash_set: Same.
3096 * include/ext/iterator: Same.
3097 * include/ext/memory: Same.
3098 * include/ext/numeric: Same.
3099 * include/ext/rb_tree: Same.
3100 * include/ext/ropeimpl.h: Same.
3101 * include/ext/slist: Same.
3102 * include/ext/stdio_filebuf.h: Same.
3103 * include/ext/stdio_sync_filebuf.h: Same.
3104 * include/ext/stl_rope.h: Move to...
3105 * include/ext/rope: ...here.
3106 * include/ext/stl_hash_fun.h: Move to...
3107 * include/ext/hash_fun.h: ...here.
3108 * include/ext/stl_hashtable.h: Move to...
3109 * include/ext/hashtable.h: ...here.
3110 * include/backward/hashtable.h: Reflect new names.
3111 * include/Makefile.am: Same.
3112 * include/Makefile.in: Regenerated.
3114 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
3117 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
3118 * include/bits/stl_algobase.h: Tweak.
3119 * include/std/std_fstream.h: Move _M_buf_size to...
3120 * include/std/std_streambuf.h: ...here. Modify.
3121 * include/bits/streambuf.tcc: Same.
3122 * testsuite/testsuite_hooks.h: Tweak.
3123 * testsuite/testsuite_io.h (constraint_filebuf): New.
3124 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
3125 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
3126 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
3127 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
3128 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
3129 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
3130 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
3131 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
3132 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
3133 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
3134 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
3135 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
3136 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
3137 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
3138 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
3139 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
3140 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
3141 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
3142 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
3143 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
3144 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
3145 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
3146 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
3147 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
3148 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
3149 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
3150 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
3151 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
3152 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
3153 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
3154 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
3155 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
3156 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
3157 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
3158 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
3159 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
3160 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
3161 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
3162 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
3163 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
3164 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
3165 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
3166 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
3167 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
3168 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
3169 * testsuite/data/sgetc.txt: New.
3170 * testsuite/data/sgetn.txt: New.
3172 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
3175 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
3176 Deal with width() smaller than zero.
3177 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
3178 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
3179 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
3180 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
3181 operator<<(basic_ostream, const basic_string&)): Likewise.
3183 * testsuite/27_io/basic_istream/extractors_character/char/
3184 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3185 * testsuite/27_io/basic_ostream/inserters_character/char/
3186 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3187 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
3188 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
3190 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3192 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
3193 .gch compilation works.
3194 * aclocal.m4, configure: Regenerate.
3195 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
3196 initialize PCHFLAGS.
3198 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
3200 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
3201 erase(iterator), erase(iterator, iterator), c_str,
3202 compare(const basic_string&)): Constify various variables.
3203 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
3204 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
3205 _S_create, resize, _M_replace, _M_replace_safe,
3206 append(const basic_string&), append(const basic_string&, size_type,
3207 size_type), append(const _CharT*, size_type), append(size_type,
3208 _CharT), operator+(const _CharT*, const basic_string&),
3209 operator+(_CharT, const basic_string&), replace(iterator, iterator,
3210 size_type, _CharT), find(const _CharT*, size_type, size_type),
3211 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
3212 rfind(_CharT, size_type), compare(size_type, size_type,
3213 const basic_string&), compare(size_type, size_type,
3214 const basic_string&, size_type, size_type), compare(const _CharT*),
3215 compare(size_type, size_type, const _CharT*), compare(size_type,
3216 size_type, const _CharT*, size_type)): Likewise.
3218 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
3220 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
3221 'if' branch less obscure.
3223 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
3226 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
3228 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
3229 (__atomic_add): likewise.
3231 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3233 * include/bits/sstream.tcc (pbackfail): Minor clean up and
3234 reformatting, consistent with basic_filebuf::pbackfail.
3236 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
3239 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
3240 __attribute__ ((__unused__)).
3241 * config/os/aix/atomicity.h: Likewise.
3243 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3246 * include/bits/fstream.tcc (pbackfail): If the pback buffer
3247 is already active don't try to store in it a second char.
3248 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
3250 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
3252 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3254 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
3257 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3259 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
3260 instead of unnecessarily taking the address of _M_pback.
3261 (xsgetn): Simplify slightly for a single char pback buffer.
3263 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3265 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
3266 variables and two 'if', clean up.
3268 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3270 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
3271 not _M_out_end, since the former actually points to the string
3272 end (vs buffer end).
3273 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
3275 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
3277 * docs/doxygen/filter: New file.
3278 * docs/doxygen/filter.sed: New file.
3279 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
3280 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
3281 * docs/html/documentation.html: Fix links to doxygen pages.
3283 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
3285 * include/bits/fstream.tcc (_M_convert_to_external): Don't
3286 check for __ilen > 0.
3288 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
3291 * include/bits/stl_iterator.h (class __normal_iterator):
3292 Don't inherit from iterator, add missing typedefs.
3294 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
3296 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
3297 * testsuite/24_iterators/reverse_iterator/1.cc: New.
3298 * testsuite/24_iterators/reverse_iterator/2.cc: New.
3299 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
3302 2003-05-27 Steve Ellcey <sje@cup.hp.com>
3304 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
3306 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
3307 _LIBUNWIND_STD_ABI is set.
3309 2003-05-26 Brendan Kehoe <brendan@zen.org>
3311 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
3312 make sure the number of digits required after the decimal-point
3313 (if any) is exactly the value returned by frac_digits().
3314 * testsuite/22_locale/money_get/get/char/9.cc: New.
3315 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
3317 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
3319 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
3322 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
3325 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
3326 (_M_pback): No array necessary.
3327 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
3328 unbuffered case, coalesec into ...
3329 (basic_filebuf::overflow): ...this.
3330 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
3331 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
3333 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
3335 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
3336 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
3337 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
3338 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
3339 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
3340 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
3341 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
3342 libsupc++/eh_unex_handler.cc, libsupc++/exception,
3343 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
3344 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
3345 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
3346 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
3347 Replace "GNU CC" with "GCC".
3349 * include/backward/new.h: Replace "GNU CC" with "GCC".
3351 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
3354 * configure.in: Switch target to host, don't assume newlib.
3355 (target_alias): Remove.
3356 * configure: Regenerate.
3357 * acinclude.m4: Same.
3358 * aclocal.m4: Regenerate.
3359 * configure.target: Same. Rename to...
3360 * configure.host: This.
3362 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
3364 * include/std/std_fstream.h (_S_pback_size): Remove definition.
3365 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
3367 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
3368 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
3369 of _S_pback_size for systems with no COMDAT or weak support.
3370 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
3371 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
3372 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
3373 * testsuite/27_io/basic_fstream/3.cc: Likewise.
3374 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3375 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
3376 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
3377 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
3378 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
3380 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
3382 * include/bits/fstream.tcc (_M_underflow): Simplify:
3383 !__testout implies _M_filepos == _M_in_end, therefore
3384 the first _M_file.seekoff call is never issued.
3386 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
3388 * configure.in: Sort cross table.
3389 * configure: Regenerate.
3391 2003-05-22 Brad Spencer <spencer@infointeractive.com>
3394 * configure.in: Add Solaris cross bits.
3396 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
3398 * libstdc++-v3/config/os/mingw32/os_defines.h
3399 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
3400 (NOMINMAX): Define. Update copyright year.
3402 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
3404 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
3406 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
3408 * docs/html/faq/index.html: Fix typo.
3409 * docs/html/faq/index.txt: Regenerate.
3411 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
3413 * docs/html/test.html: Fix markup.
3415 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
3417 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
3419 Update copyright year.
3421 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
3423 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
3425 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
3427 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
3428 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
3430 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3432 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
3433 Cast via void* to avoid -Wcast-align warnings.
3434 (__default_alloc_template::_S_refill): Likewise.
3436 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
3438 * testsuite/README: Move to...
3439 * docs/html/test.html: ...here. Add documentation.
3440 * docs/html/install.html: Move testing bits out..
3441 * docs/html/documentation.html: Add separate testing link.
3442 * testsuite/performance: Add.
3443 * testsuite/performance/allocator.cc: New.
3444 * testsuite/performance/complex_norm.cc: New.
3445 * testsuite/performance/cout_insert_int.cc: New.
3446 * testsuite/performance/fstream_seek_write.cc: New.
3447 * testsuite/performance/ifstream_getline.cc: New.
3448 * testsuite/performance/map_create_fill.cc: New.
3449 * testsuite/performance/ofstream_insert_float.cc: New.
3450 * testsuite/performance/ofstream_insert_int.cc: New.
3451 * testsuite/performance/string_append.cc: New.
3452 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
3455 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
3458 * include/std/std_complex.h (pow): Tidy.
3460 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
3462 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
3463 that upon filebuf::close() 27.8.1.1,3 is enforced.
3465 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
3467 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
3469 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
3470 Nathan Myers <ncm@cantrip.org>
3472 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
3473 _M_convert_to_external only once (_M_buf_size is now the size of
3474 the put area + 1 for the overflow char of a full area); call
3475 _M_set_buffer instead of _M_set_indeterminate.
3476 (setbuf): Don't accept a buffer smaller than 2 chars.
3477 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
3478 instead of _M_set_determinate.
3479 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
3480 (seekoff): Likewise.
3481 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
3482 std::ios_base::openmode, bool, size_t),
3483 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
3485 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
3486 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
3488 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
3489 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
3490 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
3491 the put area is now BUFSIZ - 1.
3492 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
3493 that now the smallest _M_buf_size is 2 (still fails, for the same
3496 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
3498 * testsuite/thread/pthread4.cc: Tweak test.
3500 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
3502 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
3503 excess errors dg marker, use dg-errors instead.
3504 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
3505 * testsuite/20_util/auto_ptr_neg.cc: Same.
3507 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
3509 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
3511 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
3512 Initialize _M_codecvt.
3513 (basic_filebuf::imbue): Same.
3514 (basic_filebuf::showmanyc): Use it.
3515 (basic_filebuf::underflow): Use it.
3516 (basic_filebuf::_M_convert_to_external): Use it.
3517 (basic_filebuf::seekoff): Use it.
3518 (basic_filebuf::imbue): Use it, tweaks.
3519 * include/bits/localefwd.h (__check_facet): New.
3520 * include/bits/locale_classes.h: Tweaks.
3521 * include/bits/locale_facets.tcc: Tweaks.
3522 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
3523 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
3524 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
3525 * include/bits/basic_ios.tcc: Same.
3526 * include/bits/istream.tcc: Same.
3527 * include/bits/ostream.tcc: Same.
3528 * include/std/std_streambuf.h: Same.
3529 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
3530 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
3531 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
3532 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
3533 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
3534 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
3536 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
3538 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
3539 unnecessary includes and unused string literals.
3540 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3541 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3542 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3543 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3545 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
3547 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
3549 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
3551 * include/std/std_fstream.h (_M_convert_to_external): Change
3552 to return bool, take two less streamsize parameters.
3553 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
3554 consistently definition.
3555 (_M_overflow): Adjust call points.
3557 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
3559 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
3561 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
3563 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
3564 * testsuite/Makefile.in: Regenerate.
3566 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
3568 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
3569 * testsuite/Makefile.in: Regenerate.
3571 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3574 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
3575 (acos): Handle integer argument.
3594 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
3595 (__enable_if): Likewise.
3596 * testsuite/26_numerics/cmath/overloads.C: New test.
3598 2003-05-10 Petur Runolfsson <peturr02@ru.is>
3603 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
3604 implementation, based on old wchar_t specialization, add support
3605 for codecvt::in() return value of codecvt_base::noconv, remove
3606 _M_file.sys_ungetc() call.
3607 * include/std/std_fstream.h (basic_file::underflow,
3608 basic_file::uflow, basic_file::_M_underflow): Remove
3609 specialization declarations, call _M_underflow from generic versions
3610 of underflow and uflow.
3611 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
3612 basic_file::_M_underflow): Remove specializations.
3613 * src/Makefile.am (sources): Remove fstream.cc.
3614 * src/Makefile.in: Regenerated.
3615 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
3616 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
3617 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
3618 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
3620 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
3622 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
3624 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
3626 (__basic_file::xsputn): Same.
3627 (__basic_file::seekoff): Same.
3628 (__basic_file::seekpos): Same.
3629 (__basic_file::showmanyc): Same.
3630 * config/io/basic_file_stdio.cc: Same.
3631 * include/std/std_fstream.h: Same.
3632 * include/bits/fstream.tcc: Same.
3633 * src/fstream.cc: Same.
3634 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
3636 2003-05-10 Petur Runolfsson <peturr02@ru.is>
3641 * include/ext/stdio_sync_filebuf.h: New file.
3642 (basic_stdiobuf): New.
3643 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
3644 * include/Makefile.in: Regenerate.
3645 * include/bits/ios_base.h (Init::_S_create_buffers,
3646 Init::_S_destroy_buffers): Remove declarations.
3647 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
3648 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
3649 * src/ios.cc (Init::_S_create_buffers,
3650 Init::_S_destroy_buffers): Remove.
3651 (Init::Init): Create and use syncronized buffers.
3652 (ios_base::sync_with_stdio): Destroy syncronized buffers,
3653 create and install unsyncronized buffers.
3654 * testsuite/27_io/objects/char/10.cc: New test.
3655 * testsuite/27_io/objects/char/9.cc: New test.
3656 * testsuite/27_io/objects/char/9661-1.cc: New test.
3657 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
3658 * testsuite/27_io/objects/char/9661-2_xin.in: New.
3659 * testsuite/27_io/objects/wchar_t/1.cc: New test.
3660 * testsuite/27_io/objects/wchar_t/10.cc: New test.
3661 * testsuite/27_io/objects/wchar_t/2.cc: New test.
3662 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
3663 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
3664 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
3665 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
3666 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
3667 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
3668 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
3669 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
3670 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
3671 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
3672 * testsuite/27_io/objects/wchar_t/5.cc: New test.
3673 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
3674 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
3675 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
3676 * testsuite/27_io/objects/wchar_t/6.cc: New test.
3677 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
3678 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
3679 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
3680 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
3681 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
3682 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
3683 * testsuite/27_io/objects/wchar_t/7.cc: New test.
3684 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
3685 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
3686 * testsuite/27_io/objects/wchar_t/8.cc: New test.
3687 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
3688 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
3689 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
3690 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
3691 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
3692 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
3693 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
3694 * testsuite/ext/stdiobuf_char.cc: New test.
3695 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
3697 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
3699 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
3700 unnecessary includes and unused string literals.
3701 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3703 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
3705 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
3707 2003-05-07 Richard Henderson <rth@redhat.com>
3710 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
3711 (__cxa_end_catch): Likewise.
3712 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
3713 _Unwind_Resume_or_Rethrow.
3714 * libsupc++/eh_personality.cc (empty_exception_spec): New.
3715 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
3716 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
3717 exceptions. Don't push terminate/unexpected to cxa functions.
3718 (__cxa_call_unexpected): Remove foreign exception fixmes.
3720 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
3722 * testsuite/27_io/ios_base/cons: New.
3723 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
3724 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
3726 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
3728 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
3730 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
3731 there is no buffer or __testget == !__testinit.
3734 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
3735 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
3737 * include/std/std_fstream.h (_M_destroy_pback): Don't set
3738 unnecessarily _M_pback_cur_save and _M_pback_end_save.
3740 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
3742 * include/std/std_sstream.h (_M_sync): Minor tweak.
3744 * include/bits/fstream.tcc (close): No need to call
3745 _M_destroy_pback, setting _M_pback_init to false suffices
3748 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
3750 * include/bits/stl_algo.h: Enums as _S_.
3751 * include/bits/stl_tree.h: Same.
3752 * include/bits/stl_bvector.h: Same.
3753 * include/bits/ios_base.h: Same.
3754 * include/bits/stl_alloc.h: Same.
3755 * include/ext/stl_hashtable.h: Same.
3756 * src/ios.cc: And here.
3758 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
3759 * include/bits/sstream.tcc: Same.
3761 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
3763 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
3765 * include/bits/locale_facets.h (__num_base): Remove protected.
3766 Use _S_[io]* names for enumerations.
3767 (_S_format_int): Remove.
3768 * include/bits/locale_facets.tcc: Same.
3769 * src/locale.cc: Same.
3771 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
3773 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
3775 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
3776 * docs/html/faq/index.txt: Regenerated.
3778 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
3779 Matt Kraai <kraai@alumni.cmu.edu>
3781 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
3784 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
3786 * configure.target (mips*): Use the generic atomicity.h by default.
3788 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
3789 (Inspired by an alternate patch from Danny Smith.)
3791 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
3792 (_Swap_lock_struct<>): ...and the horse it rode in on.
3793 * src/globals.cc (_Swap_lock_struct<>): Likewise.
3794 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
3795 member to support...
3796 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
3797 visibility rules related to POSIX threads.
3798 * testsuite/thread/pthread7-rope.cc: New test.
3800 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
3802 * testsuite/21_strings/basic_string/find/char/3.cc: New
3803 file, testing basic_string<char>::find_first_not_of.
3804 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
3805 Likewise for basic_string<wchar_t>.
3807 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
3809 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
3811 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
3813 * include/Makefile.am (CLEANFILES): Remove PCH files in target
3815 * include/Makefile.in: Regenerate.
3817 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
3819 * include/std/std_sstream.h (str()): Tidy.
3821 2003-05-02 Nathan Myers <ncm@cantrip.org>
3822 Paolo Carlini <pcarlini@unitus.it>
3824 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
3826 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
3828 * include/bits/basic_string.h (swap): Remove redundant template
3829 parameters from declaration of non-template member function.
3831 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
3833 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
3834 * configure.in: Move libintl.h header test...
3835 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
3836 the NLS-related test results into one symbol.
3837 * src/functexcept.cc: Use it here.
3838 * aclocal.m4, config.h.in, configure: Regenerated.
3840 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3842 * include/bits/sstream.tcc (overflow): Instead of calling
3843 str(), then _M_string.reserve, thus copying the contents
3844 of the current buffer two times, just copy the latter in
3845 a temporary, then use the 'swap trick'.
3847 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3849 * include/std/std_sstream.h (str()): Revert the best of the
3850 previous 'improvement', incorrect due to the COW nature of
3851 v3 basic_string; simplify.
3853 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3855 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
3856 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
3858 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
3860 * testsuite/abi_check.cc (check_version): Update known versions.
3861 Check added symbols for version_name != base version. Add missing
3862 symbols to incompatible list.
3864 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
3866 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
3867 * aclocal.m4: Regenerated.
3868 * configure: Regenerated.
3870 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3872 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
3873 Const-ify some variables.
3874 (basic_streambuf::xsputn): Likewise; change the type of some
3875 variables to size_t.
3876 (__copy_streambufs): Change some variables to size_t.
3878 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3880 * include/std/std_sstream.h (str()): Avoid constructing
3881 a basic_string temporary not only when it would turn out
3882 to be zero-sized but also when identical to the current
3885 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3887 * include/ext/stdio_filebuf.h
3888 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
3889 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
3890 Shorten a bit (-10 lines) by factoring out some code.
3892 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
3894 * acinclude.m4: Add bit missing from previous patch.
3895 * aclocal.m4, configure: Regenerated.
3897 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
3899 * docs/doxygen/mainpage.html: Bring up to date.
3900 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
3902 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
3903 breaks everything. Don't scan them.
3904 * docs/html/documentation.html: Point to "Write after approval"
3907 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
3909 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
3910 of libc if message translations are being used. Fix info text in
3911 xieee_1003.1-2001 case.
3912 * aclocal.m4, configure: Regenerate.
3914 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
3915 Loren J. Rittle <ljrittle@acm.org>
3916 Martin v. Loewis <martin@v.loewis.de>
3918 * config/cpu/i386/atomicity.h: New file.
3920 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
3922 * include/bits/fstream.tcc (open): Change to single return.
3924 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
3926 * include/std/std_sstream.h (underflow): Change to single return.
3928 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
3930 * include/std/std_streambuf.h (_M_buf): is currently
3931 used only for basic_filebuf, therefore move it there.
3932 (basic_streambuf(), ~basic_streambuf()): Adjust.
3933 * include/std/std_fstream.h (_M_buf): Moved here.
3934 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
3935 is actually redundant for basic_stringbuf.
3936 (_M_really_sync): Likewise.
3937 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
3938 * include/bits/sstream.tcc (seekoff): Adjust.
3940 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
3942 * src/localename.cc: Standardize exception strings.
3943 * src/locale.cc: Same.
3945 * include/bits/basic_string.tcc: Same.
3946 * include/bits/basic_ios.tcc: Same.
3947 * include/std/std_bitset.h: Same.
3948 * include/ext/ropeimpl.h: Same.
3949 * include/bits/stl_vector.h: Same.
3950 * include/bits/stl_deque.h: Same.
3951 * include/bits/stl_bvector.h: Same.
3952 * config/locale/generic/c_locale.cc: Same.
3953 * config/locale/gnu/c_locale.cc: Same.
3954 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
3956 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
3958 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
3960 * include/std/std_streambuf.h (_M_buf_size): is currently
3961 used only for basic_filebuf, therefore move it there.
3962 (basic_streambuf(), ~basic_streambuf()): Adjust.
3963 * include/std/std_fstream.h (_M_buf_size): Moved here.
3964 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
3966 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
3968 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
3969 _M_buf_size (synced input is now correctly dealt with
3970 elsewhere); when the output buffer is full don't fall back
3971 to a snextc-sputc loop, call overflow instead.
3973 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
3975 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
3976 the innermost 'if' by factoring out some code.
3978 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
3980 * configure.in: Test for libintl.h.
3981 * include/bits/c++config: Define __N for everybody.
3982 * include/bits/basic_string.h, include/bits/stl_bvector.h,
3983 include/bits/stl_deque.h, include/bits/stl_vector.h,
3984 include/std/std_bitset.h: Wrap all __throw* text with __N.
3985 * po/Makefile.am (pot): New rule, mostly working.
3986 * src/functexcept.cc: Call gettext on all __throw* arguments when
3987 -fexceptions is in effect.
3988 * po/Makefile.in, config.h.in, configure: Regenerate.
3990 2003-04-28 Petur Runolfsson <peturr02@ru.is>
3993 * include/bits/ios_base.h (Init::_S_ios_create,
3994 Init::_S_ios_destroy): Remove declarations.
3995 (Init::_S_create_buffers,
3996 Init::_S_destroy_buffers): Declare
3997 * src/ios.cc (Init::_S_ios_create): Remove
3998 (Init::_S_create_buffers): Create buffers and add to streams.
3999 (Init::_S_ios_destroy): Rename to...
4000 (Init::_S_destroy_buffers): this.
4001 (Init::Init): Only construct streams once.
4002 (Init::~Init): Flush streams, don't destroy them.
4003 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
4004 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
4005 * testsuite/27_io/objects/char/5.cc: New test.
4006 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
4007 * testsuite/27_io/objects/char/6.cc: New test.
4008 * testsuite/27_io/objects/char/7.cc: New test.
4010 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4012 * testsuite/27_io/objects/char/8.cc: New test.
4014 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4016 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
4017 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
4019 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
4021 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
4022 _M_destroy_pback. _M_pback_create to
4023 _M_create_pback. _M_underflow_common to
4024 _M_underflow. _M_really_overflow to _M_overflow.
4025 * include/bits/fstream.tcc: Same.
4026 * src/fstream.cc: Same.
4027 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
4028 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
4029 * include/bits/streambuf.tcc: Same.
4030 * include/bits/fstream.tcc: Same.
4031 * include/bits/sstream.tcc: Same.
4033 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
4035 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
4036 from fixed size array.
4037 (locale): Change _S_categories as well.
4039 * include/bits/locale_facets.tcc: Tweak.
4040 * config/locale/gnu/c_locale.cc: Assign _S_categories.
4041 * config/locale/generic/c_locale.cc: Same.
4042 * src/locale.cc: Tweak.
4043 * src/globals.cc: Change facet_name to name_vec, add names_c.
4044 * src/localename.cc: Use them.
4045 (locale::_Impl::~_Impl): Destroy _M_names.
4046 (locale::_Impl::_Impl): Create _M_names.
4048 2003-04-27 Andreas Schwab <schwab@suse.de>
4050 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
4051 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
4053 2003-04-27 Nathan Myers <ncm@cantrip.org>
4055 Move some basic_string members out of line because
4056 they are too big to reasonably be inline.
4057 * include/bits/basic_string.h
4058 (assign(const basic_string&, size_type, size_type),
4059 assign(const _CharT*, size_type),
4060 insert(size_type, const basic_string&, size_type, size_type),
4061 insert(size_type, const _CharT*, size_type),
4062 replace(size_type, size_type, const _CharT*, size_type)):
4063 Move from here to...
4064 * include/bits/basic_string.tcc: ...here.
4066 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4068 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
4069 the innermost 'if' by factoring out some code.
4071 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4073 * include/bits/streambuf.tcc (__copy_streambufs): Don't
4074 use in_avail(), simplify.
4076 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4078 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
4079 in basic_stringbuf it's unused.
4081 * include/std/std_sstream.h (underflow): consistently use
4082 _M_in_cur, not gptr().
4084 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
4085 Phil Edwards <pme@gcc.gnu.org>
4087 * testsuite_flags.in: Guard against the possibility
4088 of having "xgcc" as a part of a folder name in the
4089 path to the GCC build folder.
4090 * testsuite/Makefile.am: Likewise.
4091 * testsuite/Makefile.in: Regenerated.
4093 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
4096 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
4097 exception specifications.
4098 (basic_filebuf::close): Same.
4099 (basic_filebuf::_M_pback_destroy): Same.
4100 (basic_filebuf::_M_destroy_internal_buffer): Same.
4101 (basic_filebuf): Remove __res_type typedef.
4102 * src/fstream.cc: Same.
4103 * include/bits/fstream.tcc
4104 (basic_filebuf::_M_convert_to_external): Simplify.
4105 (basic_filebuf::seekoff): Use has_facet before use_facet.
4106 (basic_filebuf::close): Add exception specification of throw().
4107 * testsuite/27_io/basic_filebuf/cons: New.
4108 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
4109 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
4110 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
4111 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
4113 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
4115 * include/bits/locale_classes.h
4116 (locale::_S_extra_categories_size): Remove.
4117 * src/locale.cc: Remove _S_extra_categories_size.
4118 * src/localename.cc: Same.
4119 * config/locale/gnu/c_locale.cc: Same.
4120 * config/locale/generic/c_locale.cc: Same.
4122 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
4124 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
4126 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
4128 * docs/html/17_intro/howto.html: Update some links.
4129 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
4130 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
4131 * docs/html/ext/howto.html: Link to demangler notes and API.
4132 * docs/html/faq/index.html: Remove trailing whitespace.
4133 (1.4, 2.4, 3.8, 4.1): Bring up to date.
4134 (5.6): Change to a bulleted list.
4136 * docs/html/faq/index.txt, docs/html/documentation.html,
4137 docs/html/17_intro/porting.html: Regenerate.
4139 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
4141 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
4142 belongs to basic_filebuf.
4143 * testsuite/27_io/basic_fstream/3.cc: Likewise.
4144 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4145 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
4146 instantiation (now belongs to basic_filebuf).
4147 * testsuite/27_io/basic_iostream/3.cc: Likewise.
4148 * testsuite/27_io/basic_istream/3.cc: Likewise.
4149 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4150 _S_pback_size now belongs to basic_filebuf.
4151 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
4152 instantiation (now belongs to basic_filebuf).
4153 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
4154 belongs to basic_filebuf.
4155 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
4156 instantiation (now belongs to basic_filebuf).
4157 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
4158 _S_pback_size now belongs to basic_filebuf.
4159 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
4160 instantiation (now belongs to basic_filebuf).
4161 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
4163 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
4164 instantiation (now belongs to basic_filebuf).
4165 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
4167 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
4169 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
4170 * configure: Regenerated.
4172 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
4174 * config/locale/generic/c_locale.h (__convert_from_v): Use
4177 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
4179 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
4180 implementation only.
4181 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
4182 Comment and change to comply with DR 60 and the effect on gcount().
4183 * include/std/std_istream.h: Update comments.
4184 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
4185 comments about reasons for tests. Test sync() against gcount().
4186 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
4187 for effect on gcount().
4188 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
4189 for effect on gcount().
4191 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
4193 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
4196 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
4198 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
4199 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4200 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
4201 (basic_streambuf::basic_streambuf()): Adjust.
4202 * include/std/std_fstream.h (_S_pback_size, _M_pback,
4203 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4204 _M_pback_create(), _M_pback_destroy()): Moved here
4205 from basic_streambuf.
4206 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
4208 (basic_filebuf::_S_pback_size): Add declaration.
4209 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
4212 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4214 Consistently use _M_in_beg instead of eback(), _M_in_cur
4215 instead of gptr(), and so on.
4216 * include/bits/fstream.tcc (pbackfail, imbue): Here.
4217 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
4218 * include/bits/streambuf.tcc (sbumpc, sputbackc,
4219 __copy_streambufs): Ditto.
4220 * include/std/std_streambuf.h (sgetc): Ditto.
4222 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4224 * include/bits/sstream.tcc (pbackfail, overflow):
4227 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4229 * include/std/std_streambuf.h (uflow()): It's used only by
4230 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
4231 therefore do not consider the _M_buf_unified == true case.
4233 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
4235 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
4237 * docs/html/ext/howto.html ('LWG Issues'):
4238 Add issues 19, 90, 171, 231, 271.
4240 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
4242 * include/bits/sstream.tcc (pbackfail): Remove redundant
4243 NULL pointer check from test involving _M_in_*.
4244 (overflow, seekoff, seekpos): Const qualify bool variables.
4245 * include/std/std_sstream.h (underflow): Remove redundant
4246 NULL pointer check from test involving _M_in_*.
4247 (_M_really_sync): Const qualify bool variables.
4248 * src/fstream.cc (_M_underflow_common): Remove redundant
4249 NULL pointer check from test involving _M_in_*, const qualify
4252 * include/std/std_streambuf.h (sgetc): Remove redundant
4255 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
4257 According to 5.9 para 2 (second bullet) for pointers p, q
4258 pointing to the same type, with p == 0 and q == 0, (p < q)
4260 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
4261 seekoff): Remove redundant NULL pointer checks from tests
4262 involving _M_out_* and _M_in_*, const qualify bool variables.
4263 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
4264 qualify bool variables.
4265 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
4266 Remove redundant NULL pointer checks from tests involving
4267 _M_out_* and _M_in_*, const qualify bool variables.
4268 * include/std/std_fstream.h (sync): Likewise.
4269 (_M_is_indeterminate): Const qualify bool variables.
4270 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
4271 NULL pointer checks from tests involving _M_out_* and _M_in_*,
4272 const qualify bool variables.
4273 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
4276 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
4278 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
4279 C99 FP macros, if actually captured.
4281 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
4282 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4283 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4284 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4285 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
4287 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4288 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4289 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4290 * include/c_std/std_cstdlib.h: Use new macros.
4291 * include/c_std/std_cstdio.h: Use new macros.
4292 * include/c_std/std_cwchar.h: Use new macros.
4294 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
4297 * include/bits/ostream.tcc: Catch all exceptions for formatted
4298 output, instead of std::exception and derivatives.
4299 * include/bits/istream.tcc: Same.
4300 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
4301 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
4302 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
4303 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
4304 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
4305 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
4308 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
4310 * include/bits/c++config: Minor cosmetic tweaks.
4312 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
4314 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
4315 * include/Makefile.am (pch_input): Find in ${target_builddir}.
4316 (pch_output): Rename to...
4317 (pch_output_builddir): ..this. Find in ${target_builddir}.
4318 (pch_source): Tweak.
4319 (pch_build): Key off a built file.
4320 (pch_output rule): Rename to...
4321 (pch_input rule): ...this. Produce ${pch_output_builddir}
4322 instead of ${pch_output}.
4323 (install-pch rule): Install ${pch_output_builddir}.
4324 * include/Makefile.in: Regenerated.
4326 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
4328 * include/std/std_streambuf.h (setp): _M_out_lim, being
4329 the end limit of used put area, is set equal to _M_out_beg.
4331 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
4333 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
4334 * aclocal.m4: Regenerated.
4335 * configure.in: Remove old demangler bits.
4337 * configure: Regenerate.
4338 * config.h.in: Regenerate.
4339 * include/Makefile.am (allstamps): Now allstamped.
4340 (allcreated): Define this.
4341 (all-local): Use 'em.
4342 Conditionally define pch_build, pch_install based on
4344 (${pch_output}): New rule.
4345 (install-pch): New rule.
4346 (install-headers): New rule.
4347 (install-data-local): Install headers and conditionally pch.
4348 * include/Makefile.in: Regenerate.
4349 * testsuite_flags.in (--build-cxx): Use pch file.
4351 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
4353 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
4355 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
4356 Paolo Carlini <pcarlini at unitus dot it>
4359 * docs/html/27_io/howto.html
4360 ('The buffering is screwing up my program!'): Explain that
4361 opening counts as an I/O operation.
4363 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
4365 * testsuite/thread/pthread1.cc: Enable for darwin test.
4366 * testsuite/thread/pthread2.cc: Same.
4367 * testsuite/thread/pthread3.cc: Same.
4368 * testsuite/thread/pthread4.cc: Same.
4369 * testsuite/thread/pthread5.cc: Same.
4370 * testsuite/thread/pthread6.cc: Same.
4372 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
4375 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
4376 Populate it with multiple legal ways to obtain the C99 float
4377 transcendentals. Use them instead of direct global reference.
4378 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
4379 * docs/html/17_intro/porting.texi
4380 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4381 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4382 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
4383 * config/os/bsd/freebsd/os_defines.h
4384 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4385 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4386 * testsuite/26_numerics/c_math_dynamic.cc: New file.
4388 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
4389 Benjamin Kosnik <bkoz@redhat.com>
4391 * config/os/generic/ctype_inline.h: Fix.
4393 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
4395 * testsuite/testsuite_hooks.h
4396 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
4397 Change to try_named_locale.
4398 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
4400 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
4402 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
4403 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
4404 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
4405 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
4406 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
4407 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
4408 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
4409 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
4410 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
4411 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
4412 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
4413 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
4414 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
4415 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
4416 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
4417 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
4418 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
4419 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
4420 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
4421 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
4422 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
4423 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
4424 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
4425 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
4426 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
4427 * testsuite/22_locale/collate/compare/char/1.cc: Same.
4428 * testsuite/22_locale/collate/compare/char/2.cc: Same.
4429 * testsuite/22_locale/collate/compare/char/3.cc: Same.
4430 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
4431 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
4432 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
4433 * testsuite/22_locale/collate/hash/char/2.cc: Same.
4434 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
4435 * testsuite/22_locale/collate/transform/char/2.cc: Same.
4436 * testsuite/22_locale/collate/transform/char/3.cc: Same.
4437 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
4438 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
4439 * testsuite/22_locale/collate_byname/1.cc: Same.
4440 * testsuite/22_locale/ctype/is/char/2.cc: Same.
4441 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
4442 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
4443 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
4444 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
4445 * testsuite/22_locale/facet/2.cc: Same.
4446 * testsuite/22_locale/locale/cons/2.cc: Same.
4447 * testsuite/22_locale/locale/cons/4.cc: Same.
4448 * testsuite/22_locale/locale/cons/5.cc: Same.
4449 * testsuite/22_locale/locale/cons/7.cc: Same.
4450 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
4451 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
4452 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
4453 * testsuite/22_locale/messages/members/char/1.cc: Same.
4454 * testsuite/22_locale/messages/members/char/2.cc: Same.
4455 * testsuite/22_locale/messages/members/char/3.cc: Same.
4456 * testsuite/22_locale/messages_byname/1.cc: Same.
4457 * testsuite/22_locale/money_get/get/char/1.cc: Same.
4458 * testsuite/22_locale/money_get/get/char/2.cc: Same.
4459 * testsuite/22_locale/money_get/get/char/3.cc: Same.
4460 * testsuite/22_locale/money_get/get/char/4.cc: Same.
4461 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
4462 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
4463 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
4464 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
4465 * testsuite/22_locale/money_put/put/char/1.cc: Same.
4466 * testsuite/22_locale/money_put/put/char/2.cc: Same.
4467 * testsuite/22_locale/money_put/put/char/3.cc: Same.
4468 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
4469 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
4470 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
4471 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
4472 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
4473 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
4474 * testsuite/22_locale/num_get/get/char/1.cc: Same.
4475 * testsuite/22_locale/num_get/get/char/2.cc: Same.
4476 * testsuite/22_locale/num_get/get/char/3.cc: Same.
4477 * testsuite/22_locale/num_get/get/char/5.cc: Same.
4478 * testsuite/22_locale/num_get/get/char/6.cc: Same.
4479 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
4480 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
4481 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
4482 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
4483 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
4484 * testsuite/22_locale/num_put/put/char/1.cc: Same.
4485 * testsuite/22_locale/num_put/put/char/2.cc: Same.
4486 * testsuite/22_locale/num_put/put/char/3.cc: Same.
4487 * testsuite/22_locale/num_put/put/char/5.cc: Same.
4488 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
4489 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
4490 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
4491 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
4492 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
4493 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
4494 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
4495 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
4496 * testsuite/22_locale/numpunct_byname/1.cc: Same.
4497 * testsuite/22_locale/numpunct_byname/2.cc: Same.
4498 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
4499 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
4500 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
4501 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
4502 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
4503 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
4504 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
4505 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
4506 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
4507 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
4508 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
4509 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
4510 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
4511 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
4512 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
4513 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
4514 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
4515 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
4516 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
4517 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
4518 * testsuite/22_locale/time_put/put/char/1.cc: Same.
4519 * testsuite/22_locale/time_put/put/char/2.cc: Same.
4520 * testsuite/22_locale/time_put/put/char/3.cc: Same.
4521 * testsuite/22_locale/time_put/put/char/4.cc: Same.
4522 * testsuite/22_locale/time_put/put/char/5.cc: Same.
4523 * testsuite/22_locale/time_put/put/char/6.cc: Same.
4524 * testsuite/22_locale/time_put/put/char/7.cc: Same.
4525 * testsuite/22_locale/time_put/put/char/8.cc: Same.
4526 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
4527 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
4528 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
4529 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
4530 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
4531 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
4532 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
4533 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
4534 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
4535 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
4536 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
4537 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
4538 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
4540 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
4542 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
4543 solaris includes, not generic.
4545 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
4547 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
4549 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
4550 * include/bits/concept_check.h: Fix multi-line comment.
4551 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
4552 when target is *-*-freebsd*.
4554 2003-04-14 Nathan Myers <ncm@cantrip.org>
4555 Paolo Carlini <pcarlini@unitus.it>
4557 PR libstdc++/9701 (in_avail())
4558 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
4559 doesn't care if there is anything in some putback cell.
4560 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
4562 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
4563 unused string literals.
4565 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
4567 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
4568 _M_out_end, _M_set_indeterminate() does it.
4570 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4572 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
4574 2003-04-12 David Edelsohn <edelsohn@gnu.org>
4576 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4577 Change basic_streambuf instantiation to "unsigned char".
4578 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
4580 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
4582 Remove _M_buf_size_opt, use directly _M_buf_size instead.
4583 * include/bits/fstream.tcc
4584 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
4585 references to _M_buf_size_opt.
4586 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
4587 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
4588 __bufsize to __in_avail and __size_opt to __buf_size.
4589 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
4590 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
4591 * include/std/std_streambuf.h (~basic_streambuf(),
4592 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
4593 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
4594 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
4595 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
4596 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
4597 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
4598 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
4599 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
4600 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
4601 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
4602 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
4603 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
4604 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
4606 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
4608 * include/ext/stdio_filebuf.h
4609 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
4610 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
4611 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
4612 since a stack-based buffer is used for small values of the size_t
4614 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
4615 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
4616 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
4618 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
4621 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
4622 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
4624 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
4626 * testsuite/22_locale/locale/cons/3.cc: Split.
4627 * testsuite/22_locale/locale/cons/7222-c.cc: New.
4628 * testsuite/22_locale/locale/cons/7222-env.cc: New.
4629 Check before trying to create a locale from the environment.
4630 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
4631 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
4634 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
4636 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
4637 locale to construct this hybrid locale, not the global locale.
4639 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
4641 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
4642 instantiation for AIX.
4643 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
4644 * testsuite/25_algorithms/min_max.cc: Same.
4646 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4648 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
4649 twice. Always set _M_cfile to 0 when stream was open.
4651 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
4653 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
4654 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
4655 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
4656 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
4657 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
4658 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
4659 ifstream_members.cc, instantiations.cc, ios.cc,
4660 ios_base_callbacks.cc, ios_base_members_static-1.tst,
4661 ios_base_members_static.cc, ios_base_storage.cc,
4662 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
4663 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
4664 iostream.cc, iostream_members.cc, istream.cc,
4665 istream_exception.cc, istream_extractor_char.cc,
4666 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
4667 istream_extractor_other-2.tst, istream_extractor_other.cc,
4668 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
4669 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
4670 istream_sentry.cc, istream_unformatted-1.tst,
4671 istream_unformatted-1.txt, istream_unformatted.cc,
4672 istringstream.cc, istringstream_members.cc,
4673 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
4674 ofstream_members.cc, ostream.cc, ostream_exception.cc,
4675 ostream_fail.cc, ostream_inserter_arith.cc,
4676 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
4677 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
4678 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
4679 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
4680 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
4681 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
4682 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
4683 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
4684 wide_stream_objects.cc, istream_extractor_arith/01.cc,
4685 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
4686 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
4687 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
4688 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
4689 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
4691 * 27_io/basic_filebuf/1.cc: New.
4692 * 27_io/basic_filebuf/2.cc: New.
4693 * 27_io/basic_filebuf/3.cc: New.
4694 * 27_io/basic_filebuf/4.cc: New.
4695 * 27_io/basic_filebuf/close/char/1.cc: New.
4696 * 27_io/basic_filebuf/close/char/2.cc: New.
4697 * 27_io/basic_filebuf/close/char/3.cc: New.
4698 * 27_io/basic_filebuf/close/char/4879.cc: New.
4699 * 27_io/basic_filebuf/close/char/9964.cc: New.
4700 * 27_io/basic_filebuf/imbue/char/1.cc: New.
4701 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
4702 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
4703 * 27_io/basic_filebuf/is_open/char/1.cc: New.
4704 * 27_io/basic_filebuf/open/char/1.cc: New.
4705 * 27_io/basic_filebuf/open/char/2.cc: New.
4706 * 27_io/basic_filebuf/open/char/3.cc: New.
4707 * 27_io/basic_filebuf/open/char/9507.cc: New.
4708 * 27_io/basic_filebuf/overflow/char/1.cc: New.
4709 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
4710 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
4711 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
4712 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
4713 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
4714 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
4715 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
4716 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
4717 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
4718 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
4719 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
4720 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
4721 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
4722 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
4723 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
4724 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
4725 * 27_io/basic_filebuf/snextc/char/1.cc: New.
4726 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
4727 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
4728 * 27_io/basic_filebuf/sputc/char/1.cc: New.
4729 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
4730 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
4731 * 27_io/basic_filebuf/sputn/char/1.cc: New.
4732 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
4733 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
4734 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
4735 * 27_io/basic_filebuf/sync/char/1057.cc: New.
4736 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
4737 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
4738 * 27_io/basic_fstream/1.cc: New.
4739 * 27_io/basic_fstream/2.cc: New.
4740 * 27_io/basic_fstream/3.cc: New.
4741 * 27_io/basic_fstream/4.cc: New.
4742 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
4743 * 27_io/basic_ifstream/1.cc: New.
4744 * 27_io/basic_ifstream/2.cc: New.
4745 * 27_io/basic_ifstream/3.cc: New.
4746 * 27_io/basic_ifstream/4.cc: New.
4747 * 27_io/basic_ifstream/cons/char/1.cc: New.
4748 * 27_io/basic_ifstream/open/char/1.cc: New.
4749 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
4750 * 27_io/basic_ios/1.cc: New.
4751 * 27_io/basic_ios/2.cc: New.
4752 * 27_io/basic_ios/3.cc: New.
4753 * 27_io/basic_ios/4.cc: New.
4754 * 27_io/basic_ios/clear/char/1.cc: New.
4755 * 27_io/basic_ios/cons/char/1.cc: New.
4756 * 27_io/basic_ios/cons/char/2.cc: New.
4757 * 27_io/basic_ios/cons/char/3.cc: New.
4758 * 27_io/basic_ios/copyfmt/char/1.cc: New.
4759 * 27_io/basic_ios/copyfmt/char/2.cc: New.
4760 * 27_io/basic_ios/exceptions/char/1.cc: New.
4761 * 27_io/basic_ios/locales/char/1.cc: New.
4762 * 27_io/basic_iostream/1.cc: New.
4763 * 27_io/basic_iostream/2.cc: New.
4764 * 27_io/basic_iostream/3.cc: New.
4765 * 27_io/basic_iostream/4.cc: New.
4766 * 27_io/basic_istream/1.cc: New.
4767 * 27_io/basic_istream/2.cc: New.
4768 * 27_io/basic_istream/3.cc: New.
4769 * 27_io/basic_istream/4.cc: New.
4770 * 27_io/basic_istream/exceptions/char/9561.cc: New.
4771 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
4772 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
4773 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
4774 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
4775 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
4776 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
4777 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
4778 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
4779 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
4780 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
4781 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
4782 * 27_io/basic_istream/extractors_character/char/1.cc: New.
4783 * 27_io/basic_istream/extractors_character/char/2.cc: New.
4784 * 27_io/basic_istream/extractors_character/char/3.cc: New.
4785 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
4786 * 27_io/basic_istream/extractors_other/char/1.cc: New.
4787 * 27_io/basic_istream/extractors_other/char/2.cc: New.
4788 * 27_io/basic_istream/extractors_other/char/3.cc: New.
4789 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
4790 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
4791 * 27_io/basic_istream/get/char/1.cc: New.
4792 * 27_io/basic_istream/get/char/2.cc: New.
4793 * 27_io/basic_istream/getline/char/1.cc: New.
4794 * 27_io/basic_istream/getline/char/2.cc: New.
4795 * 27_io/basic_istream/getline/char/3.cc: New.
4796 * 27_io/basic_istream/ignore/char/1.cc: New.
4797 * 27_io/basic_istream/ignore/char/6360.cc: New.
4798 * 27_io/basic_istream/ignore/char/7220.cc: New.
4799 * 27_io/basic_istream/peek/char/1.cc: New.
4800 * 27_io/basic_istream/peek/char/6414.cc: New.
4801 * 27_io/basic_istream/putback/char/1.cc: New.
4802 * 27_io/basic_istream/read/char/1.cc: New.
4803 * 27_io/basic_istream/read/char/2.cc: New.
4804 * 27_io/basic_istream/read/char/3.cc: New.
4805 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
4806 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
4807 * 27_io/basic_istream/readsome/char/8258.cc: New.
4808 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
4809 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
4810 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
4811 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
4812 * 27_io/basic_istream/seekg/char/fstream.cc: New.
4813 * 27_io/basic_istream/seekg/char/sstream.cc: New.
4814 * 27_io/basic_istream/sentry/char/1.cc: New.
4815 * 27_io/basic_istream/sentry/char/2.cc: New.
4816 * 27_io/basic_istream/sentry/char/3.cc: New.
4817 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
4818 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
4819 * 27_io/basic_istream/tellg/char/1.cc: New.
4820 * 27_io/basic_istream/tellg/char/8348.cc: New.
4821 * 27_io/basic_istream/tellg/char/fstream.cc: New.
4822 * 27_io/basic_istream/tellg/char/sstream.cc: New.
4823 * 27_io/basic_istream/ws/char/1.cc: New.
4824 * 27_io/basic_istringstream/1.cc: New.
4825 * 27_io/basic_istringstream/2.cc: New.
4826 * 27_io/basic_istringstream/3.cc: New.
4827 * 27_io/basic_istringstream/4.cc: New.
4828 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
4829 * 27_io/basic_istringstream/str/char/1.cc: New.
4830 * 27_io/basic_ofstream/1.cc: New.
4831 * 27_io/basic_ofstream/2.cc: New.
4832 * 27_io/basic_ofstream/3.cc: New.
4833 * 27_io/basic_ofstream/4.cc: New.
4834 * 27_io/basic_ofstream/cons/char/2.cc: New.
4835 * 27_io/basic_ofstream/open/char/1.cc: New.
4836 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
4837 * 27_io/basic_ostream/1.cc: New.
4838 * 27_io/basic_ostream/2.cc: New.
4839 * 27_io/basic_ostream/3.cc: New.
4840 * 27_io/basic_ostream/4.cc: New.
4841 * 27_io/basic_ostream/cons/char/9827.cc: New.
4842 * 27_io/basic_ostream/endl/char/1.cc: New.
4843 * 27_io/basic_ostream/ends/char/1.cc: New.
4844 * 27_io/basic_ostream/ends/char/2.cc: New.
4845 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
4846 * 27_io/basic_ostream/flush/char/1.cc: New.
4847 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
4848 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
4849 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
4850 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
4851 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
4852 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
4853 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
4854 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
4855 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
4856 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
4857 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
4858 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
4859 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
4860 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
4861 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
4862 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
4863 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
4864 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
4865 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
4866 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
4867 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
4868 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
4869 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
4870 * 27_io/basic_ostream/sentry/char/1.cc: New.
4871 * 27_io/basic_ostream/sentry/char/2.cc: New.
4872 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
4873 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
4874 * 27_io/basic_ostream/tellp/char/1.cc: New.
4875 * 27_io/basic_ostream/tellp/char/2.cc: New.
4876 * 27_io/basic_ostringstream/1.cc: New.
4877 * 27_io/basic_ostringstream/2.cc: New.
4878 * 27_io/basic_ostringstream/3.cc: New.
4879 * 27_io/basic_ostringstream/4.cc: New.
4880 * 27_io/basic_ostringstream/cons/char/3.cc: New.
4881 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
4882 * 27_io/basic_ostringstream/str/char/1.cc: New.
4883 * 27_io/basic_ostringstream/str/char/2.cc: New.
4884 * 27_io/basic_streambuf/1.cc: New.
4885 * 27_io/basic_streambuf/2.cc: New.
4886 * 27_io/basic_streambuf/3.cc: New.
4887 * 27_io/basic_streambuf/cons/char/1.cc: New.
4888 * 27_io/basic_streambuf/imbue/char/1.cc: New.
4889 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
4890 * 27_io/basic_streambuf/overflow/char/1.cc: New.
4891 * 27_io/basic_streambuf/overflow/char/2.cc: New.
4892 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
4893 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
4894 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
4895 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
4896 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
4897 * 27_io/basic_streambuf/sputn/char/1.cc: New.
4898 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
4899 * 27_io/basic_streambuf/sync/char/1057.cc: New.
4900 * 27_io/basic_stringbuf/1.cc: New.
4901 * 27_io/basic_stringbuf/2.cc: New.
4902 * 27_io/basic_stringbuf/3.cc: New.
4903 * 27_io/basic_stringbuf/4.cc: New.
4904 * 27_io/basic_stringbuf/5.cc: New.
4905 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
4906 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
4907 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
4908 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
4909 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
4910 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
4911 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
4912 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
4913 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
4914 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
4915 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
4916 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
4917 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
4918 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
4919 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
4920 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
4921 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
4922 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
4923 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
4924 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
4925 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
4926 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
4927 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
4928 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
4929 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
4930 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
4931 * 27_io/basic_stringbuf/str/char/1.cc: New.
4932 * 27_io/basic_stringbuf/str/char/2.cc: New.
4933 * 27_io/basic_stringbuf/str/char/3.cc: New.
4934 * 27_io/basic_stringbuf/str/char/3955.cc: New.
4935 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
4936 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
4937 * 27_io/basic_stringstream/1.cc: New.
4938 * 27_io/basic_stringstream/2.cc: New.
4939 * 27_io/basic_stringstream/3.cc: New.
4940 * 27_io/basic_stringstream/4.cc: New.
4941 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
4942 * 27_io/basic_stringstream/str/char/1.cc: New.
4943 * 27_io/basic_stringstream/str/char/2.cc: New.
4944 * 27_io/basic_stringstream/str/char/3.cc: New.
4945 * 27_io/basic_stringstream/str/char/4.cc: New.
4946 * 27_io/fpos/1.cc: New.
4947 * 27_io/fpos/2.cc: New.
4948 * 27_io/fpos/3.cc: New.
4949 * 27_io/ios_base/callbacks/1.cc: New.
4950 * 27_io/ios_base/state/1.cc: New.
4951 * 27_io/ios_base/storage/1.cc: New.
4952 * 27_io/ios_base/storage/2.cc: New.
4953 * 27_io/ios_base/storage/3.cc: New.
4954 * 27_io/ios_base/sync_with_stdio/1.cc: New.
4955 * 27_io/ios_base/sync_with_stdio/2.cc: New.
4956 * 27_io/manipulators/adjustfield/char/1.cc: New.
4957 * 27_io/manipulators/adjustfield/char/2.cc: New.
4958 * 27_io/manipulators/basefield/char/1.cc: New.
4959 * 27_io/manipulators/standard/char/1.cc: New.
4960 * 27_io/manipulators/standard/char/2.cc: New.
4961 * 27_io/objects/char/1.cc: New.
4962 * 27_io/objects/char/2.cc: New.
4963 * 27_io/objects/char/2523-1_xin.cc: New.
4964 * 27_io/objects/char/2523-1_xin.in: New.
4965 * 27_io/objects/char/2523-2_xin.cc: New.
4966 * 27_io/objects/char/2523-2_xin.in: New.
4967 * 27_io/objects/char/3045.cc: New.
4968 * 27_io/objects/char/3647.cc: New.
4969 * 27_io/objects/char/3_xin.cc: New.
4970 * 27_io/objects/char/3_xin.in: New.
4971 * 27_io/objects/char/4_xin.cc: New.
4972 * 27_io/objects/char/4_xin.in: New.
4973 * 27_io/objects/char/5268.cc: New.
4974 * 27_io/objects/char/5280_xin.cc: New.
4975 * 27_io/objects/char/5280_xin.in: New.
4976 * 27_io/objects/char/6548_xin.cc: New.
4977 * 27_io/objects/char/6548_xin.in: New.
4978 * 27_io/objects/char/6648-1_xin.cc: New.
4979 * 27_io/objects/char/6648-1_xin.in: New.
4980 * 27_io/objects/char/6648-2_xin.cc: New.
4981 * 27_io/objects/char/6648-2_xin.in: New.
4982 * 27_io/objects/char/7744_xin.cc: New.
4983 * 27_io/objects/char/7744_xin.in: New.
4984 * 27_io/objects/wchar_t/1.cc: New.
4985 * 27_io/types/1.cc: New.
4986 * 27_io/types/2.cc: New.
4987 * data/filebuf_members-1.tst: New.
4988 * data/filebuf_members-1.txt: New.
4989 * data/filebuf_virtuals-1.tst: New.
4990 * data/filebuf_virtuals-1.txt: New.
4991 * data/filebuf_virtuals-2.tst: New.
4992 * data/filebuf_virtuals-3.tst: New.
4993 * data/ifstream_members-1.tst: New.
4994 * data/ifstream_members-1.txt: New.
4995 * data/ios_base_members_static-1.tst: New.
4996 * data/istream_extractor_other-1.tst: New.
4997 * data/istream_extractor_other-1.txt: New.
4998 * data/istream_extractor_other-2.tst: New.
4999 * data/istream_seeks-1.tst: New.
5000 * data/istream_seeks-1.txt: New.
5001 * data/istream_seeks-2.tst: New.
5002 * data/istream_seeks-3.tst: New.
5003 * data/istream_unformatted-1.tst: New.
5004 * data/istream_unformatted-1.txt: New.
5005 * data/ofstream_members-1.tst: New.
5006 * data/ostream_inserter_char-1.tst: New.
5007 * data/ostream_inserter_char-1.txt: New.
5008 * data/ostream_inserter_other-1.tst: New.
5009 * data/ostream_inserter_other-2.tst: New.
5010 * data/ostream_seeks-1.tst: New.
5012 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5014 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
5015 requirement that __mode must be strict input or output.
5017 * include/std/std_streambuf.h (basic_streambuf::setp): Set
5020 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
5021 output string shouldn't core.
5022 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
5024 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
5026 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
5029 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5031 * testsuite/data: New directory.
5032 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
5033 to copy files from the testsuite data directory.
5034 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
5035 testfiles containing _xin, which now means this is an interactive
5036 test and should be run with the interactive dejagnu hooks.
5037 * testsuite/Makefile.am: Remove testsuite_* files.
5038 * testsuite/Makefile.in: Regenerate.
5040 2003-04-09 Zack Weinberg <zack@codesourcery.com>
5042 * docs/html/install.html: Document complete list of locales
5043 required by test suite. Document procedure for installing
5044 said locales under Debian. Solicit instructions for other
5047 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
5049 * include/bits/sstream.tcc (overflow): Make sure operands of min
5050 and max have the same type.
5052 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
5055 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
5058 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
5060 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
5061 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
5062 Don't set _M_out_end.
5063 (basic_filebuf::overflow): Replace _M_out_buf_size() with
5064 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
5065 * include/bits/sstream.tcc (basic_stringbuf::overflow):
5066 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
5067 * include/bits/streambuf.tcc (basic_streambuf::sputc):
5068 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
5069 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
5070 _M_out_end - _M_out_cur.
5071 (__copy_streambufs): Likewise.
5072 * include/std/std_fstream.h (_M_set_determinate): Set
5075 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
5077 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
5078 _M_convert_to_external, _M_really_overflow, seekoff): Fix
5079 test for synced buffer.
5080 * include/std/std_fstream.h (sync): Likewise.
5081 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5082 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
5084 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
5086 * include/std/std_sstream.h (basic_istringstream): Adjust
5088 (basic_ostringstream): Same.
5089 (basic_stringstream): Same.
5090 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
5091 (basic_ofstream): Same.
5092 (basic_fstream): Same.
5093 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
5094 that does not call init.
5095 * include/std/std_istream.h (basic_istream): Same.
5096 (basic_iostream): Construct istream, ostream uninitialized, use
5097 init to initialize just once. Add protected ctor that does not
5100 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
5101 Nathan Myers <ncm@cantrip.org>
5104 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
5106 (basic_filebuf<>::showmanyc): Use the information provided
5107 by codecvt and __basic_file<>::showmanyc_helper to implement
5108 a non-trivial showmanyc.
5109 * config/io/basic_file_stdio.h
5110 (__basic_file<>::showmanyc_helper): New, declare.
5111 * config/io/basic_file_stdio.cc
5112 (__basic_file<>::showmanyc_helper): Define.
5113 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
5114 (__basic_file<char>::open): Don't call fcntl().
5115 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
5116 GLIBCPP_CHECK_POLL): New macros.
5117 * configure.in: Call here.
5118 * acconfig.h: Add #undefs for the corresponding symbols.
5119 * aclocal.m4: Regenerate.
5120 * configure: Regenerate.
5121 * config.h.in: Regenerate.
5123 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
5125 * config/linker-map.gnu: Remove string export restrictions.
5127 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
5129 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
5130 find_first_of, find_last_of and find_last_not_of tests.
5131 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
5132 tests here, new file.
5133 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
5134 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
5135 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
5136 wchar_t find_first_of tests here, new file.
5137 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
5139 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
5141 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
5142 wchar_t find_last_of tests here.
5143 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
5144 wchar_t find_last_not_of tests here.
5146 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
5148 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
5149 Correct return value.
5151 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
5154 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
5155 * include/std/std_complex.h (norm): Use faster,
5156 less accurate computation for builtin float types under --fast-math.
5158 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
5160 * testsuite/testsuite_hooks.h: Fix warning nits.
5162 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
5164 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
5165 Only .set mips2 for the o32 ABI.
5167 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
5169 * testsuite/21_strings/char_traits/requirements/char/1.cc:
5170 Test char not wchar_t.
5172 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
5174 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
5175 Correct size, taking into account sizeof(wchar_t).
5177 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
5179 Reshuffle 21_strings testsuite.
5180 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
5181 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
5182 element_access.cc, operations.cc, char_traits_requirements.cc,
5183 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
5184 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
5185 wchar_t tests as follows.
5186 * 21_strings/basic_string/append/char/1.cc: New.
5187 * 21_strings/basic_string/append/wchar_t/1.cc: New.
5188 * 21_strings/basic_string/assign/char/1.cc: New.
5189 * 21_strings/basic_string/assign/char/2.cc: New.
5190 * 21_strings/basic_string/assign/char/3.cc: New.
5191 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
5192 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
5193 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
5194 * 21_strings/basic_string/capacity/1.cc: New.
5195 * 21_strings/basic_string/capacity/char/1.cc: New.
5196 * 21_strings/basic_string/capacity/char/2.cc: New.
5197 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
5198 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
5199 * 21_strings/basic_string/compare/char/1.cc: New.
5200 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
5201 * 21_strings/basic_string/cons/char/1.cc: New.
5202 * 21_strings/basic_string/cons/char/2.cc: New.
5203 * 21_strings/basic_string/cons/char/3.cc: New.
5204 * 21_strings/basic_string/cons/char/4.cc: New.
5205 * 21_strings/basic_string/cons/char/5.cc: New.
5206 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
5207 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
5208 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
5209 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
5210 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
5211 * 21_strings/basic_string/element_access/char/1.cc: New.
5212 * 21_strings/basic_string/element_access/char/2.cc: New.
5213 * 21_strings/basic_string/element_access/char/3.cc: New.
5214 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
5215 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
5216 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
5217 * 21_strings/basic_string/find/char/1.cc: New.
5218 * 21_strings/basic_string/find/wchar_t/1.cc: New.
5219 * 21_strings/basic_string/insert/char/1.cc: New.
5220 * 21_strings/basic_string/insert/char/2.cc: New.
5221 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
5222 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
5223 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
5224 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
5225 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
5226 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
5227 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
5228 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
5229 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
5230 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
5231 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
5232 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
5233 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
5234 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
5235 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
5236 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
5237 * 21_strings/basic_string/operators/char/1.cc: New.
5238 * 21_strings/basic_string/operators/char/2.cc: New.
5239 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
5240 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
5241 * 21_strings/basic_string/replace/char/1.cc: New.
5242 * 21_strings/basic_string/replace/char/2.cc: New.
5243 * 21_strings/basic_string/replace/char/3.cc: New.
5244 * 21_strings/basic_string/replace/char/4.cc: New.
5245 * 21_strings/basic_string/replace/char/5.cc: New.
5246 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
5247 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
5248 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
5249 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
5250 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
5251 * 21_strings/basic_string/rfind/char/1.cc: New.
5252 * 21_strings/basic_string/rfind/char/2.cc: New.
5253 * 21_strings/basic_string/rfind/char/3.cc: New.
5254 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
5255 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
5256 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
5257 * 21_strings/basic_string/substr/char/1.cc: New.
5258 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
5259 * 21_strings/c_strings/char/1.cc: New.
5260 * 21_strings/c_strings/char/2.cc: New.
5261 * 21_strings/c_strings/wchar_t/1.cc: New.
5262 * 21_strings/c_strings/wchar_t/2.cc: New.
5263 * 21_strings/char_traits/requirements/char/1.cc: New.
5264 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
5265 * 21_strings/char_traits/typedefs/char/1.cc: New.
5267 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
5268 Petur Runolfsson <peturr02@ru.is>
5271 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5272 basic_filebuf<wchar_t>::_M_underflow_common):
5273 if (gptr() < egptr()) return *gptr().
5274 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
5276 * testsuite/27_io/filebuf_members.cc (test_04): Minor
5277 changes: unlink fifo before making it, fix spelling error.
5279 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
5281 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
5282 * testsuite/Makefile.in: Regenerate.
5283 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
5286 2003-03-17 Petur Runolfsson <peturr02@ru.is>
5289 * include/bits/fstream.tcc (basic_filebuf::close):
5290 Always close file, even when write fails.
5291 * testsuite/27_io/filebuf_members.cc (test_07): New test.
5293 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
5295 * libsupc++/Makefile.am (C_COMPILE): Remove.
5296 (LTCOMPILE): Likewise.
5297 * libsupc++/Makefile.in: Regenerate.
5299 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
5301 * testsuite/23_containers/bitset_members.cc: Add test variable.
5302 * testsuite/23_containers/map_insert.cc: Same.
5303 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
5304 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
5305 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5306 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5307 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5308 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
5309 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
5310 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5311 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5312 * testsuite/27_io/istream_exception.cc: Same.
5313 * testsuite/27_io/filebuf_virtuals.cc: Same.
5314 * testsuite/27_io/stringbuf_virtuals.cc: Same.
5315 * testsuite/27_io/ostream_inserter_arith.cc: Same.
5316 * testsuite/26_numerics/valarray_operators.cc: Same.
5317 * testsuite/26_numerics/slice.cc: Same.
5318 * testsuite/26_numerics/slice_array_assignment.cc: Same.
5319 * testsuite/24_iterators/istream_iterator.cc: Same.
5320 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
5322 2003-03-14 Petur Runolfsson <peturr02@ru.is>
5326 * config/locale/generic/ctype_members.cc,
5327 * config/locale/gnu/ctype_members.cc
5328 (ctype<wchar_t>::do_widen(char)): Cast argument to
5329 unsigned char before passing to btowc.
5330 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
5331 Convert characters with btowc instead of mbsrtowcs.
5332 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
5334 Convert characters with wctob instead of wcsrtombs.
5335 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
5336 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
5337 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
5339 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
5341 * include/stdc++.h: New.
5342 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
5343 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
5344 * include/Makefile.in: Regenerate.
5345 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
5346 (--cxxflags): Put -g -O2 here.
5347 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
5349 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
5351 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
5352 missing named locale.
5354 2003-03-14 Andreas Schwab <schwab@suse.de>
5356 * configure.in: Only append to makefiles that are newly created to
5357 avoid multiple multi-do/multi-clean rules.
5358 * configure: Rebuilt.
5360 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
5362 * docs/html/configopts.html, docs/html/documentation.html,
5363 docs/html/explanations.html, docs/html/install.html,
5364 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
5365 invalid XHTML and make page header style consistent.
5367 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
5369 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
5370 * docs/html/faq/index.txt: Regenerate.
5371 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
5373 2003-03-12 Andreas Schwab <schwab@suse.de>
5375 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
5376 glibcpp_toolexeclibdir.
5377 * aclocal.m4, configure: Rebuilt.
5379 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
5381 * docs/html/faq/index.html: Update text about location of headers.
5382 * docs/html/faq/index.txt: Regenerate.
5384 2003-03-11 Carlo Wood <carlo@alinoe.com>
5386 * include/bits/demangle.h: Prepend accessors of
5387 class qualifier with 'get_' in order to fix warnings
5388 when compiling with -Wshadow.
5390 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
5392 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
5394 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
5396 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
5397 report lack of setenv().
5399 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5401 * config/io/basic_file_stdio.cc: include <unistd.h>.
5403 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5404 Nathan Myers <ncm@cantrip.org>
5407 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
5408 seekoff, seekpos): Add a boolean parameter __stdio.
5409 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
5410 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
5411 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
5413 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
5414 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
5415 * include/std/std_fstream.h (sync): Likewise.
5416 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
5417 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
5418 libstdc++/8399 commit involving isatty(0).
5419 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
5420 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
5421 * configure.in: Remove call.
5422 * aclocal.m4: Regenerate.
5423 * config.h.in: Regenerate.
5424 * configure: Regenerate.
5425 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
5427 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5430 * include/bits/fstream.tcc (overflow): don't write EOF to file.
5431 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
5433 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
5436 * include/bits/basic_ios.h (_M_setstate): New.
5437 * include/bits/ostream.tcc (operator<<): Use it.
5438 * include/bits/istream.tcc (operator>>): Use it.
5439 * include/std/std_ostream.h (operator<<): Make friends.
5440 * include/std/std_istream.h (operator>>): Make friends.
5441 * testsuite/27_io/ostream_exception.cc,
5442 testsuite/27_io/istream_exception.cc: New tests.
5444 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
5446 * include/bits/locale_facets.tcc: Fix typo.
5448 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
5450 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
5452 * config/locale/generic/c_locale.cc
5453 (locale::facet::_S_create_c_locale): Throw runtime exception when
5454 unsupported language is specified.
5455 * testsuite/testsuite_hooks.h
5456 (run_test_wrapped_generic_locale_exception_catcher): New function.
5457 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
5458 Suppress runtime exception thrown by generic implementation.
5459 (run_tests_wrapped_env): Likewise.
5460 (run_test_wrapped_generic_locale_exception_catcher): New function.
5461 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
5462 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
5463 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
5464 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
5465 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
5466 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
5467 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
5468 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
5469 * testsuite/22_locale/facet/2.cc: New test wrap.
5470 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
5471 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
5472 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
5473 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
5474 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
5475 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
5476 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
5477 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
5478 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
5479 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
5480 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
5481 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
5482 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
5483 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
5484 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
5485 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
5486 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
5487 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
5488 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
5489 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
5490 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
5491 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
5492 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
5493 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
5494 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
5495 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
5496 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
5497 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
5498 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
5499 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
5500 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
5501 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
5502 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
5503 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
5504 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
5505 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
5506 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
5507 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
5508 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
5509 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
5510 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
5511 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
5512 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
5513 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
5514 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
5515 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
5516 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
5517 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
5518 * testsuite/27_io/ios_members.cc: New test wrap.
5519 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
5521 * testsuite/27_io/streambuf_members.cc: New test wrap.
5522 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
5524 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
5525 Petur Runolfsson <peturr02@ru.is>
5528 * include/bits/streambuf.tcc (__copy_streambufs): Use
5529 sgetn-sputn only when sputn cannot fail, otherwise fall back
5530 to safe snextc-sputc.
5531 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
5533 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
5535 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
5536 locale cache for truename and falsename.
5538 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
5540 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
5541 _M_word_size initialization.
5543 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
5545 * include/bits/fstream.tcc (_M_convert_to_external):
5546 Set __elen to zero if codecvt::out eventually fails.
5548 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
5551 * include/bits/fstream.tcc (_M_really_overflow): Check
5552 for _M_convert_to_external possible failures.
5553 * include/std/std_fstream.h (sync): Check _M_really_overflow
5554 return value and return -1 in case of failure.
5555 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
5557 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
5560 * include/bits/istream.tcc (operator>>(_CharT*),
5561 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
5562 * testsuite/27_io/stringstream.cc (test02): Add.
5564 * include/bits/istream.tcc (operator>>(_CharT*)):
5565 Assign a char_type to *__s.
5567 2003-03-07 Petur Runolfsson <peturr02@ru.is>
5570 * include/bits/locale_facets.tcc
5571 (collate::do_compare, collate::do_transform):
5572 Handle nul characters in input.
5573 * testsuite/22_locale/collate/compare/char/3.cc: New test.
5574 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
5575 * testsuite/22_locale/collate/transform/char/3.cc: New test.
5576 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
5578 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
5580 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
5582 * testsuite/27_io/ostream_fail.cc: New test.
5584 2003-03-07 Matthias Klose <doko@debian.org>
5586 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
5587 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
5588 * Makefile.in: Regenerate.
5589 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
5591 AM_MAKEFLAGS: Pass gxx_include_dir.
5592 * libsupc++/Makefile.in: Regenerate.
5594 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
5596 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
5597 mask. Test setting small-numbered pword and iword slots. Test
5598 behavior at limit of numeric_limits::max. Check that values are
5599 still good after failures.
5601 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
5603 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
5604 (ios_base::ios_base): Set _M_word, _M_word_size.
5605 (ios_base::~ios_base): Remove redundant test.
5606 * testsuite/27_io/ios_base_storage.cc (test03): New.
5608 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
5610 * src/strstream.cc, include/bits/basic_string.tcc: Remove
5611 incorrect whitespace added in my previous change.
5613 2003-03-05 Carlo Wood <carlo@alinoe.com>
5615 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
5616 _S_initialized() in order to allow debugging libraries to detect
5617 when the std streams are initialized from an overloaded operator
5620 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
5622 * libsupc++/demangle.h: Move to..
5623 * include/bits/demangle.h: ...here.
5624 * src/demangle.cc: Adjust include.
5625 * include/Makefile.am (bits_headers): Add.
5626 * include/Makefile.in: Regenerate.
5628 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
5630 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
5632 * config/linker-map.gnu: Filter typeinfo and vtable info.
5634 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
5636 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
5637 new failure. Throw exception if badbit and exception mask when ix
5638 >= numeric_limits<int>::max().
5640 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
5642 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
5643 min and max have the same type.
5644 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
5646 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
5648 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
5649 * include/Makefile.in: Regenerate.
5651 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
5653 * testsuite/abi_check.cc (report_symbol_info): Add version info.
5655 * config/linker-map.gnu: Hide more stuff.
5656 * include/Makefile.am: Cleanups.
5657 * include/Makefile.in: Regenerate.
5659 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
5661 * config/locale/generic/messages_members.h (messages::messages):
5662 Remove name from unused parameter.
5664 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
5666 * src/Makefile.am (sources): Add demangle.cc.
5669 * src/Makefile.in: Regenerate.
5670 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
5671 * libsupc++/Makefile.in: Regenerate.
5673 * testsuite/testsuite_hooks.h
5674 (__gnu_cxx_test::verify_demangle): New.
5675 * testsuite/testsuite_hooks.cc: Define.
5677 2003-02-27 Carlo Wood <carlo@alinoe.com>
5679 * src/demangle.cc: New.
5680 * libsupc++/demangle.h: New.
5682 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
5683 Carlo Wood <carlo@alinoe.com>
5685 * testsuite/demangle/abi_examples/01.cc: New.
5686 * testsuite/demangle/abi_examples/02.cc: New.
5687 * testsuite/demangle/abi_examples/03.cc: New.
5688 * testsuite/demangle/abi_examples/04.cc: New.
5689 * testsuite/demangle/abi_examples/05.cc: New.
5690 * testsuite/demangle/abi_examples/06.cc: New.
5691 * testsuite/demangle/abi_examples/07.cc: New.
5692 * testsuite/demangle/abi_examples/08.cc: New.
5693 * testsuite/demangle/abi_examples/09.cc: New.
5694 * testsuite/demangle/abi_examples/10.cc: New.
5695 * testsuite/demangle/abi_examples/11.cc: New.
5696 * testsuite/demangle/abi_examples/12.cc: New.
5697 * testsuite/demangle/abi_examples/13.cc: New.
5698 * testsuite/demangle/abi_examples/14.cc: New.
5699 * testsuite/demangle/abi_examples/15.cc: New.
5700 * testsuite/demangle/abi_examples/16.cc: New.
5701 * testsuite/demangle/abi_examples/17.cc: New.
5702 * testsuite/demangle/abi_examples/18.cc: New.
5703 * testsuite/demangle/abi_examples/19.cc: New.
5704 * testsuite/demangle/abi_examples/20.cc: New.
5705 * testsuite/demangle/abi_examples/21.cc: New.
5706 * testsuite/demangle/abi_examples/22.cc: New.
5707 * testsuite/demangle/abi_examples/23.cc: New.
5708 * testsuite/demangle/abi_examples/24.cc: New.
5709 * testsuite/demangle/abi_examples/25.cc: New.
5710 * testsuite/demangle/abi_examples/26.cc: New.
5711 * testsuite/demangle/abi_text/01.cc: New.
5712 * testsuite/demangle/abi_text/02.cc: New.
5713 * testsuite/demangle/abi_text/03.cc: New.
5714 * testsuite/demangle/abi_text/04.cc: New.
5715 * testsuite/demangle/abi_text/05.cc: New.
5716 * testsuite/demangle/abi_text/06.cc: New.
5717 * testsuite/demangle/abi_text/07.cc: New.
5718 * testsuite/demangle/abi_text/08.cc: New.
5719 * testsuite/demangle/abi_text/09.cc: New.
5720 * testsuite/demangle/abi_text/10.cc: New.
5721 * testsuite/demangle/abi_text/11.cc: New.
5722 * testsuite/demangle/abi_text/12.cc: New.
5723 * testsuite/demangle/abi_text/13.cc: New.
5724 * testsuite/demangle/abi_text/14.cc: New.
5725 * testsuite/demangle/regression/3111-1.cc: New.
5726 * testsuite/demangle/regression/3111-2.cc: New.
5727 * testsuite/demangle/regression/7986-01.cc: New.
5728 * testsuite/demangle/regression/7986-02.cc: New.
5729 * testsuite/demangle/regression/7986-03.cc: New.
5730 * testsuite/demangle/regression/7986-04.cc: New.
5731 * testsuite/demangle/regression/7986-05.cc: New.
5732 * testsuite/demangle/regression/7986-06.cc: New.
5733 * testsuite/demangle/regression/7986-07.cc: New.
5734 * testsuite/demangle/regression/7986-08.cc: New.
5735 * testsuite/demangle/regression/7986-09.cc: New.
5736 * testsuite/demangle/regression/7986-10.cc: New.
5737 * testsuite/demangle/regression/7986-11.cc: New.
5738 * testsuite/demangle/regression/7986-12.cc: New.
5739 * testsuite/demangle/regression/7986.cc: New.
5740 * testsuite/demangle/regression/8897.cc: New.
5741 * testsuite/demangle/regression/cw-01.cc: New.
5742 * testsuite/demangle/regression/cw-02.cc: New.
5743 * testsuite/demangle/regression/cw-03.cc: New.
5744 * testsuite/demangle/regression/cw-04.cc: New.
5745 * testsuite/demangle/regression/cw-05.cc: New.
5746 * testsuite/demangle/regression/cw-06.cc: New.
5747 * testsuite/demangle/regression/cw-07.cc: New.
5748 * testsuite/demangle/regression/cw-08.cc: New.
5749 * testsuite/demangle/regression/cw-09.cc: New.
5750 * testsuite/demangle/regression/cw-10.cc: New.
5751 * testsuite/demangle/regression/cw-11.cc: New.
5752 * testsuite/demangle/regression/cw-12.cc: New.
5753 * testsuite/demangle/regression/cw-13.cc: New.
5754 * testsuite/demangle/regression/cw-14.cc: New.
5755 * testsuite/demangle/regression/old.cc: New.
5757 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
5759 * docs/doxygen/Intro.3: Update with new (proper) names.
5760 * docs/doxygen/TODO: Update.
5761 * docs/doxygen/run_doxygen: More comments, fix up man pages.
5762 Fake entries for standard typedefs.
5763 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
5764 * docs/html/documentation.html: Top-level man page is now called
5766 * include/std/std_limits.h: Doxygenate.
5768 2003-02-25 Scott Snyder <snyder@fnal.gov>
5771 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
5772 Correct documentation.
5773 * include/bits/stl_multimap.h (lower_bound, upper_bound,
5774 equal_range): Likewise.
5776 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
5780 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
5781 __bump is true (uflow), always increment the read pointer
5782 (_M_in_cur) before returning successfully.
5783 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
5785 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
5786 Nathan Myers <ncm@cantrip.org>
5788 PR libstdc++/9404, PR libstdc++/9701 (partial)
5789 (aka pptr == epptr implies overflow)
5790 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
5791 Consistently, _M_out_end points to the end of the buffer just
5793 (overflow): Tweak to use _M_out_buf_size().
5794 (_M_convert_to_external): The role of the old _M_out_end is
5795 now played by _M_out_lim.
5796 (_M_really_overflow): Likewise.
5797 (seekoff): Likewise.
5798 (setbuf): _M_out_end points to the end of the external buffer.
5799 * include/bits/sstream.tcc (overflow): Rewrote, taking into
5800 account the resolution of DR 169 (TC).
5801 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
5802 (seekpos): Use _M_string.capacity(); tweak.
5803 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
5804 * include/std/std_fstream.h (sync): The role of the old
5805 _M_out_end is now played by _M_out_lim.
5806 (_M_set_indeterminate): Use _M_set_determinate.
5807 (_M_set_determinate): _M_out_end is now _M_out_lim.
5808 (_M_is_indeterminate): Likewise.
5809 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
5810 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
5811 which have the information readily available as _M_string.capacity();
5812 for ate and app modes, pass the string size to _M_really_sync.
5813 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
5814 point to the end of the buffer (i.e., epptr) and to the string end,
5816 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
5817 which points to the right limit of the used put area.
5818 (_M_out_cur_move): The role of the old _M_out_end is now played
5820 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
5821 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
5823 (basic_streambuf()): Initialize _M_out_lim too.
5824 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
5825 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
5826 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
5828 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
5830 * testsuite/27_io/ios_base_storage.cc (main): Call
5833 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
5835 * include/bits/locale_facets.tcc (_M_convert_float): Replace
5836 numpunct facet accesses with data from __locale_cache.
5838 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
5840 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
5841 * docs/html/faq/index.txt: Regenerate.
5843 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
5845 * config/linker-map.gnu: Also export locking symbols needed for the
5846 generic atomicity.h case.
5848 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
5850 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
5852 * configure: Rebuilt.
5854 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
5856 * include/bits/sstream.tcc (overflow): According to
5857 27.7.1.3, p5, actual output is performed by sputc(c).
5859 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
5862 * include/bits/stl_alloc.h: Remove all traces of assert().
5864 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
5866 * include/std/std_sstream.h (str()): the size of the
5867 current string may be different from the initial one
5868 whenever _M_out_end > _M_out_beg.
5869 * testsuite/27_io/stringbuf_members.cc (test07): Add.
5871 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
5874 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
5876 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
5878 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
5879 * testsuite/27_io/ios_members.cc (test03): New.
5881 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
5883 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
5884 (basic_ios::_M_cache_facets): Move into above.
5885 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
5887 (basic_ios::imbue): Force locale cache to be built.
5888 (basic_ios::_M_init): Create and initialize locale cache.
5889 * include/bits/ios_base.h (__locale_cache_base): Declare.
5890 (ios_base::_M_locale_cache): New.
5891 (ios_base::_M_cache): Define.
5892 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
5894 (__locale_cache_base,__locale_cache<_CharT>): New classes.
5895 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
5896 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
5897 cache literal string, grouping flag, thousands separator.
5898 (__locale_cache<_CharT>::__locale_cache): New.
5899 (__locale_cache<_CharT>::_M_init): New.
5900 * src/ios.cc: Clear _M_locale_cache in constructor.
5901 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
5904 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
5906 * src/locale-inst.cc: Do not include <cassert>.
5907 * src/locale.cc: Likewise.
5909 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
5912 * include/std/std_fstream.h: Declare underflow and uflow
5913 specializations, change generic definitions to do nothing.
5914 * src/fstream.cc: Add underflow and uflow specializations.
5916 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
5919 * include/bits/fstream.tcc (_M_convert_to_external):
5920 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
5921 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
5923 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
5925 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
5926 * include/bits/basic_ios.tcc: Guard use of extern template.
5927 * include/std/std_iomanip.h: Same.
5928 * include/bits/streambuf.tcc: Same.
5929 * include/bits/stl_alloc.h: Same.
5930 * include/bits/locale_facets.tcc: Same.
5931 * include/bits/ostream.tcc: Same.
5932 * include/bits/istream.tcc: Same.
5933 * include/bits/fstream.tcc: Same.
5934 * include/bits/basic_string.tcc: Same.
5936 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
5938 * include/bits/ostream.tcc (sentry::sentry): Improve
5939 performance-wise the fix for libstdc++/9563.
5941 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
5943 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
5944 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
5945 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
5946 when we don't have static mutex initialization.
5947 (__exchange_and_add): Use _Atomic_add_mutex_once.
5948 * src/misc-inst.cc: Definitions of all the above.
5950 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
5953 * include/bits/ostream.tcc (sentry::sentry): Check
5954 the state of the stream after the preparation.
5955 * testsuite/27_io/ostream_sentry.cc (test02): Add.
5957 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
5959 * include/Makefile.am (stamp-std-precompile): Add rule.
5960 * include/Makefile.in: Regenerated.
5962 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
5963 Benjamin Kosnik <benjamin@redhat.com>
5965 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
5966 Add indexes into this array.
5967 (__num_base::_S_atoms): To _S_atoms_in.
5968 (num_put::_M_insert): Rename to _M_pad.
5969 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
5970 (num_put::_M_widen_int): Rename to _M_group_int.
5971 (num_put::_M_widen_float): Rename to _M_group_float.
5972 * include/bits/locale_facets.tcc (__int_to_char): New inline
5973 function and adapter functions.
5974 (num_put::_M_group_int): Streamline.
5975 (num_put::_M_group_float): Streamline.
5976 (num_put::_M_convert_int): Remove unused parameter names. Choose
5977 large enough buffer for text. Use __int_to_char instead of
5978 __convert_from_v. Formatted text is now at the end of the buffer.
5979 (num_put::_M_convert_float): Preliminary fixups.
5980 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
5981 (__int_to_char<unsigned long long>): Same.
5982 (__int_to_char<char, unsigned long>): New.
5983 (__int_to_char<char, unsigned long long>): New.
5984 (__int_to_char<wchar_t, unsigned long>): New.
5985 (__int_to_char<wchar_t, unsigned long long>): New.
5987 2003-02-11 Scott Snyder <snyder@fnal.gov>
5990 * include/bits/fstream.tcc (seekoff): Avoid operator+
5993 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
5996 * include/ext/stdio_filebuf.h
5997 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
5998 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
5999 Change to take a __size parameter of type size_t, not
6000 of type (template parameter dependent) int_type.
6001 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
6002 size vars to size_t.
6003 * testsuite/ext/stdio_filebuf.cc: Add.
6005 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
6006 Petur Runolfsson <peturr02@ru.is>
6009 * include/bits/streambuf.tcc (__copy_streambufs):
6010 Don't conditionalize the copy to __testput.
6011 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
6013 2002-02-11 DJ Delorie <dj@redhat.com>
6015 * acinclude.m4: Check for native targets that can't link at
6016 this point in the build.
6017 * aclocal.m4: Regenerate.
6018 * configure: Regenerate.
6020 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6022 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
6024 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
6027 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
6029 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
6030 unsigned char platforms.
6032 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
6035 * include/std/std_istream.h
6036 (basic_istream::sentry::operator bool()): Make const.
6037 * include/std/std_ostream.h
6038 (basic_ostream::sentry::operator bool()): Likewise.
6039 * testsuite/27_io/istream_sentry.cc (test03): Add.
6040 * testsuite/27_io/ostream_sentry.cc: Add.
6042 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
6045 Implement resolution of DR 231 (Ready)
6046 * include/bits/locale_facets.h (__num_base::_S_format_float):
6047 Change declaration: return void, remove __prec parameter.
6048 * src/locale.cc (__num_base::_S_format_float): Implement
6049 resolution of DR 231.
6050 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
6051 Tweak uses. Check for negative precision.
6052 * testsuite/22_locale/num_put/put/char/6.cc: Add
6053 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
6055 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
6057 * config/io/basic_file_libio.h: Fixups.
6058 * config/io/c_io_libio.h: Same.
6059 * libio/Makefile.am: Same.
6060 * libio/Makefile.in: Regenerated.
6062 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
6064 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
6065 Explicitly use the "C" locale.
6066 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
6068 2003-02-06 Petur Runolfsson <peturr02@ru.is>
6072 PR libstdc++/9028 (partial)
6078 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
6079 codecvt<wchar_t, char, mbstate_t>::do_length,
6080 codecvt<wchar_t, char, mbstate_t>::do_max_length):
6082 * config/locale/generic/codecvt_members.cc: ...here.
6083 * config/locale/gnu/codecvt_members.cc: ...and here.
6085 * config/locale/generic/codecvt_members.cc,
6086 * config/locale/gnu/codecvt_members.cc
6087 (codecvt<wchar_t, char, mbstate_t>::do_encoding
6088 codecvt<wchar_t, char, mbstate_t>::do_in,
6089 codecvt<wchar_t, char, mbstate_t>::do_length,
6090 codecvt<wchar_t, char, mbstate_t>::do_max_length,
6091 codecvt<wchar_t, char, mbstate_t>::do_out):
6092 New implementation that handles stateless encodings,
6095 * config/locale/generic/codecvt_members.cc,
6096 * config/locale/gnu/codecvt_members.cc,
6097 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
6098 * include/bits/codecvt.h,
6100 (codecvt::length, codecvt::do_length):
6101 Change type of first argument of length and do_length from
6102 'const state_type&' to 'state_type&' according to DR 75.
6104 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
6105 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
6106 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
6107 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
6108 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
6109 Cleanup and check for correct return value from encoding
6111 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
6112 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
6113 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
6114 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
6115 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
6116 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
6117 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
6118 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
6119 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
6120 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
6121 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
6122 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
6123 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
6124 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
6125 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
6126 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
6127 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
6128 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
6129 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
6130 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
6131 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
6132 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
6133 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
6134 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
6135 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
6136 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
6137 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
6138 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
6139 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
6140 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
6141 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
6142 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
6143 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
6144 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
6145 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
6146 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
6147 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
6149 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
6151 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
6152 (money_put::do_put): Same.
6154 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
6156 * include/bits/ios_base.h (ios_base): Document reserved storage.
6158 * include/bits/locale_facets.h: (struct __pad): Comment on
6160 (__verify_grouping): Same.
6161 (__add_grouping): Same.
6162 * include/bits/locale_facets.tcc (__verify_grouping): Move
6163 comments to declaration.
6164 (__add_grouping): Same.
6166 * include/bits/locale_facets.tcc:
6167 (__write<_CharT, _OutIter>): New function.
6168 (__write<_CharT>): New function specialization.
6169 (num_put::_M_insert): Remove explicit loop over iterator. Use
6171 (num_put::_M_widen_float): Remove __basefield.
6172 (num_put::_M_widen_int): Move __basefield to within grouping block.
6174 * include/bits/streambuf_iterator.h: Include <streambuf>.
6175 (ostreambuf_iterator::_M_put): Add.
6177 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
6179 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
6181 2003-02-04 Nathan Myers <ncm@cantrip.org>
6183 * testsuite/25_algorithms/min_max.cc (test02): Add.
6185 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6187 PR libstdc++/9439, PR libstdc++/9425
6188 * config/io/basic_file_stdio.cc
6189 (__basic_file<char>::seekoff, seekpos): Return -1L if
6191 * include/bits/fstream.tcc (basic_filebuf::seekoff):
6192 Check _M_file.seekoff return value; always return
6193 pos_type(off_type(-1)) in case of failure.
6194 (basic_filebuf::pbackfail): Check this->seekoff return
6195 value and return traits_type::eof() in case of failure.
6196 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
6198 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
6200 * include/std/std_ostream.h (ostream::_M_write): Declare.
6201 * ostream.tcc (ostream::_M_write): Define.
6202 (basic_ostream::write): Use it.
6203 (operator<<(basic_ostream, _CharT)): Ditto.
6204 (operator<<(basic_ostream, char)): Ditto.
6205 (operator<<(basic_ostream, _CharT*)): Ditto.
6206 (operator<<(basic_ostream, char*)): Ditto.
6207 (operator<<(basic_ostream, basic_string)): Ditto.
6209 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
6211 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
6213 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
6215 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
6216 add HTML comment about updating links if numbering changes.
6218 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6221 * include/bits/streambuf.tcc (sputbackc): Access
6222 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
6223 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6225 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6228 * include/bits/fstream.tcc (open): If the 'ate' repositioning
6229 operation fails, calls close _and_ returns a null pointer
6230 to indicate failure (27.8.1.3,4).
6231 * testsuite/27_io/filebuf_members.cc (test_06): Add.
6233 2003-02-04 Petur Runolfsson <peturr02@ru.is>
6235 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
6237 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
6239 * docs/html/27_io/howto.html: New section on stdio_filebuf.
6240 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
6241 * docs/html/documentation.html: Regenerate.
6243 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
6245 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
6246 * docs/html/17_intro/porting.html: Regenerate.
6248 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6249 Phil Edwards <pme@gcc.gnu.org>
6251 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
6252 numeric_limits for bits-per-word values.
6253 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
6254 Use __builtin_popcountl instead.
6255 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
6256 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
6257 Use __builtin_ctzl instead.
6258 (_S_bit_count, _S_first_one): Remove.
6259 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
6260 * src/Makefile.am (sources): Remove bitset.cc.
6261 * src/bitset.cc: Delete file.
6262 * src/Makefile.in: Regenerate.
6264 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
6266 PR libstdc++/9527, PR libstdc++/8713
6267 * docs/html/install.html: Mention glibc version requirement.
6268 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
6269 with 3.2.1+ (formatting bugfixes).
6270 * docs/html/faq/index.txt: Regenerate.
6272 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
6275 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
6278 * include/bits/valarray_before.h (__not_equal_to): Use != instead
6281 * testsuite/26_numerics/valarray_operators.cc: New test.
6283 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
6285 * docs/html/faq/index.html: Correct link to libg++ information.
6286 * docs/html/faq/index.txt: Regenerated.
6288 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
6289 Benjamin Kosnik <bkoz@redhat.com>
6291 Const correctness issue:
6292 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
6293 * include/bits/locale_classes.h
6294 (locale::_Impl::_M_facets): Change type to const facet**.
6295 (locale::_Impl::_M_install_facet): Change declaration to
6297 (locale::facet::_M_references): Make mutable.
6298 (locale::facet::_M_add_reference): Declare const.
6299 (locale::facet::_M_remove_reference): Likewise.
6300 * include/bits/locale_facets.tcc
6301 (use_facet(const locale&)): Tweak for const facet** _M_facets.
6302 (has_facet(const locale&)): Likewise.
6304 (locale::facet::_M_add_reference): Adjust definition.
6305 (locale::facet::_M_remove_reference): Likewise.
6307 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
6308 const facet** _M_facets.
6309 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
6310 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
6311 (locale::_Impl::_M_install_facet): Adjust definition to take
6312 const facet* and for const facet** _M_facets.
6313 * testsuite/22_locale/locale/cons/8.cc: Add.
6315 2003-01-29 Mark Mitchell <mark@codesourcery.com>
6317 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
6318 Use __FLT_HAS_INIFINITY__ to initialize.
6319 (numeric_limits<float>::has_quiet_NaN): Likewise.
6320 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
6322 (numeric_limits<double>::has_quiet_NaN): Likewise.
6323 (numeric_limits<long double>::has_infinity): Use
6324 __LDBL_HAS_INIFINITY__ to initialize.
6325 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
6327 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
6330 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
6331 with bases which are very ambiguous.
6333 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
6335 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
6336 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
6337 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
6338 * src/Makefile.in: Regenerate.
6339 * libsupc++/Makefile.in: Regenerate.
6341 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
6343 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
6344 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
6345 version_specific_libs is enabled.
6346 * aclocal.m4, configure: Rebuilt.
6348 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
6350 * include/bits/valarray_meta.h: Remove, split into ...
6351 * include/bits/valarray_before.h: ... this, and ...
6352 * include/bits/valarray_after.h: ... this.
6353 * include/std/std_valarray.h: Adjust.
6354 * include/Makefile.am (bits_headers): Adjust.
6355 * include/Makefile.in: Regenerate.
6357 2003-01-24 Andreas Schwab <schwab@suse.de>
6359 * config/linker-map.gnu: Fix for size_t variance.
6361 2003-01-23 Petur Runolfsson <peturr02@ru.is>
6364 * include/std/std_streambuf.h
6365 (basic_streambuf::basic_streambuf,
6366 basic_streambuf::~basic_streambuf,
6367 basic_streambuf::getloc, basic_streambuf::imbue):
6368 Remove _M_buf_locale_init
6369 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
6370 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6371 * testsuite/27_io/streambuf_members.cc (test08): Add.
6372 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
6374 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
6376 Revert include ordering.
6377 * config/locale/generic/c_locale.h: Add include guards.
6378 * config/locale/gnu/c_locale.h: Same.
6379 * include/bits/locale_classes.h: Remove cctype include.
6380 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
6381 * include/std/std_fstream.h: Remove streambuf include.
6382 * include/std/std_sstream.h: Remove streambuf include.
6384 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
6386 * configure.in (libtool_VERSION): To 6:0:0.
6387 * configure: Regenerated.
6388 * config/linker-map.gnu: Clean.
6390 * src/misc-inst.cc: Remove instantiations.
6392 * include/bits/stl_alloc.h (__malloc_alloc_template):
6394 (__default_alloc_template): To __pool_alloc.
6395 * src/stl-inst.cc: Same.
6396 * include/backward/alloc.h: Update.
6397 * testsuite/ext/allocators.cc: Update.
6399 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
6400 really try to remove these if possible.
6401 * src/locale.cc (std): Same.
6403 * testsuite/abi_check.cc (check_version): Add.
6405 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
6406 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
6407 Mark Mitchell <mark@codesourcery.com>
6410 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
6411 (basic_filebuf::underflow): Declare.
6414 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
6416 * include/bits/locale_facets.h: Move non-facet classes requiring
6418 * include/bits/locale_classes.h: New.
6419 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
6420 * include/bits/Makefile.in: Regenerate.
6422 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
6423 * config/locale/gnu/c_locale.h: ...here.
6424 * config/locale/generic/c_locale.h: Same.
6426 * include/bits/locale_facets.tcc: Move declarations to...
6427 * include/bits/locale_facets.h: ...here.
6428 * include/bits/basic_ios.h: Tweak includes accordingly.
6429 * include/std/std_sstream.h: Add streambuf include.
6430 * include/std/std_fstream.h: Ditto.
6431 * include/std/std_locale.h: Add locale_classes.h include.
6432 * include/std/std_iosfwd.h: Tweak.
6433 * src/concept-inst.cc: Add iterator include.
6435 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
6436 bits as unexported in the future.
6438 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
6440 Reshuffle 22_locale testsuite.
6441 * 22_locale/(codecvt.cc money_get.cc
6442 codecvt_members_char_char.cc money_get_members_char.cc
6443 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
6444 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
6445 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
6446 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
6447 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
6448 money_put_members_char.cc ctor_copy_dtor.cc
6449 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
6450 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
6451 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
6452 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
6453 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
6454 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
6455 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
6456 operators.cc ctype_widen_char.cc static_members.cc
6457 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
6458 global_templates.cc time_get_members_wchar_t.cc, members.cc,
6459 time_put.cc, messages_byname.cc, time_put_members_char.cc,
6460 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
6461 Split up into individual test cases...
6462 * 22_locale/codecvt/1.cc: New.
6463 * 22_locale/codecvt/2.cc: New.
6464 * 22_locale/codecvt/always_noconv/char/1.cc: New.
6465 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
6466 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
6467 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
6468 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
6469 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
6470 * 22_locale/codecvt/encoding/char/1.cc: New.
6471 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
6472 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
6473 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
6474 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
6475 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
6476 * 22_locale/codecvt/in/char/1.cc: New.
6477 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
6478 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
6479 * 22_locale/codecvt/in/wchar_t/1.cc: New.
6480 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
6481 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
6482 * 22_locale/codecvt/length/char/1.cc: New.
6483 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
6484 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
6485 * 22_locale/codecvt/length/wchar_t/1.cc: New.
6486 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
6487 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
6488 * 22_locale/codecvt/max_length/char/1.cc: New.
6489 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
6490 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
6491 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
6492 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
6493 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
6494 * 22_locale/codecvt/out/char/1.cc: New.
6495 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
6496 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
6497 * 22_locale/codecvt/out/wchar_t/1.cc: New.
6498 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
6499 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
6500 * 22_locale/codecvt/unicode/char.cc: New.
6501 * 22_locale/codecvt/unicode/wchar_t.cc: New.
6502 * 22_locale/codecvt/unshift/char/1.cc: New.
6503 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
6504 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
6505 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
6506 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
6507 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
6508 * 22_locale/collate/1.cc: New.
6509 * 22_locale/collate/2.cc: New.
6510 * 22_locale/collate/compare/char/1.cc: New.
6511 * 22_locale/collate/compare/char/2.cc: New.
6512 * 22_locale/collate/compare/char/wrapped_env.cc: New.
6513 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
6514 * 22_locale/collate/compare/wchar_t/1.cc: New.
6515 * 22_locale/collate/compare/wchar_t/2.cc: New.
6516 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
6517 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
6518 * 22_locale/collate/hash/char/1.cc: New.
6519 * 22_locale/collate/hash/char/2.cc: New.
6520 * 22_locale/collate/hash/char/wrapped_env.cc: New.
6521 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
6522 * 22_locale/collate/hash/wchar_t/1.cc: New.
6523 * 22_locale/collate/hash/wchar_t/2.cc: New.
6524 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
6525 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
6526 * 22_locale/collate/transform/char/2.cc: New.
6527 * 22_locale/collate/transform/char/wrapped_env.cc: New.
6528 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
6529 * 22_locale/collate/transform/wchar_t/2.cc: New.
6530 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
6531 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
6532 * 22_locale/collate_byname/1.cc: New.
6533 * 22_locale/ctype/1.cc: New.
6534 * 22_locale/ctype/2.cc: New.
6535 * 22_locale/ctype/cons/char/1.cc: New.
6536 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
6537 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
6538 * 22_locale/ctype/is/char/1.cc: New.
6539 * 22_locale/ctype/is/char/2.cc: New.
6540 * 22_locale/ctype/is/char/3.cc: New.
6541 * 22_locale/ctype/is/char/wrapped_env.cc: New.
6542 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
6543 * 22_locale/ctype/is/wchar_t/1.cc: New.
6544 * 22_locale/ctype/is/wchar_t/2.cc: New.
6545 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
6546 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
6547 * 22_locale/ctype/narrow/char/1.cc: New.
6548 * 22_locale/ctype/narrow/char/2.cc: New.
6549 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
6550 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
6551 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
6552 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
6553 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
6554 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
6555 * 22_locale/ctype/scan/char/1.cc: New.
6556 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
6557 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
6558 * 22_locale/ctype/scan/wchar_t/1.cc: New.
6559 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
6560 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
6561 * 22_locale/ctype/to/char/1.cc: New.
6562 * 22_locale/ctype/to/char/wrapped_env.cc: New.
6563 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
6564 * 22_locale/ctype/to/wchar_t/1.cc: New.
6565 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
6566 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
6567 * 22_locale/ctype/widen/char/1.cc: New.
6568 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
6569 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
6570 * 22_locale/ctype/widen/wchar_t/1.cc: New.
6571 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
6572 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
6573 * 22_locale/facet/1.cc: New.
6574 * 22_locale/facet/2.cc: New.
6575 * 22_locale/global_templates/1.cc: New.
6576 * 22_locale/locale/cons/1.cc: New.
6577 * 22_locale/locale/cons/2.cc: New.
6578 * 22_locale/locale/cons/3.cc: New.
6579 * 22_locale/locale/cons/4.cc: New.
6580 * 22_locale/locale/cons/5.cc: New.
6581 * 22_locale/locale/cons/6.cc: New.
6582 * 22_locale/locale/cons/7.cc: New.
6583 * 22_locale/locale/global_locale_objects/1.cc: New.
6584 * 22_locale/locale/global_locale_objects/2.cc: New.
6585 * 22_locale/locale/global_locale_objects/3.cc: New.
6586 * 22_locale/locale/operations/1.cc: New.
6587 * 22_locale/locale/operations/2.cc: New.
6588 * 22_locale/messages/1.cc: New.
6589 * 22_locale/messages/2.cc: New.
6590 * 22_locale/messages/members/char/1.cc: New.
6591 * 22_locale/messages/members/char/2.cc: New.
6592 * 22_locale/messages/members/char/3.cc: New.
6593 * 22_locale/messages/members/char/wrapped_env.cc: New.
6594 * 22_locale/messages/members/char/wrapped_locale.cc: New.
6595 * 22_locale/messages_byname/1.cc: New.
6596 * 22_locale/money_get/1.cc: New.
6597 * 22_locale/money_get/2.cc: New.
6598 * 22_locale/money_get/get/char/1.cc: New.
6599 * 22_locale/money_get/get/char/2.cc: New.
6600 * 22_locale/money_get/get/char/3.cc: New.
6601 * 22_locale/money_get/get/char/4.cc: New.
6602 * 22_locale/money_get/get/char/5.cc: New.
6603 * 22_locale/money_get/get/char/6.cc: New.
6604 * 22_locale/money_get/get/char/7.cc: New.
6605 * 22_locale/money_get/get/char/8.cc: New.
6606 * 22_locale/money_get/get/char/wrapped_env.cc: New.
6607 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
6608 * 22_locale/money_get/get/wchar_t/1.cc: New.
6609 * 22_locale/money_get/get/wchar_t/2.cc: New.
6610 * 22_locale/money_get/get/wchar_t/3.cc: New.
6611 * 22_locale/money_get/get/wchar_t/4.cc: New.
6612 * 22_locale/money_get/get/wchar_t/5.cc: New.
6613 * 22_locale/money_get/get/wchar_t/6.cc: New.
6614 * 22_locale/money_get/get/wchar_t/7.cc: New.
6615 * 22_locale/money_get/get/wchar_t/8.cc: New.
6616 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
6617 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
6618 * 22_locale/money_put/1.cc: New.
6619 * 22_locale/money_put/2.cc: New.
6620 * 22_locale/money_put/put/char/1.cc: New.
6621 * 22_locale/money_put/put/char/2.cc: New.
6622 * 22_locale/money_put/put/char/3.cc: New.
6623 * 22_locale/money_put/put/char/4.cc: New.
6624 * 22_locale/money_put/put/char/5.cc: New.
6625 * 22_locale/money_put/put/char/6.cc: New.
6626 * 22_locale/money_put/put/char/wrapped_env.cc: New.
6627 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
6628 * 22_locale/money_put/put/wchar_t/1.cc: New.
6629 * 22_locale/money_put/put/wchar_t/2.cc: New.
6630 * 22_locale/money_put/put/wchar_t/3.cc: New.
6631 * 22_locale/money_put/put/wchar_t/4.cc: New.
6632 * 22_locale/money_put/put/wchar_t/5.cc: New.
6633 * 22_locale/money_put/put/wchar_t/6.cc: New.
6634 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
6635 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
6636 * 22_locale/moneypunct/1.cc: New.
6637 * 22_locale/moneypunct/2.cc: New.
6638 * 22_locale/moneypunct/3.cc: New.
6639 * 22_locale/moneypunct/members/char/1.cc: New.
6640 * 22_locale/moneypunct/members/char/2.cc: New.
6641 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
6642 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
6643 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
6644 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
6645 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
6646 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
6647 * 22_locale/moneypunct_byname/1.cc: New.
6648 * 22_locale/num_get/1.cc: New.
6649 * 22_locale/num_get/2.cc: New.
6650 * 22_locale/num_get/get/char/1.cc: New.
6651 * 22_locale/num_get/get/char/2.cc: New.
6652 * 22_locale/num_get/get/char/3.cc: New.
6653 * 22_locale/num_get/get/char/4.cc: New.
6654 * 22_locale/num_get/get/char/5.cc: New.
6655 * 22_locale/num_get/get/char/6.cc: New.
6656 * 22_locale/num_get/get/char/wrapped_env.cc: New.
6657 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
6658 * 22_locale/num_get/get/wchar_t/1.cc: New.
6659 * 22_locale/num_get/get/wchar_t/2.cc: New.
6660 * 22_locale/num_get/get/wchar_t/3.cc: New.
6661 * 22_locale/num_get/get/wchar_t/4.cc: New.
6662 * 22_locale/num_get/get/wchar_t/5.cc: New.
6663 * 22_locale/num_get/get/wchar_t/6.cc: New.
6664 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
6665 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
6666 * 22_locale/num_put/1.cc: New.
6667 * 22_locale/num_put/2.cc: New.
6668 * 22_locale/num_put/put/char/1.cc: New.
6669 * 22_locale/num_put/put/char/2.cc: New.
6670 * 22_locale/num_put/put/char/3.cc: New.
6671 * 22_locale/num_put/put/char/4.cc: New.
6672 * 22_locale/num_put/put/char/5.cc: New.
6673 * 22_locale/num_put/put/char/wrapped_env.cc: New.
6674 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
6675 * 22_locale/num_put/put/wchar_t/1.cc: New.
6676 * 22_locale/num_put/put/wchar_t/2.cc: New.
6677 * 22_locale/num_put/put/wchar_t/3.cc: New.
6678 * 22_locale/num_put/put/wchar_t/4.cc: New.
6679 * 22_locale/num_put/put/wchar_t/5.cc: New.
6680 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
6681 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
6682 * 22_locale/numpunct/1.cc: New.
6683 * 22_locale/numpunct/2.cc: New.
6684 * 22_locale/numpunct/members/char/1.cc: New.
6685 * 22_locale/numpunct/members/char/2.cc: New.
6686 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
6687 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
6688 * 22_locale/numpunct/members/wchar_t/1.cc: New.
6689 * 22_locale/numpunct/members/wchar_t/2.cc: New.
6690 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
6691 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
6692 * 22_locale/numpunct_byname/1.cc: New.
6693 * 22_locale/numpunct_byname/2.cc: New.
6694 * 22_locale/time_get/1.cc: New.
6695 * 22_locale/time_get/2.cc: New.
6696 * 22_locale/time_get/date_order/char/1.cc: New.
6697 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
6698 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
6699 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
6700 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
6701 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
6702 * 22_locale/time_get/get_date/char/1.cc: New.
6703 * 22_locale/time_get/get_date/char/2.cc: New.
6704 * 22_locale/time_get/get_date/char/3.cc: New.
6705 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
6706 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
6707 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
6708 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
6709 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
6710 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
6711 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
6712 * 22_locale/time_get/get_monthname/char/1.cc: New.
6713 * 22_locale/time_get/get_monthname/char/2.cc: New.
6714 * 22_locale/time_get/get_monthname/char/3.cc: New.
6715 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
6716 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
6717 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
6718 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
6719 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
6720 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
6721 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
6722 * 22_locale/time_get/get_time/char/1.cc: New.
6723 * 22_locale/time_get/get_time/char/2.cc: New.
6724 * 22_locale/time_get/get_time/char/3.cc: New.
6725 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
6726 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
6727 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
6728 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
6729 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
6730 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
6731 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
6732 * 22_locale/time_get/get_weekday/char/1.cc: New.
6733 * 22_locale/time_get/get_weekday/char/2.cc: New.
6734 * 22_locale/time_get/get_weekday/char/3.cc: New.
6735 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
6736 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
6737 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
6738 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
6739 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
6740 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
6741 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
6742 * 22_locale/time_get/get_year/char/1.cc: New.
6743 * 22_locale/time_get/get_year/char/3.cc: New.
6744 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
6745 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
6746 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
6747 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
6748 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
6749 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
6750 * 22_locale/time_put/1.cc: New.
6751 * 22_locale/time_put/2.cc: New.
6752 * 22_locale/time_put/put/char/1.cc: New.
6753 * 22_locale/time_put/put/char/10.cc: New.
6754 * 22_locale/time_put/put/char/2.cc: New.
6755 * 22_locale/time_put/put/char/3.cc: New.
6756 * 22_locale/time_put/put/char/4.cc: New.
6757 * 22_locale/time_put/put/char/5.cc: New.
6758 * 22_locale/time_put/put/char/6.cc: New.
6759 * 22_locale/time_put/put/char/7.cc: New.
6760 * 22_locale/time_put/put/char/8.cc: New.
6761 * 22_locale/time_put/put/char/9.cc: New.
6762 * 22_locale/time_put/put/char/wrapped_env.cc: New.
6763 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
6764 * 22_locale/time_put/put/wchar_t/1.cc: New.
6765 * 22_locale/time_put/put/wchar_t/10.cc: New.
6766 * 22_locale/time_put/put/wchar_t/2.cc: New.
6767 * 22_locale/time_put/put/wchar_t/3.cc: New.
6768 * 22_locale/time_put/put/wchar_t/4.cc: New.
6769 * 22_locale/time_put/put/wchar_t/5.cc: New.
6770 * 22_locale/time_put/put/wchar_t/6.cc: New.
6771 * 22_locale/time_put/put/wchar_t/7.cc: New.
6772 * 22_locale/time_put/put/wchar_t/8.cc: New.
6773 * 22_locale/time_put/put/wchar_t/9.cc: New.
6774 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
6775 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
6777 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
6779 * config/locale/generic/messages_members.h
6780 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
6781 unqualified members of base clasess.
6783 2003-01-16 Mark Mitchell <mark@codesourcery.com>
6784 Jeffrey Oldham <oldham@codesourcery.com>
6786 * config/locale/gnu/messages_members.h: Use this-> to refer to
6787 unqualified members of base clasess.
6788 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
6789 * include/bits/codecvt.h: Likewise.
6790 * include/bits/deque.tcc: Likewise.
6791 * include/bits/fstream.tcc: Likewise.
6792 * include/bits/istream.tcc: Likewise.
6793 * include/bits/list.tcc: Likewise.
6794 * include/bits/locale_facets.h: Likewise.
6795 * include/bits/ostream.tcc: Likewise.
6796 * include/bits/sstream.tcc: Likewise.
6797 * include/bits/stl_bvector.h: Likewise.
6798 * include/bits/stl_deque.h: Likewise.
6799 * include/bits/stl_list.h: Likewise.
6800 * include/bits/stl_tree.h: Likewise.
6801 * include/bits/stl_vector.h: Likewise.
6802 * include/bits/vector.tcc: Likewise.
6803 * include/ext/ropeimpl.h: Likewise.
6804 * include/ext/stdio_filebuf.h: Likewise.
6805 * include/ext/stl_rope.h: Likewise.
6806 * include/std/std_fstream.h: Likewise.
6807 * include/std/std_sstream.h: Likewise.
6809 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
6811 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
6813 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
6815 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
6816 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
6817 * aclocal.m4: Regenerate.
6818 * configure: Regenerate.
6819 * testsuite/Makefile.am (all-local): Add conditional rule to
6820 generate testsuite_wchar_t.
6821 * testsuite/Makefile.in: Regenerate.
6822 * testsuite/lib/libstdc++-v3-dg.exp
6823 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
6824 testsuite_wchar_t is not present in the build directory.
6825 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
6826 Remove setulimit bits.
6827 * testsuite/26_numerics/complex_value.cc: Set to noopts.
6828 * testsuite/Makefile.am (CLEANFILES): Add.
6829 * testsuite/Makefile.in: Regenerate.
6831 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6833 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
6836 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
6838 Further conform g++'s __vmi_class_type_info to the C++ ABI
6840 * libsupc++/cxxabi.h
6841 (__vmi_class_type_info::__flags_masks): Remove enumerations not
6842 required by the specification.
6844 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
6846 Renames, namespaces for testsuite utilities.
6847 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
6848 (gnu_allocator_tracker): Rename to allocation_tracker.
6849 (gnu_new_allocator): Rename to tracker_alloc.
6850 (__set_testsuite_memlimit): Rename to set_memory_limits.
6851 (gnu_assignment_operator): Rename to assignment_operator.
6852 (gnu_destructor): Rename to destructor.
6853 (gnu_copy_tracker): Rename to copy_tracker.
6854 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
6855 (run_tests_wrapped_locale): New.
6856 (run_tests_wrapped_env): New.
6857 * testsuite/testsuite_hooks.cc: Same.
6858 (class locale_data): Add.
6859 (class enviornment_variable): Add.
6860 (class not_found): Add.
6861 * testsuite/testsuite_allocator.h: Same.
6862 * testsuite/testsuite_allocator.cc: Same.
6863 * testsuite/23_containers/deque_ctor.cc
6864 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
6866 Change gnu_new_allocator to tracker_alloc.
6867 Change gnu_counting_struct to counter.
6868 Change gnu_copy_tracker to copy_tracker.
6869 Change gnu_copy_constructor to copy_constructor.
6870 Change gnu_assignment_operator to assignment_operator.
6872 * testsuite/23_containers/vector_capacity.cc: Same.
6873 * testsuite/23_containers/vector_ctor.cc (test01): Same.
6874 * testsuite/23_containers/list_modifiers.cc: Change
6875 gnu_copy_tracker to copy_tracker.
6876 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
6877 __set_testsuite_memlimit to set_memory_limits.
6878 * testsuite/21_strings/insert.cc (main): Same.
6879 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
6880 * testsuite/27_io/stringstream.cc: Same.
6881 * testsuite/27_io/stringbuf.cc: Same.
6882 * testsuite/27_io/streambuf.cc: Same.
6883 * testsuite/27_io/ostream.cc: Same.
6884 * testsuite/27_io/istream.cc: Same.
6885 * testsuite/27_io/fstream.cc: Same.
6886 * testsuite/lib/libstdc++-v3-dg.exp
6887 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
6888 three levels deeper in glob patterns.
6890 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
6892 * docs/doxygen/tables.html: Finished now.
6893 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
6894 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
6897 * include/bits/deque.tcc, include/bits/stl_alloc.h,
6898 include/bits/stl_deque.h, include/bits/stl_list.h,
6899 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
6902 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
6904 * configure.in: Revert.
6905 * configure: Regenerate.
6907 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6909 * include/Makefile.am (install-data-local): Prepend
6910 $(DESTDIR) to destination paths in all (un)installation
6911 commands. Use ${c_base_builddir} and ${std_builddir}
6912 as destination subdirectories to achieve consistency with
6913 preceding mkinstalldirs commands. No effect because both
6914 variables contain "." only.
6915 * include/Makefile.in: Regenerate.
6917 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
6919 * include/Makefile.am (stamp-*): Add checks for existing stamps.
6920 * include/Makefile.in: Regenerate.
6922 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
6923 * aclocal.m4: Regenerate.
6925 * configure.in: Don't add new multi-do rules every time the
6926 directory is reconfigured.
6927 * configure: Regenerate.
6929 2003-01-08 Brad Spencer <spencer@infointeractive.com>
6930 Nathan Myers <ncm@cantrip.org>
6932 * src/Makefile.am (stamp-debug): Clean.
6933 * src/Makefile.in: Regenerate.
6935 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
6938 * Makefile.am (distclean-multi): Fix.
6939 * Makefile.in: Regenerate.
6941 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
6943 * include/bits/locale_facets.h (messages): Move ctor, dtor
6945 (__timepunct): Same.
6946 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
6947 definitions. Conditionalize for GNU systems.
6948 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
6950 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
6951 definitions. Conditionalize for GNU systems.
6952 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
6954 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
6955 * src/locale.cc: Define.
6956 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
6958 * config/locale/gnu/time_members.h: Use it.
6959 * config/locale/gnu/messages_members.h: Use it.
6960 * config/linker-map.gnu: Add locale::facets details.
6961 * include/Makefile.am (target_headers_extra): Add time_members.h.
6962 * include/Makefile.in: Regenerate.
6963 * acinclude.m4: Export CTIME_H.
6964 * aclocal.m4: Regenerate.
6965 * configure: Regnerate.
6967 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
6970 (codecvt<char, char, mbstate_t>::do_in, do_out):
6971 Tweak parameters to avoid unused parameter warnings.
6973 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
6976 * include/bits/locale_facets.cc (num_put::_M_convert_float):
6977 Limit __prec to digits10 + 2, not digits10 + 1, taking into
6978 account the possibility of %{g,G} conversion specifiers
6979 inside _S_format_float.
6980 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
6982 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6984 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
6985 libstdc++-v3-list-sourcefiles): Additionally handle files one
6986 level deeper in glob patterns.
6988 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
6989 * testsuite/27_io/istream_extractor_arith/01.cc,
6990 testsuite/27_io/istream_extractor_arith/02.cc,
6991 testsuite/27_io/istream_extractor_arith/03.cc,
6992 testsuite/27_io/istream_extractor_arith/06.cc,
6993 testsuite/27_io/istream_extractor_arith/07.cc,
6994 testsuite/27_io/istream_extractor_arith/08.cc,
6995 testsuite/27_io/istream_extractor_arith/09.cc,
6996 testsuite/27_io/istream_extractor_arith/10.cc,
6997 testsuite/27_io/istream_extractor_arith/11.cc,
6998 testsuite/27_io/istream_extractor_arith/12.cc,
6999 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
7000 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
7003 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
7007 (codecvt<char, char, mbstate_t>::do_in, do_out):
7008 Implement the resolution of DR19 (TC).
7009 * testsuite/22_locale/codecvt_members_char_char.cc
7012 2003-01-02 Jason Merrill <jason@redhat.com>
7014 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
7015 *__mem is also an output.
7016 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.