1 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
3 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
4 Improve performance-wise: avoid one traits::copy, avoid
5 the __builtin_alloca, streamline.
7 2003-10-05 Paolo Carlini <pcarlini@unitus.it>
9 * include/bits/locale_facets.tcc
10 (num_put::do_put(..., bool)): Prefer ?: to if-else.
11 (time_get::_M_extract_name): Qualify min with std::.
12 (__pad<>::_S_pad): Constify two variables; simplify an
13 if-else statement factoring out some code.
15 * include/bits/locale_facets.tcc: Minor cosmetic changes.
17 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
19 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
20 Constify a couple of variables.
21 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
24 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
25 Petur Runolfsson <peturr02@ru.is>
27 * include/ext/stdio_sync_filebuf.h: Don't include the whole
28 <fstream>, only <streambuf> and <cstdio>.
30 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
33 * include/bits/fstream.tcc (imbue): In case a codecvt facet
34 is not available, set _M_codecvt = 0.
35 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
37 2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
40 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
42 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
44 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
45 * src/locale.cc: Define.
46 * src/localename.cc: Use it.
47 * config/locale/generic/time_members.h: Same.
48 * config/locale/gnu/messages_members.h: Same.
49 * config/locale/gnu/time_members.h: Same.
51 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
54 * include/bits/fstream.tcc (seekoff): Ignore the openmode
56 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
57 seekpos): Remove the openmode argument.
58 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
59 seekpos): Remove redundant placeholder for the openmode argument.
60 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
61 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
62 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
63 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
64 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
66 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
68 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
69 (locale::facet::_S_get_c_locale): Same.
71 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
73 * config/linker-map.gnu: Export _S_get_c_locale instead of
76 2003-10-02 Petur Runolfsson <peturr02@ru.is>
78 * config/locale/generic/c_locale.cc
79 (category_names, locale::_S_categories): Const qualify.
80 * config/locale/gnu/c_locale.cc: Same.
81 * config/locale/generic/time_members.h (__timepunct::__timepunct):
82 Copy string contents before assigning to _M_name_timepunct,
83 qualify strcpy and strlen with std::.
84 * config/locale/gnu/time_members.h: Same.
85 * config/locale/gnu/messages_members.h (messages::messages):
86 Copy string contents before assigning to _M_name_messages,
87 qualify strcpy and strlen with std::.
88 * config/os/gnu-linux/ctype_noninline.h
89 (ctype<char>::classic_table()): Don't call locale::classic().
90 * include/bits/locale_classes.h
91 (locale::_S_categories): Const qualify.
92 (locale::_S_once, locale::_S_initialize_once,
93 locale::facet::_S_once, locale::facet::_S_initialize_once,
94 locale::facet::_S_get_c_locale): Declare.
95 (locale::_S_initialize): Don't define.
96 (locale::facet::_S_c_locale): Make private.
97 (locale::facet::_S_c_name): Same, const qualify.
98 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
99 parameters, add throw() specifier.
100 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
101 messages::_M_name_messages): Const qualify.
103 (locale::_S_once, locale::facet::_S_once): Define.
104 (locale::classic): Move initialization code...
105 (locale::_S_initialize_once): ...here.
106 (locale::_S_initialize): Call _S_initialize_once through
108 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
109 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
110 __gthread_once before returning _S_c_locale.
111 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
112 Drop unused parameters, add throw() specifier, don't initialize
113 locale::facet::_S_c_locale and _S_c_name.
115 * config/locale/generic/messages_members.h:
116 Replace _S_c_locale with _S_get_c_locale().
117 * config/locale/gnu/c_locale.cc: Same.
118 * config/locale/gnu/messages_members.h: Same.
119 * config/locale/gnu/numeric_members.cc: Same.
120 * config/locale/gnu/time_members.cc: Same.
121 * config/os/gnu-linux/ctype_noninline.h: Same.
122 * include/bits/locale_facets.h: Same.
123 * include/bits/locale_facets.tcc: Same.
124 * src/codecvt.cc: Same.
125 * src/ctype.cc: Same.
127 2003-10-02 Carlo Wood <carlo@alinoe.com>
129 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
130 Decode symbols that start with _GLOBAL_[ID]_ differently: the
131 trailing part ends with a terminating zero and is not necessarily an
133 * src/demangle.cc (): Same.
134 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
136 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
138 * testsuite/22_locale/locale/cons/12438.cc: Use
139 __gnu_test::try_named_locale("").
141 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
143 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
144 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
146 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
147 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
149 * config.h.in, configure: Regenerate.
150 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
153 2003-10-01 Nathan Myers <ncm@cantrip.org>
155 * include/bits/locale_facets.tcc (time_put::put): Avoid
156 expensive *__s++, in favor of *__s, ++__s.
158 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
160 * include/bits/locale_facets.tcc (time_put::put): Minor
161 tweak to the previous commit.
163 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
166 * include/bits/locale_facets.tcc (time_put::put): Deal
167 with the three issues pointed out by the PR.
168 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
169 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
170 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
171 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
172 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
174 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
176 * include/bits/stl_algo.h: Minor cosmetic reformattings.
178 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
180 * include/bits/stl_algo.h (search_n): Tweak, to spare the
183 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
185 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
186 qualify exception name.
188 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
191 * include/bits/locale_facets.tcc (locale::combine): Don't
192 leak memory if _M_replace_facet throws.
193 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
195 * include/bits/locale_classes.h (locale::locale(const locale&,
196 _Facet*)): Tweak, use consistently _M_remove_reference.
198 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
200 PR libstdc++/12352 (cont)
201 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
202 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
204 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
205 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
206 !_M_caches, !_M_names.
208 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
210 * configure.host: Handle Solaris 2.5 micro releases explicitly.
211 Remove wildcards from Solaris 2.6, 7-9: there were no
213 Treat Solaris 10 and up like 7-9.
215 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
217 * include/bits/stl_algo.h (search_n): Improve the previous
218 fix as suggested by Martin.
220 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
223 * include/bits/istream.tcc (peek): Set eofbit if sgetc
225 * testsuite/27_io/basic_istream/peek/char/12296.cc:
228 2003-09-29 Nathan Myers <ncm@cantrip.org>
229 Paolo Carlini <pcarlini@unitus.it>
232 * include/bits/stl_algo.h (search_n):
233 Use iterator_traits<>::difference_type for __n.
234 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
236 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
238 * testsuite/22_locale/locale/cons/12352.cc:
239 Use __attribute__((unused)) for test.
241 2003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
243 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
244 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
245 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
247 2003-09-26 Brad Spencer <spencer@infointeractive.com>
249 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
250 Explicitly qualify exceptions.
251 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
252 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
253 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
254 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
256 2003-09-25 Paolo Carlini <pcarlini@unitus.it>
259 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
260 size_t)): Don't leak if memory allocations for _M_facets,
261 _M_caches, and _M_names fail.
262 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
263 (locale::_Impl::_M_replace_categories(const _Impl*,
265 (locale::_Impl::_M_install_facet(const locale::id*,
266 const facet*)): Ditto.
267 * include/bits/locale_classes.h (locale::locale(const locale&,
268 _Facet*)): Don't leak memory.
269 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
271 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
272 bool)): Qualify with std:: strcpy, tweak.
273 * include/bits/locale_classes.h
274 (locale::_Impl::_M_check_same_name): Qualify strcmp.
276 2003-09-25 Brad Spencer <spencer@infointeractive.com>
279 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
281 * aclocal.m4: Regenerate.
282 * config.h.in: Regenerate.
283 * configure: Regenerate.
284 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
285 * config/io/basic_file_stdio.cc: Guard unistd.h.
286 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
287 * include/c_std/std_cwchar.h: Same.
288 * include/c_std/std_cwctype.h: Same.
290 2003-09-25 Benjamin Kosnik <bkoz@redhat.com>
293 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
294 * config/locale/generic/ctype_members.cc: Same.
295 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
296 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
298 * config/os/generic/ctype_inline.h: Update.
300 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
302 * src/Makefile.am (version_dep): New variable.
303 (libstdc___la_DEPENDENCIES): Use it to add dependency on
304 libstdc++-symbol.ver only when using symbol versioning.
305 * src/Makefile.in: Regenerate.
307 2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
309 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
310 * testsuite/testsuite_hooks.h: Same.
311 * testsuite/*/*.cc: Same.
313 2003-09-22 Petur Runolfsson <peturr02@ru.is>
315 * include/bits/istream.tcc (basic_istream::read,
316 basic_istream::readsome, basic_istream::putback,
317 basic_istream::unget, operator>>(basic_istream, CharT)):
318 Avoid redundant setstate(failbit) calls when sentry::operator bool()
321 2003-09-22 Carlo Wood <carlo@alinoe.com>
324 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
325 char const*, int, int)): Remove unused identifier
326 cv_qualifier for overloaded constructor.
328 2003-09-18 Benjamin Kosnik <bkoz@redhat.com>
331 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
332 WARN_FLAGS, remove -Wno-format.
333 * aclocal.m4: Regenerate.
334 * configure: Regenerate.
336 2003-09-18 Petur Runolfsson <peturr02@ru.is>
338 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
339 * config/io/basic_file_stdio.h: Same.
340 * include/std/std_fstream.h (__ctype_type): Delete.
341 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
343 2003-09-17 Benjamin Kosnik <bkoz@redhat.com>
346 * configure.host (abi_baseline_pair): Error out on solaris2
347 configurations without a minor version number.
349 2003-09-13 Phil Edwards <phil@codesourcery.com>
351 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
353 * docs/doxygen/user.cfg.in: And here.
355 2003-09-10 Daniel Jacobowitz <drow@mvista.com>
356 Andreas Jaeger <aj@suse.de>
359 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
360 abi_check if cross compiling.
361 * aclocal.m4: Regenerated.
362 * configure: Regenerated.
364 2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
366 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
367 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
368 (__cxa_vec_new3): Likewise.
370 2003-09-10 Petur Runolfsson <peturr02@ru.is>
372 * include/bits/fstream.tcc (basic_filebuf::seekoff):
373 Use codecvt::length to handle variable-width stateless encodings
375 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
376 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
378 2003-09-10 Alan Modra <amodra@bigpond.net.au>
380 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
383 2003-09-09 Alan Modra <amodra@bigpond.net.au>
385 * configure: Regenerate.
387 2003-09-09 David Edelsohn <edelsohn@gnu.org>
389 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
390 qualifier from _S_synced_with_stdio.
392 2003-09-09 Bernardo Innocenti <bernie@develer.com>
394 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
396 2003-09-04 Petur Runolfsson <peturr02@ru.is>
399 * include/bits/fstream.tcc
400 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
401 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
402 _M_ext_buf_size, _M_ext_next and _M_ext_end.
403 (basic_filebuf::underflow): Handle variable-width stateless
404 encodings (codecvt::encoding() == 0), including UTF-8.
405 * include/std/std_fstream.h (basic_filebuf):
406 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
407 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
408 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
409 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
410 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
411 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
412 * testsuite/27_io/objects/wchar_t/12.cc: New test.
413 * testsuite/27_io/objects/wchar_t/13.cc: New test.
415 2003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
417 * docs/html/faq/index.html: Note that a namespace alias can't be
418 used when specialising templates in extension namespace.
419 * docs/html/faq/index.txt: Regenerate.
421 2003-09-03 Petur Runolfsson <peturr02@ru.is>
424 * include/ext/stdio_sync_filebuf.h
425 (stdio_sync_filebuf::_M_unget_buf): Declare it.
426 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
427 (stdio_sync_filebuf::uflow): Store the returned character in
429 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
430 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
431 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
432 _M_unget_buf, if any, else eof().
433 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
434 _M_unget_buf, if any, else eof().
435 * testsuite/27_io/objects/char/12048.cc: Rename to...
436 * testsuite/27_io/objects/char/12048-1.cc: ...this.
437 * testsuite/27_io/objects/char/12048-2.cc: New test.
438 * testsuite/27_io/objects/char/12048-3.cc: New test.
439 * testsuite/27_io/objects/char/12048-4.cc: New test.
440 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
441 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
442 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
443 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
444 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
445 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
446 * testsuite/ext/stdio_sync_filebuf_char.cc
447 (test02, test03, test04, test05): New tests.
448 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
449 (test02, test03, test04, test05): New tests.
451 2003-09-03 Petur Runolfsson <peturr02@ru.is>
453 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
454 stringbuf or strstreambuf. Fix typos.
456 2003-09-02 Phil Edwards <phil@codesourcery.com>
458 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
460 * config.h.in: Add _GLIBCXX_HOSTED.
461 * libsupc++/eh_term_handler.cc: Test it here; initialize
462 __terminate_handler to std::abort if freestanding.
463 * aclocal.m4, configure: Regenerated.
464 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
466 2003-08-29 Nathan Myers <ncm@cantrip.org>
469 * include/bits/locale_facets.tcc (__pad): delete dead code.
471 2003-08-28 Alan Modra <amodra@bigpond.net.au>
473 * configure.ac: Test $with_cross_host against $build_alias, not $build.
474 * configure: Regenerate.
476 2003-08-27 Petur Runolfsson <peturr02@ru.is>
478 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
479 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
481 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
483 * Makefile.am: Remove trailing whitespace. Remove needless
484 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
485 * include/Makefile.am: Likewise.
486 * libmath/Makefile.am: Likewise.
487 * libsupc++/Makefile.am: Likewise.
488 * po/Makefile.am: Likewise.
489 * src/Makefile.am: Likewise.
490 * testsuite/Makefile.am: Likewise.
492 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
493 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
494 testsuite/Makefile.in: Regenerated.
496 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
498 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
500 * aclocal.m4, configure: Regenerate.
502 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
504 * acinclude.m4: Include no-executables.m4.
505 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
506 * aclocal.m4: Regenerated.
507 * configure: Regenerated.
509 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
511 * acinclude.m4: Don't call AC_ISC_POSIX.
512 * aclocal.m4: Regenerated.
513 * configure: Regenerated.
515 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
517 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
518 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
519 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
520 used elsewhere in this file.
521 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
522 * configure.ac: ...called here to expand all conditionals.
523 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
524 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
525 (install-freestanding-headers): New target, a subset of
526 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
528 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
529 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
530 src/Makefile.in, testsuite/Makefile.in: Regenerated.
532 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
534 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
535 pathnames from generated tag file.
537 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
539 * Makefile.am: Add comment.
540 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
542 * configure.ac: Use them both here, instead of hardcoded lists.
544 * fragment.am: Add STAMP varaible.
545 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
547 (stamp-*): Move file creation rule outside of 'if' branches to
548 ensure the stamp-* files are actually updated. Use $(STAMP).
549 * src/Makefile.am: Remove now-nonexistant variable.
550 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
552 * po/Makefile.am: Include same fragment as all the others.
554 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
555 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
557 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
559 * testsuite/data/cin_unget-1.txt: New.
560 * testsuite/27_io/objects/char/12048.cc: New.
562 2003-08-25 Zack Weinberg <zack@codesourcery.com>
564 * config/os/hpux/os_defines.h: Unconditionally define
565 _GLIBCXX_GTHREAD_USE_WEAK to 0.
567 2003-08-19 Geoffrey Keating <geoffk@apple.com>
569 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
570 crosses to Darwin targets.
571 * configure: Regenerate.
573 2003-08-19 Petur Runolfsson <peturr02@ru.is>
575 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
577 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
579 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
580 in the patch from 3 minutes ago. Boy, is my face red.
581 * configure: At least I remembered to regenerate this.
583 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
585 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
586 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
587 things from the top level.
588 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
589 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
590 (currently unused). Strip the fake-VPATH shell fragment from
591 automake-generated rules, if present.
592 * linkage.m4: Add comment.
594 * fragment.am: New file, containing factored-out common settings.
595 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
596 * Makefile.am: Include fragment.am. Remove common variables.
597 * include/Makefile.am: Likewise.
598 * libmath/Makefile.am: Likewise.
599 * libsupc++/Makefile.am: Likewise.
600 * po/Makefile.am: Likewise. Print rules during check.
601 * src/Makefile.am: Likewise.
602 * testsuite/Makefile.am: Likewise.
604 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
605 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
606 src/Makefile.in, testsuite/Makefile.in: Regenerate.
608 2003-08-11 John Levon <levon@movementarian.org>
610 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
611 remaining places for the name change from GLIBCPP_FORCE_NEW
614 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
616 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
618 * include/bits/basic_ios.tcc: Same.
619 * include/bits/istream.tcc: Same.
620 * include/bits/locale_facets.h: Same.
621 * include/bits/ostream.tcc: Same.
622 * include/std/std_istream.h: Same.
623 * include/std/std_ostream.h: Same.
624 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
626 * include/ext/rope: Remove build warning.
628 2003-08-11 Andreas Jaeger <aj@suse.de>
630 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
632 * include/Makefile.in: Regenerated.
634 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
636 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
637 when calling AC_PROG_CC.
638 * aclocal.m4, configure: Regenerate.
640 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
642 * acinclude.m4: Properly quote variable which will be expanded
643 inside makefiles. Use CXX instead of CC to extract compiler info.
644 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
645 correct form in PACKAGE.
646 * aclocal.m4, configure: Regenerate.
648 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
650 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
651 (check-abi-verbose): Same.
652 * testsuite/testsuite_performance.h (report_performance): Same.
654 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
656 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
658 2003-08-07 Doug Gregor <dgregor@apple.com>
660 * include/bits/char_traits.h (char_traits::not_eof): Match operand
663 2003-08-07 Bernardo Innocenti <bernie@develer.com>
666 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
667 Replace variants with new BSET-based version.
669 2003-08-07 Carlo Wood <carlo@alinoe.com>
671 * include/bits/demangle.h: Do not use cctype functions that depend
674 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
676 * configure.in: Rename...
677 * configure.ac: ...to this.
678 * docs/html/17_intro/porting.texi: Update name.
680 * docs/html/17_intro/porting.html: Regenerate.
681 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
682 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
683 testsuite/Makefile.in: Regenerate (picks up new dependancy).
685 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
687 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
688 pipe, open the window to let out the fumes, redo the option-handling
689 logic to properly execute the detection test.
690 * aclocal.m4, configure: Regenerate.
692 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
694 Convert to new autotools.
695 * acconfig.h: Update with correct names.
696 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
697 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
698 * configure.in: Update. Split hardcoded cross-configury settings
700 * crossconfig.m4: ...here. New file. Contents untouched.
701 * acinclude.m4: Reorganize and rewrite as needed. Split large
703 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
705 * scripts/testsuite_flags.in: Update.
707 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
708 variables (already generated by automake).
709 * include/Makefile.am: Ditto.
710 * libmath/Makefile.am: Ditto.
711 * libsupc++/Makefile.am: Ditto.
712 * po/Makefile.am: Ditto.
713 * src/Makefile.am: Ditto.
715 * aclocal.m4: Regenerate using new versions.
716 * config.h.in: Ditto.
718 * Makefile.in: Ditto.
719 * include/Makefile.in: Ditto.
720 * libmath/Makefile.in: Ditto.
721 * libsupc++/Makefile.in: Ditto.
722 * po/Makefile.in: Ditto.
723 * src/Makefile.in: Ditto.
724 * testsuite/Makefile.in: Ditto.
726 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
728 * po/libstdc++.pot: Re-extract/regenerate.
730 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
732 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
733 Remove unneeded variable assignments. Leave them for automake.
734 * testsuite/lib/libstdc++-v3.exp: Rename...
735 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
737 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
738 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
741 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
743 * docs/doxygen/guide.html: run_doxygen uses bash.
744 * docs/doxygen/mainpage.html: We'll be shipping tag files.
745 * docs/doxygen/run_doxygen: Tweaks and improvements.
746 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
747 * docs/html/install.html: Update autoconf/automake requirements.
748 * docs/html/test.html: Add section describing DejaGNU support.
749 * docs/html/17_intro/confdeps.dot: New file, generates...
750 * docs/html/17_intro/confdeps.png: ...this new file.
751 * docs/html/Makefile: Generated here.
752 * docs/html/17_intro/configury.html: New file.
754 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
756 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
757 * testsuite/lib/libstdc++-v3.exp: ...to this.
758 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
760 2003-07-31 Doug Gregor <dgregor@apple.com>
762 Add user specialization tests.
763 * testsuite/23_containers/deque/1.cc: New.
764 * testsuite/23_containers/list/1.cc: New.
765 * testsuite/23_containers/map/1.cc: New.
766 * testsuite/23_containers/multimap/1.cc: New.
767 * testsuite/23_containers/multiset/1.cc: New.
768 * testsuite/23_containers/set/1.cc: New.
769 * testsuite/23_containers/vector/1.cc: New.
771 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
773 Reshuffle 23_containers testsuite.
774 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
775 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
776 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
777 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
778 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
779 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
780 vector_resize.cc: Split into...
781 * 23_containers/bitset/cons/1.cc: New.
782 * 23_containers/bitset/cons/6282.cc: New.
783 * 23_containers/bitset/count/6124.cc: New.
784 * 23_containers/bitset/operations/1.cc: New.
785 * 23_containers/bitset/operations/2.cc: New.
786 * 23_containers/bitset/test/1.cc: New.
787 * 23_containers/bitset/to_ulong/1.cc: New.
788 * 23_containers/deque/cons/1.cc: New.
789 * 23_containers/deque/cons/2.cc: New.
790 * 23_containers/deque/operators/1.cc: New.
791 * 23_containers/list/capacity/1.cc: New.
792 * 23_containers/list/cons/1.cc: New.
793 * 23_containers/list/cons/2.cc: New.
794 * 23_containers/list/cons/3.cc: New.
795 * 23_containers/list/cons/4.cc: New.
796 * 23_containers/list/cons/5.cc: New.
797 * 23_containers/list/cons/6.cc: New.
798 * 23_containers/list/cons/7.cc: New.
799 * 23_containers/list/cons/8.cc: New.
800 * 23_containers/list/cons/9.cc: New.
801 * 23_containers/list/modifiers/1.cc: New.
802 * 23_containers/list/modifiers/2.cc: New.
803 * 23_containers/list/modifiers/3.cc: New.
804 * 23_containers/list/operators/1.cc: New.
805 * 23_containers/list/operators/2.cc: New.
806 * 23_containers/list/operators/3.cc: New.
807 * 23_containers/list/operators/4.cc: New.
808 * 23_containers/map/insert/1.cc: New.
809 * 23_containers/map/operators/1.cc: New.
810 * 23_containers/map/operators/1_neg.cc: New.
811 * 23_containers/multiset/insert/1.cc: New.
812 * 23_containers/priority_queue/members/7161.cc: New.
813 * 23_containers/queue/members/7157.cc: New.
814 * 23_containers/set/operators/1_neg.cc: New.
815 * 23_containers/stack/members/7158.cc: New.
816 * 23_containers/vector/bool/1.cc: New.
817 * 23_containers/vector/bool/6886.cc: New.
818 * 23_containers/vector/capacity/1.cc: New.
819 * 23_containers/vector/capacity/2.cc: New.
820 * 23_containers/vector/capacity/8230.cc: New.
821 * 23_containers/vector/cons/1.cc: New.
822 * 23_containers/vector/cons/2.cc: New.
823 * 23_containers/vector/cons/3.cc: New.
824 * 23_containers/vector/cons/4.cc: New.
825 * 23_containers/vector/cons/6513.cc: New.
826 * 23_containers/vector/element_access/1.cc: New.
827 * 23_containers/vector/modifiers/1.cc: New.
828 * 23_containers/vector/modifiers/2.cc: New.
829 * 23_containers/vector/resize/1.cc: New.
831 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
833 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
835 * testsuite/thread/pthread2.cc: Likewise.
836 * testsuite/thread/pthread3.cc: Likewise.
837 * testsuite/thread/pthread4.cc: Likewise.
838 * testsuite/thread/pthread5.cc: Likewise.
839 * testsuite/thread/pthread6.cc: Likewise.
840 * testsuite/thread/pthread7-rope.cc: Likewise.
842 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
844 * include/bits/c++config: Partial reversion (comment placement) of
847 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
849 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
850 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
851 (_GLIBCXX_AT_AT): Remove.
852 (__USE_MALLOC): Remove.
853 * include/std/std_fstream.h: Modify.
854 * include/bits/basic_ios.h: Same.
855 * include/bits/valarray_array.h: Same.
856 * include/c_std/std_cmath.h: Same.
857 * include/c_std/cmath.tcc: Same.
858 * include/std/std_vector.h: Same.
859 * include/std/std_string.h: Same.
860 * include/std/std_stack.h: Same.
861 * include/std/std_queue.h: Same.
862 * include/std/std_list.h: Same.
863 * include/std/std_deque.h: Same.
864 * include/std/std_streambuf.h: Same.
865 * include/std/std_sstream.h: Same.
866 * include/std/std_ostream.h: Same.
867 * include/std/std_istream.h: Same.
868 * include/bits/valarray_array.tcc: Same, format.
870 * include/c/std_cctype.h: Fix include guards.
871 * include/c/std_cerrno.h: Same.
872 * include/c/std_cfloat.h: Same.
873 * include/c/std_climits.h: Same.
874 * include/c/std_clocale.h: Same.
875 * include/c/std_cmath.h: Same.
876 * include/c/std_csetjmp.h: Same.
877 * include/c/std_csignal.h: Same.
878 * include/c/std_cstdarg.h: Same.
879 * include/c/std_cstddef.h: Same.
880 * include/c/std_cstdio.h: Same.
881 * include/c/std_cstdlib.h: Same.
882 * include/c/std_cstring.h: Same.
883 * include/c/std_ctime.h: Same.
884 * include/c/std_cwchar.h: Same.
885 * include/c/std_cwctype.h: Same.
886 * include/c_std/cmath.tcc: Same.
887 * include/c_std/std_cmath.h: Same.
889 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
892 * include/bits/stl_tree.h: Replace C-style casts with C++-style
893 casts. Changes to avoid casting away constness. Eliminate
894 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
895 initialization lists. Move out implementation of __black_count()
897 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
898 Rename_Rb_tree_base_iterator::_M_increment() to
899 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
901 * config/linker-map.gnu: Add and change symbols here.
903 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
905 * docs/html/22_locale/howto.html: Use locale::classic() instead
908 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
910 * testsuite/testsuite_hooks.h: Remove list include.
911 (func_callback): Define as unique type, not std::list.
912 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
913 * testsuite/libstdc++-v3.dg/dg.exp: Same.
914 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
915 * testsuite/23_containers/bitset_ctor.cc:
916 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
917 * testsuite/18_support/numeric_limits.cc: Same.
918 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
919 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
920 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
921 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
922 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
923 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
924 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
925 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
926 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
927 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
928 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
929 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
930 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
931 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
932 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
933 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
934 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
935 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
936 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
937 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
938 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
939 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
940 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
941 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
942 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
943 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
944 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
945 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
946 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
947 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
948 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
949 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
950 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
951 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
952 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
953 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
954 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
955 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
956 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
957 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
958 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
959 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
960 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
961 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
962 * testsuite/23_containers/bitset_ctor.cc: Same.
963 * testsuite/23_containers/bitset_shift.cc: Same.
964 * testsuite/23_containers/vector_ctor.cc: Same.
965 * testsuite/23_containers/vector_element_access.cc: Same.
966 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
967 * testsuite/24_iterators/iterator.cc: Same.
968 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
969 * testsuite/25_algorithms/lower_bound.cc: Same.
970 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
971 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
972 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
973 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
974 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
975 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
976 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
977 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
978 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
979 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
980 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
983 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
985 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
986 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
987 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
988 GLIBCPP to GLIBCXX (and explain as needed).
990 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
994 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
996 * testsuite/22_locale/messages/members/char/1.cc,
997 testsuite/22_locale/messages/members/char/2.cc,
998 testsuite/22_locale/messages/members/char/3.cc,
999 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
1000 the origin of LOCALEDIR.
1001 * testsuite/lib/libstdc++-v3.exp: New file.
1003 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
1005 * include/bits/char_traits.h: Update copyright, tweak.
1006 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
1009 2003-07-24 Matt Austern <austern@apple.com>
1011 * /include/bits/char_traits.h (class char_traits): Put all the
1012 real work into the new class template __gnu_cxx::char_traits.
1013 Gave generic definitions for member functions. Types are taken
1014 from the new class template __gnu_cxx::_Char_types.
1015 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
1016 file. Test of std::char_traits<short>, which serves as a test of
1017 the char_traits primary template.
1019 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
1021 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
1023 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
1025 * testsuite/23_containers/map_operators.cc: Conform to
1026 container requirement as value must be Assignable.
1028 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
1030 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
1031 tests not only generation of pch files, but also their use.
1032 * aclocal.m4, configure: Rebuilt.
1034 2003-07-23 Steve Ellcey <sje@cup.hp.com>
1036 * config/cpu/hppa/atomicity.h: Change
1037 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
1038 to match misc-inst.cc
1040 2003-07-23 Steve Ellcey <sje@cup.hp.com>
1042 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
1043 * include/c_std/std_cctype.h: Ditto.
1044 * include/c_std/std_cerrno.h: Ditto.
1045 * include/c_std/std_cfloat.h: Ditto.
1046 * include/c_std/std_climits.h: Ditto.
1047 * include/c_std/std_clocale.h: Ditto.
1048 * include/c_std/std_cmath.h: Ditto.
1049 * include/c_std/std_csetjmp.h: Ditto.
1050 * include/c_std/std_csignal.h: Ditto.
1051 * include/c_std/std_cstdarg.h: Ditto.
1052 * include/c_std/std_cstddef.h: Ditto.
1053 * include/c_std/std_cstdio.h: Ditto.
1054 * include/c_std/std_cstdlib.h: Ditto.
1055 * include/c_std/std_cstring.h: Ditto.
1056 * include/c_std/std_ctime.h: Ditto.
1057 * include/c_std/std_cwchar.h: Ditto.
1058 * include/c_std/std_cwctype.h: Ditto.
1059 * include/std/std_algorithm.h: Ditto.
1060 * include/std/std_bitset.h: Ditto.
1061 * include/std/std_complex.h: Ditto.
1062 * include/std/std_deque.h: Ditto.
1063 * include/std/std_fstream.h: Ditto.
1064 * include/std/std_functional.h: Ditto.
1065 * include/std/std_iomanip.h: Ditto.
1066 * include/std/std_ios.h: Ditto.
1067 * include/std/std_iosfwd.h: Ditto.
1068 * include/std/std_iostream.h: Ditto.
1069 * include/std/std_istream.h: Ditto.
1070 * include/std/std_iterator.h: Ditto.
1071 * include/std/std_limits.h: Ditto.
1072 * include/std/std_list.h: Ditto.
1073 * include/std/std_locale.h: Ditto.
1074 * include/std/std_map.h: Ditto.
1075 * include/std/std_memory.h: Ditto.
1076 * include/std/std_numeric.h: Ditto.
1077 * include/std/std_ostream.h: Ditto.
1078 * include/std/std_queue.h: Ditto.
1079 * include/std/std_set.h: Ditto.
1080 * include/std/std_sstream.h: Ditto.
1081 * include/std/std_stack.h: Ditto.
1082 * include/std/std_stdexcept.h: Ditto.
1083 * include/std/std_streambuf.h: Ditto.
1084 * include/std/std_string.h: Ditto.
1085 * include/std/std_utility.h: Ditto.
1086 * include/std/std_valarray.h: Ditto.
1087 * include/std/std_vector.h: Ditto.
1089 2003-07-22 Doug Gregor <dgregor@apple.com>
1091 * include/bits/basic_string.h (basic_string::insert): Deprecate
1094 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
1096 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
1098 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
1099 (test03): Include typeinfo for bad_cast.
1100 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1101 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1102 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1104 2003-07-21 Doug Gregor <dgregor@apple.com>
1106 * include/bits/boost_concept_check.h:
1107 (_EqualityComparableConcept::__constraints): Remove != from the
1108 list of constraints; it is not listed in Table 28 of the C++98
1111 2003-07-18 Andreas Jaeger <aj@suse.de>
1113 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
1114 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
1115 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
1116 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
1118 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
1120 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
1121 * config/locale/generic/messages_members.h: Tweaks.
1122 * config/locale/generic/monetary_members.cc
1123 (moneypunct::_M_initialize_moneypunct): Use cache.
1124 (moneypunct::~moneypunct): Delete cache.
1125 * config/locale/generic/time_members.cc:
1126 (__timepunct::_M_initialize_timepunct): Use cache.
1127 * config/locale/generic/time_members.h:
1128 (__timepunct::~__timepunct): Delete cache.
1129 (__timepunct::__timepunct): Set cache.
1130 * config/locale/gnu/messages_members.h: Tweaks.
1131 * config/locale/gnu/monetary_members.cc:
1132 (moneypunct::_M_initialize_moneypunct): Use cache.
1133 (moneypunct::~moneypunct): Delete cache.
1134 * config/locale/gnu/time_members.cc:
1135 (__timepunct::_M_initialize_timepunct): Use cache.
1136 * config/locale/gnu/time_members.h:
1137 (__timepunct::~__timepunct): Delete cache.
1138 (__timepunct::__timepunct): Set cache.
1139 * include/bits/locale_facets.h (__timepunct_cache): New.
1140 (__moneypunct_cache): New.
1141 * include/bits/locale_facets.tcc: Tweak.
1142 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
1143 * src/locale-inst.cc: Instantiate caches.
1144 * src/globals.cc: Add "C" caches.
1145 * src/localename.cc: Use external "C" caches.
1147 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
1149 * docs/doxygen/guide.html: Fix typo.
1151 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
1153 * include/ext/pod_char_traits.h: Add state template argument.
1155 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
1157 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
1158 (num_get::_M_convert_int): To _M_insert_int.
1159 (num_get::_M_convert_float): To _M_insert_float.
1160 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1161 Use caches for ctype, num_get.
1162 (num_get::_M_extract_int): Same.
1163 (num_get::get(bool)): Same.
1164 (__verify_grouping): Use size_t.
1165 * src/locale-inst.cc: Update.
1166 * src/locale.cc: Adjust _S_atoms_in.
1168 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
1170 * docs/doxygen/mainpage.html: Move building/writing instructions...
1171 * docs/doxygen/guide.html: ...to here. New file.
1173 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
1175 * docs/html/ext/howto.html: Update URL for SGI STL docs.
1176 * docs/html/faq/index.html: Same.
1177 * docs/html/faq/index.txt: Regenerate.
1179 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
1182 * include/bits/locale_facets.tcc (money_get::do_get):
1183 Strip only _leading_ zeros.
1184 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
1185 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
1187 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1189 * include/ext/hash_map (class hash_multimap): Remove extra
1190 semicolons from __glibcxx_class_requires3 entries.
1191 * include/ext/hash_set (class hash_set): Ditto.
1192 (class hash_multiset): Ditto.
1194 2003-07-15 Petur Runolfsson <peturr02@ru.is>
1196 * include/bits/char_traits.h (char_traits<wchar_t>::move):
1197 Change last parameter from int_type to size_t.
1199 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
1201 * include/bits/stl_algo.h (includes, set_union, set_intersection,
1202 set_difference, set_symmetric_difference, max_element, min_element,
1203 next_permutation, prev_permutation, find_first_of, find_end):
1205 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
1206 restrictions in docs.
1207 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
1209 * docs/doxygen/doxygroups.cc (setoperations): New group.
1211 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
1213 * include/bits/basic_string.h: Document public functions.
1214 * docs/doxygen/TODO: Update c21 todo.
1216 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
1218 * include/bits/stl_list.h: Document more functions.
1219 * docs/doxygen/TODO: Update c23 todo.
1221 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
1223 * config/locale/gnu/c_locale.h (__convert_from_v): One more
1226 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
1228 * include/bits/stl_tempbuf.h: Qualify free with std::.
1229 * src/locale.cc: Include <cstdlib>, qualify getenv.
1231 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
1233 * config/locale/gnu/c_locale.h (__convert_from_v): Include
1234 <cstdio>. Qualify names.
1235 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
1237 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
1238 Nathan C. Myers <ncm-nospam@cantrip.org>
1241 * include/std/std_fstream.h (xsputn): Declare only.
1242 * include/bits/fstream.tcc (xsputn): Define, optimize for the
1243 always_noconv() case: when __n is sufficiently large flush
1244 the buffer and issue a direct write, if possible combining the
1245 two with writev in __basic_file<>::xsputn_2.
1246 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
1248 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
1250 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
1251 the availability of writev in <sys/uio.h>.
1252 * configure.in: Call here.
1253 * acconfig.h: Add undef for the corresponding symbol.
1254 * aclocal.m4: Regenerate.
1255 * configure: Regenerate.
1256 * config.h.in: Regenerate.
1257 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
1259 * include/std/std_fstream.h (sync): Constify a variable.
1261 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
1263 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
1264 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1266 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
1268 * config/locale/gnu/c_locale.h (__convert_from_v): Include
1269 <cstring> and <cstdlib>. Qualify names.
1271 2003-07-13 Mark Mitchell <mark@codesourcery.com>
1273 * config/locale/generic/c_locale.h: Include <cstdlib> and
1275 * include/bits/boost_concept_check.h: Add this-> to unqualified
1277 * include/bits/deque.tcc: Likewise.
1278 * include/bits/locale_facets.h : Likewise.
1279 * include/bits/ostream.tcc: Likewise.
1280 * include/bits/stl_algo.h: Likewise.
1281 * include/bits/stl_bvector.h: Likewise.
1282 * include/bits/stl_deque.h: Likewise.
1283 * include/bits/stl_list.h: Likewise.
1284 * include/bits/stl_tree.h: Likewise.
1285 * include/bits/stl_vector.h: Likewise.
1286 * include/bits/vector.tcc: Likewise.
1287 * include/ext/rope: Likewise.
1288 * include/ext/ropeimpl.h: Likewise.
1289 * include/ext/stdio_filebuf.h: Likewise.
1291 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
1293 * include/bits/basic_ios.h (copyfmt): Document.
1294 * include/bits/ios_base.h (event, event_callback, register_callback,
1295 xalloc, iword, pword): Document.
1296 (imbue, ~ios_base): Update docs on callbacks.
1298 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
1300 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
1301 warning messages if the environment cannot support symbol versioning.
1302 (port_specific_symbol_file): It's plural, add an 's' on the end.
1303 * configure.host: Likewise.
1304 * src/Makefile.am: Likewise.
1305 * config/linker-map.gnu: Remove one semicolon, heh.
1306 * scripts/extract_symvers: Don't assume useful 'export' syntax.
1307 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
1308 * aclocal.m4, configure, src/Makefile.in: Regenerated.
1310 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
1312 * include/bits/locale_facets.tcc: Use function object for
1313 __use_cache instead of template function. Partially specialize for
1315 * include/bits/locale_classes.h: Update friend declaration for
1317 (_M_install_cache): No throw exception specs.
1318 * src/locale.cc: Remove __use_cache specializations.
1319 * include/ext/pod_char_traits.h (length): Tweak.
1320 * include/bits/locale_facets.h (__numpunct_cache): Remove
1322 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
1324 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
1325 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
1326 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
1327 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
1328 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
1329 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
1331 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
1333 * src/ios.cc (_M_grow_words): Fix spelling.
1335 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
1337 * include/bits/stl_tree.h: Move larger member functions in
1338 _Rb_tree_base_iterator and _Rb_tree_node to...
1339 * src/stl_tree.cc: Here.
1340 * src/Makefile.in: Add stl_tree.cc.
1341 * src/Makefile.in: Regenerated.
1342 * config/linker-map.gnu: Add symbols here.
1344 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
1346 * testsuite/ext/pod_char_traits.cc: New.
1347 * include/ext/pod_char_traits.h: New.
1348 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
1349 * include/Makefile.in: Regenerate.
1350 * docs/html/21_strings/howto.html: Update.
1352 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
1354 * testsuite/performance/list_create_fill_sort.cc: New.
1356 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
1358 * config/locale/generic/numeric_members.cc: Correct type info.
1359 * config/locale/gnu/numeric_members.cc: Same.
1360 * include/bits/locale_facets.h: Same.
1362 * include/bits/char_traits.h: Correct spacing.
1364 * src/locale.cc: Wrap to 80 col.
1366 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
1368 * include/std/std_complex.h: Partially revert last
1369 changes: cmath functions must not be qualified.
1371 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
1373 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
1374 2.11 with globbing backport fix.
1375 * aclocal.m4, configure: Regenerated.
1377 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
1379 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
1380 if output is at all possible (!_M_reading), cannot be active.
1382 * include/std/std_fstream.h: Tweak comments to doxygen style.
1384 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
1386 * include/bits/locale_classes.h: Fully qualify standard
1387 functions with std::, thus avoiding Koenig lookup.
1388 * include/bits/locale_facets.tcc: Likewise.
1389 * src/locale.cc: Likewise.
1390 * src/localename.cc: Likewise.
1392 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
1394 * include/bits/allocator_traits.h: Fix doxygen markup.
1395 * include/ext/mt_allocator.h: Likewise.
1397 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
1399 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
1401 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
1403 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
1404 requirement. Add port_specific_symbol_file variable.
1405 * configure.host: Add docs for port_specific_symbol_file.
1406 Clean up try_cpu block for x86.
1407 * config/linker-map.gnu: No more "last symbol can't have a
1408 semicolon" kaka. Add hook for port-specific symbols.
1409 * src/Makefile.am: Remove trailing whitespace.
1410 (libstdc++-symbol.ver): Detect the presence of port-specific
1411 symbols, and add them accordingly.
1413 * docs/html/17_intro/porting.texi: Bring up to date.
1415 * src/Makefile.in, aclocal.m4, configure,
1416 docs/html/17_intro/porting.html: Regenerated.
1418 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
1420 * scripts/create_testsuite_files: New file.
1421 * testsuite/Makefile.am (all-local, check-performance): Use it.
1422 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
1423 * testsuite/Makefile.in: Regenerated.
1425 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
1427 * testsuite/performance/fstream_seek_write.cc: Likewise.
1428 * testsuite/performance/ofstream_insert_float.cc: Likewise.
1429 * testsuite/performance/ofstream_insert_int.cc: Likewise.
1430 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
1432 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
1434 * include/bits/stl_list.h: Performance and memory usage
1435 improvements. In particular, the behaviour of the constructor and
1436 destructor as the list header node is no longer dynamically
1437 allocated/de-allocated.
1438 * include/bits/list.tcc: Likewise.
1440 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
1442 * include/std/std_complex.h: Fully qualify standard
1443 functions with std::, thus avoiding Koenig lookup.
1444 * include/std/std_memory.h: Likewise.
1445 * include/std/std_valarray.h: Likewise.
1447 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
1449 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
1450 variable for grandparent and use const
1452 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
1454 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
1455 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
1456 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
1457 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
1458 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
1459 * testsuite/27_io/objects/char/7.cc: Ditto
1460 * testsuite/27_io/objects/char/9661-1.cc: Ditto
1462 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
1464 * include/std/std_bitset.h: Fully qualify standard
1465 functions with std::, thus avoiding Koenig lookup.
1467 * include/std/std_fstream.h: Change comment to doxygen style.
1469 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
1471 * include/std/std_limits.h: More CPP->CXX changes.
1472 * scripts/check_survey.in: Likewise.
1474 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1476 Move from CPP to CXX.
1477 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
1478 * testsuite/Makefile.am: Same.
1479 * testsuite/Makefile.in: Regenerate.
1480 * po/Makefile.am: Same.
1481 * po/Makefile.in: Regenerate.
1482 * libsupc++/Makefile.am: Same.
1483 * libsupc++/Makefile.in: Regenerate.
1484 * libmath/Makefile.am: Same.
1485 * libmath/Makefile.in: Regenerate.
1486 * include/Makefile.am: Same.
1487 * include/Makefile.in: Regenerate.
1488 * src/Makefile.am: Same.
1489 * src/Makefile.in: Regenerate.
1491 * configure.host: Same.
1492 * configure.in: Same.
1493 * configure: Regenerate.
1494 * acinclude.m4: Same.
1496 * src: Change all files in this directory.
1498 * include: Same, standardize include guards.
1502 2003-07-04 Zack Weinberg <zack@codesourcery.com>
1504 * testsuite/22_locale/collate/compare/wchar_t/2.cc
1505 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
1506 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
1507 * testsuite/22_locale/collate/hash/wchar_t/2.cc
1508 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
1509 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
1510 * testsuite/22_locale/collate/transform/wchar_t/2.cc
1511 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
1512 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1513 XFAIL on all targets.
1515 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1517 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
1518 * aclocal.m4: Regenerate.
1519 * configure: Regenerate.
1521 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
1523 * include/bits/locale_facets.tcc (__int_to_char): Move common case
1526 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1527 Petur Runolfsson <peturr02@ru.is>
1529 * config/io/basic_file_stdio.cc: Revert.
1531 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1533 * include/bits/deque.tcc: Fully qualify standard
1534 functions with std::, thus avoiding Koenig lookup.
1535 * include/bits/gslice_array.h: Likewise.
1536 * include/bits/indirect_array.h: Likewise.
1537 * include/bits/list.tcc: Likewise.
1538 * include/bits/mask_array.h: Likewise.
1539 * include/bits/slice_array.h: Likewise.
1541 2003-07-04 Gawain Bolton <gbolton@free.fr>
1543 * include/bits/stl_tree.h: Performance and memory usage
1546 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
1548 * Makefile.am: Replace PWD with PWD_COMMAND.
1549 * Makefile.in: Regenerated.
1550 * docs/html/Makefile: Likewise.
1552 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1554 * include/bits/valarray_array.h: Fully qualify standard
1555 functions with std::, thus avoiding Koenig lookup.
1556 * include/bits/vector.tcc: Likewise.
1558 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1560 * include/Makefile.am: Update target_ to host_.
1561 * include/Makefile.in: Regenerate.
1562 * src/Makefile.am: Same.
1563 * src/Makefile.in: Regenerate.
1565 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
1567 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1569 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
1570 --enable-libstdcxx-debug-flags.
1571 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
1572 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
1573 * aclocal.m4: Regenerate.
1575 * docs/html/configopts.html: Update.
1577 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1579 Revert the fix for libstdc++/11378.
1581 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1584 * include/std/std_fstream.h (xsputn): In the unbuffered case,
1585 provided always_noconv(), issue directly _M_file.xsputn.
1586 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
1588 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1590 * include/bits/stl_list.h: Fully qualify standard
1591 functions with std::, thus avoiding Koenig lookup.
1592 * include/bits/stl_queue.h: Likewise.
1593 * include/bits/stl_raw_storage_iter.h: Likewise.
1594 * include/bits/stl_tempbuf.h: Likewise.
1595 * include/bits/stl_tree.h: Likewise.
1596 * include/bits/stl_uninitialized.h: Likewise.
1597 * include/bits/stl_vector.h: Likewise.
1598 * include/ext/rope: Change includes order.
1600 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1602 * configure.host (fpos_include_dir): Fix.
1604 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1606 * include/bits/stl_heap.h: Fully qualify standard
1607 functions with std::, thus avoiding Koenig lookup.
1608 * include/bits/stl_iterator_base_funcs.h: Likewise.
1610 * include/bits/stl_algo.h: Qualify __iterator_category too.
1611 * include/bits/stl_algobase.h: Likewise.
1612 * include/bits/stl_bvector.h: Likewise.
1614 * include/bits/stl_algo.h: Don't qualify the pair type.
1616 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
1618 * include/Makefile.am (target_headers): Add fpos.h
1619 (bits_headers): Remove.
1620 * include/Makefile.in: Regenerate.
1621 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
1622 * configure: Regenerate.
1623 * configure.host: Add fpos_include_dir.
1624 * config/os/gnu-linux/fpos.h: New.
1625 * config/os/generic/fpos.h: Add.
1626 * include/bits/fpos.h: Remove.
1628 * config/io/c_io_stdio.h: Remove fpos_t typedef.
1630 * include/bits/fstream.tcc: Tweaks.
1631 * include/std/std_fstream.h: Same.
1633 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
1634 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
1635 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
1636 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1637 * testsuite/27_io/fpos/1.cc: New.
1639 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
1640 Petur Runolfsson <peturr02@ru.is>
1642 * include/std/std_streambuf.h: Remove _M_pos.
1643 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
1644 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
1645 use fread/fwrite instead of read/write.
1646 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
1647 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
1648 before reading again.
1649 * testsuite/27_io/objects/char/6.cc: Tweak.
1651 2003-07-03 David Edelsohn <edelsohn@gnu.org>
1653 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
1654 _GLIBCPP_USE_WCHAR_T.
1656 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1658 * include/bits/basic_string.tcc (_M_replace_aux): Constify
1661 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1663 * include/bits/stl_bvector.h: Fully qualify standard
1664 functions with std::, thus avoiding Koenig lookup.
1665 * include/bits/stl_construct.h: Likewise.
1666 * include/bits/stl_deque.h: Likewise.
1668 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1670 * testsuite/22_locale/num_put/put/char/7.cc: Include
1671 <testsuite_hooks.h>, tweak.
1672 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
1674 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
1676 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
1677 check* targets, but not libs/programs).
1678 * testsuite/Makefile.in: Regenerate.
1680 2003-07-01 Roger Sayle <roger@eyesopen.com>
1682 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
1683 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
1684 * aclocal.m4: Regenerate.
1685 * configure: Regenerate.
1687 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
1689 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
1690 * aclocal.m4: Regenerated.
1691 * configure: Regenerated.
1693 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
1696 * include/bits/fstream.tcc (underflow): For encoding() == 0
1697 don't read more than __buflen chars.
1698 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
1699 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
1700 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
1701 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
1703 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
1705 * 22_locale/num_put/put/char/7.cc: New.
1706 * 22_locale/num_put/put/wchar_t/7.cc: New.
1708 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
1710 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
1711 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
1713 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1715 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
1716 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
1717 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
1718 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
1719 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
1720 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
1721 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
1722 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
1723 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
1724 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
1725 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
1726 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
1727 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
1728 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
1729 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
1730 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
1731 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
1732 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
1733 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
1734 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
1735 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
1736 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
1737 * data/seekoff-1.tst: Remove.
1738 * data/seekoff-1io.tst: New.
1739 * data/seekoff-1out.tst: New.
1740 * data/seekoff-2.tst: Remove.
1741 * data/seekoff-2io.tst: New.
1742 * data/seekoff-2out.tst: New.
1744 * data/seekpos-1.tst: Remove.
1745 * data/seekpos-1io.tst: New.
1746 * data/seekpos-1out.tst: New.
1747 * data/seekpos-2.tst: Remove.
1748 * data/seekpos-2io.tst: New.
1749 * data/seekpos-2out.tst: New.
1750 * data/seekpos.txt: New.
1752 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
1754 * src/locale.cc (__use_cache<numpunct>): Move from here ...
1755 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
1758 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1760 * include/bits/stl_algobase.h: Fully qualify standard
1761 functions with std::, thus avoiding Koenig lookup.
1763 2003-06-30 Doug Gregor <dgregor@apple.com>
1765 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
1766 subscripting empty string.
1768 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
1770 * testsuite/Makefile.am (check-am): Do not override.
1771 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
1772 * testsuite/Makefile.in: Regenerate.
1774 2003-06-30 Doug Gregor <dgregor@apple.com>
1776 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
1777 Don't initialize an insert_iterator with a singular iterator.
1779 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1781 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
1782 * aclocal.m4: Regenerate.
1783 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
1784 GLIBCPP_ENABLE_PCH, default to yes.
1785 * configure: Regenerate.
1786 * docs/html/configopts.html: Add --enable-pch.
1788 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
1790 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
1791 (libstdc++-v3-init): Also set LD_RUN_PATH.
1793 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1795 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
1796 from here to filebuf and stringbuf.
1797 (~basic_streambuf()): Don't set _M_mode.
1798 (basic_streambuf()): Don't set _M_mode.
1799 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
1800 (~basic_filebuf()): Clean up.
1801 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
1802 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
1803 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
1804 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
1805 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
1806 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
1807 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
1809 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1811 * include/std/std_fstream.h (_M_underflow): Remove.
1812 (uflow): Remove, inherited from streambuf.
1813 (underflow): Only declare.
1814 * include/bits/fstream.tcc (_M_underflow): Rename to
1815 underflow, to which is equivalent for __bump == false,
1817 * include/std/std_sstream.h (_M_underflow): Remove.
1818 (uflow): Remove, inherited from streambuf.
1819 (underflow): Only declare.
1820 * include/bits/sstream.tcc (_M_underflow): Rename to
1821 underflow, to which is equivalent for __bump == false,
1824 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1826 * include/bits/stl_algo.h: Fully qualify standard functions
1827 with std::, thus avoiding Koenig lookup.
1829 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1831 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
1832 Improve type correctness-wise.
1833 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
1835 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
1837 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
1840 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1842 * include/std/std_streambuf.h (uflow): According to
1843 27.5.2.4.3,p16, don't check gptr() < egptr().
1845 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
1848 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
1849 (seekpos): Likewise.
1850 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
1852 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
1855 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
1857 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
1858 output name to libstdc++-v3-performance.sum.
1859 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
1860 * testsuite/Makefile.in: Regenerate.
1862 2003-06-27 Matthias Klose <doko@debian.org>
1864 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
1865 output of abi-check in libstdc++-v3-abi.sum.
1866 * testsuite/Makefile.in: Regenerate.
1868 2003-06-27 Krister Walfridsson <cato@df.lth.se>
1870 * config/os/bsd/netbsd/ctype_noninline.h
1871 (_C_ctype_): Declare.
1872 (ctype<char>::classic_table): Return _C_ctype_ + 1.
1873 (ctype<char>::ctype): Use classic_table.
1875 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
1876 Nathan C. Myers <ncm-nospam@cantrip.org>
1879 * include/bits/fstream.tcc (_M_underflow): Properly estimate
1880 the worst-case number of external bytes for a given get area.
1881 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
1883 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
1884 Petur Runolfsson <peturr02@ru.is>
1887 * include/bits/fstream.tcc (overflow): Properly estimate the
1888 worst-case number of external bytes for a given put area
1889 (by using codecvt::max_length()).
1890 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
1891 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
1892 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
1893 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
1895 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1897 * config/linker-map.gnu: Remove ; after __numpunct_cache.
1899 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1901 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
1902 to the imbued locale.
1903 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
1905 (num_put::_M_convert_float): Use.
1907 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1908 Jerry Quinn <jlquinn@optonline.net>
1910 * config/linker-map.gnu: Add __numpunct_cache.
1911 * config/locale/gnu/numeric_members.cc
1912 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
1913 all elements for "C" locale.
1914 (numpunct::~numpunct): Delete _M_data.
1915 * config/locale/generic/numeric_members.cc: Same.
1916 * include/bits/basic_ios.tcc
1917 (basic_ios::init): Remove __locale_cache bits.
1918 (basic_ios::_M_cache_locale): Same.
1919 * include/bits/ios_base.h: Same. Tweaks.
1920 * include/bits/locale_classes.h: Tweaks. Reorder classes.
1921 (__use_cache): Make friends with _Impl, locale.
1922 (_Impl::_M_caches): Add.
1923 (_Impl::_M_install_cache): Add.
1924 * include/bits/locale_facets.h (__numpunct_cache): New.
1925 (numpunct): Encapsulate data members in __numpunct_cache member,
1926 _M_data. Adjust virtuals.
1927 (numpunct::numpunct): New ctor for the same.
1928 (__locale_cache_base): Remove.
1929 (__locale_cache): Remove.
1930 * include/bits/locale_facets.tcc (__use_cache): New function,
1932 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
1933 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
1934 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
1935 * src/locale-inst.cc: Same. Add __numpunct_cache.
1936 * src/locale.cc: Tweak inlines.
1937 (__use_cache): Define specializations.
1938 * src/localename.cc: Use global bits.
1939 (_Impl::~Impl): Deal with __numpunct_cache destruction.
1940 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
1941 (_Impl::_M_init_facet): Take into account __numpunct_cache.
1942 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
1943 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1945 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
1946 Paolo Carlini <pcarlini@unitus.it>
1948 * testsuite/performance/filebuf_copy.cc: New, testing char
1951 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
1952 Nathan C. Myers <ncm-nospam@cantrip.org>
1954 * include/bits/fstream.tcc (_M_underflow): When the actual
1955 end of file is reached, set 'uncommitted' mode to allow a
1956 next write without an intervening seek (see C++98 27.8.1.1,2
1958 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
1960 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
1962 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1963 sputc): Move inline, from here...
1964 * include/std/std_streambuf.h: ... to here.
1966 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
1967 sputbackc, sungetc, sputc): Use __builtin_expect.
1969 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
1971 * docs/doxygen/mainpage.html: Use a useful title.
1973 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1975 * docs/html/documentation.html: Remove assignment info.
1976 * docs/html/17_intro/contribute.html: Edits.
1977 * docs/html/17_intro/libstdc++-assign.tx: Remove.
1979 * docs/html/test.html: Update.
1983 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1984 Ulrich Drepper <drepper@redhat.com>
1986 * testsuite/testsuite_performance.h: Tweak mallinfo.
1988 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
1989 Nathan C. Myers <ncm-nospam@cantrip.org>
1991 * include/std/std_fstream.h (_M_filepos): Remove.
1992 (_M_reading, _M_writing): New, encode the various I/O modes:
1993 'read', 'write' and 'uncommitted'.
1994 (sync): If there is something to flush, do it, then go to
1996 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
1997 with three different cases: __off > 0 (upon underflow),
1998 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
2000 (_M_underflow): Don't call overflow, set _M_reading to true
2002 (pbackfail): Set _M_reading to true on pback creation, tweak.
2003 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
2004 set _M_writing to true on success, tweak.
2005 (seekoff): Simplify, set _M_reading, _M_writing to false, call
2006 _M_set_buffer(-1) ('uncommitted').
2007 (open, close, setbuf): Set _M_reading, _M_writing to false and
2008 call _M_set_buffer(-1), tweak.
2009 (basic_filebuf): Don't set _M_buf_unified.
2010 (_M_destroy_internal_buffer): Don't call setg and setp.
2011 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
2012 _M_writing and _M_set_buffer(-1).
2013 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
2014 _M_out_lim, _M_buf_unified): Remove.
2015 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
2016 (setp): Don't set _M_out_lim.
2017 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
2018 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
2019 upon open the mode is 'uncommitted' and therefore the put area
2021 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
2022 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
2023 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
2024 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
2025 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
2026 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
2027 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
2028 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
2029 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
2030 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
2031 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
2032 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
2033 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
2034 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
2035 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
2036 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
2037 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
2038 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
2039 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
2040 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
2042 * include/bits/fstream.tcc (showmanyc): Use only the
2043 documented derivation interface to basic_streambuf (gptr(),
2044 setg(), etc.) to work right with user specializations.
2045 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
2046 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
2047 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
2049 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
2052 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
2054 * configure.host (freebsd*): Set abi_baseline_pair.
2055 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
2056 (at or near first release) to 3.3.
2057 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
2058 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
2059 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
2061 * include/ext/mt_allocator.h: Portability.
2062 * testsuite/testsuite_performance.h: Likewise.
2064 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
2066 * docs/html/17_intro/libstdc++-assign.txt: Update address.
2068 * testsuite/performance/ifstream_getline.cc: Fix.
2070 2003-06-23 Doug Gregor <dgregor@apple.com>
2072 * include/bits/boost_concept_check.h: Don't use _D or _R for type
2075 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
2076 Nathan C. Myers <ncm-nospam@cantrip.org>
2078 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
2079 is now used only for filebuf, when _M_buf_unified is true.
2080 epgtr() plays the role of _M_out_lim but it's only updated
2081 upon overflow, underflow, uflow, seekoff/pos.
2082 * include/bits/sstream.tcc (_M_underflow): New, implements
2083 stringbuf::underflow and uflow.
2084 (seekoff, seekpos): Tweak, use _M_update_egptr.
2085 * include/std/std_sstream.h (str): Rewrote, deal correctly
2086 with the new logic, in particular, when pptr() > egptr().
2087 (_M_sync): When __testout && !__testin set all the get area
2088 pointers to the current string end.
2089 (_M_update_egptr): New, internal function updating egptr()
2090 to the actual string end.
2091 (_M_underflow): New, declare.
2092 (underflow): Dispatch to _M_underflow(false).
2093 (uflow): Dispatch to _M_underflow(true).
2095 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
2096 seekpos): Use only the documented derivation interface to
2097 basic_streambuf (gptr(), setg(), etc.) to work right with
2098 user specializations.
2099 * include/std/std_sstream.h (str, _M_sync): Likewise.
2101 2003-06-20 Doug Gregor <dgregor@apple.com>
2103 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
2104 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
2105 dereference end iterator.
2106 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
2107 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
2108 index equal to the length of a string.
2109 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
2110 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
2111 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
2112 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
2113 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
2114 * testsuite/23_containers/list_modifiers.cc: Don't dereference
2115 singular reverse iterator.
2116 * testsuite/23_containers/vector_bool.cc: Don't increment singular
2118 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
2120 2003-06-20 Doug Gregor <dgregor@apple.com>
2122 * include/bits/basic_string.h (basic_string::replace): Dispatch
2123 _InputIterator version based on _Is_integer.
2124 * include/bits/basic_string.tcc (basic_string::replace):
2125 Renamed replace(iterator, iterator, size_type, _CharT) to
2127 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
2128 Test basic_string::assign(_InputIterator, _InputIterator),
2129 which calls basic_string::replace(iterator, iterator,
2130 _Input_iterator, _InputIterator).
2132 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
2134 * testsuite/testsuite_performance.h (resource_counter): Don't use
2135 mallinfo at the moment.
2137 2003-06-20 Matthias Klose <doko@debian.org>
2139 * configure.host: Set try_cpu to target_cpu for existing
2142 2003-06-19 Andreas Jaeger <aj@suse.de>
2144 * testsuite/Makefile.am (extract_symvers): Revert accidental
2146 * testsuite/Makefile.in: Regenerate.
2148 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
2149 * configure: Regenerated.
2151 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
2153 * include/std/std_sstream.h (_M_sync): Make non virtual.
2155 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
2157 * testsuite/testsuite_performance.h (time_counter): New.
2158 (resource_counter): New.
2159 (report_performance): New.
2160 (start_counters): New.
2161 (stop_counters): New.
2162 (clear_counters): New.
2163 * testsuite/performance/allocator.cc: Instrument.
2164 * testsuite/performance/cout_insert_int.cc: Same.
2165 * testsuite/performance/complex_norm.cc: Same.
2166 * testsuite/performance/filebuf_sputc.cc: New.
2167 * testsuite/performance/fstream_seek_write.cc: Same.
2168 * testsuite/performance/ifstream_getline.cc: Same.
2169 * testsuite/performance/map_create_fill.cc: Same.
2170 * testsuite/performance/ofstream_insert_float.cc: Same.
2171 * testsuite/performance/ofstream_insert_int.cc: Same.
2172 * testsuite/performance/string_append.cc: Convert.
2173 * scripts/check_performance: New.
2174 * testsuite/Makefile.am (check-performance): New.
2177 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
2178 Benjamin Kosnik <bkoz@redhat.com>
2180 * include/std/std_sstream.h (setbuf): Check __n >= 0.
2181 * include/bits/fstream.tcc (setbuf): Tweak.
2183 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
2185 * include/bits/sstream.tcc (seekoff): We can't seek beyond
2186 _M_out_lim, therefore _M_move_out_cur boils down to simply
2187 updating _M_out_cur.
2188 (seekpos): Likewise, clean up.
2190 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
2191 Paolo Carlini <pcarlini@unitus.it>
2193 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
2194 simply equivalent to the unbuffered case (0, 0) as far as
2195 _M_buf_size is concerned.
2197 2003-06-18 Andreas Jaeger <aj@suse.de>
2199 * testsuite/Makefile.am (new-abi-baseline): Create baseline
2201 (baseline_file): Use baseline_dir.
2202 (baseline_dir): New.
2203 (mkinstalldirs): New.
2205 * acinclude.m4: Rename baseline_file to baseline_dir, strip
2206 filename from baseline_dir.
2208 * testsuite/Makefile.in: Regenerated.
2209 * Makefile.in: Regenerated.
2210 * aclocal.m4: Regenerated.
2211 * configure: Regenerated.
2213 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
2215 * configure.in: Missed check_survey bit.
2216 * configure: Regenerated.
2218 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
2221 * config/abi/extract_symvers: Move to...
2222 * scripts/extract_symvers: ...here.
2223 * mkcheck.in: Move to..
2224 * scripts/check_survey.in: ...here.
2225 * testsuite_flags.in: Move to..
2226 * scripts/testsuite_flags.in: ...here.
2227 * configure.in: Change check and testsuite_flags locations.
2228 * configure: Regenerate.
2229 * testsuite/Makefile.am (current_symbols.txt): Change location.
2230 * testsuite/Makefile.in: Regenerate.
2231 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
2232 location of testsuite_flags.
2233 * Makefile.am (check-script): Move..
2234 (check-script-install): Move...
2235 * testsuite/Makefile.am: ... here.
2236 * testsuite/Makefile.in: Regenerate.
2237 * Makefile.in: Regenerate.
2239 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
2241 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
2243 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
2245 * Makefile.am (check-abi): Move...
2246 (new-abi-baseline): Move...
2247 * testsuite/Makefile.am: ...here.
2248 (new-abi-baseline): Conditionalize.
2249 (check-abi): Conditionalize.
2250 (check-abi-verbose): New.
2251 * Makefile.in: Regenerate.
2252 * testsuite/Makefile.in: Regenerate.
2253 * configure.in: Consolidate testsuite configure bits.
2254 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
2255 * configure: Regenerate.
2256 * aclocal.m4: Regenerate.
2257 * testsuite/abi_check.cc: Add --check-verbose.
2258 Only output detailed information if --check-verbose.
2260 2003-06-16 Andreas Jaeger <aj@suse.de>
2262 * testsuite/abi_check.cc: Create summary report.
2264 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
2266 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
2267 for systems with BUFSIZ != 8192.
2268 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
2269 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
2272 2003-06-16 Andreas Jaeger <aj@suse.de>
2274 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
2275 check-abi multilib aware.
2276 * aclocal.m4: Regenerate.
2277 * configure: Regenerate.
2279 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
2280 Andreas Jaeger <aj@suse.de>
2282 * configure.host: Set x86_64 abi_baseline pair correctly.
2284 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
2286 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
2287 fix for missing seeks between gets and puts into...
2288 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
2289 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
2290 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
2291 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
2292 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
2293 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
2295 2003-06-15 Richard Henderson <rth@redhat.com>
2297 * config/linker-map.gnu: Export virtual function thunks for
2300 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
2302 * config/abi/i686-pc-linux-gnu: To..
2303 * config/abi/i486-linux-gnu: ...this.
2304 * config/abi/alphaev67-unknown-linux-gnu: To..
2305 * config/abi/alpha-linux-gnu: ...this.
2306 * config/abi/ia64-unknown-linux-gnu: To...
2307 * config/abi/ia64-linux-gnu: ...this.
2308 * config/abi/x86_64-unknown-linux-gnu: To...
2309 * config/abi/x86_64-linux-gnu: ...this.
2310 * config/abi/i386-unknown-freebsd4: To...
2311 * config/abi/i386-freebsd4: ...this.
2312 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
2314 * configure.host: abi_baseline_triplet to abi_baseline_pair.
2315 Simplify cpu bits so that abi_baseline_pair can use the same
2317 * acinclude.m4: Same.
2318 * aclocal.m4: Regenerate.
2319 * configure.in: Can't get enable_abi_check to yes unless native.
2320 * configure: Regenerate.
2322 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
2324 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
2325 fix for missing seeks between gets and puts into...
2326 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
2327 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
2328 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
2329 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
2330 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
2331 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
2332 for missing seeks between gets and puts.
2333 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
2334 * testsuite/data/seekoff-1.tst: New.
2335 * testsuite/data/seekoff-2.tst: New.
2336 * testsuite/data/seekpos-1.tst: New.
2337 * testsuite/data/seekpos-2.tst: New.
2339 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
2341 Avoid multi-processor bus contention on increment/decrement-and-
2342 test of the reference count in the empty-string object, by comparing
2343 addresses first, and never touching the reference count of the empty-
2345 * include/bits/basic_string.h:
2346 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
2348 (_Rep::_S_empty_rep()): New accessor.
2349 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
2350 a base class _Rep_base.
2351 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
2352 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
2353 since no longer must increment its refcount.
2354 * include/bits/basic_string.tcc:
2355 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
2356 return immediately. The former might be unnecessary. The latter
2357 prevents begin() and end() from cloning it unnecessarily.
2358 (_S_construct(_InIterator, _InIterator, const _Alloc&,
2359 input_iterator_tag), _S_construct(_InIterator, _InIterator,
2360 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
2361 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
2362 (_M_mutate): Check for the empty string and treat it as shared.
2363 This is necessary here because _M_mutate is sometimes called with
2364 all-zero arguments; in all other uses of _M_is_shared, the test comes
2367 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
2369 * src/allocator-inst.cc: Explicitly instantiate.
2370 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
2372 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
2374 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
2376 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
2377 * aclocal.m4: Regenerate.
2378 * Makefile.am (SUBDIRS): Remove libio.
2379 * Makefile.in: Regenerate.
2380 * configure.in: Same.
2381 * configure: Regenerate.
2382 * config/io/basic_file_libio.cc: Remove.
2383 * config/io/basic_file_libio.h: Remove.
2384 * config/io/c_io_libio_codecvt.c: Remove.
2385 * config/io/c_io_libio.h: Remove.
2387 * src/Makefile.am: Same.
2388 * src/Makefile.in: Regenerate.
2389 * docs/html/configopts.html: Edits.
2390 * docs/html/explanations.html: Edits.
2392 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
2394 * include/bits/stl_alloc.h (__debug_alloc): Move out.
2395 (__malloc_alloc): Same.
2396 (__pool_alloc): Same.
2397 (__new_alloc): Same.
2399 * include/bits/allocator.h: ...this.
2400 * include/bits/stl_deque.h: Modify comment.
2401 * include/bits/stl_tree.h: Modify include.
2402 * include/std/std_memory.h: Same.
2403 * include/ext/rope: Same.
2404 * include/ext/slist: Same.
2405 * include/std/std_vector.h: Same.
2406 * include/std/std_stack.h: Same.
2407 * include/std/std_queue.h: Same.
2408 * include/std/std_list.h: Same.
2409 * include/std/std_deque.h: Same.
2410 * include/backward/alloc.h: Same.
2411 * include/ext/debug_allocator.h: New.
2412 * include/ext/malloc_allocator.h: New.
2413 * include/ext/pool_allocator.h: New.
2414 * include/ext/new_allocator.h: New.
2415 * include/bits/pthread_allocimpl.h: Remove.
2416 * include/bits/stl_pthread_alloc.h: Remove.
2417 * include/Makefile.am (ext_headers): Add.
2418 * include/Makefile.in: Regenerate.
2419 * src/stl-inst.cc: Use __gnu_cxx namespace.
2420 * src/stl-inst.cc: Move to...
2421 * src/allocator-inst.cc: Here.
2422 * src/Makefile.am (sources): Update.
2423 * src/Makefile.in: Regenerate.
2424 * config/linker-map.gnu: Remove __pool_alloc bits.
2425 * testsuite/ext/headers.cc: Add.
2426 * testsuite/ext/allocators.cc: Fixup.
2428 2003-06-11 Stefan Olsson <stefan@snon.net>
2429 Ola Rönnerup <fnolis@home.se>
2431 * include/Makefile.am (ext_headers): Add.
2432 * include/Makefile.in: Regenerate.
2433 * include/ext/mt_allocator.h: New file.
2435 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
2437 * include/bits/fstream.tcc (close): Clean up a bit.
2439 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
2441 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
2442 - the saved _M_in_cur, that is - cannot be null.
2443 (sync): Constify a variable.
2445 * include/std/std_streambuf.h: Tweak a comment.
2446 (in_avail): Constify a variable.
2448 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
2450 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
2451 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
2452 correctness of container::iterator typedefs. Fix whitespace.
2453 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
2455 * docs/html/documentation.html: Regenerate.
2457 * include/bits/basic_string.h, include/bits/basic_string.tcc,
2458 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
2459 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2460 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
2461 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
2462 include/bits/stl_vector.h, include/bits/vector.tcc,
2463 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
2464 Change _Iter names to _Iterator, and __pos to __position.
2466 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
2467 include/bits/stl_multiset.h, include/bits/stl_set.h:
2468 Remove emacs markers.
2470 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
2472 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
2474 * include/bits/fstream.tcc (overflow): According to
2475 27.5.2.4.5, overflow() returns not_eof(eof()).
2476 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
2477 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
2479 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
2481 * include/bits/fstream.tcc (_M_underflow): Check overflow return
2482 value; tweak slightly.
2484 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
2486 * include/bits/fstream.tcc (_M_underflow): Do not special
2487 case the unbuffered case, which really means simply a one char
2489 (basic_filebuf): Initialize _M_buf_size.
2490 (setbuf): Unbuffered means _M_buf_size == 1, since only
2491 _M_buf_size - 1 == 0 chars are going to be used for the
2492 put area and 1 for the get area.
2493 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
2494 (~basic_streambuf): Tweak.
2495 (basic_streambuf): Do not initialize _M_buf_size.
2496 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
2497 (~basic_filebuf): Tweak.
2498 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
2499 unbuffered situation (i.e., put area pointers NULL).
2500 * include/bits/streambuf.tcc (sbumpc): Clean up.
2501 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
2502 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
2503 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
2504 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
2505 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
2506 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
2507 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
2509 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
2511 * acinclude.m4: Move all AM_CONDITIONAL calls out.
2512 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
2514 * configure.in: Centralize AM_CONDITIONALs so that they are always
2515 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
2516 * aclocal.m4, configure: Regenerated.
2518 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
2520 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
2522 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
2524 * include/bits/stl_iterator.h
2525 (reverse_iterator::reverse_iterator()): Apply DR235: default
2526 constructor default-initializes data member. Instantiated on a
2527 pointer type, the member has to end up equal to zero.
2529 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
2531 * include/bits/stl_alloc.h: Cleanups.
2532 * include/ext/functional: Same.
2533 * include/ext/hash_map: Same.
2534 * include/ext/hash_set: Same.
2535 * include/ext/iterator: Same.
2536 * include/ext/memory: Same.
2537 * include/ext/numeric: Same.
2538 * include/ext/rb_tree: Same.
2539 * include/ext/ropeimpl.h: Same.
2540 * include/ext/slist: Same.
2541 * include/ext/stdio_filebuf.h: Same.
2542 * include/ext/stdio_sync_filebuf.h: Same.
2543 * include/ext/stl_rope.h: Move to...
2544 * include/ext/rope: ...here.
2545 * include/ext/stl_hash_fun.h: Move to...
2546 * include/ext/hash_fun.h: ...here.
2547 * include/ext/stl_hashtable.h: Move to...
2548 * include/ext/hashtable.h: ...here.
2549 * include/backward/hashtable.h: Reflect new names.
2550 * include/Makefile.am: Same.
2551 * include/Makefile.in: Regenerated.
2553 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
2556 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
2557 * include/bits/stl_algobase.h: Tweak.
2558 * include/std/std_fstream.h: Move _M_buf_size to...
2559 * include/std/std_streambuf.h: ...here. Modify.
2560 * include/bits/streambuf.tcc: Same.
2561 * testsuite/testsuite_hooks.h: Tweak.
2562 * testsuite/testsuite_io.h (constraint_filebuf): New.
2563 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
2564 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
2565 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
2566 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
2567 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
2568 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
2569 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
2570 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
2571 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
2572 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
2573 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
2574 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
2575 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
2576 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
2577 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
2578 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
2579 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
2580 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
2581 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
2582 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
2583 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
2584 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
2585 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
2586 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
2587 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
2588 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
2589 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
2590 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
2591 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
2592 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
2593 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
2594 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
2595 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
2596 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
2597 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
2598 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
2599 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
2600 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
2601 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
2602 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
2603 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
2604 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
2605 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
2606 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
2607 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
2608 * testsuite/data/sgetc.txt: New.
2609 * testsuite/data/sgetn.txt: New.
2611 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
2614 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
2615 Deal with width() smaller than zero.
2616 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
2617 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
2618 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
2619 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
2620 operator<<(basic_ostream, const basic_string&)): Likewise.
2622 * testsuite/27_io/basic_istream/extractors_character/char/
2623 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2624 * testsuite/27_io/basic_ostream/inserters_character/char/
2625 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2626 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
2627 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
2629 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2631 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
2632 .gch compilation works.
2633 * aclocal.m4, configure: Regenerate.
2634 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
2635 initialize PCHFLAGS.
2637 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
2639 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
2640 erase(iterator), erase(iterator, iterator), c_str,
2641 compare(const basic_string&)): Constify various variables.
2642 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
2643 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
2644 _S_create, resize, _M_replace, _M_replace_safe,
2645 append(const basic_string&), append(const basic_string&, size_type,
2646 size_type), append(const _CharT*, size_type), append(size_type,
2647 _CharT), operator+(const _CharT*, const basic_string&),
2648 operator+(_CharT, const basic_string&), replace(iterator, iterator,
2649 size_type, _CharT), find(const _CharT*, size_type, size_type),
2650 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
2651 rfind(_CharT, size_type), compare(size_type, size_type,
2652 const basic_string&), compare(size_type, size_type,
2653 const basic_string&, size_type, size_type), compare(const _CharT*),
2654 compare(size_type, size_type, const _CharT*), compare(size_type,
2655 size_type, const _CharT*, size_type)): Likewise.
2657 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
2659 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
2660 'if' branch less obscure.
2662 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
2665 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
2667 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
2668 (__atomic_add): likewise.
2670 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2672 * include/bits/sstream.tcc (pbackfail): Minor clean up and
2673 reformatting, consistent with basic_filebuf::pbackfail.
2675 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
2678 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
2679 __attribute__ ((__unused__)).
2680 * config/os/aix/atomicity.h: Likewise.
2682 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2685 * include/bits/fstream.tcc (pbackfail): If the pback buffer
2686 is already active don't try to store in it a second char.
2687 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
2689 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
2691 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2693 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
2696 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2698 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
2699 instead of unnecessarily taking the address of _M_pback.
2700 (xsgetn): Simplify slightly for a single char pback buffer.
2702 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2704 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
2705 variables and two 'if', clean up.
2707 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2709 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
2710 not _M_out_end, since the former actually points to the string
2711 end (vs buffer end).
2712 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
2714 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
2716 * docs/doxygen/filter: New file.
2717 * docs/doxygen/filter.sed: New file.
2718 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
2719 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
2720 * docs/html/documentation.html: Fix links to doxygen pages.
2722 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
2724 * include/bits/fstream.tcc (_M_convert_to_external): Don't
2725 check for __ilen > 0.
2727 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
2730 * include/bits/stl_iterator.h (class __normal_iterator):
2731 Don't inherit from iterator, add missing typedefs.
2733 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
2735 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
2736 * testsuite/24_iterators/reverse_iterator/1.cc: New.
2737 * testsuite/24_iterators/reverse_iterator/2.cc: New.
2738 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
2741 2003-05-27 Steve Ellcey <sje@cup.hp.com>
2743 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
2745 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
2746 _LIBUNWIND_STD_ABI is set.
2748 2003-05-26 Brendan Kehoe <brendan@zen.org>
2750 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
2751 make sure the number of digits required after the decimal-point
2752 (if any) is exactly the value returned by frac_digits().
2753 * testsuite/22_locale/money_get/get/char/9.cc: New.
2754 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
2756 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
2758 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
2761 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
2764 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
2765 (_M_pback): No array necessary.
2766 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
2767 unbuffered case, coalesec into ...
2768 (basic_filebuf::overflow): ...this.
2769 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
2770 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
2772 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
2774 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
2775 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
2776 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
2777 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
2778 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
2779 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
2780 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
2781 libsupc++/eh_unex_handler.cc, libsupc++/exception,
2782 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
2783 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
2784 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
2785 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
2786 Replace "GNU CC" with "GCC".
2788 * include/backward/new.h: Replace "GNU CC" with "GCC".
2790 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
2793 * configure.in: Switch target to host, don't assume newlib.
2794 (target_alias): Remove.
2795 * configure: Regenerate.
2796 * acinclude.m4: Same.
2797 * aclocal.m4: Regenerate.
2798 * configure.target: Same. Rename to...
2799 * configure.host: This.
2801 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
2803 * include/std/std_fstream.h (_S_pback_size): Remove definition.
2804 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
2806 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
2807 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
2808 of _S_pback_size for systems with no COMDAT or weak support.
2809 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
2810 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
2811 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
2812 * testsuite/27_io/basic_fstream/3.cc: Likewise.
2813 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2814 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
2815 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
2816 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
2817 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
2819 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
2821 * include/bits/fstream.tcc (_M_underflow): Simplify:
2822 !__testout implies _M_filepos == _M_in_end, therefore
2823 the first _M_file.seekoff call is never issued.
2825 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
2827 * configure.in: Sort cross table.
2828 * configure: Regenerate.
2830 2003-05-22 Brad Spencer <spencer@infointeractive.com>
2833 * configure.in: Add Solaris cross bits.
2835 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2837 * libstdc++-v3/config/os/mingw32/os_defines.h
2838 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
2839 (NOMINMAX): Define. Update copyright year.
2841 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
2843 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
2845 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
2847 * docs/html/faq/index.html: Fix typo.
2848 * docs/html/faq/index.txt: Regenerate.
2850 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
2852 * docs/html/test.html: Fix markup.
2854 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2856 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
2858 Update copyright year.
2860 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
2862 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
2864 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
2866 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
2867 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
2869 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2871 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
2872 Cast via void* to avoid -Wcast-align warnings.
2873 (__default_alloc_template::_S_refill): Likewise.
2875 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
2877 * testsuite/README: Move to...
2878 * docs/html/test.html: ...here. Add documentation.
2879 * docs/html/install.html: Move testing bits out..
2880 * docs/html/documentation.html: Add separate testing link.
2881 * testsuite/performance: Add.
2882 * testsuite/performance/allocator.cc: New.
2883 * testsuite/performance/complex_norm.cc: New.
2884 * testsuite/performance/cout_insert_int.cc: New.
2885 * testsuite/performance/fstream_seek_write.cc: New.
2886 * testsuite/performance/ifstream_getline.cc: New.
2887 * testsuite/performance/map_create_fill.cc: New.
2888 * testsuite/performance/ofstream_insert_float.cc: New.
2889 * testsuite/performance/ofstream_insert_int.cc: New.
2890 * testsuite/performance/string_append.cc: New.
2891 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
2894 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
2897 * include/std/std_complex.h (pow): Tidy.
2899 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
2901 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
2902 that upon filebuf::close() 27.8.1.1,3 is enforced.
2904 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
2906 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
2908 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
2909 Nathan Myers <ncm@cantrip.org>
2911 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
2912 _M_convert_to_external only once (_M_buf_size is now the size of
2913 the put area + 1 for the overflow char of a full area); call
2914 _M_set_buffer instead of _M_set_indeterminate.
2915 (setbuf): Don't accept a buffer smaller than 2 chars.
2916 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
2917 instead of _M_set_determinate.
2918 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
2919 (seekoff): Likewise.
2920 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
2921 std::ios_base::openmode, bool, size_t),
2922 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
2924 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
2925 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
2927 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
2928 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
2929 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
2930 the put area is now BUFSIZ - 1.
2931 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
2932 that now the smallest _M_buf_size is 2 (still fails, for the same
2935 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
2937 * testsuite/thread/pthread4.cc: Tweak test.
2939 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
2941 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
2942 excess errors dg marker, use dg-errors instead.
2943 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
2944 * testsuite/20_util/auto_ptr_neg.cc: Same.
2946 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2948 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
2950 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
2951 Initialize _M_codecvt.
2952 (basic_filebuf::imbue): Same.
2953 (basic_filebuf::showmanyc): Use it.
2954 (basic_filebuf::underflow): Use it.
2955 (basic_filebuf::_M_convert_to_external): Use it.
2956 (basic_filebuf::seekoff): Use it.
2957 (basic_filebuf::imbue): Use it, tweaks.
2958 * include/bits/localefwd.h (__check_facet): New.
2959 * include/bits/locale_classes.h: Tweaks.
2960 * include/bits/locale_facets.tcc: Tweaks.
2961 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
2962 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
2963 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
2964 * include/bits/basic_ios.tcc: Same.
2965 * include/bits/istream.tcc: Same.
2966 * include/bits/ostream.tcc: Same.
2967 * include/std/std_streambuf.h: Same.
2968 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
2969 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
2970 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
2971 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
2972 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
2973 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
2975 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
2977 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
2978 unnecessary includes and unused string literals.
2979 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2980 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2981 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2982 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2984 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2986 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
2988 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
2990 * include/std/std_fstream.h (_M_convert_to_external): Change
2991 to return bool, take two less streamsize parameters.
2992 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
2993 consistently definition.
2994 (_M_overflow): Adjust call points.
2996 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2998 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
3000 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
3002 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
3003 * testsuite/Makefile.in: Regenerate.
3005 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
3007 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
3008 * testsuite/Makefile.in: Regenerate.
3010 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3013 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
3014 (acos): Handle integer argument.
3033 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
3034 (__enable_if): Likewise.
3035 * testsuite/26_numerics/cmath/overloads.C: New test.
3037 2003-05-10 Petur Runolfsson <peturr02@ru.is>
3042 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
3043 implementation, based on old wchar_t specialization, add support
3044 for codecvt::in() return value of codecvt_base::noconv, remove
3045 _M_file.sys_ungetc() call.
3046 * include/std/std_fstream.h (basic_file::underflow,
3047 basic_file::uflow, basic_file::_M_underflow): Remove
3048 specialization declarations, call _M_underflow from generic versions
3049 of underflow and uflow.
3050 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
3051 basic_file::_M_underflow): Remove specializations.
3052 * src/Makefile.am (sources): Remove fstream.cc.
3053 * src/Makefile.in: Regenerated.
3054 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
3055 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
3056 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
3057 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
3059 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
3061 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
3063 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
3065 (__basic_file::xsputn): Same.
3066 (__basic_file::seekoff): Same.
3067 (__basic_file::seekpos): Same.
3068 (__basic_file::showmanyc): Same.
3069 * config/io/basic_file_stdio.cc: Same.
3070 * include/std/std_fstream.h: Same.
3071 * include/bits/fstream.tcc: Same.
3072 * src/fstream.cc: Same.
3073 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
3075 2003-05-10 Petur Runolfsson <peturr02@ru.is>
3080 * include/ext/stdio_sync_filebuf.h: New file.
3081 (basic_stdiobuf): New.
3082 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
3083 * include/Makefile.in: Regenerate.
3084 * include/bits/ios_base.h (Init::_S_create_buffers,
3085 Init::_S_destroy_buffers): Remove declarations.
3086 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
3087 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
3088 * src/ios.cc (Init::_S_create_buffers,
3089 Init::_S_destroy_buffers): Remove.
3090 (Init::Init): Create and use syncronized buffers.
3091 (ios_base::sync_with_stdio): Destroy syncronized buffers,
3092 create and install unsyncronized buffers.
3093 * testsuite/27_io/objects/char/10.cc: New test.
3094 * testsuite/27_io/objects/char/9.cc: New test.
3095 * testsuite/27_io/objects/char/9661-1.cc: New test.
3096 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
3097 * testsuite/27_io/objects/char/9661-2_xin.in: New.
3098 * testsuite/27_io/objects/wchar_t/1.cc: New test.
3099 * testsuite/27_io/objects/wchar_t/10.cc: New test.
3100 * testsuite/27_io/objects/wchar_t/2.cc: New test.
3101 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
3102 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
3103 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
3104 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
3105 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
3106 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
3107 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
3108 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
3109 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
3110 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
3111 * testsuite/27_io/objects/wchar_t/5.cc: New test.
3112 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
3113 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
3114 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
3115 * testsuite/27_io/objects/wchar_t/6.cc: New test.
3116 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
3117 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
3118 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
3119 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
3120 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
3121 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
3122 * testsuite/27_io/objects/wchar_t/7.cc: New test.
3123 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
3124 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
3125 * testsuite/27_io/objects/wchar_t/8.cc: New test.
3126 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
3127 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
3128 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
3129 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
3130 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
3131 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
3132 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
3133 * testsuite/ext/stdiobuf_char.cc: New test.
3134 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
3136 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
3138 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
3139 unnecessary includes and unused string literals.
3140 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3142 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
3144 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
3146 2003-05-07 Richard Henderson <rth@redhat.com>
3149 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
3150 (__cxa_end_catch): Likewise.
3151 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
3152 _Unwind_Resume_or_Rethrow.
3153 * libsupc++/eh_personality.cc (empty_exception_spec): New.
3154 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
3155 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
3156 exceptions. Don't push terminate/unexpected to cxa functions.
3157 (__cxa_call_unexpected): Remove foreign exception fixmes.
3159 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
3161 * testsuite/27_io/ios_base/cons: New.
3162 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
3163 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
3165 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
3167 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
3169 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
3170 there is no buffer or __testget == !__testinit.
3173 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
3174 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
3176 * include/std/std_fstream.h (_M_destroy_pback): Don't set
3177 unnecessarily _M_pback_cur_save and _M_pback_end_save.
3179 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
3181 * include/std/std_sstream.h (_M_sync): Minor tweak.
3183 * include/bits/fstream.tcc (close): No need to call
3184 _M_destroy_pback, setting _M_pback_init to false suffices
3187 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
3189 * include/bits/stl_algo.h: Enums as _S_.
3190 * include/bits/stl_tree.h: Same.
3191 * include/bits/stl_bvector.h: Same.
3192 * include/bits/ios_base.h: Same.
3193 * include/bits/stl_alloc.h: Same.
3194 * include/ext/stl_hashtable.h: Same.
3195 * src/ios.cc: And here.
3197 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
3198 * include/bits/sstream.tcc: Same.
3200 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
3202 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
3204 * include/bits/locale_facets.h (__num_base): Remove protected.
3205 Use _S_[io]* names for enumerations.
3206 (_S_format_int): Remove.
3207 * include/bits/locale_facets.tcc: Same.
3208 * src/locale.cc: Same.
3210 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
3212 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
3214 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
3215 * docs/html/faq/index.txt: Regenerated.
3217 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
3218 Matt Kraai <kraai@alumni.cmu.edu>
3220 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
3223 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
3225 * configure.target (mips*): Use the generic atomicity.h by default.
3227 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
3228 (Inspired by an alternate patch from Danny Smith.)
3230 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
3231 (_Swap_lock_struct<>): ...and the horse it rode in on.
3232 * src/globals.cc (_Swap_lock_struct<>): Likewise.
3233 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
3234 member to support...
3235 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
3236 visibility rules related to POSIX threads.
3237 * testsuite/thread/pthread7-rope.cc: New test.
3239 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
3241 * testsuite/21_strings/basic_string/find/char/3.cc: New
3242 file, testing basic_string<char>::find_first_not_of.
3243 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
3244 Likewise for basic_string<wchar_t>.
3246 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
3248 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
3250 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
3252 * include/Makefile.am (CLEANFILES): Remove PCH files in target
3254 * include/Makefile.in: Regenerate.
3256 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
3258 * include/std/std_sstream.h (str()): Tidy.
3260 2003-05-02 Nathan Myers <ncm@cantrip.org>
3261 Paolo Carlini <pcarlini@unitus.it>
3263 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
3265 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
3267 * include/bits/basic_string.h (swap): Remove redundant template
3268 parameters from declaration of non-template member function.
3270 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
3272 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
3273 * configure.in: Move libintl.h header test...
3274 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
3275 the NLS-related test results into one symbol.
3276 * src/functexcept.cc: Use it here.
3277 * aclocal.m4, config.h.in, configure: Regenerated.
3279 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3281 * include/bits/sstream.tcc (overflow): Instead of calling
3282 str(), then _M_string.reserve, thus copying the contents
3283 of the current buffer two times, just copy the latter in
3284 a temporary, then use the 'swap trick'.
3286 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3288 * include/std/std_sstream.h (str()): Revert the best of the
3289 previous 'improvement', incorrect due to the COW nature of
3290 v3 basic_string; simplify.
3292 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3294 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
3295 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
3297 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
3299 * testsuite/abi_check.cc (check_version): Update known versions.
3300 Check added symbols for version_name != base version. Add missing
3301 symbols to incompatible list.
3303 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
3305 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
3306 * aclocal.m4: Regenerated.
3307 * configure: Regenerated.
3309 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3311 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
3312 Const-ify some variables.
3313 (basic_streambuf::xsputn): Likewise; change the type of some
3314 variables to size_t.
3315 (__copy_streambufs): Change some variables to size_t.
3317 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3319 * include/std/std_sstream.h (str()): Avoid constructing
3320 a basic_string temporary not only when it would turn out
3321 to be zero-sized but also when identical to the current
3324 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3326 * include/ext/stdio_filebuf.h
3327 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
3328 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
3329 Shorten a bit (-10 lines) by factoring out some code.
3331 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
3333 * acinclude.m4: Add bit missing from previous patch.
3334 * aclocal.m4, configure: Regenerated.
3336 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
3338 * docs/doxygen/mainpage.html: Bring up to date.
3339 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
3341 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
3342 breaks everything. Don't scan them.
3343 * docs/html/documentation.html: Point to "Write after approval"
3346 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
3348 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
3349 of libc if message translations are being used. Fix info text in
3350 xieee_1003.1-2001 case.
3351 * aclocal.m4, configure: Regenerate.
3353 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
3354 Loren J. Rittle <ljrittle@acm.org>
3355 Martin v. Loewis <martin@v.loewis.de>
3357 * config/cpu/i386/atomicity.h: New file.
3359 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
3361 * include/bits/fstream.tcc (open): Change to single return.
3363 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
3365 * include/std/std_sstream.h (underflow): Change to single return.
3367 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
3369 * include/std/std_streambuf.h (_M_buf): is currently
3370 used only for basic_filebuf, therefore move it there.
3371 (basic_streambuf(), ~basic_streambuf()): Adjust.
3372 * include/std/std_fstream.h (_M_buf): Moved here.
3373 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
3374 is actually redundant for basic_stringbuf.
3375 (_M_really_sync): Likewise.
3376 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
3377 * include/bits/sstream.tcc (seekoff): Adjust.
3379 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
3381 * src/localename.cc: Standardize exception strings.
3382 * src/locale.cc: Same.
3384 * include/bits/basic_string.tcc: Same.
3385 * include/bits/basic_ios.tcc: Same.
3386 * include/std/std_bitset.h: Same.
3387 * include/ext/ropeimpl.h: Same.
3388 * include/bits/stl_vector.h: Same.
3389 * include/bits/stl_deque.h: Same.
3390 * include/bits/stl_bvector.h: Same.
3391 * config/locale/generic/c_locale.cc: Same.
3392 * config/locale/gnu/c_locale.cc: Same.
3393 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
3395 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
3397 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
3399 * include/std/std_streambuf.h (_M_buf_size): is currently
3400 used only for basic_filebuf, therefore move it there.
3401 (basic_streambuf(), ~basic_streambuf()): Adjust.
3402 * include/std/std_fstream.h (_M_buf_size): Moved here.
3403 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
3405 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
3407 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
3408 _M_buf_size (synced input is now correctly dealt with
3409 elsewhere); when the output buffer is full don't fall back
3410 to a snextc-sputc loop, call overflow instead.
3412 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
3414 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
3415 the innermost 'if' by factoring out some code.
3417 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
3419 * configure.in: Test for libintl.h.
3420 * include/bits/c++config: Define __N for everybody.
3421 * include/bits/basic_string.h, include/bits/stl_bvector.h,
3422 include/bits/stl_deque.h, include/bits/stl_vector.h,
3423 include/std/std_bitset.h: Wrap all __throw* text with __N.
3424 * po/Makefile.am (pot): New rule, mostly working.
3425 * src/functexcept.cc: Call gettext on all __throw* arguments when
3426 -fexceptions is in effect.
3427 * po/Makefile.in, config.h.in, configure: Regenerate.
3429 2003-04-28 Petur Runolfsson <peturr02@ru.is>
3432 * include/bits/ios_base.h (Init::_S_ios_create,
3433 Init::_S_ios_destroy): Remove declarations.
3434 (Init::_S_create_buffers,
3435 Init::_S_destroy_buffers): Declare
3436 * src/ios.cc (Init::_S_ios_create): Remove
3437 (Init::_S_create_buffers): Create buffers and add to streams.
3438 (Init::_S_ios_destroy): Rename to...
3439 (Init::_S_destroy_buffers): this.
3440 (Init::Init): Only construct streams once.
3441 (Init::~Init): Flush streams, don't destroy them.
3442 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
3443 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
3444 * testsuite/27_io/objects/char/5.cc: New test.
3445 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
3446 * testsuite/27_io/objects/char/6.cc: New test.
3447 * testsuite/27_io/objects/char/7.cc: New test.
3449 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
3451 * testsuite/27_io/objects/char/8.cc: New test.
3453 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
3455 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
3456 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
3458 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
3460 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
3461 _M_destroy_pback. _M_pback_create to
3462 _M_create_pback. _M_underflow_common to
3463 _M_underflow. _M_really_overflow to _M_overflow.
3464 * include/bits/fstream.tcc: Same.
3465 * src/fstream.cc: Same.
3466 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
3467 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
3468 * include/bits/streambuf.tcc: Same.
3469 * include/bits/fstream.tcc: Same.
3470 * include/bits/sstream.tcc: Same.
3472 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
3474 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
3475 from fixed size array.
3476 (locale): Change _S_categories as well.
3478 * include/bits/locale_facets.tcc: Tweak.
3479 * config/locale/gnu/c_locale.cc: Assign _S_categories.
3480 * config/locale/generic/c_locale.cc: Same.
3481 * src/locale.cc: Tweak.
3482 * src/globals.cc: Change facet_name to name_vec, add names_c.
3483 * src/localename.cc: Use them.
3484 (locale::_Impl::~_Impl): Destroy _M_names.
3485 (locale::_Impl::_Impl): Create _M_names.
3487 2003-04-27 Andreas Schwab <schwab@suse.de>
3489 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3490 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
3492 2003-04-27 Nathan Myers <ncm@cantrip.org>
3494 Move some basic_string members out of line because
3495 they are too big to reasonably be inline.
3496 * include/bits/basic_string.h
3497 (assign(const basic_string&, size_type, size_type),
3498 assign(const _CharT*, size_type),
3499 insert(size_type, const basic_string&, size_type, size_type),
3500 insert(size_type, const _CharT*, size_type),
3501 replace(size_type, size_type, const _CharT*, size_type)):
3502 Move from here to...
3503 * include/bits/basic_string.tcc: ...here.
3505 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
3507 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
3508 the innermost 'if' by factoring out some code.
3510 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
3512 * include/bits/streambuf.tcc (__copy_streambufs): Don't
3513 use in_avail(), simplify.
3515 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
3517 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
3518 in basic_stringbuf it's unused.
3520 * include/std/std_sstream.h (underflow): consistently use
3521 _M_in_cur, not gptr().
3523 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
3524 Phil Edwards <pme@gcc.gnu.org>
3526 * testsuite_flags.in: Guard against the possibility
3527 of having "xgcc" as a part of a folder name in the
3528 path to the GCC build folder.
3529 * testsuite/Makefile.am: Likewise.
3530 * testsuite/Makefile.in: Regenerated.
3532 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
3535 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
3536 exception specifications.
3537 (basic_filebuf::close): Same.
3538 (basic_filebuf::_M_pback_destroy): Same.
3539 (basic_filebuf::_M_destroy_internal_buffer): Same.
3540 (basic_filebuf): Remove __res_type typedef.
3541 * src/fstream.cc: Same.
3542 * include/bits/fstream.tcc
3543 (basic_filebuf::_M_convert_to_external): Simplify.
3544 (basic_filebuf::seekoff): Use has_facet before use_facet.
3545 (basic_filebuf::close): Add exception specification of throw().
3546 * testsuite/27_io/basic_filebuf/cons: New.
3547 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
3548 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
3549 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
3550 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
3552 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
3554 * include/bits/locale_classes.h
3555 (locale::_S_extra_categories_size): Remove.
3556 * src/locale.cc: Remove _S_extra_categories_size.
3557 * src/localename.cc: Same.
3558 * config/locale/gnu/c_locale.cc: Same.
3559 * config/locale/generic/c_locale.cc: Same.
3561 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
3563 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
3565 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
3567 * docs/html/17_intro/howto.html: Update some links.
3568 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
3569 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
3570 * docs/html/ext/howto.html: Link to demangler notes and API.
3571 * docs/html/faq/index.html: Remove trailing whitespace.
3572 (1.4, 2.4, 3.8, 4.1): Bring up to date.
3573 (5.6): Change to a bulleted list.
3575 * docs/html/faq/index.txt, docs/html/documentation.html,
3576 docs/html/17_intro/porting.html: Regenerate.
3578 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
3580 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
3581 belongs to basic_filebuf.
3582 * testsuite/27_io/basic_fstream/3.cc: Likewise.
3583 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3584 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
3585 instantiation (now belongs to basic_filebuf).
3586 * testsuite/27_io/basic_iostream/3.cc: Likewise.
3587 * testsuite/27_io/basic_istream/3.cc: Likewise.
3588 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3589 _S_pback_size now belongs to basic_filebuf.
3590 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
3591 instantiation (now belongs to basic_filebuf).
3592 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
3593 belongs to basic_filebuf.
3594 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
3595 instantiation (now belongs to basic_filebuf).
3596 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
3597 _S_pback_size now belongs to basic_filebuf.
3598 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
3599 instantiation (now belongs to basic_filebuf).
3600 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
3602 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
3603 instantiation (now belongs to basic_filebuf).
3604 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
3606 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
3608 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
3609 * configure: Regenerated.
3611 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
3613 * config/locale/generic/c_locale.h (__convert_from_v): Use
3616 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
3618 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
3619 implementation only.
3620 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
3621 Comment and change to comply with DR 60 and the effect on gcount().
3622 * include/std/std_istream.h: Update comments.
3623 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
3624 comments about reasons for tests. Test sync() against gcount().
3625 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
3626 for effect on gcount().
3627 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
3628 for effect on gcount().
3630 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
3632 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
3635 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
3637 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
3638 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3639 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
3640 (basic_streambuf::basic_streambuf()): Adjust.
3641 * include/std/std_fstream.h (_S_pback_size, _M_pback,
3642 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3643 _M_pback_create(), _M_pback_destroy()): Moved here
3644 from basic_streambuf.
3645 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
3647 (basic_filebuf::_S_pback_size): Add declaration.
3648 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
3651 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3653 Consistently use _M_in_beg instead of eback(), _M_in_cur
3654 instead of gptr(), and so on.
3655 * include/bits/fstream.tcc (pbackfail, imbue): Here.
3656 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
3657 * include/bits/streambuf.tcc (sbumpc, sputbackc,
3658 __copy_streambufs): Ditto.
3659 * include/std/std_streambuf.h (sgetc): Ditto.
3661 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3663 * include/bits/sstream.tcc (pbackfail, overflow):
3666 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3668 * include/std/std_streambuf.h (uflow()): It's used only by
3669 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
3670 therefore do not consider the _M_buf_unified == true case.
3672 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
3674 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
3676 * docs/html/ext/howto.html ('LWG Issues'):
3677 Add issues 19, 90, 171, 231, 271.
3679 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
3681 * include/bits/sstream.tcc (pbackfail): Remove redundant
3682 NULL pointer check from test involving _M_in_*.
3683 (overflow, seekoff, seekpos): Const qualify bool variables.
3684 * include/std/std_sstream.h (underflow): Remove redundant
3685 NULL pointer check from test involving _M_in_*.
3686 (_M_really_sync): Const qualify bool variables.
3687 * src/fstream.cc (_M_underflow_common): Remove redundant
3688 NULL pointer check from test involving _M_in_*, const qualify
3691 * include/std/std_streambuf.h (sgetc): Remove redundant
3694 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
3696 According to 5.9 para 2 (second bullet) for pointers p, q
3697 pointing to the same type, with p == 0 and q == 0, (p < q)
3699 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
3700 seekoff): Remove redundant NULL pointer checks from tests
3701 involving _M_out_* and _M_in_*, const qualify bool variables.
3702 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
3703 qualify bool variables.
3704 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
3705 Remove redundant NULL pointer checks from tests involving
3706 _M_out_* and _M_in_*, const qualify bool variables.
3707 * include/std/std_fstream.h (sync): Likewise.
3708 (_M_is_indeterminate): Const qualify bool variables.
3709 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
3710 NULL pointer checks from tests involving _M_out_* and _M_in_*,
3711 const qualify bool variables.
3712 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
3715 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
3717 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
3718 C99 FP macros, if actually captured.
3720 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
3721 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3722 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3723 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3724 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
3726 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3727 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3728 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3729 * include/c_std/std_cstdlib.h: Use new macros.
3730 * include/c_std/std_cstdio.h: Use new macros.
3731 * include/c_std/std_cwchar.h: Use new macros.
3733 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
3736 * include/bits/ostream.tcc: Catch all exceptions for formatted
3737 output, instead of std::exception and derivatives.
3738 * include/bits/istream.tcc: Same.
3739 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
3740 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
3741 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
3742 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
3743 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3744 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
3747 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
3749 * include/bits/c++config: Minor cosmetic tweaks.
3751 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
3753 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
3754 * include/Makefile.am (pch_input): Find in ${target_builddir}.
3755 (pch_output): Rename to...
3756 (pch_output_builddir): ..this. Find in ${target_builddir}.
3757 (pch_source): Tweak.
3758 (pch_build): Key off a built file.
3759 (pch_output rule): Rename to...
3760 (pch_input rule): ...this. Produce ${pch_output_builddir}
3761 instead of ${pch_output}.
3762 (install-pch rule): Install ${pch_output_builddir}.
3763 * include/Makefile.in: Regenerated.
3765 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
3767 * include/std/std_streambuf.h (setp): _M_out_lim, being
3768 the end limit of used put area, is set equal to _M_out_beg.
3770 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
3772 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
3773 * aclocal.m4: Regenerated.
3774 * configure.in: Remove old demangler bits.
3776 * configure: Regenerate.
3777 * config.h.in: Regenerate.
3778 * include/Makefile.am (allstamps): Now allstamped.
3779 (allcreated): Define this.
3780 (all-local): Use 'em.
3781 Conditionally define pch_build, pch_install based on
3783 (${pch_output}): New rule.
3784 (install-pch): New rule.
3785 (install-headers): New rule.
3786 (install-data-local): Install headers and conditionally pch.
3787 * include/Makefile.in: Regenerate.
3788 * testsuite_flags.in (--build-cxx): Use pch file.
3790 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
3792 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
3794 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
3795 Paolo Carlini <pcarlini at unitus dot it>
3798 * docs/html/27_io/howto.html
3799 ('The buffering is screwing up my program!'): Explain that
3800 opening counts as an I/O operation.
3802 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
3804 * testsuite/thread/pthread1.cc: Enable for darwin test.
3805 * testsuite/thread/pthread2.cc: Same.
3806 * testsuite/thread/pthread3.cc: Same.
3807 * testsuite/thread/pthread4.cc: Same.
3808 * testsuite/thread/pthread5.cc: Same.
3809 * testsuite/thread/pthread6.cc: Same.
3811 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
3814 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
3815 Populate it with multiple legal ways to obtain the C99 float
3816 transcendentals. Use them instead of direct global reference.
3817 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
3818 * docs/html/17_intro/porting.texi
3819 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3820 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3821 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
3822 * config/os/bsd/freebsd/os_defines.h
3823 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3824 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3825 * testsuite/26_numerics/c_math_dynamic.cc: New file.
3827 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
3828 Benjamin Kosnik <bkoz@redhat.com>
3830 * config/os/generic/ctype_inline.h: Fix.
3832 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
3834 * testsuite/testsuite_hooks.h
3835 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
3836 Change to try_named_locale.
3837 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
3839 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
3841 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3842 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3843 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
3844 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
3845 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
3846 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
3847 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
3848 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
3849 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
3850 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
3851 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
3852 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
3853 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
3854 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
3855 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
3856 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3857 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3858 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3859 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
3860 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
3861 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
3862 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
3863 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
3864 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
3865 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
3866 * testsuite/22_locale/collate/compare/char/1.cc: Same.
3867 * testsuite/22_locale/collate/compare/char/2.cc: Same.
3868 * testsuite/22_locale/collate/compare/char/3.cc: Same.
3869 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
3870 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
3871 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
3872 * testsuite/22_locale/collate/hash/char/2.cc: Same.
3873 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
3874 * testsuite/22_locale/collate/transform/char/2.cc: Same.
3875 * testsuite/22_locale/collate/transform/char/3.cc: Same.
3876 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
3877 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
3878 * testsuite/22_locale/collate_byname/1.cc: Same.
3879 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3880 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3881 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
3882 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
3883 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
3884 * testsuite/22_locale/facet/2.cc: Same.
3885 * testsuite/22_locale/locale/cons/2.cc: Same.
3886 * testsuite/22_locale/locale/cons/4.cc: Same.
3887 * testsuite/22_locale/locale/cons/5.cc: Same.
3888 * testsuite/22_locale/locale/cons/7.cc: Same.
3889 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
3890 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
3891 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
3892 * testsuite/22_locale/messages/members/char/1.cc: Same.
3893 * testsuite/22_locale/messages/members/char/2.cc: Same.
3894 * testsuite/22_locale/messages/members/char/3.cc: Same.
3895 * testsuite/22_locale/messages_byname/1.cc: Same.
3896 * testsuite/22_locale/money_get/get/char/1.cc: Same.
3897 * testsuite/22_locale/money_get/get/char/2.cc: Same.
3898 * testsuite/22_locale/money_get/get/char/3.cc: Same.
3899 * testsuite/22_locale/money_get/get/char/4.cc: Same.
3900 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
3901 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
3902 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
3903 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
3904 * testsuite/22_locale/money_put/put/char/1.cc: Same.
3905 * testsuite/22_locale/money_put/put/char/2.cc: Same.
3906 * testsuite/22_locale/money_put/put/char/3.cc: Same.
3907 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
3908 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
3909 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
3910 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
3911 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
3912 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
3913 * testsuite/22_locale/num_get/get/char/1.cc: Same.
3914 * testsuite/22_locale/num_get/get/char/2.cc: Same.
3915 * testsuite/22_locale/num_get/get/char/3.cc: Same.
3916 * testsuite/22_locale/num_get/get/char/5.cc: Same.
3917 * testsuite/22_locale/num_get/get/char/6.cc: Same.
3918 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
3919 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
3920 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
3921 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
3922 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
3923 * testsuite/22_locale/num_put/put/char/1.cc: Same.
3924 * testsuite/22_locale/num_put/put/char/2.cc: Same.
3925 * testsuite/22_locale/num_put/put/char/3.cc: Same.
3926 * testsuite/22_locale/num_put/put/char/5.cc: Same.
3927 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
3928 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
3929 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
3930 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
3931 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
3932 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
3933 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
3934 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
3935 * testsuite/22_locale/numpunct_byname/1.cc: Same.
3936 * testsuite/22_locale/numpunct_byname/2.cc: Same.
3937 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
3938 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
3939 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
3940 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
3941 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
3942 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
3943 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
3944 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
3945 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
3946 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
3947 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
3948 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
3949 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
3950 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
3951 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
3952 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
3953 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
3954 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
3955 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
3956 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
3957 * testsuite/22_locale/time_put/put/char/1.cc: Same.
3958 * testsuite/22_locale/time_put/put/char/2.cc: Same.
3959 * testsuite/22_locale/time_put/put/char/3.cc: Same.
3960 * testsuite/22_locale/time_put/put/char/4.cc: Same.
3961 * testsuite/22_locale/time_put/put/char/5.cc: Same.
3962 * testsuite/22_locale/time_put/put/char/6.cc: Same.
3963 * testsuite/22_locale/time_put/put/char/7.cc: Same.
3964 * testsuite/22_locale/time_put/put/char/8.cc: Same.
3965 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
3966 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
3967 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
3968 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
3969 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
3970 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
3971 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
3972 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
3973 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
3974 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
3975 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
3976 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
3977 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
3979 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
3981 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
3982 solaris includes, not generic.
3984 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
3986 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
3988 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
3989 * include/bits/concept_check.h: Fix multi-line comment.
3990 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
3991 when target is *-*-freebsd*.
3993 2003-04-14 Nathan Myers <ncm@cantrip.org>
3994 Paolo Carlini <pcarlini@unitus.it>
3996 PR libstdc++/9701 (in_avail())
3997 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
3998 doesn't care if there is anything in some putback cell.
3999 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
4001 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
4002 unused string literals.
4004 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
4006 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
4007 _M_out_end, _M_set_indeterminate() does it.
4009 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4011 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
4013 2003-04-12 David Edelsohn <edelsohn@gnu.org>
4015 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4016 Change basic_streambuf instantiation to "unsigned char".
4017 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
4019 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
4021 Remove _M_buf_size_opt, use directly _M_buf_size instead.
4022 * include/bits/fstream.tcc
4023 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
4024 references to _M_buf_size_opt.
4025 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
4026 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
4027 __bufsize to __in_avail and __size_opt to __buf_size.
4028 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
4029 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
4030 * include/std/std_streambuf.h (~basic_streambuf(),
4031 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
4032 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
4033 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
4034 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
4035 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
4036 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
4037 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
4038 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
4039 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
4040 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
4041 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
4042 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
4043 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
4045 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
4047 * include/ext/stdio_filebuf.h
4048 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
4049 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
4050 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
4051 since a stack-based buffer is used for small values of the size_t
4053 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
4054 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
4055 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
4057 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
4060 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
4061 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
4063 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
4065 * testsuite/22_locale/locale/cons/3.cc: Split.
4066 * testsuite/22_locale/locale/cons/7222-c.cc: New.
4067 * testsuite/22_locale/locale/cons/7222-env.cc: New.
4068 Check before trying to create a locale from the environment.
4069 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
4070 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
4073 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
4075 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
4076 locale to construct this hybrid locale, not the global locale.
4078 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
4080 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
4081 instantiation for AIX.
4082 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
4083 * testsuite/25_algorithms/min_max.cc: Same.
4085 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4087 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
4088 twice. Always set _M_cfile to 0 when stream was open.
4090 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
4092 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
4093 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
4094 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
4095 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
4096 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
4097 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
4098 ifstream_members.cc, instantiations.cc, ios.cc,
4099 ios_base_callbacks.cc, ios_base_members_static-1.tst,
4100 ios_base_members_static.cc, ios_base_storage.cc,
4101 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
4102 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
4103 iostream.cc, iostream_members.cc, istream.cc,
4104 istream_exception.cc, istream_extractor_char.cc,
4105 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
4106 istream_extractor_other-2.tst, istream_extractor_other.cc,
4107 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
4108 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
4109 istream_sentry.cc, istream_unformatted-1.tst,
4110 istream_unformatted-1.txt, istream_unformatted.cc,
4111 istringstream.cc, istringstream_members.cc,
4112 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
4113 ofstream_members.cc, ostream.cc, ostream_exception.cc,
4114 ostream_fail.cc, ostream_inserter_arith.cc,
4115 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
4116 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
4117 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
4118 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
4119 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
4120 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
4121 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
4122 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
4123 wide_stream_objects.cc, istream_extractor_arith/01.cc,
4124 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
4125 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
4126 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
4127 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
4128 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
4130 * 27_io/basic_filebuf/1.cc: New.
4131 * 27_io/basic_filebuf/2.cc: New.
4132 * 27_io/basic_filebuf/3.cc: New.
4133 * 27_io/basic_filebuf/4.cc: New.
4134 * 27_io/basic_filebuf/close/char/1.cc: New.
4135 * 27_io/basic_filebuf/close/char/2.cc: New.
4136 * 27_io/basic_filebuf/close/char/3.cc: New.
4137 * 27_io/basic_filebuf/close/char/4879.cc: New.
4138 * 27_io/basic_filebuf/close/char/9964.cc: New.
4139 * 27_io/basic_filebuf/imbue/char/1.cc: New.
4140 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
4141 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
4142 * 27_io/basic_filebuf/is_open/char/1.cc: New.
4143 * 27_io/basic_filebuf/open/char/1.cc: New.
4144 * 27_io/basic_filebuf/open/char/2.cc: New.
4145 * 27_io/basic_filebuf/open/char/3.cc: New.
4146 * 27_io/basic_filebuf/open/char/9507.cc: New.
4147 * 27_io/basic_filebuf/overflow/char/1.cc: New.
4148 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
4149 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
4150 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
4151 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
4152 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
4153 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
4154 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
4155 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
4156 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
4157 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
4158 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
4159 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
4160 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
4161 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
4162 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
4163 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
4164 * 27_io/basic_filebuf/snextc/char/1.cc: New.
4165 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
4166 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
4167 * 27_io/basic_filebuf/sputc/char/1.cc: New.
4168 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
4169 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
4170 * 27_io/basic_filebuf/sputn/char/1.cc: New.
4171 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
4172 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
4173 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
4174 * 27_io/basic_filebuf/sync/char/1057.cc: New.
4175 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
4176 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
4177 * 27_io/basic_fstream/1.cc: New.
4178 * 27_io/basic_fstream/2.cc: New.
4179 * 27_io/basic_fstream/3.cc: New.
4180 * 27_io/basic_fstream/4.cc: New.
4181 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
4182 * 27_io/basic_ifstream/1.cc: New.
4183 * 27_io/basic_ifstream/2.cc: New.
4184 * 27_io/basic_ifstream/3.cc: New.
4185 * 27_io/basic_ifstream/4.cc: New.
4186 * 27_io/basic_ifstream/cons/char/1.cc: New.
4187 * 27_io/basic_ifstream/open/char/1.cc: New.
4188 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
4189 * 27_io/basic_ios/1.cc: New.
4190 * 27_io/basic_ios/2.cc: New.
4191 * 27_io/basic_ios/3.cc: New.
4192 * 27_io/basic_ios/4.cc: New.
4193 * 27_io/basic_ios/clear/char/1.cc: New.
4194 * 27_io/basic_ios/cons/char/1.cc: New.
4195 * 27_io/basic_ios/cons/char/2.cc: New.
4196 * 27_io/basic_ios/cons/char/3.cc: New.
4197 * 27_io/basic_ios/copyfmt/char/1.cc: New.
4198 * 27_io/basic_ios/copyfmt/char/2.cc: New.
4199 * 27_io/basic_ios/exceptions/char/1.cc: New.
4200 * 27_io/basic_ios/locales/char/1.cc: New.
4201 * 27_io/basic_iostream/1.cc: New.
4202 * 27_io/basic_iostream/2.cc: New.
4203 * 27_io/basic_iostream/3.cc: New.
4204 * 27_io/basic_iostream/4.cc: New.
4205 * 27_io/basic_istream/1.cc: New.
4206 * 27_io/basic_istream/2.cc: New.
4207 * 27_io/basic_istream/3.cc: New.
4208 * 27_io/basic_istream/4.cc: New.
4209 * 27_io/basic_istream/exceptions/char/9561.cc: New.
4210 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
4211 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
4212 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
4213 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
4214 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
4215 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
4216 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
4217 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
4218 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
4219 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
4220 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
4221 * 27_io/basic_istream/extractors_character/char/1.cc: New.
4222 * 27_io/basic_istream/extractors_character/char/2.cc: New.
4223 * 27_io/basic_istream/extractors_character/char/3.cc: New.
4224 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
4225 * 27_io/basic_istream/extractors_other/char/1.cc: New.
4226 * 27_io/basic_istream/extractors_other/char/2.cc: New.
4227 * 27_io/basic_istream/extractors_other/char/3.cc: New.
4228 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
4229 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
4230 * 27_io/basic_istream/get/char/1.cc: New.
4231 * 27_io/basic_istream/get/char/2.cc: New.
4232 * 27_io/basic_istream/getline/char/1.cc: New.
4233 * 27_io/basic_istream/getline/char/2.cc: New.
4234 * 27_io/basic_istream/getline/char/3.cc: New.
4235 * 27_io/basic_istream/ignore/char/1.cc: New.
4236 * 27_io/basic_istream/ignore/char/6360.cc: New.
4237 * 27_io/basic_istream/ignore/char/7220.cc: New.
4238 * 27_io/basic_istream/peek/char/1.cc: New.
4239 * 27_io/basic_istream/peek/char/6414.cc: New.
4240 * 27_io/basic_istream/putback/char/1.cc: New.
4241 * 27_io/basic_istream/read/char/1.cc: New.
4242 * 27_io/basic_istream/read/char/2.cc: New.
4243 * 27_io/basic_istream/read/char/3.cc: New.
4244 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
4245 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
4246 * 27_io/basic_istream/readsome/char/8258.cc: New.
4247 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
4248 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
4249 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
4250 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
4251 * 27_io/basic_istream/seekg/char/fstream.cc: New.
4252 * 27_io/basic_istream/seekg/char/sstream.cc: New.
4253 * 27_io/basic_istream/sentry/char/1.cc: New.
4254 * 27_io/basic_istream/sentry/char/2.cc: New.
4255 * 27_io/basic_istream/sentry/char/3.cc: New.
4256 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
4257 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
4258 * 27_io/basic_istream/tellg/char/1.cc: New.
4259 * 27_io/basic_istream/tellg/char/8348.cc: New.
4260 * 27_io/basic_istream/tellg/char/fstream.cc: New.
4261 * 27_io/basic_istream/tellg/char/sstream.cc: New.
4262 * 27_io/basic_istream/ws/char/1.cc: New.
4263 * 27_io/basic_istringstream/1.cc: New.
4264 * 27_io/basic_istringstream/2.cc: New.
4265 * 27_io/basic_istringstream/3.cc: New.
4266 * 27_io/basic_istringstream/4.cc: New.
4267 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
4268 * 27_io/basic_istringstream/str/char/1.cc: New.
4269 * 27_io/basic_ofstream/1.cc: New.
4270 * 27_io/basic_ofstream/2.cc: New.
4271 * 27_io/basic_ofstream/3.cc: New.
4272 * 27_io/basic_ofstream/4.cc: New.
4273 * 27_io/basic_ofstream/cons/char/2.cc: New.
4274 * 27_io/basic_ofstream/open/char/1.cc: New.
4275 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
4276 * 27_io/basic_ostream/1.cc: New.
4277 * 27_io/basic_ostream/2.cc: New.
4278 * 27_io/basic_ostream/3.cc: New.
4279 * 27_io/basic_ostream/4.cc: New.
4280 * 27_io/basic_ostream/cons/char/9827.cc: New.
4281 * 27_io/basic_ostream/endl/char/1.cc: New.
4282 * 27_io/basic_ostream/ends/char/1.cc: New.
4283 * 27_io/basic_ostream/ends/char/2.cc: New.
4284 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
4285 * 27_io/basic_ostream/flush/char/1.cc: New.
4286 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
4287 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
4288 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
4289 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
4290 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
4291 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
4292 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
4293 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
4294 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
4295 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
4296 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
4297 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
4298 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
4299 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
4300 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
4301 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
4302 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
4303 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
4304 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
4305 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
4306 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
4307 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
4308 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
4309 * 27_io/basic_ostream/sentry/char/1.cc: New.
4310 * 27_io/basic_ostream/sentry/char/2.cc: New.
4311 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
4312 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
4313 * 27_io/basic_ostream/tellp/char/1.cc: New.
4314 * 27_io/basic_ostream/tellp/char/2.cc: New.
4315 * 27_io/basic_ostringstream/1.cc: New.
4316 * 27_io/basic_ostringstream/2.cc: New.
4317 * 27_io/basic_ostringstream/3.cc: New.
4318 * 27_io/basic_ostringstream/4.cc: New.
4319 * 27_io/basic_ostringstream/cons/char/3.cc: New.
4320 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
4321 * 27_io/basic_ostringstream/str/char/1.cc: New.
4322 * 27_io/basic_ostringstream/str/char/2.cc: New.
4323 * 27_io/basic_streambuf/1.cc: New.
4324 * 27_io/basic_streambuf/2.cc: New.
4325 * 27_io/basic_streambuf/3.cc: New.
4326 * 27_io/basic_streambuf/cons/char/1.cc: New.
4327 * 27_io/basic_streambuf/imbue/char/1.cc: New.
4328 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
4329 * 27_io/basic_streambuf/overflow/char/1.cc: New.
4330 * 27_io/basic_streambuf/overflow/char/2.cc: New.
4331 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
4332 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
4333 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
4334 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
4335 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
4336 * 27_io/basic_streambuf/sputn/char/1.cc: New.
4337 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
4338 * 27_io/basic_streambuf/sync/char/1057.cc: New.
4339 * 27_io/basic_stringbuf/1.cc: New.
4340 * 27_io/basic_stringbuf/2.cc: New.
4341 * 27_io/basic_stringbuf/3.cc: New.
4342 * 27_io/basic_stringbuf/4.cc: New.
4343 * 27_io/basic_stringbuf/5.cc: New.
4344 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
4345 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
4346 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
4347 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
4348 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
4349 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
4350 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
4351 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
4352 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
4353 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
4354 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
4355 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
4356 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
4357 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
4358 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
4359 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
4360 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
4361 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
4362 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
4363 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
4364 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
4365 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
4366 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
4367 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
4368 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
4369 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
4370 * 27_io/basic_stringbuf/str/char/1.cc: New.
4371 * 27_io/basic_stringbuf/str/char/2.cc: New.
4372 * 27_io/basic_stringbuf/str/char/3.cc: New.
4373 * 27_io/basic_stringbuf/str/char/3955.cc: New.
4374 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
4375 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
4376 * 27_io/basic_stringstream/1.cc: New.
4377 * 27_io/basic_stringstream/2.cc: New.
4378 * 27_io/basic_stringstream/3.cc: New.
4379 * 27_io/basic_stringstream/4.cc: New.
4380 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
4381 * 27_io/basic_stringstream/str/char/1.cc: New.
4382 * 27_io/basic_stringstream/str/char/2.cc: New.
4383 * 27_io/basic_stringstream/str/char/3.cc: New.
4384 * 27_io/basic_stringstream/str/char/4.cc: New.
4385 * 27_io/fpos/1.cc: New.
4386 * 27_io/fpos/2.cc: New.
4387 * 27_io/fpos/3.cc: New.
4388 * 27_io/ios_base/callbacks/1.cc: New.
4389 * 27_io/ios_base/state/1.cc: New.
4390 * 27_io/ios_base/storage/1.cc: New.
4391 * 27_io/ios_base/storage/2.cc: New.
4392 * 27_io/ios_base/storage/3.cc: New.
4393 * 27_io/ios_base/sync_with_stdio/1.cc: New.
4394 * 27_io/ios_base/sync_with_stdio/2.cc: New.
4395 * 27_io/manipulators/adjustfield/char/1.cc: New.
4396 * 27_io/manipulators/adjustfield/char/2.cc: New.
4397 * 27_io/manipulators/basefield/char/1.cc: New.
4398 * 27_io/manipulators/standard/char/1.cc: New.
4399 * 27_io/manipulators/standard/char/2.cc: New.
4400 * 27_io/objects/char/1.cc: New.
4401 * 27_io/objects/char/2.cc: New.
4402 * 27_io/objects/char/2523-1_xin.cc: New.
4403 * 27_io/objects/char/2523-1_xin.in: New.
4404 * 27_io/objects/char/2523-2_xin.cc: New.
4405 * 27_io/objects/char/2523-2_xin.in: New.
4406 * 27_io/objects/char/3045.cc: New.
4407 * 27_io/objects/char/3647.cc: New.
4408 * 27_io/objects/char/3_xin.cc: New.
4409 * 27_io/objects/char/3_xin.in: New.
4410 * 27_io/objects/char/4_xin.cc: New.
4411 * 27_io/objects/char/4_xin.in: New.
4412 * 27_io/objects/char/5268.cc: New.
4413 * 27_io/objects/char/5280_xin.cc: New.
4414 * 27_io/objects/char/5280_xin.in: New.
4415 * 27_io/objects/char/6548_xin.cc: New.
4416 * 27_io/objects/char/6548_xin.in: New.
4417 * 27_io/objects/char/6648-1_xin.cc: New.
4418 * 27_io/objects/char/6648-1_xin.in: New.
4419 * 27_io/objects/char/6648-2_xin.cc: New.
4420 * 27_io/objects/char/6648-2_xin.in: New.
4421 * 27_io/objects/char/7744_xin.cc: New.
4422 * 27_io/objects/char/7744_xin.in: New.
4423 * 27_io/objects/wchar_t/1.cc: New.
4424 * 27_io/types/1.cc: New.
4425 * 27_io/types/2.cc: New.
4426 * data/filebuf_members-1.tst: New.
4427 * data/filebuf_members-1.txt: New.
4428 * data/filebuf_virtuals-1.tst: New.
4429 * data/filebuf_virtuals-1.txt: New.
4430 * data/filebuf_virtuals-2.tst: New.
4431 * data/filebuf_virtuals-3.tst: New.
4432 * data/ifstream_members-1.tst: New.
4433 * data/ifstream_members-1.txt: New.
4434 * data/ios_base_members_static-1.tst: New.
4435 * data/istream_extractor_other-1.tst: New.
4436 * data/istream_extractor_other-1.txt: New.
4437 * data/istream_extractor_other-2.tst: New.
4438 * data/istream_seeks-1.tst: New.
4439 * data/istream_seeks-1.txt: New.
4440 * data/istream_seeks-2.tst: New.
4441 * data/istream_seeks-3.tst: New.
4442 * data/istream_unformatted-1.tst: New.
4443 * data/istream_unformatted-1.txt: New.
4444 * data/ofstream_members-1.tst: New.
4445 * data/ostream_inserter_char-1.tst: New.
4446 * data/ostream_inserter_char-1.txt: New.
4447 * data/ostream_inserter_other-1.tst: New.
4448 * data/ostream_inserter_other-2.tst: New.
4449 * data/ostream_seeks-1.tst: New.
4451 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
4453 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
4454 requirement that __mode must be strict input or output.
4456 * include/std/std_streambuf.h (basic_streambuf::setp): Set
4459 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
4460 output string shouldn't core.
4461 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
4463 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
4465 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
4468 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
4470 * testsuite/data: New directory.
4471 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
4472 to copy files from the testsuite data directory.
4473 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
4474 testfiles containing _xin, which now means this is an interactive
4475 test and should be run with the interactive dejagnu hooks.
4476 * testsuite/Makefile.am: Remove testsuite_* files.
4477 * testsuite/Makefile.in: Regenerate.
4479 2003-04-09 Zack Weinberg <zack@codesourcery.com>
4481 * docs/html/install.html: Document complete list of locales
4482 required by test suite. Document procedure for installing
4483 said locales under Debian. Solicit instructions for other
4486 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
4488 * include/bits/sstream.tcc (overflow): Make sure operands of min
4489 and max have the same type.
4491 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
4494 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
4497 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
4499 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
4500 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
4501 Don't set _M_out_end.
4502 (basic_filebuf::overflow): Replace _M_out_buf_size() with
4503 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
4504 * include/bits/sstream.tcc (basic_stringbuf::overflow):
4505 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
4506 * include/bits/streambuf.tcc (basic_streambuf::sputc):
4507 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
4508 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
4509 _M_out_end - _M_out_cur.
4510 (__copy_streambufs): Likewise.
4511 * include/std/std_fstream.h (_M_set_determinate): Set
4514 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
4516 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
4517 _M_convert_to_external, _M_really_overflow, seekoff): Fix
4518 test for synced buffer.
4519 * include/std/std_fstream.h (sync): Likewise.
4520 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
4521 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
4523 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
4525 * include/std/std_sstream.h (basic_istringstream): Adjust
4527 (basic_ostringstream): Same.
4528 (basic_stringstream): Same.
4529 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
4530 (basic_ofstream): Same.
4531 (basic_fstream): Same.
4532 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
4533 that does not call init.
4534 * include/std/std_istream.h (basic_istream): Same.
4535 (basic_iostream): Construct istream, ostream uninitialized, use
4536 init to initialize just once. Add protected ctor that does not
4539 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
4540 Nathan Myers <ncm@cantrip.org>
4543 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
4545 (basic_filebuf<>::showmanyc): Use the information provided
4546 by codecvt and __basic_file<>::showmanyc_helper to implement
4547 a non-trivial showmanyc.
4548 * config/io/basic_file_stdio.h
4549 (__basic_file<>::showmanyc_helper): New, declare.
4550 * config/io/basic_file_stdio.cc
4551 (__basic_file<>::showmanyc_helper): Define.
4552 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
4553 (__basic_file<char>::open): Don't call fcntl().
4554 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
4555 GLIBCPP_CHECK_POLL): New macros.
4556 * configure.in: Call here.
4557 * acconfig.h: Add #undefs for the corresponding symbols.
4558 * aclocal.m4: Regenerate.
4559 * configure: Regenerate.
4560 * config.h.in: Regenerate.
4562 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
4564 * config/linker-map.gnu: Remove string export restrictions.
4566 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
4568 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
4569 find_first_of, find_last_of and find_last_not_of tests.
4570 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
4571 tests here, new file.
4572 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
4573 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
4574 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
4575 wchar_t find_first_of tests here, new file.
4576 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
4578 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
4580 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
4581 wchar_t find_last_of tests here.
4582 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
4583 wchar_t find_last_not_of tests here.
4585 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
4587 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
4588 Correct return value.
4590 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
4593 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
4594 * include/std/std_complex.h (norm): Use faster,
4595 less accurate computation for builtin float types under --fast-math.
4597 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
4599 * testsuite/testsuite_hooks.h: Fix warning nits.
4601 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
4603 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
4604 Only .set mips2 for the o32 ABI.
4606 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
4608 * testsuite/21_strings/char_traits/requirements/char/1.cc:
4609 Test char not wchar_t.
4611 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
4613 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
4614 Correct size, taking into account sizeof(wchar_t).
4616 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
4618 Reshuffle 21_strings testsuite.
4619 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
4620 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
4621 element_access.cc, operations.cc, char_traits_requirements.cc,
4622 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
4623 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
4624 wchar_t tests as follows.
4625 * 21_strings/basic_string/append/char/1.cc: New.
4626 * 21_strings/basic_string/append/wchar_t/1.cc: New.
4627 * 21_strings/basic_string/assign/char/1.cc: New.
4628 * 21_strings/basic_string/assign/char/2.cc: New.
4629 * 21_strings/basic_string/assign/char/3.cc: New.
4630 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
4631 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
4632 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
4633 * 21_strings/basic_string/capacity/1.cc: New.
4634 * 21_strings/basic_string/capacity/char/1.cc: New.
4635 * 21_strings/basic_string/capacity/char/2.cc: New.
4636 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
4637 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
4638 * 21_strings/basic_string/compare/char/1.cc: New.
4639 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
4640 * 21_strings/basic_string/cons/char/1.cc: New.
4641 * 21_strings/basic_string/cons/char/2.cc: New.
4642 * 21_strings/basic_string/cons/char/3.cc: New.
4643 * 21_strings/basic_string/cons/char/4.cc: New.
4644 * 21_strings/basic_string/cons/char/5.cc: New.
4645 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
4646 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
4647 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
4648 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
4649 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
4650 * 21_strings/basic_string/element_access/char/1.cc: New.
4651 * 21_strings/basic_string/element_access/char/2.cc: New.
4652 * 21_strings/basic_string/element_access/char/3.cc: New.
4653 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
4654 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
4655 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
4656 * 21_strings/basic_string/find/char/1.cc: New.
4657 * 21_strings/basic_string/find/wchar_t/1.cc: New.
4658 * 21_strings/basic_string/insert/char/1.cc: New.
4659 * 21_strings/basic_string/insert/char/2.cc: New.
4660 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
4661 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
4662 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
4663 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
4664 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
4665 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
4666 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
4667 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
4668 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
4669 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
4670 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
4671 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
4672 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
4673 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
4674 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
4675 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
4676 * 21_strings/basic_string/operators/char/1.cc: New.
4677 * 21_strings/basic_string/operators/char/2.cc: New.
4678 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
4679 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
4680 * 21_strings/basic_string/replace/char/1.cc: New.
4681 * 21_strings/basic_string/replace/char/2.cc: New.
4682 * 21_strings/basic_string/replace/char/3.cc: New.
4683 * 21_strings/basic_string/replace/char/4.cc: New.
4684 * 21_strings/basic_string/replace/char/5.cc: New.
4685 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
4686 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
4687 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
4688 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
4689 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
4690 * 21_strings/basic_string/rfind/char/1.cc: New.
4691 * 21_strings/basic_string/rfind/char/2.cc: New.
4692 * 21_strings/basic_string/rfind/char/3.cc: New.
4693 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
4694 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
4695 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
4696 * 21_strings/basic_string/substr/char/1.cc: New.
4697 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
4698 * 21_strings/c_strings/char/1.cc: New.
4699 * 21_strings/c_strings/char/2.cc: New.
4700 * 21_strings/c_strings/wchar_t/1.cc: New.
4701 * 21_strings/c_strings/wchar_t/2.cc: New.
4702 * 21_strings/char_traits/requirements/char/1.cc: New.
4703 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
4704 * 21_strings/char_traits/typedefs/char/1.cc: New.
4706 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
4707 Petur Runolfsson <peturr02@ru.is>
4710 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
4711 basic_filebuf<wchar_t>::_M_underflow_common):
4712 if (gptr() < egptr()) return *gptr().
4713 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
4715 * testsuite/27_io/filebuf_members.cc (test_04): Minor
4716 changes: unlink fifo before making it, fix spelling error.
4718 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
4720 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
4721 * testsuite/Makefile.in: Regenerate.
4722 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
4725 2003-03-17 Petur Runolfsson <peturr02@ru.is>
4728 * include/bits/fstream.tcc (basic_filebuf::close):
4729 Always close file, even when write fails.
4730 * testsuite/27_io/filebuf_members.cc (test_07): New test.
4732 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
4734 * libsupc++/Makefile.am (C_COMPILE): Remove.
4735 (LTCOMPILE): Likewise.
4736 * libsupc++/Makefile.in: Regenerate.
4738 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
4740 * testsuite/23_containers/bitset_members.cc: Add test variable.
4741 * testsuite/23_containers/map_insert.cc: Same.
4742 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
4743 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
4744 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
4745 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
4746 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
4747 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
4748 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
4749 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
4750 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
4751 * testsuite/27_io/istream_exception.cc: Same.
4752 * testsuite/27_io/filebuf_virtuals.cc: Same.
4753 * testsuite/27_io/stringbuf_virtuals.cc: Same.
4754 * testsuite/27_io/ostream_inserter_arith.cc: Same.
4755 * testsuite/26_numerics/valarray_operators.cc: Same.
4756 * testsuite/26_numerics/slice.cc: Same.
4757 * testsuite/26_numerics/slice_array_assignment.cc: Same.
4758 * testsuite/24_iterators/istream_iterator.cc: Same.
4759 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
4761 2003-03-14 Petur Runolfsson <peturr02@ru.is>
4765 * config/locale/generic/ctype_members.cc,
4766 * config/locale/gnu/ctype_members.cc
4767 (ctype<wchar_t>::do_widen(char)): Cast argument to
4768 unsigned char before passing to btowc.
4769 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
4770 Convert characters with btowc instead of mbsrtowcs.
4771 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
4773 Convert characters with wctob instead of wcsrtombs.
4774 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
4775 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
4776 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
4778 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
4780 * include/stdc++.h: New.
4781 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
4782 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
4783 * include/Makefile.in: Regenerate.
4784 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
4785 (--cxxflags): Put -g -O2 here.
4786 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
4788 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
4790 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
4791 missing named locale.
4793 2003-03-14 Andreas Schwab <schwab@suse.de>
4795 * configure.in: Only append to makefiles that are newly created to
4796 avoid multiple multi-do/multi-clean rules.
4797 * configure: Rebuilt.
4799 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
4801 * docs/html/configopts.html, docs/html/documentation.html,
4802 docs/html/explanations.html, docs/html/install.html,
4803 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
4804 invalid XHTML and make page header style consistent.
4806 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
4808 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
4809 * docs/html/faq/index.txt: Regenerate.
4810 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
4812 2003-03-12 Andreas Schwab <schwab@suse.de>
4814 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
4815 glibcpp_toolexeclibdir.
4816 * aclocal.m4, configure: Rebuilt.
4818 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
4820 * docs/html/faq/index.html: Update text about location of headers.
4821 * docs/html/faq/index.txt: Regenerate.
4823 2003-03-11 Carlo Wood <carlo@alinoe.com>
4825 * include/bits/demangle.h: Prepend accessors of
4826 class qualifier with 'get_' in order to fix warnings
4827 when compiling with -Wshadow.
4829 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
4831 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
4833 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
4835 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
4836 report lack of setenv().
4838 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4840 * config/io/basic_file_stdio.cc: include <unistd.h>.
4842 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4843 Nathan Myers <ncm@cantrip.org>
4846 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
4847 seekoff, seekpos): Add a boolean parameter __stdio.
4848 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
4849 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
4850 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
4852 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
4853 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
4854 * include/std/std_fstream.h (sync): Likewise.
4855 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
4856 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
4857 libstdc++/8399 commit involving isatty(0).
4858 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
4859 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
4860 * configure.in: Remove call.
4861 * aclocal.m4: Regenerate.
4862 * config.h.in: Regenerate.
4863 * configure: Regenerate.
4864 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
4866 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4869 * include/bits/fstream.tcc (overflow): don't write EOF to file.
4870 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
4872 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4875 * include/bits/basic_ios.h (_M_setstate): New.
4876 * include/bits/ostream.tcc (operator<<): Use it.
4877 * include/bits/istream.tcc (operator>>): Use it.
4878 * include/std/std_ostream.h (operator<<): Make friends.
4879 * include/std/std_istream.h (operator>>): Make friends.
4880 * testsuite/27_io/ostream_exception.cc,
4881 testsuite/27_io/istream_exception.cc: New tests.
4883 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
4885 * include/bits/locale_facets.tcc: Fix typo.
4887 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
4889 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
4891 * config/locale/generic/c_locale.cc
4892 (locale::facet::_S_create_c_locale): Throw runtime exception when
4893 unsupported language is specified.
4894 * testsuite/testsuite_hooks.h
4895 (run_test_wrapped_generic_locale_exception_catcher): New function.
4896 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
4897 Suppress runtime exception thrown by generic implementation.
4898 (run_tests_wrapped_env): Likewise.
4899 (run_test_wrapped_generic_locale_exception_catcher): New function.
4900 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
4901 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
4902 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
4903 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
4904 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
4905 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
4906 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
4907 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
4908 * testsuite/22_locale/facet/2.cc: New test wrap.
4909 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
4910 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
4911 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
4912 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
4913 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
4914 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
4915 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
4916 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
4917 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
4918 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
4919 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
4920 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
4921 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
4922 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
4923 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
4924 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
4925 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
4926 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
4927 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
4928 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
4929 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
4930 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
4931 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
4932 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
4933 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
4934 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
4935 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
4936 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
4937 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
4938 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
4939 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
4940 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
4941 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
4942 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
4943 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
4944 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
4945 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
4946 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
4947 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
4948 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
4949 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
4950 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
4951 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
4952 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
4953 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
4954 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
4955 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
4956 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
4957 * testsuite/27_io/ios_members.cc: New test wrap.
4958 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
4960 * testsuite/27_io/streambuf_members.cc: New test wrap.
4961 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
4963 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
4964 Petur Runolfsson <peturr02@ru.is>
4967 * include/bits/streambuf.tcc (__copy_streambufs): Use
4968 sgetn-sputn only when sputn cannot fail, otherwise fall back
4969 to safe snextc-sputc.
4970 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
4972 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4974 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
4975 locale cache for truename and falsename.
4977 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4979 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
4980 _M_word_size initialization.
4982 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4984 * include/bits/fstream.tcc (_M_convert_to_external):
4985 Set __elen to zero if codecvt::out eventually fails.
4987 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4990 * include/bits/fstream.tcc (_M_really_overflow): Check
4991 for _M_convert_to_external possible failures.
4992 * include/std/std_fstream.h (sync): Check _M_really_overflow
4993 return value and return -1 in case of failure.
4994 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
4996 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4999 * include/bits/istream.tcc (operator>>(_CharT*),
5000 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
5001 * testsuite/27_io/stringstream.cc (test02): Add.
5003 * include/bits/istream.tcc (operator>>(_CharT*)):
5004 Assign a char_type to *__s.
5006 2003-03-07 Petur Runolfsson <peturr02@ru.is>
5009 * include/bits/locale_facets.tcc
5010 (collate::do_compare, collate::do_transform):
5011 Handle nul characters in input.
5012 * testsuite/22_locale/collate/compare/char/3.cc: New test.
5013 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
5014 * testsuite/22_locale/collate/transform/char/3.cc: New test.
5015 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
5017 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
5019 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
5021 * testsuite/27_io/ostream_fail.cc: New test.
5023 2003-03-07 Matthias Klose <doko@debian.org>
5025 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
5026 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
5027 * Makefile.in: Regenerate.
5028 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
5030 AM_MAKEFLAGS: Pass gxx_include_dir.
5031 * libsupc++/Makefile.in: Regenerate.
5033 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
5035 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
5036 mask. Test setting small-numbered pword and iword slots. Test
5037 behavior at limit of numeric_limits::max. Check that values are
5038 still good after failures.
5040 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
5042 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
5043 (ios_base::ios_base): Set _M_word, _M_word_size.
5044 (ios_base::~ios_base): Remove redundant test.
5045 * testsuite/27_io/ios_base_storage.cc (test03): New.
5047 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
5049 * src/strstream.cc, include/bits/basic_string.tcc: Remove
5050 incorrect whitespace added in my previous change.
5052 2003-03-05 Carlo Wood <carlo@alinoe.com>
5054 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
5055 _S_initialized() in order to allow debugging libraries to detect
5056 when the std streams are initialized from an overloaded operator
5059 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
5061 * libsupc++/demangle.h: Move to..
5062 * include/bits/demangle.h: ...here.
5063 * src/demangle.cc: Adjust include.
5064 * include/Makefile.am (bits_headers): Add.
5065 * include/Makefile.in: Regenerate.
5067 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
5069 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
5071 * config/linker-map.gnu: Filter typeinfo and vtable info.
5073 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
5075 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
5076 new failure. Throw exception if badbit and exception mask when ix
5077 >= numeric_limits<int>::max().
5079 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
5081 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
5082 min and max have the same type.
5083 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
5085 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
5087 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
5088 * include/Makefile.in: Regenerate.
5090 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
5092 * testsuite/abi_check.cc (report_symbol_info): Add version info.
5094 * config/linker-map.gnu: Hide more stuff.
5095 * include/Makefile.am: Cleanups.
5096 * include/Makefile.in: Regenerate.
5098 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
5100 * config/locale/generic/messages_members.h (messages::messages):
5101 Remove name from unused parameter.
5103 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
5105 * src/Makefile.am (sources): Add demangle.cc.
5108 * src/Makefile.in: Regenerate.
5109 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
5110 * libsupc++/Makefile.in: Regenerate.
5112 * testsuite/testsuite_hooks.h
5113 (__gnu_cxx_test::verify_demangle): New.
5114 * testsuite/testsuite_hooks.cc: Define.
5116 2003-02-27 Carlo Wood <carlo@alinoe.com>
5118 * src/demangle.cc: New.
5119 * libsupc++/demangle.h: New.
5121 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
5122 Carlo Wood <carlo@alinoe.com>
5124 * testsuite/demangle/abi_examples/01.cc: New.
5125 * testsuite/demangle/abi_examples/02.cc: New.
5126 * testsuite/demangle/abi_examples/03.cc: New.
5127 * testsuite/demangle/abi_examples/04.cc: New.
5128 * testsuite/demangle/abi_examples/05.cc: New.
5129 * testsuite/demangle/abi_examples/06.cc: New.
5130 * testsuite/demangle/abi_examples/07.cc: New.
5131 * testsuite/demangle/abi_examples/08.cc: New.
5132 * testsuite/demangle/abi_examples/09.cc: New.
5133 * testsuite/demangle/abi_examples/10.cc: New.
5134 * testsuite/demangle/abi_examples/11.cc: New.
5135 * testsuite/demangle/abi_examples/12.cc: New.
5136 * testsuite/demangle/abi_examples/13.cc: New.
5137 * testsuite/demangle/abi_examples/14.cc: New.
5138 * testsuite/demangle/abi_examples/15.cc: New.
5139 * testsuite/demangle/abi_examples/16.cc: New.
5140 * testsuite/demangle/abi_examples/17.cc: New.
5141 * testsuite/demangle/abi_examples/18.cc: New.
5142 * testsuite/demangle/abi_examples/19.cc: New.
5143 * testsuite/demangle/abi_examples/20.cc: New.
5144 * testsuite/demangle/abi_examples/21.cc: New.
5145 * testsuite/demangle/abi_examples/22.cc: New.
5146 * testsuite/demangle/abi_examples/23.cc: New.
5147 * testsuite/demangle/abi_examples/24.cc: New.
5148 * testsuite/demangle/abi_examples/25.cc: New.
5149 * testsuite/demangle/abi_examples/26.cc: New.
5150 * testsuite/demangle/abi_text/01.cc: New.
5151 * testsuite/demangle/abi_text/02.cc: New.
5152 * testsuite/demangle/abi_text/03.cc: New.
5153 * testsuite/demangle/abi_text/04.cc: New.
5154 * testsuite/demangle/abi_text/05.cc: New.
5155 * testsuite/demangle/abi_text/06.cc: New.
5156 * testsuite/demangle/abi_text/07.cc: New.
5157 * testsuite/demangle/abi_text/08.cc: New.
5158 * testsuite/demangle/abi_text/09.cc: New.
5159 * testsuite/demangle/abi_text/10.cc: New.
5160 * testsuite/demangle/abi_text/11.cc: New.
5161 * testsuite/demangle/abi_text/12.cc: New.
5162 * testsuite/demangle/abi_text/13.cc: New.
5163 * testsuite/demangle/abi_text/14.cc: New.
5164 * testsuite/demangle/regression/3111-1.cc: New.
5165 * testsuite/demangle/regression/3111-2.cc: New.
5166 * testsuite/demangle/regression/7986-01.cc: New.
5167 * testsuite/demangle/regression/7986-02.cc: New.
5168 * testsuite/demangle/regression/7986-03.cc: New.
5169 * testsuite/demangle/regression/7986-04.cc: New.
5170 * testsuite/demangle/regression/7986-05.cc: New.
5171 * testsuite/demangle/regression/7986-06.cc: New.
5172 * testsuite/demangle/regression/7986-07.cc: New.
5173 * testsuite/demangle/regression/7986-08.cc: New.
5174 * testsuite/demangle/regression/7986-09.cc: New.
5175 * testsuite/demangle/regression/7986-10.cc: New.
5176 * testsuite/demangle/regression/7986-11.cc: New.
5177 * testsuite/demangle/regression/7986-12.cc: New.
5178 * testsuite/demangle/regression/7986.cc: New.
5179 * testsuite/demangle/regression/8897.cc: New.
5180 * testsuite/demangle/regression/cw-01.cc: New.
5181 * testsuite/demangle/regression/cw-02.cc: New.
5182 * testsuite/demangle/regression/cw-03.cc: New.
5183 * testsuite/demangle/regression/cw-04.cc: New.
5184 * testsuite/demangle/regression/cw-05.cc: New.
5185 * testsuite/demangle/regression/cw-06.cc: New.
5186 * testsuite/demangle/regression/cw-07.cc: New.
5187 * testsuite/demangle/regression/cw-08.cc: New.
5188 * testsuite/demangle/regression/cw-09.cc: New.
5189 * testsuite/demangle/regression/cw-10.cc: New.
5190 * testsuite/demangle/regression/cw-11.cc: New.
5191 * testsuite/demangle/regression/cw-12.cc: New.
5192 * testsuite/demangle/regression/cw-13.cc: New.
5193 * testsuite/demangle/regression/cw-14.cc: New.
5194 * testsuite/demangle/regression/old.cc: New.
5196 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
5198 * docs/doxygen/Intro.3: Update with new (proper) names.
5199 * docs/doxygen/TODO: Update.
5200 * docs/doxygen/run_doxygen: More comments, fix up man pages.
5201 Fake entries for standard typedefs.
5202 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
5203 * docs/html/documentation.html: Top-level man page is now called
5205 * include/std/std_limits.h: Doxygenate.
5207 2003-02-25 Scott Snyder <snyder@fnal.gov>
5210 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
5211 Correct documentation.
5212 * include/bits/stl_multimap.h (lower_bound, upper_bound,
5213 equal_range): Likewise.
5215 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
5219 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
5220 __bump is true (uflow), always increment the read pointer
5221 (_M_in_cur) before returning successfully.
5222 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
5224 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
5225 Nathan Myers <ncm@cantrip.org>
5227 PR libstdc++/9404, PR libstdc++/9701 (partial)
5228 (aka pptr == epptr implies overflow)
5229 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
5230 Consistently, _M_out_end points to the end of the buffer just
5232 (overflow): Tweak to use _M_out_buf_size().
5233 (_M_convert_to_external): The role of the old _M_out_end is
5234 now played by _M_out_lim.
5235 (_M_really_overflow): Likewise.
5236 (seekoff): Likewise.
5237 (setbuf): _M_out_end points to the end of the external buffer.
5238 * include/bits/sstream.tcc (overflow): Rewrote, taking into
5239 account the resolution of DR 169 (TC).
5240 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
5241 (seekpos): Use _M_string.capacity(); tweak.
5242 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
5243 * include/std/std_fstream.h (sync): The role of the old
5244 _M_out_end is now played by _M_out_lim.
5245 (_M_set_indeterminate): Use _M_set_determinate.
5246 (_M_set_determinate): _M_out_end is now _M_out_lim.
5247 (_M_is_indeterminate): Likewise.
5248 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
5249 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
5250 which have the information readily available as _M_string.capacity();
5251 for ate and app modes, pass the string size to _M_really_sync.
5252 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
5253 point to the end of the buffer (i.e., epptr) and to the string end,
5255 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
5256 which points to the right limit of the used put area.
5257 (_M_out_cur_move): The role of the old _M_out_end is now played
5259 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
5260 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
5262 (basic_streambuf()): Initialize _M_out_lim too.
5263 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
5264 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
5265 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
5267 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
5269 * testsuite/27_io/ios_base_storage.cc (main): Call
5272 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
5274 * include/bits/locale_facets.tcc (_M_convert_float): Replace
5275 numpunct facet accesses with data from __locale_cache.
5277 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
5279 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
5280 * docs/html/faq/index.txt: Regenerate.
5282 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
5284 * config/linker-map.gnu: Also export locking symbols needed for the
5285 generic atomicity.h case.
5287 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
5289 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
5291 * configure: Rebuilt.
5293 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
5295 * include/bits/sstream.tcc (overflow): According to
5296 27.7.1.3, p5, actual output is performed by sputc(c).
5298 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
5301 * include/bits/stl_alloc.h: Remove all traces of assert().
5303 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
5305 * include/std/std_sstream.h (str()): the size of the
5306 current string may be different from the initial one
5307 whenever _M_out_end > _M_out_beg.
5308 * testsuite/27_io/stringbuf_members.cc (test07): Add.
5310 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
5313 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
5315 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
5317 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
5318 * testsuite/27_io/ios_members.cc (test03): New.
5320 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
5322 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
5323 (basic_ios::_M_cache_facets): Move into above.
5324 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
5326 (basic_ios::imbue): Force locale cache to be built.
5327 (basic_ios::_M_init): Create and initialize locale cache.
5328 * include/bits/ios_base.h (__locale_cache_base): Declare.
5329 (ios_base::_M_locale_cache): New.
5330 (ios_base::_M_cache): Define.
5331 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
5333 (__locale_cache_base,__locale_cache<_CharT>): New classes.
5334 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
5335 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
5336 cache literal string, grouping flag, thousands separator.
5337 (__locale_cache<_CharT>::__locale_cache): New.
5338 (__locale_cache<_CharT>::_M_init): New.
5339 * src/ios.cc: Clear _M_locale_cache in constructor.
5340 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
5343 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
5345 * src/locale-inst.cc: Do not include <cassert>.
5346 * src/locale.cc: Likewise.
5348 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
5351 * include/std/std_fstream.h: Declare underflow and uflow
5352 specializations, change generic definitions to do nothing.
5353 * src/fstream.cc: Add underflow and uflow specializations.
5355 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
5358 * include/bits/fstream.tcc (_M_convert_to_external):
5359 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
5360 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
5362 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
5364 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
5365 * include/bits/basic_ios.tcc: Guard use of extern template.
5366 * include/std/std_iomanip.h: Same.
5367 * include/bits/streambuf.tcc: Same.
5368 * include/bits/stl_alloc.h: Same.
5369 * include/bits/locale_facets.tcc: Same.
5370 * include/bits/ostream.tcc: Same.
5371 * include/bits/istream.tcc: Same.
5372 * include/bits/fstream.tcc: Same.
5373 * include/bits/basic_string.tcc: Same.
5375 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
5377 * include/bits/ostream.tcc (sentry::sentry): Improve
5378 performance-wise the fix for libstdc++/9563.
5380 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
5382 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
5383 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
5384 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
5385 when we don't have static mutex initialization.
5386 (__exchange_and_add): Use _Atomic_add_mutex_once.
5387 * src/misc-inst.cc: Definitions of all the above.
5389 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
5392 * include/bits/ostream.tcc (sentry::sentry): Check
5393 the state of the stream after the preparation.
5394 * testsuite/27_io/ostream_sentry.cc (test02): Add.
5396 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
5398 * include/Makefile.am (stamp-std-precompile): Add rule.
5399 * include/Makefile.in: Regenerated.
5401 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
5402 Benjamin Kosnik <benjamin@redhat.com>
5404 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
5405 Add indexes into this array.
5406 (__num_base::_S_atoms): To _S_atoms_in.
5407 (num_put::_M_insert): Rename to _M_pad.
5408 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
5409 (num_put::_M_widen_int): Rename to _M_group_int.
5410 (num_put::_M_widen_float): Rename to _M_group_float.
5411 * include/bits/locale_facets.tcc (__int_to_char): New inline
5412 function and adapter functions.
5413 (num_put::_M_group_int): Streamline.
5414 (num_put::_M_group_float): Streamline.
5415 (num_put::_M_convert_int): Remove unused parameter names. Choose
5416 large enough buffer for text. Use __int_to_char instead of
5417 __convert_from_v. Formatted text is now at the end of the buffer.
5418 (num_put::_M_convert_float): Preliminary fixups.
5419 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
5420 (__int_to_char<unsigned long long>): Same.
5421 (__int_to_char<char, unsigned long>): New.
5422 (__int_to_char<char, unsigned long long>): New.
5423 (__int_to_char<wchar_t, unsigned long>): New.
5424 (__int_to_char<wchar_t, unsigned long long>): New.
5426 2003-02-11 Scott Snyder <snyder@fnal.gov>
5429 * include/bits/fstream.tcc (seekoff): Avoid operator+
5432 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
5435 * include/ext/stdio_filebuf.h
5436 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
5437 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
5438 Change to take a __size parameter of type size_t, not
5439 of type (template parameter dependent) int_type.
5440 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
5441 size vars to size_t.
5442 * testsuite/ext/stdio_filebuf.cc: Add.
5444 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
5445 Petur Runolfsson <peturr02@ru.is>
5448 * include/bits/streambuf.tcc (__copy_streambufs):
5449 Don't conditionalize the copy to __testput.
5450 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
5452 2002-02-11 DJ Delorie <dj@redhat.com>
5454 * acinclude.m4: Check for native targets that can't link at
5455 this point in the build.
5456 * aclocal.m4: Regenerate.
5457 * configure: Regenerate.
5459 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5461 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
5463 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
5466 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
5468 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
5469 unsigned char platforms.
5471 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
5474 * include/std/std_istream.h
5475 (basic_istream::sentry::operator bool()): Make const.
5476 * include/std/std_ostream.h
5477 (basic_ostream::sentry::operator bool()): Likewise.
5478 * testsuite/27_io/istream_sentry.cc (test03): Add.
5479 * testsuite/27_io/ostream_sentry.cc: Add.
5481 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
5484 Implement resolution of DR 231 (Ready)
5485 * include/bits/locale_facets.h (__num_base::_S_format_float):
5486 Change declaration: return void, remove __prec parameter.
5487 * src/locale.cc (__num_base::_S_format_float): Implement
5488 resolution of DR 231.
5489 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
5490 Tweak uses. Check for negative precision.
5491 * testsuite/22_locale/num_put/put/char/6.cc: Add
5492 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
5494 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
5496 * config/io/basic_file_libio.h: Fixups.
5497 * config/io/c_io_libio.h: Same.
5498 * libio/Makefile.am: Same.
5499 * libio/Makefile.in: Regenerated.
5501 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
5503 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
5504 Explicitly use the "C" locale.
5505 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
5507 2003-02-06 Petur Runolfsson <peturr02@ru.is>
5511 PR libstdc++/9028 (partial)
5517 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
5518 codecvt<wchar_t, char, mbstate_t>::do_length,
5519 codecvt<wchar_t, char, mbstate_t>::do_max_length):
5521 * config/locale/generic/codecvt_members.cc: ...here.
5522 * config/locale/gnu/codecvt_members.cc: ...and here.
5524 * config/locale/generic/codecvt_members.cc,
5525 * config/locale/gnu/codecvt_members.cc
5526 (codecvt<wchar_t, char, mbstate_t>::do_encoding
5527 codecvt<wchar_t, char, mbstate_t>::do_in,
5528 codecvt<wchar_t, char, mbstate_t>::do_length,
5529 codecvt<wchar_t, char, mbstate_t>::do_max_length,
5530 codecvt<wchar_t, char, mbstate_t>::do_out):
5531 New implementation that handles stateless encodings,
5534 * config/locale/generic/codecvt_members.cc,
5535 * config/locale/gnu/codecvt_members.cc,
5536 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
5537 * include/bits/codecvt.h,
5539 (codecvt::length, codecvt::do_length):
5540 Change type of first argument of length and do_length from
5541 'const state_type&' to 'state_type&' according to DR 75.
5543 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
5544 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
5545 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
5546 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
5547 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
5548 Cleanup and check for correct return value from encoding
5550 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
5551 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
5552 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
5553 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
5554 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
5555 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
5556 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
5557 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
5558 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
5559 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
5560 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
5561 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
5562 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
5563 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
5564 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
5565 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
5566 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
5567 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
5568 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
5569 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
5570 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
5571 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
5572 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
5573 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
5574 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
5575 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
5576 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
5577 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
5578 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
5579 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
5580 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
5581 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
5582 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
5583 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
5584 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
5585 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
5586 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
5588 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
5590 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
5591 (money_put::do_put): Same.
5593 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
5595 * include/bits/ios_base.h (ios_base): Document reserved storage.
5597 * include/bits/locale_facets.h: (struct __pad): Comment on
5599 (__verify_grouping): Same.
5600 (__add_grouping): Same.
5601 * include/bits/locale_facets.tcc (__verify_grouping): Move
5602 comments to declaration.
5603 (__add_grouping): Same.
5605 * include/bits/locale_facets.tcc:
5606 (__write<_CharT, _OutIter>): New function.
5607 (__write<_CharT>): New function specialization.
5608 (num_put::_M_insert): Remove explicit loop over iterator. Use
5610 (num_put::_M_widen_float): Remove __basefield.
5611 (num_put::_M_widen_int): Move __basefield to within grouping block.
5613 * include/bits/streambuf_iterator.h: Include <streambuf>.
5614 (ostreambuf_iterator::_M_put): Add.
5616 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
5618 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
5620 2003-02-04 Nathan Myers <ncm@cantrip.org>
5622 * testsuite/25_algorithms/min_max.cc (test02): Add.
5624 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5626 PR libstdc++/9439, PR libstdc++/9425
5627 * config/io/basic_file_stdio.cc
5628 (__basic_file<char>::seekoff, seekpos): Return -1L if
5630 * include/bits/fstream.tcc (basic_filebuf::seekoff):
5631 Check _M_file.seekoff return value; always return
5632 pos_type(off_type(-1)) in case of failure.
5633 (basic_filebuf::pbackfail): Check this->seekoff return
5634 value and return traits_type::eof() in case of failure.
5635 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
5637 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
5639 * include/std/std_ostream.h (ostream::_M_write): Declare.
5640 * ostream.tcc (ostream::_M_write): Define.
5641 (basic_ostream::write): Use it.
5642 (operator<<(basic_ostream, _CharT)): Ditto.
5643 (operator<<(basic_ostream, char)): Ditto.
5644 (operator<<(basic_ostream, _CharT*)): Ditto.
5645 (operator<<(basic_ostream, char*)): Ditto.
5646 (operator<<(basic_ostream, basic_string)): Ditto.
5648 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
5650 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
5652 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5654 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
5655 add HTML comment about updating links if numbering changes.
5657 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5660 * include/bits/streambuf.tcc (sputbackc): Access
5661 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
5662 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
5664 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5667 * include/bits/fstream.tcc (open): If the 'ate' repositioning
5668 operation fails, calls close _and_ returns a null pointer
5669 to indicate failure (27.8.1.3,4).
5670 * testsuite/27_io/filebuf_members.cc (test_06): Add.
5672 2003-02-04 Petur Runolfsson <peturr02@ru.is>
5674 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
5676 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5678 * docs/html/27_io/howto.html: New section on stdio_filebuf.
5679 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
5680 * docs/html/documentation.html: Regenerate.
5682 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
5684 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
5685 * docs/html/17_intro/porting.html: Regenerate.
5687 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5688 Phil Edwards <pme@gcc.gnu.org>
5690 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
5691 numeric_limits for bits-per-word values.
5692 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
5693 Use __builtin_popcountl instead.
5694 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
5695 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
5696 Use __builtin_ctzl instead.
5697 (_S_bit_count, _S_first_one): Remove.
5698 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
5699 * src/Makefile.am (sources): Remove bitset.cc.
5700 * src/bitset.cc: Delete file.
5701 * src/Makefile.in: Regenerate.
5703 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
5705 PR libstdc++/9527, PR libstdc++/8713
5706 * docs/html/install.html: Mention glibc version requirement.
5707 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
5708 with 3.2.1+ (formatting bugfixes).
5709 * docs/html/faq/index.txt: Regenerate.
5711 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5714 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
5717 * include/bits/valarray_before.h (__not_equal_to): Use != instead
5720 * testsuite/26_numerics/valarray_operators.cc: New test.
5722 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
5724 * docs/html/faq/index.html: Correct link to libg++ information.
5725 * docs/html/faq/index.txt: Regenerated.
5727 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
5728 Benjamin Kosnik <bkoz@redhat.com>
5730 Const correctness issue:
5731 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
5732 * include/bits/locale_classes.h
5733 (locale::_Impl::_M_facets): Change type to const facet**.
5734 (locale::_Impl::_M_install_facet): Change declaration to
5736 (locale::facet::_M_references): Make mutable.
5737 (locale::facet::_M_add_reference): Declare const.
5738 (locale::facet::_M_remove_reference): Likewise.
5739 * include/bits/locale_facets.tcc
5740 (use_facet(const locale&)): Tweak for const facet** _M_facets.
5741 (has_facet(const locale&)): Likewise.
5743 (locale::facet::_M_add_reference): Adjust definition.
5744 (locale::facet::_M_remove_reference): Likewise.
5746 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
5747 const facet** _M_facets.
5748 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
5749 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
5750 (locale::_Impl::_M_install_facet): Adjust definition to take
5751 const facet* and for const facet** _M_facets.
5752 * testsuite/22_locale/locale/cons/8.cc: Add.
5754 2003-01-29 Mark Mitchell <mark@codesourcery.com>
5756 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
5757 Use __FLT_HAS_INIFINITY__ to initialize.
5758 (numeric_limits<float>::has_quiet_NaN): Likewise.
5759 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
5761 (numeric_limits<double>::has_quiet_NaN): Likewise.
5762 (numeric_limits<long double>::has_infinity): Use
5763 __LDBL_HAS_INIFINITY__ to initialize.
5764 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
5766 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
5769 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
5770 with bases which are very ambiguous.
5772 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5774 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
5775 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
5776 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
5777 * src/Makefile.in: Regenerate.
5778 * libsupc++/Makefile.in: Regenerate.
5780 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
5782 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
5783 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
5784 version_specific_libs is enabled.
5785 * aclocal.m4, configure: Rebuilt.
5787 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
5789 * include/bits/valarray_meta.h: Remove, split into ...
5790 * include/bits/valarray_before.h: ... this, and ...
5791 * include/bits/valarray_after.h: ... this.
5792 * include/std/std_valarray.h: Adjust.
5793 * include/Makefile.am (bits_headers): Adjust.
5794 * include/Makefile.in: Regenerate.
5796 2003-01-24 Andreas Schwab <schwab@suse.de>
5798 * config/linker-map.gnu: Fix for size_t variance.
5800 2003-01-23 Petur Runolfsson <peturr02@ru.is>
5803 * include/std/std_streambuf.h
5804 (basic_streambuf::basic_streambuf,
5805 basic_streambuf::~basic_streambuf,
5806 basic_streambuf::getloc, basic_streambuf::imbue):
5807 Remove _M_buf_locale_init
5808 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
5809 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
5810 * testsuite/27_io/streambuf_members.cc (test08): Add.
5811 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
5813 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
5815 Revert include ordering.
5816 * config/locale/generic/c_locale.h: Add include guards.
5817 * config/locale/gnu/c_locale.h: Same.
5818 * include/bits/locale_classes.h: Remove cctype include.
5819 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
5820 * include/std/std_fstream.h: Remove streambuf include.
5821 * include/std/std_sstream.h: Remove streambuf include.
5823 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
5825 * configure.in (libtool_VERSION): To 6:0:0.
5826 * configure: Regenerated.
5827 * config/linker-map.gnu: Clean.
5829 * src/misc-inst.cc: Remove instantiations.
5831 * include/bits/stl_alloc.h (__malloc_alloc_template):
5833 (__default_alloc_template): To __pool_alloc.
5834 * src/stl-inst.cc: Same.
5835 * include/backward/alloc.h: Update.
5836 * testsuite/ext/allocators.cc: Update.
5838 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
5839 really try to remove these if possible.
5840 * src/locale.cc (std): Same.
5842 * testsuite/abi_check.cc (check_version): Add.
5844 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
5845 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
5846 Mark Mitchell <mark@codesourcery.com>
5849 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
5850 (basic_filebuf::underflow): Declare.
5853 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
5855 * include/bits/locale_facets.h: Move non-facet classes requiring
5857 * include/bits/locale_classes.h: New.
5858 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
5859 * include/bits/Makefile.in: Regenerate.
5861 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
5862 * config/locale/gnu/c_locale.h: ...here.
5863 * config/locale/generic/c_locale.h: Same.
5865 * include/bits/locale_facets.tcc: Move declarations to...
5866 * include/bits/locale_facets.h: ...here.
5867 * include/bits/basic_ios.h: Tweak includes accordingly.
5868 * include/std/std_sstream.h: Add streambuf include.
5869 * include/std/std_fstream.h: Ditto.
5870 * include/std/std_locale.h: Add locale_classes.h include.
5871 * include/std/std_iosfwd.h: Tweak.
5872 * src/concept-inst.cc: Add iterator include.
5874 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
5875 bits as unexported in the future.
5877 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
5879 Reshuffle 22_locale testsuite.
5880 * 22_locale/(codecvt.cc money_get.cc
5881 codecvt_members_char_char.cc money_get_members_char.cc
5882 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
5883 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
5884 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
5885 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
5886 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
5887 money_put_members_char.cc ctor_copy_dtor.cc
5888 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
5889 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
5890 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
5891 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
5892 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
5893 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
5894 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
5895 operators.cc ctype_widen_char.cc static_members.cc
5896 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
5897 global_templates.cc time_get_members_wchar_t.cc, members.cc,
5898 time_put.cc, messages_byname.cc, time_put_members_char.cc,
5899 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
5900 Split up into individual test cases...
5901 * 22_locale/codecvt/1.cc: New.
5902 * 22_locale/codecvt/2.cc: New.
5903 * 22_locale/codecvt/always_noconv/char/1.cc: New.
5904 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
5905 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
5906 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
5907 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
5908 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
5909 * 22_locale/codecvt/encoding/char/1.cc: New.
5910 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
5911 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
5912 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
5913 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
5914 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
5915 * 22_locale/codecvt/in/char/1.cc: New.
5916 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
5917 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
5918 * 22_locale/codecvt/in/wchar_t/1.cc: New.
5919 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
5920 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
5921 * 22_locale/codecvt/length/char/1.cc: New.
5922 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
5923 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
5924 * 22_locale/codecvt/length/wchar_t/1.cc: New.
5925 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
5926 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
5927 * 22_locale/codecvt/max_length/char/1.cc: New.
5928 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
5929 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
5930 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
5931 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
5932 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
5933 * 22_locale/codecvt/out/char/1.cc: New.
5934 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
5935 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
5936 * 22_locale/codecvt/out/wchar_t/1.cc: New.
5937 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
5938 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
5939 * 22_locale/codecvt/unicode/char.cc: New.
5940 * 22_locale/codecvt/unicode/wchar_t.cc: New.
5941 * 22_locale/codecvt/unshift/char/1.cc: New.
5942 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
5943 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
5944 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
5945 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
5946 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
5947 * 22_locale/collate/1.cc: New.
5948 * 22_locale/collate/2.cc: New.
5949 * 22_locale/collate/compare/char/1.cc: New.
5950 * 22_locale/collate/compare/char/2.cc: New.
5951 * 22_locale/collate/compare/char/wrapped_env.cc: New.
5952 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
5953 * 22_locale/collate/compare/wchar_t/1.cc: New.
5954 * 22_locale/collate/compare/wchar_t/2.cc: New.
5955 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
5956 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
5957 * 22_locale/collate/hash/char/1.cc: New.
5958 * 22_locale/collate/hash/char/2.cc: New.
5959 * 22_locale/collate/hash/char/wrapped_env.cc: New.
5960 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
5961 * 22_locale/collate/hash/wchar_t/1.cc: New.
5962 * 22_locale/collate/hash/wchar_t/2.cc: New.
5963 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
5964 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
5965 * 22_locale/collate/transform/char/2.cc: New.
5966 * 22_locale/collate/transform/char/wrapped_env.cc: New.
5967 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
5968 * 22_locale/collate/transform/wchar_t/2.cc: New.
5969 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
5970 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
5971 * 22_locale/collate_byname/1.cc: New.
5972 * 22_locale/ctype/1.cc: New.
5973 * 22_locale/ctype/2.cc: New.
5974 * 22_locale/ctype/cons/char/1.cc: New.
5975 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
5976 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
5977 * 22_locale/ctype/is/char/1.cc: New.
5978 * 22_locale/ctype/is/char/2.cc: New.
5979 * 22_locale/ctype/is/char/3.cc: New.
5980 * 22_locale/ctype/is/char/wrapped_env.cc: New.
5981 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
5982 * 22_locale/ctype/is/wchar_t/1.cc: New.
5983 * 22_locale/ctype/is/wchar_t/2.cc: New.
5984 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
5985 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
5986 * 22_locale/ctype/narrow/char/1.cc: New.
5987 * 22_locale/ctype/narrow/char/2.cc: New.
5988 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
5989 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
5990 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
5991 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
5992 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
5993 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
5994 * 22_locale/ctype/scan/char/1.cc: New.
5995 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
5996 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
5997 * 22_locale/ctype/scan/wchar_t/1.cc: New.
5998 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
5999 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
6000 * 22_locale/ctype/to/char/1.cc: New.
6001 * 22_locale/ctype/to/char/wrapped_env.cc: New.
6002 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
6003 * 22_locale/ctype/to/wchar_t/1.cc: New.
6004 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
6005 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
6006 * 22_locale/ctype/widen/char/1.cc: New.
6007 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
6008 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
6009 * 22_locale/ctype/widen/wchar_t/1.cc: New.
6010 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
6011 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
6012 * 22_locale/facet/1.cc: New.
6013 * 22_locale/facet/2.cc: New.
6014 * 22_locale/global_templates/1.cc: New.
6015 * 22_locale/locale/cons/1.cc: New.
6016 * 22_locale/locale/cons/2.cc: New.
6017 * 22_locale/locale/cons/3.cc: New.
6018 * 22_locale/locale/cons/4.cc: New.
6019 * 22_locale/locale/cons/5.cc: New.
6020 * 22_locale/locale/cons/6.cc: New.
6021 * 22_locale/locale/cons/7.cc: New.
6022 * 22_locale/locale/global_locale_objects/1.cc: New.
6023 * 22_locale/locale/global_locale_objects/2.cc: New.
6024 * 22_locale/locale/global_locale_objects/3.cc: New.
6025 * 22_locale/locale/operations/1.cc: New.
6026 * 22_locale/locale/operations/2.cc: New.
6027 * 22_locale/messages/1.cc: New.
6028 * 22_locale/messages/2.cc: New.
6029 * 22_locale/messages/members/char/1.cc: New.
6030 * 22_locale/messages/members/char/2.cc: New.
6031 * 22_locale/messages/members/char/3.cc: New.
6032 * 22_locale/messages/members/char/wrapped_env.cc: New.
6033 * 22_locale/messages/members/char/wrapped_locale.cc: New.
6034 * 22_locale/messages_byname/1.cc: New.
6035 * 22_locale/money_get/1.cc: New.
6036 * 22_locale/money_get/2.cc: New.
6037 * 22_locale/money_get/get/char/1.cc: New.
6038 * 22_locale/money_get/get/char/2.cc: New.
6039 * 22_locale/money_get/get/char/3.cc: New.
6040 * 22_locale/money_get/get/char/4.cc: New.
6041 * 22_locale/money_get/get/char/5.cc: New.
6042 * 22_locale/money_get/get/char/6.cc: New.
6043 * 22_locale/money_get/get/char/7.cc: New.
6044 * 22_locale/money_get/get/char/8.cc: New.
6045 * 22_locale/money_get/get/char/wrapped_env.cc: New.
6046 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
6047 * 22_locale/money_get/get/wchar_t/1.cc: New.
6048 * 22_locale/money_get/get/wchar_t/2.cc: New.
6049 * 22_locale/money_get/get/wchar_t/3.cc: New.
6050 * 22_locale/money_get/get/wchar_t/4.cc: New.
6051 * 22_locale/money_get/get/wchar_t/5.cc: New.
6052 * 22_locale/money_get/get/wchar_t/6.cc: New.
6053 * 22_locale/money_get/get/wchar_t/7.cc: New.
6054 * 22_locale/money_get/get/wchar_t/8.cc: New.
6055 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
6056 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
6057 * 22_locale/money_put/1.cc: New.
6058 * 22_locale/money_put/2.cc: New.
6059 * 22_locale/money_put/put/char/1.cc: New.
6060 * 22_locale/money_put/put/char/2.cc: New.
6061 * 22_locale/money_put/put/char/3.cc: New.
6062 * 22_locale/money_put/put/char/4.cc: New.
6063 * 22_locale/money_put/put/char/5.cc: New.
6064 * 22_locale/money_put/put/char/6.cc: New.
6065 * 22_locale/money_put/put/char/wrapped_env.cc: New.
6066 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
6067 * 22_locale/money_put/put/wchar_t/1.cc: New.
6068 * 22_locale/money_put/put/wchar_t/2.cc: New.
6069 * 22_locale/money_put/put/wchar_t/3.cc: New.
6070 * 22_locale/money_put/put/wchar_t/4.cc: New.
6071 * 22_locale/money_put/put/wchar_t/5.cc: New.
6072 * 22_locale/money_put/put/wchar_t/6.cc: New.
6073 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
6074 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
6075 * 22_locale/moneypunct/1.cc: New.
6076 * 22_locale/moneypunct/2.cc: New.
6077 * 22_locale/moneypunct/3.cc: New.
6078 * 22_locale/moneypunct/members/char/1.cc: New.
6079 * 22_locale/moneypunct/members/char/2.cc: New.
6080 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
6081 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
6082 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
6083 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
6084 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
6085 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
6086 * 22_locale/moneypunct_byname/1.cc: New.
6087 * 22_locale/num_get/1.cc: New.
6088 * 22_locale/num_get/2.cc: New.
6089 * 22_locale/num_get/get/char/1.cc: New.
6090 * 22_locale/num_get/get/char/2.cc: New.
6091 * 22_locale/num_get/get/char/3.cc: New.
6092 * 22_locale/num_get/get/char/4.cc: New.
6093 * 22_locale/num_get/get/char/5.cc: New.
6094 * 22_locale/num_get/get/char/6.cc: New.
6095 * 22_locale/num_get/get/char/wrapped_env.cc: New.
6096 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
6097 * 22_locale/num_get/get/wchar_t/1.cc: New.
6098 * 22_locale/num_get/get/wchar_t/2.cc: New.
6099 * 22_locale/num_get/get/wchar_t/3.cc: New.
6100 * 22_locale/num_get/get/wchar_t/4.cc: New.
6101 * 22_locale/num_get/get/wchar_t/5.cc: New.
6102 * 22_locale/num_get/get/wchar_t/6.cc: New.
6103 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
6104 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
6105 * 22_locale/num_put/1.cc: New.
6106 * 22_locale/num_put/2.cc: New.
6107 * 22_locale/num_put/put/char/1.cc: New.
6108 * 22_locale/num_put/put/char/2.cc: New.
6109 * 22_locale/num_put/put/char/3.cc: New.
6110 * 22_locale/num_put/put/char/4.cc: New.
6111 * 22_locale/num_put/put/char/5.cc: New.
6112 * 22_locale/num_put/put/char/wrapped_env.cc: New.
6113 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
6114 * 22_locale/num_put/put/wchar_t/1.cc: New.
6115 * 22_locale/num_put/put/wchar_t/2.cc: New.
6116 * 22_locale/num_put/put/wchar_t/3.cc: New.
6117 * 22_locale/num_put/put/wchar_t/4.cc: New.
6118 * 22_locale/num_put/put/wchar_t/5.cc: New.
6119 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
6120 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
6121 * 22_locale/numpunct/1.cc: New.
6122 * 22_locale/numpunct/2.cc: New.
6123 * 22_locale/numpunct/members/char/1.cc: New.
6124 * 22_locale/numpunct/members/char/2.cc: New.
6125 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
6126 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
6127 * 22_locale/numpunct/members/wchar_t/1.cc: New.
6128 * 22_locale/numpunct/members/wchar_t/2.cc: New.
6129 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
6130 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
6131 * 22_locale/numpunct_byname/1.cc: New.
6132 * 22_locale/numpunct_byname/2.cc: New.
6133 * 22_locale/time_get/1.cc: New.
6134 * 22_locale/time_get/2.cc: New.
6135 * 22_locale/time_get/date_order/char/1.cc: New.
6136 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
6137 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
6138 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
6139 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
6140 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
6141 * 22_locale/time_get/get_date/char/1.cc: New.
6142 * 22_locale/time_get/get_date/char/2.cc: New.
6143 * 22_locale/time_get/get_date/char/3.cc: New.
6144 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
6145 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
6146 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
6147 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
6148 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
6149 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
6150 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
6151 * 22_locale/time_get/get_monthname/char/1.cc: New.
6152 * 22_locale/time_get/get_monthname/char/2.cc: New.
6153 * 22_locale/time_get/get_monthname/char/3.cc: New.
6154 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
6155 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
6156 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
6157 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
6158 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
6159 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
6160 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
6161 * 22_locale/time_get/get_time/char/1.cc: New.
6162 * 22_locale/time_get/get_time/char/2.cc: New.
6163 * 22_locale/time_get/get_time/char/3.cc: New.
6164 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
6165 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
6166 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
6167 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
6168 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
6169 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
6170 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
6171 * 22_locale/time_get/get_weekday/char/1.cc: New.
6172 * 22_locale/time_get/get_weekday/char/2.cc: New.
6173 * 22_locale/time_get/get_weekday/char/3.cc: New.
6174 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
6175 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
6176 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
6177 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
6178 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
6179 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
6180 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
6181 * 22_locale/time_get/get_year/char/1.cc: New.
6182 * 22_locale/time_get/get_year/char/3.cc: New.
6183 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
6184 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
6185 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
6186 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
6187 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
6188 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
6189 * 22_locale/time_put/1.cc: New.
6190 * 22_locale/time_put/2.cc: New.
6191 * 22_locale/time_put/put/char/1.cc: New.
6192 * 22_locale/time_put/put/char/10.cc: New.
6193 * 22_locale/time_put/put/char/2.cc: New.
6194 * 22_locale/time_put/put/char/3.cc: New.
6195 * 22_locale/time_put/put/char/4.cc: New.
6196 * 22_locale/time_put/put/char/5.cc: New.
6197 * 22_locale/time_put/put/char/6.cc: New.
6198 * 22_locale/time_put/put/char/7.cc: New.
6199 * 22_locale/time_put/put/char/8.cc: New.
6200 * 22_locale/time_put/put/char/9.cc: New.
6201 * 22_locale/time_put/put/char/wrapped_env.cc: New.
6202 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
6203 * 22_locale/time_put/put/wchar_t/1.cc: New.
6204 * 22_locale/time_put/put/wchar_t/10.cc: New.
6205 * 22_locale/time_put/put/wchar_t/2.cc: New.
6206 * 22_locale/time_put/put/wchar_t/3.cc: New.
6207 * 22_locale/time_put/put/wchar_t/4.cc: New.
6208 * 22_locale/time_put/put/wchar_t/5.cc: New.
6209 * 22_locale/time_put/put/wchar_t/6.cc: New.
6210 * 22_locale/time_put/put/wchar_t/7.cc: New.
6211 * 22_locale/time_put/put/wchar_t/8.cc: New.
6212 * 22_locale/time_put/put/wchar_t/9.cc: New.
6213 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
6214 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
6216 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
6218 * config/locale/generic/messages_members.h
6219 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
6220 unqualified members of base clasess.
6222 2003-01-16 Mark Mitchell <mark@codesourcery.com>
6223 Jeffrey Oldham <oldham@codesourcery.com>
6225 * config/locale/gnu/messages_members.h: Use this-> to refer to
6226 unqualified members of base clasess.
6227 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
6228 * include/bits/codecvt.h: Likewise.
6229 * include/bits/deque.tcc: Likewise.
6230 * include/bits/fstream.tcc: Likewise.
6231 * include/bits/istream.tcc: Likewise.
6232 * include/bits/list.tcc: Likewise.
6233 * include/bits/locale_facets.h: Likewise.
6234 * include/bits/ostream.tcc: Likewise.
6235 * include/bits/sstream.tcc: Likewise.
6236 * include/bits/stl_bvector.h: Likewise.
6237 * include/bits/stl_deque.h: Likewise.
6238 * include/bits/stl_list.h: Likewise.
6239 * include/bits/stl_tree.h: Likewise.
6240 * include/bits/stl_vector.h: Likewise.
6241 * include/bits/vector.tcc: Likewise.
6242 * include/ext/ropeimpl.h: Likewise.
6243 * include/ext/stdio_filebuf.h: Likewise.
6244 * include/ext/stl_rope.h: Likewise.
6245 * include/std/std_fstream.h: Likewise.
6246 * include/std/std_sstream.h: Likewise.
6248 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
6250 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
6252 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
6254 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
6255 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
6256 * aclocal.m4: Regenerate.
6257 * configure: Regenerate.
6258 * testsuite/Makefile.am (all-local): Add conditional rule to
6259 generate testsuite_wchar_t.
6260 * testsuite/Makefile.in: Regenerate.
6261 * testsuite/lib/libstdc++-v3-dg.exp
6262 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
6263 testsuite_wchar_t is not present in the build directory.
6264 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
6265 Remove setulimit bits.
6266 * testsuite/26_numerics/complex_value.cc: Set to noopts.
6267 * testsuite/Makefile.am (CLEANFILES): Add.
6268 * testsuite/Makefile.in: Regenerate.
6270 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6272 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
6275 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
6277 Further conform g++'s __vmi_class_type_info to the C++ ABI
6279 * libsupc++/cxxabi.h
6280 (__vmi_class_type_info::__flags_masks): Remove enumerations not
6281 required by the specification.
6283 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
6285 Renames, namespaces for testsuite utilities.
6286 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
6287 (gnu_allocator_tracker): Rename to allocation_tracker.
6288 (gnu_new_allocator): Rename to tracker_alloc.
6289 (__set_testsuite_memlimit): Rename to set_memory_limits.
6290 (gnu_assignment_operator): Rename to assignment_operator.
6291 (gnu_destructor): Rename to destructor.
6292 (gnu_copy_tracker): Rename to copy_tracker.
6293 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
6294 (run_tests_wrapped_locale): New.
6295 (run_tests_wrapped_env): New.
6296 * testsuite/testsuite_hooks.cc: Same.
6297 (class locale_data): Add.
6298 (class enviornment_variable): Add.
6299 (class not_found): Add.
6300 * testsuite/testsuite_allocator.h: Same.
6301 * testsuite/testsuite_allocator.cc: Same.
6302 * testsuite/23_containers/deque_ctor.cc
6303 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
6305 Change gnu_new_allocator to tracker_alloc.
6306 Change gnu_counting_struct to counter.
6307 Change gnu_copy_tracker to copy_tracker.
6308 Change gnu_copy_constructor to copy_constructor.
6309 Change gnu_assignment_operator to assignment_operator.
6311 * testsuite/23_containers/vector_capacity.cc: Same.
6312 * testsuite/23_containers/vector_ctor.cc (test01): Same.
6313 * testsuite/23_containers/list_modifiers.cc: Change
6314 gnu_copy_tracker to copy_tracker.
6315 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
6316 __set_testsuite_memlimit to set_memory_limits.
6317 * testsuite/21_strings/insert.cc (main): Same.
6318 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
6319 * testsuite/27_io/stringstream.cc: Same.
6320 * testsuite/27_io/stringbuf.cc: Same.
6321 * testsuite/27_io/streambuf.cc: Same.
6322 * testsuite/27_io/ostream.cc: Same.
6323 * testsuite/27_io/istream.cc: Same.
6324 * testsuite/27_io/fstream.cc: Same.
6325 * testsuite/lib/libstdc++-v3-dg.exp
6326 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
6327 three levels deeper in glob patterns.
6329 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
6331 * docs/doxygen/tables.html: Finished now.
6332 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
6333 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
6336 * include/bits/deque.tcc, include/bits/stl_alloc.h,
6337 include/bits/stl_deque.h, include/bits/stl_list.h,
6338 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
6341 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
6343 * configure.in: Revert.
6344 * configure: Regenerate.
6346 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6348 * include/Makefile.am (install-data-local): Prepend
6349 $(DESTDIR) to destination paths in all (un)installation
6350 commands. Use ${c_base_builddir} and ${std_builddir}
6351 as destination subdirectories to achieve consistency with
6352 preceding mkinstalldirs commands. No effect because both
6353 variables contain "." only.
6354 * include/Makefile.in: Regenerate.
6356 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
6358 * include/Makefile.am (stamp-*): Add checks for existing stamps.
6359 * include/Makefile.in: Regenerate.
6361 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
6362 * aclocal.m4: Regenerate.
6364 * configure.in: Don't add new multi-do rules every time the
6365 directory is reconfigured.
6366 * configure: Regenerate.
6368 2003-01-08 Brad Spencer <spencer@infointeractive.com>
6369 Nathan Myers <ncm@cantrip.org>
6371 * src/Makefile.am (stamp-debug): Clean.
6372 * src/Makefile.in: Regenerate.
6374 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
6377 * Makefile.am (distclean-multi): Fix.
6378 * Makefile.in: Regenerate.
6380 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
6382 * include/bits/locale_facets.h (messages): Move ctor, dtor
6384 (__timepunct): Same.
6385 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
6386 definitions. Conditionalize for GNU systems.
6387 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
6389 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
6390 definitions. Conditionalize for GNU systems.
6391 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
6393 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
6394 * src/locale.cc: Define.
6395 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
6397 * config/locale/gnu/time_members.h: Use it.
6398 * config/locale/gnu/messages_members.h: Use it.
6399 * config/linker-map.gnu: Add locale::facets details.
6400 * include/Makefile.am (target_headers_extra): Add time_members.h.
6401 * include/Makefile.in: Regenerate.
6402 * acinclude.m4: Export CTIME_H.
6403 * aclocal.m4: Regenerate.
6404 * configure: Regnerate.
6406 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
6409 (codecvt<char, char, mbstate_t>::do_in, do_out):
6410 Tweak parameters to avoid unused parameter warnings.
6412 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
6415 * include/bits/locale_facets.cc (num_put::_M_convert_float):
6416 Limit __prec to digits10 + 2, not digits10 + 1, taking into
6417 account the possibility of %{g,G} conversion specifiers
6418 inside _S_format_float.
6419 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
6421 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6423 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
6424 libstdc++-v3-list-sourcefiles): Additionally handle files one
6425 level deeper in glob patterns.
6427 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
6428 * testsuite/27_io/istream_extractor_arith/01.cc,
6429 testsuite/27_io/istream_extractor_arith/02.cc,
6430 testsuite/27_io/istream_extractor_arith/03.cc,
6431 testsuite/27_io/istream_extractor_arith/06.cc,
6432 testsuite/27_io/istream_extractor_arith/07.cc,
6433 testsuite/27_io/istream_extractor_arith/08.cc,
6434 testsuite/27_io/istream_extractor_arith/09.cc,
6435 testsuite/27_io/istream_extractor_arith/10.cc,
6436 testsuite/27_io/istream_extractor_arith/11.cc,
6437 testsuite/27_io/istream_extractor_arith/12.cc,
6438 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
6439 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
6442 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
6446 (codecvt<char, char, mbstate_t>::do_in, do_out):
6447 Implement the resolution of DR19 (TC).
6448 * testsuite/22_locale/codecvt_members_char_char.cc
6451 2003-01-02 Jason Merrill <jason@redhat.com>
6453 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
6454 *__mem is also an output.
6455 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.