1 2003-10-23 Benjamin Kosnik <bkoz@redhat.com>
3 * docs/html/documentation.html: Add a pointer to the doxygen style
5 * docs/html/17_intro/TODO: Update.
6 * docs/html/test.html: Add instructions for running a subset of
9 2003-10-23 Paolo Carlini <pcarlini@suse.de>
11 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
12 string_type&)): Use find_first_not_of to strip leading
13 zeros; if __tmp_units == "0" never prefix it with '-';
14 always fail if __tmp_units is empty.
15 * testsuite/22_locale/money_get/get/char/10.cc: New.
16 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
18 2003-10-23 Phil Edwards <phil@codesourcery.com>
20 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
23 2003-10-22 Paolo Carlini <pcarlini@suse.de>
25 * include/bits/locale_facets.tcc (__int_to_char): Remove
26 the const int parameter.
27 (_M_insert_int): Update caller.
28 * src/locale-inst.cc (__int_to_char): Update instantiations.
30 2003-10-22 Benjamin Kosnik <bkoz@redhat.com>
32 * include/bits/locale_facets.h: Correct byname facets for "C"
34 * config/locale/generic/ctype_members.cc: Same.
35 * config/locale/generic/messages_members.h: Same.
36 * config/locale/gnu/ctype_members.cc: Same.
37 * config/locale/gnu/messages_members.h: Same.
38 * include/bits/codecvt.h: Same.
40 * testsuite/22_locale/codecvt_byname/1.cc: New.
41 * testsuite/22_locale/collate/1.cc: Edit.
42 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
43 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
44 * testsuite/22_locale/ctype/1.cc: Derivation tests.
45 * testsuite/22_locale/ctype/11844.cc: Move...
46 * testsuite/22_locale/ctype_base/11844.cc: ...here.
47 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
48 * testsuite/22_locale/ctype_byname/1.cc: Name.
49 * testsuite/22_locale/messages_byname/1.cc: New.
50 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
51 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
52 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
53 * testsuite/22_locale/numpunct/1.cc: Edit.
54 * testsuite/22_locale/numpunct_byname/2.cc: Move...
55 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
56 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
57 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
59 2003-10-22 Paolo Carlini <pcarlini@suse.de>
62 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
63 checking for the availability of int64_t.
64 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
65 * configure.ac: Call here.
66 * acconfig.h: Add undef for the corresponding symbols.
67 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
68 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
69 (__basic_file<char>::seekoff): Likewise, call lseek64 when
70 available, otherwise lseek, checking the __off parameter.
71 * include/bits/postypes.h: Typedef __streamoff_base_type
72 to int64_t if available, otherwise long long.
73 * aclocal.m4: Regenerate.
74 * config.h.in: Likewise.
75 * configure: Likewise.
77 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
78 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
80 2003-10-22 Paolo Carlini <pcarlini@suse.de>
83 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
84 Implement resolution of DR 292 (WP).
85 * docs/html/ext/howto.html: Add entry for DR 292.
87 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
89 * include/ext/mt_allocator.h: Change include to gthr.h.
90 * include/ext/rope: Same. Add _Refcount_base definitions.
91 * include/ext/pool_allocator.h: Adjust namespaces.
92 * include/bits/stl_threads.h (_Refcount_base): Move.
93 Put remaining into namespace __gnu_cxx.
95 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
98 * include/bits/locale_facets.h (ctype<char>): Remove
99 __ctype_abstract_base.
100 (ctype<char>::do_is): Remove.
101 (ctype<char>::do_scan_is): Remove.
102 * src/ctype.cc: Same. Inline the rest.
103 * testsuite/22_locale/ctype/is/char/9858.cc: New.
104 * config/os/aix/ctype_noninline.h: Adjust ctor.
105 * config/os/bsd/freebsd/ctype_noninline.h: Same.
106 * config/os/bsd/netbsd/ctype_noninline.h: Same.
107 * config/os/djgpp/ctype_noninline.h: Same.
108 * config/os/generic/ctype_noninline.h: Same.
109 * config/os/gnu-linux/ctype_noninline.h: Same.
110 * config/os/hpux/ctype_noninline.h: Same.
111 * config/os/irix/irix5.2/ctype_noninline.h: Same.
112 * config/os/irix/irix6.5/ctype_noninline.h: Same.
113 * config/os/mingw32/ctype_noninline.h: Same.
114 * config/os/newlib/ctype_noninline.h: Same.
115 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
116 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
117 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
118 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
119 * config/os/windiss/ctype_noninline.h: Same.
121 2003-10-21 Paolo Carlini <pcarlini@suse.de>
123 * src/locale.cc: Tweak a comment.
124 * src/localename.cc: Move a comment.
126 2003-10-20 Benjamin Kosnik <bkoz@redhat.com>
129 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
130 * testsuite_hooks.cc: Same.
131 * 22_locale/numpunct/members/pod/1.cc: Edit.
132 * 22_locale/numpunct/members/pod/2.cc: Same.
133 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
134 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
135 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
136 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
137 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
138 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
139 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
140 * 27_io/basic_istream/sentry/pod/1.cc: New.
141 * 27_io/basic_ostream/sentry/pod/1.cc: New.
142 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
143 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
145 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
147 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
148 of external _MIPS_SIM_ABI32.
150 2003-10-20 Phil Edwards <phil@codesourcery.com>
152 * configure.ac: Fix comment typo.
153 * configure.host: Add vxworks to host_os switch.
154 * crossconfig.m4: Remove old commented os_include_dir variables
155 left over from autotools transition.
156 (*-vxworks): New stanza.
157 (*-windiss): Add missing symbols.
158 * configure: Regenerate.
159 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
160 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
162 * config/os/windiss/os_defines.h: Define __C9X__.
164 2003-10-19 David Edelsohn <edelsohn@gnu.org>
167 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
169 2003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
171 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
172 confusion of the use of the gthr API when __gthread_active_p()
175 2003-10-17 Benjamin Kosnik <bkoz@redhat.com>
177 * src/Makefile.am: Add new files.
178 * src/Makefile.in: Regenerate.
179 * src/globals.cc: Split into..
180 * src/globals_io.cc: New.
181 * src/globals_locale.cc: New.
182 * src/ios.cc: Split into...
183 * src/ios_init.cc: New.
184 * src/ios_locale.cc: New.
185 * src/locale-inst.cc: Split into..
186 * src/wlocale-inst.cc: New.
187 * src/locale-misc-inst.cc: New.
188 * src/locale.cc, src/localename: Split into...
189 * src/locale_facets.cc: New.
190 * src/locale_init.cc: New.
191 * src/wstring-inst.cc: Add copyright info.
193 2003-10-16 Petur Runolfsson <peturr02@ru.is>
198 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
199 Change return value from streampos to streamoff.
200 (__basic_file::seekpos): Delete.
201 * config/io/basic_file_stdio.h: Same.
202 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
203 * include/Makefile.am (bits_headers): Add bits/postypes.h.
204 * include/bits/char_traits.h: Include bits/postypes.h instead of
206 * include/bits/fstream.tcc (basic_filebuf::open,
207 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
208 values, use == and != instead.
209 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
211 (basic_filebuf::imbue): Don't use ! on pos_type values, use
212 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
213 * include/bits/postypes.h: New file.
214 Add __streamoff_base_type typedef, streamsize.
215 (streamoff, streampos, wstreampos): Define typedefs, with
216 streamoff defined as...
217 (streamoff): New class. Document implementation defined
219 (fpos): New implementation. Document implementation defined
221 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
222 explicit conversion from pos_type to off_type.
223 * include/std/std_iosfwd.h: Include bits/postypes.h instead
225 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
226 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
227 * testsuite/27_io/fpos/11450.cc: New test.
228 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
229 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
230 * testsuite/27_io/types/3.cc: New test.
232 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
234 * configure.host: Remove fpos_include_dir.
235 * configure.ac: Remove FPOS_INC_SRCDIR.
236 * configure: Regenerate.
237 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
238 * aclocal.m4: Regenerate.
239 * include/Makefile.am (host_headers): Remove fpos.h.
240 (bits_headers): Add postypes.h.
241 * include/Makefile.in: Regenerate.
242 * config/os/gnu-linux/fposh: Remove.
243 * config/os/generic/fpos.h: Remove.
245 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
246 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
247 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
248 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
249 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
250 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
251 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
252 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
253 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
254 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
255 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
256 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
257 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
258 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
259 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
260 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
261 * testsuite/27_io/objects/char/10.cc: Same.
263 2003-10-16 Paolo Carlini <pcarlini@suse.de>
265 * src/locale.cc (locale::locale(const char*)): ... one
266 more comparison missed in the previous commit.
268 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
270 * acconfig.h: Add HAVE_DRAND48.
271 * crossconfig.m4: Remove ISATTY.
272 * aclocal.m4: Regenerated.
273 * config.h.in: Regenerated.
274 * configure: Regenerated.
276 2003-10-16 Bernardo Innocenti <bernie@develer.com>
278 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
279 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
280 Document SMP safeness of asm macros.
282 2003-10-16 Paolo Carlini <pcarlini@suse.de>
284 * src/locale.cc (locale::locale(const char*)): Tweak
285 a couple of comparisons to use basic_string operators.
287 2003-10-16 Paolo Carlini <pcarlini@suse.de>
290 * config/locale/gnu/monetary_members.cc
291 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
292 Don't leak memory if new throws.
293 * src/locale.cc (locale::locale(const char*)): In order not
294 to leak memory in case new throws, use a basic_string type
295 for __res too and avoid strdup.
297 2003-10-14 Jeff Bailey <jbailey@nisa.net>
300 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
301 * configure: Regenerate.
303 2003-10-14 Carlo Wood <carlo@alinoe.com>
306 * include/bits/demangle.h (session<Allocator>::
307 decode_unqualified_name(string_type& output)): Fail on a
308 <operator-name> when decoding <template-argument>.
309 * testsuite/demangle/regression/cw-15.cc: New.
311 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
314 * include/bits/stl_algo.h (unique): Fix.
315 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
316 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
317 * testsuite/25_algorithms/unique/2.cc: New.
319 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
321 * src/localename.cc (_M_replace_categories, M_replace_facet):
322 Const-ify a couple of variables.
324 2003-10-14 Petur Runolfsson <peturr02@ru.is>
325 Andreas Tobler <a.tobler@schweiz.ch>
327 * src/locale.cc (locale::_S_initialize): Workaround a confusion
328 of the use of the gthr API when __gthread_active_p() returns true.
330 2003-10-12 Petur Runolfsson <peturr02@ru.is>
331 Paolo Carlini <pcarlini@unitus.it>
334 * src/strstream.cc (pbackfail): Fix to use to_int_type.
335 * testsuite/backward/11460.cc: New, from the PR.
337 2003-10-12 Paolo Carlini <pcarlini@unitus.it>
339 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
340 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
341 * include/bits/basic_string.tcc: Likewise.
342 * include/bits/ios_base.h: Likewise.
343 * include/bits/istream.tcc: Likewise.
344 * include/bits/locale_facets.tcc: Likewise.
345 * include/bits/ostream.tcc: Likewise.
346 * include/bits/stl_function.h: Likewise.
347 * include/bits/stl_multiset.h: Likewise.
348 * include/bits/stl_pair.h: Likewise.
349 * include/bits/stl_set.h: Likewise.
350 * include/bits/streambuf_iterator.h
351 * include/std/std_iosfwd.h: Likewise.
352 * include/std/std_istream.h: Likewise.
353 * include/std/std_sstream.h: Likewise.
354 * include/std/std_streambuf.h: Likewise.
355 * src/ios.cc: Likewise.
356 * include/bits/c++config:
357 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
358 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
359 dg-error directive due to removal of a blank line.
360 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
362 2003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
363 Paolo Carlini <pcarlini@unitus.it>
365 PR libstdc++/11844/11740 (cont)
366 * config/os/generic/ctype_inline.h (ctype<char>::is):
367 Generically, use a bitmasksize of 15 (instead of 10);
368 Fix the logic to actually return (M & m) != 0 as per
371 2003-10-11 Bernardo Innocenti <bernie@develer.com>
373 * crossconfig.m4 (*-uclinux*): New target.
374 * configure: Regenerate.
376 2003-10-10 Paolo Carlini <pcarlini@unitus.it>
378 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
379 Avoid unnecessarily calling __builtin_alloca and dealing
380 explicitly with width() smaller than zero.
381 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
382 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
383 const char*), operator<<(basic_ostream<char, _Traits>&,
384 const char*), operator<<(basic_ostream, const basic_string&)):
387 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
389 * config/linker-map.gnu: Make more *_type_info bits visible.
390 Move new/delete bits back into GLIBCXX space.
392 * include/bits/locale_classes.h: Move _M_id out of line, so that
393 locale::id::_S_highwater can be removed from the export list.
394 * src/locale.cc (locale::id::_M_id): Define.
396 2003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
398 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
401 2003-10-09 Paolo Carlini <pcarlini@unitus.it>
404 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
405 to conform to the requirements of 22.2.1.
406 * config/os/bsd/freebsd/ctype_base.h: Likewise.
407 * config/os/djgpp/ctype_base.h: Likewise.
408 * config/os/generic/ctype_base.h: Likewise.
409 * config/os/gnu-linux/ctype_base.h: Likewise.
410 * config/os/hpux/ctype_base.h: Likewise.
411 * config/os/irix/irix6.5/ctype_base.h: Likewise.
412 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
413 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
414 * testsuite/22_locale/ctype/11844.cc: New.
416 * config/locale/generic/ctype_members.cc (do_is):
417 Generically, use a bitmasksize of 15 (instead of 10), since
418 we don't know the numerical encoding of the various categories
419 in the underlying /usr/include/ctype.h.
421 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
423 * src/string-inst.cc: Prune.
424 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
425 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
427 2003-10-09 Petur Runolfsson <peturr02@ru.is>
429 * src/io-inst.cc: Don't include iostream.
430 * include/bits/ios_base.h (ios_base::failure): Use string.
431 * src/Makefile.am: Add ios_failure.cc.
432 * src/Makefile.in: Regenerate.
433 * src/ios.cc: Move ios_base::failure definitions to...
434 * src/ios_failure.cc: ...here. New.
436 2003-10-09 Petur Runolfsson <peturr02@ru.is>
439 * include/bits/fstream.tcc (basic_filebuf::seekoff):
440 Move code needed for both seekoff and seekpos...
441 (basic_filebuf::_M_seek): ...here. New function.
442 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
443 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
444 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
446 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
448 2003-10-08 Paolo Carlini <pcarlini@unitus.it>
450 * include/bits/locale_facets.tcc: More minor cosmetic
451 changes and const-ifications of some variables.
453 2003-10-07 Paolo Carlini <pcarlini@unitus.it>
455 * include/bits/locale_facets.tcc: Minor cosmetic changes
456 and const-ifications of some variables.
458 * include/bits/locale_facets.tcc
459 (money_get::do_get(..., string_type&)): Simplify an if-else.
461 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
464 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
465 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
466 * config/locale/generic/ctype_members.cc: Same.
467 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
469 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
471 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
472 Improve performance-wise: avoid one traits::copy, avoid
473 the __builtin_alloca, streamline.
475 2003-10-05 Paolo Carlini <pcarlini@unitus.it>
477 * include/bits/locale_facets.tcc
478 (num_put::do_put(..., bool)): Prefer ?: to if-else.
479 (time_get::_M_extract_name): Qualify min with std::.
480 (__pad<>::_S_pad): Constify two variables; simplify an
481 if-else statement factoring out some code.
483 * include/bits/locale_facets.tcc: Minor cosmetic changes.
485 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
487 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
488 Constify a couple of variables.
489 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
492 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
493 Petur Runolfsson <peturr02@ru.is>
495 * include/ext/stdio_sync_filebuf.h: Don't include the whole
496 <fstream>, only <streambuf> and <cstdio>.
498 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
501 * include/bits/fstream.tcc (imbue): In case a codecvt facet
502 is not available, set _M_codecvt = 0.
503 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
505 2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
508 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
510 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
512 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
513 * src/locale.cc: Define.
514 * src/localename.cc: Use it.
515 * config/locale/generic/time_members.h: Same.
516 * config/locale/gnu/messages_members.h: Same.
517 * config/locale/gnu/time_members.h: Same.
519 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
522 * include/bits/fstream.tcc (seekoff): Ignore the openmode
524 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
525 seekpos): Remove the openmode argument.
526 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
527 seekpos): Remove redundant placeholder for the openmode argument.
528 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
529 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
530 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
531 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
532 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
534 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
536 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
537 (locale::facet::_S_get_c_locale): Same.
539 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
541 * config/linker-map.gnu: Export _S_get_c_locale instead of
544 2003-10-02 Petur Runolfsson <peturr02@ru.is>
546 * config/locale/generic/c_locale.cc
547 (category_names, locale::_S_categories): Const qualify.
548 * config/locale/gnu/c_locale.cc: Same.
549 * config/locale/generic/time_members.h (__timepunct::__timepunct):
550 Copy string contents before assigning to _M_name_timepunct,
551 qualify strcpy and strlen with std::.
552 * config/locale/gnu/time_members.h: Same.
553 * config/locale/gnu/messages_members.h (messages::messages):
554 Copy string contents before assigning to _M_name_messages,
555 qualify strcpy and strlen with std::.
556 * config/os/gnu-linux/ctype_noninline.h
557 (ctype<char>::classic_table()): Don't call locale::classic().
558 * include/bits/locale_classes.h
559 (locale::_S_categories): Const qualify.
560 (locale::_S_once, locale::_S_initialize_once,
561 locale::facet::_S_once, locale::facet::_S_initialize_once,
562 locale::facet::_S_get_c_locale): Declare.
563 (locale::_S_initialize): Don't define.
564 (locale::facet::_S_c_locale): Make private.
565 (locale::facet::_S_c_name): Same, const qualify.
566 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
567 parameters, add throw() specifier.
568 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
569 messages::_M_name_messages): Const qualify.
571 (locale::_S_once, locale::facet::_S_once): Define.
572 (locale::classic): Move initialization code...
573 (locale::_S_initialize_once): ...here.
574 (locale::_S_initialize): Call _S_initialize_once through
576 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
577 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
578 __gthread_once before returning _S_c_locale.
579 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
580 Drop unused parameters, add throw() specifier, don't initialize
581 locale::facet::_S_c_locale and _S_c_name.
583 * config/locale/generic/messages_members.h:
584 Replace _S_c_locale with _S_get_c_locale().
585 * config/locale/gnu/c_locale.cc: Same.
586 * config/locale/gnu/messages_members.h: Same.
587 * config/locale/gnu/numeric_members.cc: Same.
588 * config/locale/gnu/time_members.cc: Same.
589 * config/os/gnu-linux/ctype_noninline.h: Same.
590 * include/bits/locale_facets.h: Same.
591 * include/bits/locale_facets.tcc: Same.
592 * src/codecvt.cc: Same.
593 * src/ctype.cc: Same.
595 2003-10-02 Carlo Wood <carlo@alinoe.com>
597 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
598 Decode symbols that start with _GLOBAL_[ID]_ differently: the
599 trailing part ends with a terminating zero and is not necessarily an
601 * src/demangle.cc (): Same.
602 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
604 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
606 * testsuite/22_locale/locale/cons/12438.cc: Use
607 __gnu_test::try_named_locale("").
609 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
611 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
612 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
614 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
615 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
617 * config.h.in, configure: Regenerate.
618 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
621 2003-10-01 Nathan Myers <ncm@cantrip.org>
623 * include/bits/locale_facets.tcc (time_put::put): Avoid
624 expensive *__s++, in favor of *__s, ++__s.
626 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
628 * include/bits/locale_facets.tcc (time_put::put): Minor
629 tweak to the previous commit.
631 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
634 * include/bits/locale_facets.tcc (time_put::put): Deal
635 with the three issues pointed out by the PR.
636 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
637 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
638 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
639 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
640 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
642 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
644 * include/bits/stl_algo.h: Minor cosmetic reformattings.
646 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
648 * include/bits/stl_algo.h (search_n): Tweak, to spare the
651 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
653 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
654 qualify exception name.
656 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
659 * include/bits/locale_facets.tcc (locale::combine): Don't
660 leak memory if _M_replace_facet throws.
661 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
663 * include/bits/locale_classes.h (locale::locale(const locale&,
664 _Facet*)): Tweak, use consistently _M_remove_reference.
666 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
668 PR libstdc++/12352 (cont)
669 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
670 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
672 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
673 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
674 !_M_caches, !_M_names.
676 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
678 * configure.host: Handle Solaris 2.5 micro releases explicitly.
679 Remove wildcards from Solaris 2.6, 7-9: there were no
681 Treat Solaris 10 and up like 7-9.
683 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
685 * include/bits/stl_algo.h (search_n): Improve the previous
686 fix as suggested by Martin.
688 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
691 * include/bits/istream.tcc (peek): Set eofbit if sgetc
693 * testsuite/27_io/basic_istream/peek/char/12296.cc:
696 2003-09-29 Nathan Myers <ncm@cantrip.org>
697 Paolo Carlini <pcarlini@unitus.it>
700 * include/bits/stl_algo.h (search_n):
701 Use iterator_traits<>::difference_type for __n.
702 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
704 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
706 * testsuite/22_locale/locale/cons/12352.cc:
707 Use __attribute__((unused)) for test.
709 2003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
711 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
712 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
713 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
715 2003-09-26 Brad Spencer <spencer@infointeractive.com>
717 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
718 Explicitly qualify exceptions.
719 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
720 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
721 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
722 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
724 2003-09-25 Paolo Carlini <pcarlini@unitus.it>
727 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
728 size_t)): Don't leak if memory allocations for _M_facets,
729 _M_caches, and _M_names fail.
730 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
731 (locale::_Impl::_M_replace_categories(const _Impl*,
733 (locale::_Impl::_M_install_facet(const locale::id*,
734 const facet*)): Ditto.
735 * include/bits/locale_classes.h (locale::locale(const locale&,
736 _Facet*)): Don't leak memory.
737 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
739 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
740 bool)): Qualify with std:: strcpy, tweak.
741 * include/bits/locale_classes.h
742 (locale::_Impl::_M_check_same_name): Qualify strcmp.
744 2003-09-25 Brad Spencer <spencer@infointeractive.com>
747 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
749 * aclocal.m4: Regenerate.
750 * config.h.in: Regenerate.
751 * configure: Regenerate.
752 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
753 * config/io/basic_file_stdio.cc: Guard unistd.h.
754 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
755 * include/c_std/std_cwchar.h: Same.
756 * include/c_std/std_cwctype.h: Same.
758 2003-09-25 Benjamin Kosnik <bkoz@redhat.com>
761 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
762 * config/locale/generic/ctype_members.cc: Same.
763 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
764 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
766 * config/os/generic/ctype_inline.h: Update.
768 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
770 * src/Makefile.am (version_dep): New variable.
771 (libstdc___la_DEPENDENCIES): Use it to add dependency on
772 libstdc++-symbol.ver only when using symbol versioning.
773 * src/Makefile.in: Regenerate.
775 2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
777 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
778 * testsuite/testsuite_hooks.h: Same.
779 * testsuite/*/*.cc: Same.
781 2003-09-22 Petur Runolfsson <peturr02@ru.is>
783 * include/bits/istream.tcc (basic_istream::read,
784 basic_istream::readsome, basic_istream::putback,
785 basic_istream::unget, operator>>(basic_istream, CharT)):
786 Avoid redundant setstate(failbit) calls when sentry::operator bool()
789 2003-09-22 Carlo Wood <carlo@alinoe.com>
792 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
793 char const*, int, int)): Remove unused identifier
794 cv_qualifier for overloaded constructor.
796 2003-09-18 Benjamin Kosnik <bkoz@redhat.com>
799 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
800 WARN_FLAGS, remove -Wno-format.
801 * aclocal.m4: Regenerate.
802 * configure: Regenerate.
804 2003-09-18 Petur Runolfsson <peturr02@ru.is>
806 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
807 * config/io/basic_file_stdio.h: Same.
808 * include/std/std_fstream.h (__ctype_type): Delete.
809 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
811 2003-09-17 Benjamin Kosnik <bkoz@redhat.com>
814 * configure.host (abi_baseline_pair): Error out on solaris2
815 configurations without a minor version number.
817 2003-09-13 Phil Edwards <phil@codesourcery.com>
819 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
821 * docs/doxygen/user.cfg.in: And here.
823 2003-09-10 Daniel Jacobowitz <drow@mvista.com>
824 Andreas Jaeger <aj@suse.de>
827 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
828 abi_check if cross compiling.
829 * aclocal.m4: Regenerated.
830 * configure: Regenerated.
832 2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
834 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
835 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
836 (__cxa_vec_new3): Likewise.
838 2003-09-10 Petur Runolfsson <peturr02@ru.is>
840 * include/bits/fstream.tcc (basic_filebuf::seekoff):
841 Use codecvt::length to handle variable-width stateless encodings
843 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
844 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
846 2003-09-10 Alan Modra <amodra@bigpond.net.au>
848 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
851 2003-09-09 Alan Modra <amodra@bigpond.net.au>
853 * configure: Regenerate.
855 2003-09-09 David Edelsohn <edelsohn@gnu.org>
857 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
858 qualifier from _S_synced_with_stdio.
860 2003-09-09 Bernardo Innocenti <bernie@develer.com>
862 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
864 2003-09-04 Petur Runolfsson <peturr02@ru.is>
867 * include/bits/fstream.tcc
868 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
869 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
870 _M_ext_buf_size, _M_ext_next and _M_ext_end.
871 (basic_filebuf::underflow): Handle variable-width stateless
872 encodings (codecvt::encoding() == 0), including UTF-8.
873 * include/std/std_fstream.h (basic_filebuf):
874 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
875 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
876 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
877 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
878 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
879 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
880 * testsuite/27_io/objects/wchar_t/12.cc: New test.
881 * testsuite/27_io/objects/wchar_t/13.cc: New test.
883 2003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
885 * docs/html/faq/index.html: Note that a namespace alias can't be
886 used when specialising templates in extension namespace.
887 * docs/html/faq/index.txt: Regenerate.
889 2003-09-03 Petur Runolfsson <peturr02@ru.is>
892 * include/ext/stdio_sync_filebuf.h
893 (stdio_sync_filebuf::_M_unget_buf): Declare it.
894 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
895 (stdio_sync_filebuf::uflow): Store the returned character in
897 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
898 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
899 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
900 _M_unget_buf, if any, else eof().
901 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
902 _M_unget_buf, if any, else eof().
903 * testsuite/27_io/objects/char/12048.cc: Rename to...
904 * testsuite/27_io/objects/char/12048-1.cc: ...this.
905 * testsuite/27_io/objects/char/12048-2.cc: New test.
906 * testsuite/27_io/objects/char/12048-3.cc: New test.
907 * testsuite/27_io/objects/char/12048-4.cc: New test.
908 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
909 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
910 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
911 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
912 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
913 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
914 * testsuite/ext/stdio_sync_filebuf_char.cc
915 (test02, test03, test04, test05): New tests.
916 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
917 (test02, test03, test04, test05): New tests.
919 2003-09-03 Petur Runolfsson <peturr02@ru.is>
921 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
922 stringbuf or strstreambuf. Fix typos.
924 2003-09-02 Phil Edwards <phil@codesourcery.com>
926 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
928 * config.h.in: Add _GLIBCXX_HOSTED.
929 * libsupc++/eh_term_handler.cc: Test it here; initialize
930 __terminate_handler to std::abort if freestanding.
931 * aclocal.m4, configure: Regenerated.
932 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
934 2003-08-29 Nathan Myers <ncm@cantrip.org>
937 * include/bits/locale_facets.tcc (__pad): delete dead code.
939 2003-08-28 Alan Modra <amodra@bigpond.net.au>
941 * configure.ac: Test $with_cross_host against $build_alias, not $build.
942 * configure: Regenerate.
944 2003-08-27 Petur Runolfsson <peturr02@ru.is>
946 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
947 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
949 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
951 * Makefile.am: Remove trailing whitespace. Remove needless
952 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
953 * include/Makefile.am: Likewise.
954 * libmath/Makefile.am: Likewise.
955 * libsupc++/Makefile.am: Likewise.
956 * po/Makefile.am: Likewise.
957 * src/Makefile.am: Likewise.
958 * testsuite/Makefile.am: Likewise.
960 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
961 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
962 testsuite/Makefile.in: Regenerated.
964 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
966 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
968 * aclocal.m4, configure: Regenerate.
970 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
972 * acinclude.m4: Include no-executables.m4.
973 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
974 * aclocal.m4: Regenerated.
975 * configure: Regenerated.
977 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
979 * acinclude.m4: Don't call AC_ISC_POSIX.
980 * aclocal.m4: Regenerated.
981 * configure: Regenerated.
983 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
985 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
986 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
987 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
988 used elsewhere in this file.
989 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
990 * configure.ac: ...called here to expand all conditionals.
991 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
992 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
993 (install-freestanding-headers): New target, a subset of
994 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
996 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
997 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
998 src/Makefile.in, testsuite/Makefile.in: Regenerated.
1000 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
1002 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
1003 pathnames from generated tag file.
1005 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
1007 * Makefile.am: Add comment.
1008 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
1010 * configure.ac: Use them both here, instead of hardcoded lists.
1012 * fragment.am: Add STAMP varaible.
1013 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
1015 (stamp-*): Move file creation rule outside of 'if' branches to
1016 ensure the stamp-* files are actually updated. Use $(STAMP).
1017 * src/Makefile.am: Remove now-nonexistant variable.
1018 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
1020 * po/Makefile.am: Include same fragment as all the others.
1022 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1023 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
1025 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
1027 * testsuite/data/cin_unget-1.txt: New.
1028 * testsuite/27_io/objects/char/12048.cc: New.
1030 2003-08-25 Zack Weinberg <zack@codesourcery.com>
1032 * config/os/hpux/os_defines.h: Unconditionally define
1033 _GLIBCXX_GTHREAD_USE_WEAK to 0.
1035 2003-08-19 Geoffrey Keating <geoffk@apple.com>
1037 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
1038 crosses to Darwin targets.
1039 * configure: Regenerate.
1041 2003-08-19 Petur Runolfsson <peturr02@ru.is>
1043 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
1045 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
1047 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
1048 in the patch from 3 minutes ago. Boy, is my face red.
1049 * configure: At least I remembered to regenerate this.
1051 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
1053 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
1054 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
1055 things from the top level.
1056 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
1057 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
1058 (currently unused). Strip the fake-VPATH shell fragment from
1059 automake-generated rules, if present.
1060 * linkage.m4: Add comment.
1062 * fragment.am: New file, containing factored-out common settings.
1063 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
1064 * Makefile.am: Include fragment.am. Remove common variables.
1065 * include/Makefile.am: Likewise.
1066 * libmath/Makefile.am: Likewise.
1067 * libsupc++/Makefile.am: Likewise.
1068 * po/Makefile.am: Likewise. Print rules during check.
1069 * src/Makefile.am: Likewise.
1070 * testsuite/Makefile.am: Likewise.
1072 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1073 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1074 src/Makefile.in, testsuite/Makefile.in: Regenerate.
1076 2003-08-11 John Levon <levon@movementarian.org>
1078 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
1079 remaining places for the name change from GLIBCPP_FORCE_NEW
1080 to GLIBCXX_FORCE_NEW
1082 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
1084 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
1086 * include/bits/basic_ios.tcc: Same.
1087 * include/bits/istream.tcc: Same.
1088 * include/bits/locale_facets.h: Same.
1089 * include/bits/ostream.tcc: Same.
1090 * include/std/std_istream.h: Same.
1091 * include/std/std_ostream.h: Same.
1092 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
1094 * include/ext/rope: Remove build warning.
1096 2003-08-11 Andreas Jaeger <aj@suse.de>
1098 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
1100 * include/Makefile.in: Regenerated.
1102 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
1104 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
1105 when calling AC_PROG_CC.
1106 * aclocal.m4, configure: Regenerate.
1108 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
1110 * acinclude.m4: Properly quote variable which will be expanded
1111 inside makefiles. Use CXX instead of CC to extract compiler info.
1112 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
1113 correct form in PACKAGE.
1114 * aclocal.m4, configure: Regenerate.
1116 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
1118 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
1119 (check-abi-verbose): Same.
1120 * testsuite/testsuite_performance.h (report_performance): Same.
1122 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
1124 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
1126 2003-08-07 Doug Gregor <dgregor@apple.com>
1128 * include/bits/char_traits.h (char_traits::not_eof): Match operand
1131 2003-08-07 Bernardo Innocenti <bernie@develer.com>
1134 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
1135 Replace variants with new BSET-based version.
1137 2003-08-07 Carlo Wood <carlo@alinoe.com>
1139 * include/bits/demangle.h: Do not use cctype functions that depend
1142 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
1144 * configure.in: Rename...
1145 * configure.ac: ...to this.
1146 * docs/html/17_intro/porting.texi: Update name.
1148 * docs/html/17_intro/porting.html: Regenerate.
1149 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1150 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1151 testsuite/Makefile.in: Regenerate (picks up new dependancy).
1153 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
1155 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
1156 pipe, open the window to let out the fumes, redo the option-handling
1157 logic to properly execute the detection test.
1158 * aclocal.m4, configure: Regenerate.
1160 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1162 Convert to new autotools.
1163 * acconfig.h: Update with correct names.
1164 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
1165 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
1166 * configure.in: Update. Split hardcoded cross-configury settings
1168 * crossconfig.m4: ...here. New file. Contents untouched.
1169 * acinclude.m4: Reorganize and rewrite as needed. Split large
1171 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
1173 * scripts/testsuite_flags.in: Update.
1175 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
1176 variables (already generated by automake).
1177 * include/Makefile.am: Ditto.
1178 * libmath/Makefile.am: Ditto.
1179 * libsupc++/Makefile.am: Ditto.
1180 * po/Makefile.am: Ditto.
1181 * src/Makefile.am: Ditto.
1183 * aclocal.m4: Regenerate using new versions.
1184 * config.h.in: Ditto.
1186 * Makefile.in: Ditto.
1187 * include/Makefile.in: Ditto.
1188 * libmath/Makefile.in: Ditto.
1189 * libsupc++/Makefile.in: Ditto.
1190 * po/Makefile.in: Ditto.
1191 * src/Makefile.in: Ditto.
1192 * testsuite/Makefile.in: Ditto.
1194 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1196 * po/libstdc++.pot: Re-extract/regenerate.
1198 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1200 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
1201 Remove unneeded variable assignments. Leave them for automake.
1202 * testsuite/lib/libstdc++-v3.exp: Rename...
1203 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
1205 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
1206 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
1209 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1211 * docs/doxygen/guide.html: run_doxygen uses bash.
1212 * docs/doxygen/mainpage.html: We'll be shipping tag files.
1213 * docs/doxygen/run_doxygen: Tweaks and improvements.
1214 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
1215 * docs/html/install.html: Update autoconf/automake requirements.
1216 * docs/html/test.html: Add section describing DejaGNU support.
1217 * docs/html/17_intro/confdeps.dot: New file, generates...
1218 * docs/html/17_intro/confdeps.png: ...this new file.
1219 * docs/html/Makefile: Generated here.
1220 * docs/html/17_intro/configury.html: New file.
1222 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
1224 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
1225 * testsuite/lib/libstdc++-v3.exp: ...to this.
1226 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
1228 2003-07-31 Doug Gregor <dgregor@apple.com>
1230 Add user specialization tests.
1231 * testsuite/23_containers/deque/1.cc: New.
1232 * testsuite/23_containers/list/1.cc: New.
1233 * testsuite/23_containers/map/1.cc: New.
1234 * testsuite/23_containers/multimap/1.cc: New.
1235 * testsuite/23_containers/multiset/1.cc: New.
1236 * testsuite/23_containers/set/1.cc: New.
1237 * testsuite/23_containers/vector/1.cc: New.
1239 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
1241 Reshuffle 23_containers testsuite.
1242 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
1243 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
1244 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
1245 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
1246 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
1247 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
1248 vector_resize.cc: Split into...
1249 * 23_containers/bitset/cons/1.cc: New.
1250 * 23_containers/bitset/cons/6282.cc: New.
1251 * 23_containers/bitset/count/6124.cc: New.
1252 * 23_containers/bitset/operations/1.cc: New.
1253 * 23_containers/bitset/operations/2.cc: New.
1254 * 23_containers/bitset/test/1.cc: New.
1255 * 23_containers/bitset/to_ulong/1.cc: New.
1256 * 23_containers/deque/cons/1.cc: New.
1257 * 23_containers/deque/cons/2.cc: New.
1258 * 23_containers/deque/operators/1.cc: New.
1259 * 23_containers/list/capacity/1.cc: New.
1260 * 23_containers/list/cons/1.cc: New.
1261 * 23_containers/list/cons/2.cc: New.
1262 * 23_containers/list/cons/3.cc: New.
1263 * 23_containers/list/cons/4.cc: New.
1264 * 23_containers/list/cons/5.cc: New.
1265 * 23_containers/list/cons/6.cc: New.
1266 * 23_containers/list/cons/7.cc: New.
1267 * 23_containers/list/cons/8.cc: New.
1268 * 23_containers/list/cons/9.cc: New.
1269 * 23_containers/list/modifiers/1.cc: New.
1270 * 23_containers/list/modifiers/2.cc: New.
1271 * 23_containers/list/modifiers/3.cc: New.
1272 * 23_containers/list/operators/1.cc: New.
1273 * 23_containers/list/operators/2.cc: New.
1274 * 23_containers/list/operators/3.cc: New.
1275 * 23_containers/list/operators/4.cc: New.
1276 * 23_containers/map/insert/1.cc: New.
1277 * 23_containers/map/operators/1.cc: New.
1278 * 23_containers/map/operators/1_neg.cc: New.
1279 * 23_containers/multiset/insert/1.cc: New.
1280 * 23_containers/priority_queue/members/7161.cc: New.
1281 * 23_containers/queue/members/7157.cc: New.
1282 * 23_containers/set/operators/1_neg.cc: New.
1283 * 23_containers/stack/members/7158.cc: New.
1284 * 23_containers/vector/bool/1.cc: New.
1285 * 23_containers/vector/bool/6886.cc: New.
1286 * 23_containers/vector/capacity/1.cc: New.
1287 * 23_containers/vector/capacity/2.cc: New.
1288 * 23_containers/vector/capacity/8230.cc: New.
1289 * 23_containers/vector/cons/1.cc: New.
1290 * 23_containers/vector/cons/2.cc: New.
1291 * 23_containers/vector/cons/3.cc: New.
1292 * 23_containers/vector/cons/4.cc: New.
1293 * 23_containers/vector/cons/6513.cc: New.
1294 * 23_containers/vector/element_access/1.cc: New.
1295 * 23_containers/vector/modifiers/1.cc: New.
1296 * 23_containers/vector/modifiers/2.cc: New.
1297 * 23_containers/vector/resize/1.cc: New.
1299 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1301 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
1303 * testsuite/thread/pthread2.cc: Likewise.
1304 * testsuite/thread/pthread3.cc: Likewise.
1305 * testsuite/thread/pthread4.cc: Likewise.
1306 * testsuite/thread/pthread5.cc: Likewise.
1307 * testsuite/thread/pthread6.cc: Likewise.
1308 * testsuite/thread/pthread7-rope.cc: Likewise.
1310 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
1312 * include/bits/c++config: Partial reversion (comment placement) of
1315 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
1317 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
1318 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
1319 (_GLIBCXX_AT_AT): Remove.
1320 (__USE_MALLOC): Remove.
1321 * include/std/std_fstream.h: Modify.
1322 * include/bits/basic_ios.h: Same.
1323 * include/bits/valarray_array.h: Same.
1324 * include/c_std/std_cmath.h: Same.
1325 * include/c_std/cmath.tcc: Same.
1326 * include/std/std_vector.h: Same.
1327 * include/std/std_string.h: Same.
1328 * include/std/std_stack.h: Same.
1329 * include/std/std_queue.h: Same.
1330 * include/std/std_list.h: Same.
1331 * include/std/std_deque.h: Same.
1332 * include/std/std_streambuf.h: Same.
1333 * include/std/std_sstream.h: Same.
1334 * include/std/std_ostream.h: Same.
1335 * include/std/std_istream.h: Same.
1336 * include/bits/valarray_array.tcc: Same, format.
1338 * include/c/std_cctype.h: Fix include guards.
1339 * include/c/std_cerrno.h: Same.
1340 * include/c/std_cfloat.h: Same.
1341 * include/c/std_climits.h: Same.
1342 * include/c/std_clocale.h: Same.
1343 * include/c/std_cmath.h: Same.
1344 * include/c/std_csetjmp.h: Same.
1345 * include/c/std_csignal.h: Same.
1346 * include/c/std_cstdarg.h: Same.
1347 * include/c/std_cstddef.h: Same.
1348 * include/c/std_cstdio.h: Same.
1349 * include/c/std_cstdlib.h: Same.
1350 * include/c/std_cstring.h: Same.
1351 * include/c/std_ctime.h: Same.
1352 * include/c/std_cwchar.h: Same.
1353 * include/c/std_cwctype.h: Same.
1354 * include/c_std/cmath.tcc: Same.
1355 * include/c_std/std_cmath.h: Same.
1357 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
1360 * include/bits/stl_tree.h: Replace C-style casts with C++-style
1361 casts. Changes to avoid casting away constness. Eliminate
1362 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
1363 initialization lists. Move out implementation of __black_count()
1365 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
1366 Rename_Rb_tree_base_iterator::_M_increment() to
1367 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
1369 * config/linker-map.gnu: Add and change symbols here.
1371 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
1373 * docs/html/22_locale/howto.html: Use locale::classic() instead
1376 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
1378 * testsuite/testsuite_hooks.h: Remove list include.
1379 (func_callback): Define as unique type, not std::list.
1380 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
1381 * testsuite/libstdc++-v3.dg/dg.exp: Same.
1382 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
1383 * testsuite/23_containers/bitset_ctor.cc:
1384 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
1385 * testsuite/18_support/numeric_limits.cc: Same.
1386 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
1387 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
1388 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
1389 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
1390 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
1391 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
1392 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
1393 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
1394 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
1395 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
1396 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
1397 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
1398 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
1399 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
1400 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
1401 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
1402 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
1403 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
1404 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
1405 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
1406 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
1407 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
1408 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
1409 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
1410 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
1411 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
1412 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
1413 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
1414 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
1415 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
1416 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
1417 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
1418 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
1419 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
1420 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
1421 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
1422 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
1423 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
1424 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
1425 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
1426 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
1427 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
1428 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
1429 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
1430 * testsuite/23_containers/bitset_ctor.cc: Same.
1431 * testsuite/23_containers/bitset_shift.cc: Same.
1432 * testsuite/23_containers/vector_ctor.cc: Same.
1433 * testsuite/23_containers/vector_element_access.cc: Same.
1434 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
1435 * testsuite/24_iterators/iterator.cc: Same.
1436 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
1437 * testsuite/25_algorithms/lower_bound.cc: Same.
1438 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
1439 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
1440 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
1441 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
1442 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
1443 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
1444 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
1445 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
1446 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
1447 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
1448 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
1451 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
1453 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
1454 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
1455 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
1456 GLIBCPP to GLIBCXX (and explain as needed).
1458 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
1462 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
1464 * testsuite/22_locale/messages/members/char/1.cc,
1465 testsuite/22_locale/messages/members/char/2.cc,
1466 testsuite/22_locale/messages/members/char/3.cc,
1467 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
1468 the origin of LOCALEDIR.
1469 * testsuite/lib/libstdc++-v3.exp: New file.
1471 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
1473 * include/bits/char_traits.h: Update copyright, tweak.
1474 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
1477 2003-07-24 Matt Austern <austern@apple.com>
1479 * /include/bits/char_traits.h (class char_traits): Put all the
1480 real work into the new class template __gnu_cxx::char_traits.
1481 Gave generic definitions for member functions. Types are taken
1482 from the new class template __gnu_cxx::_Char_types.
1483 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
1484 file. Test of std::char_traits<short>, which serves as a test of
1485 the char_traits primary template.
1487 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
1489 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
1491 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
1493 * testsuite/23_containers/map_operators.cc: Conform to
1494 container requirement as value must be Assignable.
1496 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
1498 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
1499 tests not only generation of pch files, but also their use.
1500 * aclocal.m4, configure: Rebuilt.
1502 2003-07-23 Steve Ellcey <sje@cup.hp.com>
1504 * config/cpu/hppa/atomicity.h: Change
1505 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
1506 to match misc-inst.cc
1508 2003-07-23 Steve Ellcey <sje@cup.hp.com>
1510 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
1511 * include/c_std/std_cctype.h: Ditto.
1512 * include/c_std/std_cerrno.h: Ditto.
1513 * include/c_std/std_cfloat.h: Ditto.
1514 * include/c_std/std_climits.h: Ditto.
1515 * include/c_std/std_clocale.h: Ditto.
1516 * include/c_std/std_cmath.h: Ditto.
1517 * include/c_std/std_csetjmp.h: Ditto.
1518 * include/c_std/std_csignal.h: Ditto.
1519 * include/c_std/std_cstdarg.h: Ditto.
1520 * include/c_std/std_cstddef.h: Ditto.
1521 * include/c_std/std_cstdio.h: Ditto.
1522 * include/c_std/std_cstdlib.h: Ditto.
1523 * include/c_std/std_cstring.h: Ditto.
1524 * include/c_std/std_ctime.h: Ditto.
1525 * include/c_std/std_cwchar.h: Ditto.
1526 * include/c_std/std_cwctype.h: Ditto.
1527 * include/std/std_algorithm.h: Ditto.
1528 * include/std/std_bitset.h: Ditto.
1529 * include/std/std_complex.h: Ditto.
1530 * include/std/std_deque.h: Ditto.
1531 * include/std/std_fstream.h: Ditto.
1532 * include/std/std_functional.h: Ditto.
1533 * include/std/std_iomanip.h: Ditto.
1534 * include/std/std_ios.h: Ditto.
1535 * include/std/std_iosfwd.h: Ditto.
1536 * include/std/std_iostream.h: Ditto.
1537 * include/std/std_istream.h: Ditto.
1538 * include/std/std_iterator.h: Ditto.
1539 * include/std/std_limits.h: Ditto.
1540 * include/std/std_list.h: Ditto.
1541 * include/std/std_locale.h: Ditto.
1542 * include/std/std_map.h: Ditto.
1543 * include/std/std_memory.h: Ditto.
1544 * include/std/std_numeric.h: Ditto.
1545 * include/std/std_ostream.h: Ditto.
1546 * include/std/std_queue.h: Ditto.
1547 * include/std/std_set.h: Ditto.
1548 * include/std/std_sstream.h: Ditto.
1549 * include/std/std_stack.h: Ditto.
1550 * include/std/std_stdexcept.h: Ditto.
1551 * include/std/std_streambuf.h: Ditto.
1552 * include/std/std_string.h: Ditto.
1553 * include/std/std_utility.h: Ditto.
1554 * include/std/std_valarray.h: Ditto.
1555 * include/std/std_vector.h: Ditto.
1557 2003-07-22 Doug Gregor <dgregor@apple.com>
1559 * include/bits/basic_string.h (basic_string::insert): Deprecate
1562 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
1564 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
1566 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
1567 (test03): Include typeinfo for bad_cast.
1568 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1569 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1570 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1572 2003-07-21 Doug Gregor <dgregor@apple.com>
1574 * include/bits/boost_concept_check.h:
1575 (_EqualityComparableConcept::__constraints): Remove != from the
1576 list of constraints; it is not listed in Table 28 of the C++98
1579 2003-07-18 Andreas Jaeger <aj@suse.de>
1581 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
1582 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
1583 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
1584 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
1586 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
1588 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
1589 * config/locale/generic/messages_members.h: Tweaks.
1590 * config/locale/generic/monetary_members.cc
1591 (moneypunct::_M_initialize_moneypunct): Use cache.
1592 (moneypunct::~moneypunct): Delete cache.
1593 * config/locale/generic/time_members.cc:
1594 (__timepunct::_M_initialize_timepunct): Use cache.
1595 * config/locale/generic/time_members.h:
1596 (__timepunct::~__timepunct): Delete cache.
1597 (__timepunct::__timepunct): Set cache.
1598 * config/locale/gnu/messages_members.h: Tweaks.
1599 * config/locale/gnu/monetary_members.cc:
1600 (moneypunct::_M_initialize_moneypunct): Use cache.
1601 (moneypunct::~moneypunct): Delete cache.
1602 * config/locale/gnu/time_members.cc:
1603 (__timepunct::_M_initialize_timepunct): Use cache.
1604 * config/locale/gnu/time_members.h:
1605 (__timepunct::~__timepunct): Delete cache.
1606 (__timepunct::__timepunct): Set cache.
1607 * include/bits/locale_facets.h (__timepunct_cache): New.
1608 (__moneypunct_cache): New.
1609 * include/bits/locale_facets.tcc: Tweak.
1610 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
1611 * src/locale-inst.cc: Instantiate caches.
1612 * src/globals.cc: Add "C" caches.
1613 * src/localename.cc: Use external "C" caches.
1615 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
1617 * docs/doxygen/guide.html: Fix typo.
1619 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
1621 * include/ext/pod_char_traits.h: Add state template argument.
1623 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
1625 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
1626 (num_get::_M_convert_int): To _M_insert_int.
1627 (num_get::_M_convert_float): To _M_insert_float.
1628 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1629 Use caches for ctype, num_get.
1630 (num_get::_M_extract_int): Same.
1631 (num_get::get(bool)): Same.
1632 (__verify_grouping): Use size_t.
1633 * src/locale-inst.cc: Update.
1634 * src/locale.cc: Adjust _S_atoms_in.
1636 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
1638 * docs/doxygen/mainpage.html: Move building/writing instructions...
1639 * docs/doxygen/guide.html: ...to here. New file.
1641 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
1643 * docs/html/ext/howto.html: Update URL for SGI STL docs.
1644 * docs/html/faq/index.html: Same.
1645 * docs/html/faq/index.txt: Regenerate.
1647 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
1650 * include/bits/locale_facets.tcc (money_get::do_get):
1651 Strip only _leading_ zeros.
1652 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
1653 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
1655 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1657 * include/ext/hash_map (class hash_multimap): Remove extra
1658 semicolons from __glibcxx_class_requires3 entries.
1659 * include/ext/hash_set (class hash_set): Ditto.
1660 (class hash_multiset): Ditto.
1662 2003-07-15 Petur Runolfsson <peturr02@ru.is>
1664 * include/bits/char_traits.h (char_traits<wchar_t>::move):
1665 Change last parameter from int_type to size_t.
1667 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
1669 * include/bits/stl_algo.h (includes, set_union, set_intersection,
1670 set_difference, set_symmetric_difference, max_element, min_element,
1671 next_permutation, prev_permutation, find_first_of, find_end):
1673 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
1674 restrictions in docs.
1675 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
1677 * docs/doxygen/doxygroups.cc (setoperations): New group.
1679 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
1681 * include/bits/basic_string.h: Document public functions.
1682 * docs/doxygen/TODO: Update c21 todo.
1684 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
1686 * include/bits/stl_list.h: Document more functions.
1687 * docs/doxygen/TODO: Update c23 todo.
1689 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
1691 * config/locale/gnu/c_locale.h (__convert_from_v): One more
1694 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
1696 * include/bits/stl_tempbuf.h: Qualify free with std::.
1697 * src/locale.cc: Include <cstdlib>, qualify getenv.
1699 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
1701 * config/locale/gnu/c_locale.h (__convert_from_v): Include
1702 <cstdio>. Qualify names.
1703 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
1705 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
1706 Nathan C. Myers <ncm-nospam@cantrip.org>
1709 * include/std/std_fstream.h (xsputn): Declare only.
1710 * include/bits/fstream.tcc (xsputn): Define, optimize for the
1711 always_noconv() case: when __n is sufficiently large flush
1712 the buffer and issue a direct write, if possible combining the
1713 two with writev in __basic_file<>::xsputn_2.
1714 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
1716 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
1718 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
1719 the availability of writev in <sys/uio.h>.
1720 * configure.in: Call here.
1721 * acconfig.h: Add undef for the corresponding symbol.
1722 * aclocal.m4: Regenerate.
1723 * configure: Regenerate.
1724 * config.h.in: Regenerate.
1725 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
1727 * include/std/std_fstream.h (sync): Constify a variable.
1729 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
1731 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
1732 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1734 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
1736 * config/locale/gnu/c_locale.h (__convert_from_v): Include
1737 <cstring> and <cstdlib>. Qualify names.
1739 2003-07-13 Mark Mitchell <mark@codesourcery.com>
1741 * config/locale/generic/c_locale.h: Include <cstdlib> and
1743 * include/bits/boost_concept_check.h: Add this-> to unqualified
1745 * include/bits/deque.tcc: Likewise.
1746 * include/bits/locale_facets.h : Likewise.
1747 * include/bits/ostream.tcc: Likewise.
1748 * include/bits/stl_algo.h: Likewise.
1749 * include/bits/stl_bvector.h: Likewise.
1750 * include/bits/stl_deque.h: Likewise.
1751 * include/bits/stl_list.h: Likewise.
1752 * include/bits/stl_tree.h: Likewise.
1753 * include/bits/stl_vector.h: Likewise.
1754 * include/bits/vector.tcc: Likewise.
1755 * include/ext/rope: Likewise.
1756 * include/ext/ropeimpl.h: Likewise.
1757 * include/ext/stdio_filebuf.h: Likewise.
1759 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
1761 * include/bits/basic_ios.h (copyfmt): Document.
1762 * include/bits/ios_base.h (event, event_callback, register_callback,
1763 xalloc, iword, pword): Document.
1764 (imbue, ~ios_base): Update docs on callbacks.
1766 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
1768 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
1769 warning messages if the environment cannot support symbol versioning.
1770 (port_specific_symbol_file): It's plural, add an 's' on the end.
1771 * configure.host: Likewise.
1772 * src/Makefile.am: Likewise.
1773 * config/linker-map.gnu: Remove one semicolon, heh.
1774 * scripts/extract_symvers: Don't assume useful 'export' syntax.
1775 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
1776 * aclocal.m4, configure, src/Makefile.in: Regenerated.
1778 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
1780 * include/bits/locale_facets.tcc: Use function object for
1781 __use_cache instead of template function. Partially specialize for
1783 * include/bits/locale_classes.h: Update friend declaration for
1785 (_M_install_cache): No throw exception specs.
1786 * src/locale.cc: Remove __use_cache specializations.
1787 * include/ext/pod_char_traits.h (length): Tweak.
1788 * include/bits/locale_facets.h (__numpunct_cache): Remove
1790 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
1792 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
1793 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
1794 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
1795 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
1796 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
1797 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
1799 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
1801 * src/ios.cc (_M_grow_words): Fix spelling.
1803 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
1805 * include/bits/stl_tree.h: Move larger member functions in
1806 _Rb_tree_base_iterator and _Rb_tree_node to...
1807 * src/stl_tree.cc: Here.
1808 * src/Makefile.in: Add stl_tree.cc.
1809 * src/Makefile.in: Regenerated.
1810 * config/linker-map.gnu: Add symbols here.
1812 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
1814 * testsuite/ext/pod_char_traits.cc: New.
1815 * include/ext/pod_char_traits.h: New.
1816 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
1817 * include/Makefile.in: Regenerate.
1818 * docs/html/21_strings/howto.html: Update.
1820 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
1822 * testsuite/performance/list_create_fill_sort.cc: New.
1824 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
1826 * config/locale/generic/numeric_members.cc: Correct type info.
1827 * config/locale/gnu/numeric_members.cc: Same.
1828 * include/bits/locale_facets.h: Same.
1830 * include/bits/char_traits.h: Correct spacing.
1832 * src/locale.cc: Wrap to 80 col.
1834 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
1836 * include/std/std_complex.h: Partially revert last
1837 changes: cmath functions must not be qualified.
1839 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
1841 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
1842 2.11 with globbing backport fix.
1843 * aclocal.m4, configure: Regenerated.
1845 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
1847 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
1848 if output is at all possible (!_M_reading), cannot be active.
1850 * include/std/std_fstream.h: Tweak comments to doxygen style.
1852 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
1854 * include/bits/locale_classes.h: Fully qualify standard
1855 functions with std::, thus avoiding Koenig lookup.
1856 * include/bits/locale_facets.tcc: Likewise.
1857 * src/locale.cc: Likewise.
1858 * src/localename.cc: Likewise.
1860 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
1862 * include/bits/allocator_traits.h: Fix doxygen markup.
1863 * include/ext/mt_allocator.h: Likewise.
1865 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
1867 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
1869 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
1871 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
1872 requirement. Add port_specific_symbol_file variable.
1873 * configure.host: Add docs for port_specific_symbol_file.
1874 Clean up try_cpu block for x86.
1875 * config/linker-map.gnu: No more "last symbol can't have a
1876 semicolon" kaka. Add hook for port-specific symbols.
1877 * src/Makefile.am: Remove trailing whitespace.
1878 (libstdc++-symbol.ver): Detect the presence of port-specific
1879 symbols, and add them accordingly.
1881 * docs/html/17_intro/porting.texi: Bring up to date.
1883 * src/Makefile.in, aclocal.m4, configure,
1884 docs/html/17_intro/porting.html: Regenerated.
1886 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
1888 * scripts/create_testsuite_files: New file.
1889 * testsuite/Makefile.am (all-local, check-performance): Use it.
1890 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
1891 * testsuite/Makefile.in: Regenerated.
1893 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
1895 * testsuite/performance/fstream_seek_write.cc: Likewise.
1896 * testsuite/performance/ofstream_insert_float.cc: Likewise.
1897 * testsuite/performance/ofstream_insert_int.cc: Likewise.
1898 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
1900 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
1902 * include/bits/stl_list.h: Performance and memory usage
1903 improvements. In particular, the behaviour of the constructor and
1904 destructor as the list header node is no longer dynamically
1905 allocated/de-allocated.
1906 * include/bits/list.tcc: Likewise.
1908 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
1910 * include/std/std_complex.h: Fully qualify standard
1911 functions with std::, thus avoiding Koenig lookup.
1912 * include/std/std_memory.h: Likewise.
1913 * include/std/std_valarray.h: Likewise.
1915 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
1917 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
1918 variable for grandparent and use const
1920 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
1922 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
1923 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
1924 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
1925 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
1926 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
1927 * testsuite/27_io/objects/char/7.cc: Ditto
1928 * testsuite/27_io/objects/char/9661-1.cc: Ditto
1930 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
1932 * include/std/std_bitset.h: Fully qualify standard
1933 functions with std::, thus avoiding Koenig lookup.
1935 * include/std/std_fstream.h: Change comment to doxygen style.
1937 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
1939 * include/std/std_limits.h: More CPP->CXX changes.
1940 * scripts/check_survey.in: Likewise.
1942 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1944 Move from CPP to CXX.
1945 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
1946 * testsuite/Makefile.am: Same.
1947 * testsuite/Makefile.in: Regenerate.
1948 * po/Makefile.am: Same.
1949 * po/Makefile.in: Regenerate.
1950 * libsupc++/Makefile.am: Same.
1951 * libsupc++/Makefile.in: Regenerate.
1952 * libmath/Makefile.am: Same.
1953 * libmath/Makefile.in: Regenerate.
1954 * include/Makefile.am: Same.
1955 * include/Makefile.in: Regenerate.
1956 * src/Makefile.am: Same.
1957 * src/Makefile.in: Regenerate.
1959 * configure.host: Same.
1960 * configure.in: Same.
1961 * configure: Regenerate.
1962 * acinclude.m4: Same.
1964 * src: Change all files in this directory.
1966 * include: Same, standardize include guards.
1970 2003-07-04 Zack Weinberg <zack@codesourcery.com>
1972 * testsuite/22_locale/collate/compare/wchar_t/2.cc
1973 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
1974 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
1975 * testsuite/22_locale/collate/hash/wchar_t/2.cc
1976 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
1977 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
1978 * testsuite/22_locale/collate/transform/wchar_t/2.cc
1979 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
1980 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1981 XFAIL on all targets.
1983 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1985 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
1986 * aclocal.m4: Regenerate.
1987 * configure: Regenerate.
1989 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
1991 * include/bits/locale_facets.tcc (__int_to_char): Move common case
1994 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1995 Petur Runolfsson <peturr02@ru.is>
1997 * config/io/basic_file_stdio.cc: Revert.
1999 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2001 * include/bits/deque.tcc: Fully qualify standard
2002 functions with std::, thus avoiding Koenig lookup.
2003 * include/bits/gslice_array.h: Likewise.
2004 * include/bits/indirect_array.h: Likewise.
2005 * include/bits/list.tcc: Likewise.
2006 * include/bits/mask_array.h: Likewise.
2007 * include/bits/slice_array.h: Likewise.
2009 2003-07-04 Gawain Bolton <gbolton@free.fr>
2011 * include/bits/stl_tree.h: Performance and memory usage
2014 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
2016 * Makefile.am: Replace PWD with PWD_COMMAND.
2017 * Makefile.in: Regenerated.
2018 * docs/html/Makefile: Likewise.
2020 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2022 * include/bits/valarray_array.h: Fully qualify standard
2023 functions with std::, thus avoiding Koenig lookup.
2024 * include/bits/vector.tcc: Likewise.
2026 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2028 * include/Makefile.am: Update target_ to host_.
2029 * include/Makefile.in: Regenerate.
2030 * src/Makefile.am: Same.
2031 * src/Makefile.in: Regenerate.
2033 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
2035 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2037 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
2038 --enable-libstdcxx-debug-flags.
2039 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
2040 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
2041 * aclocal.m4: Regenerate.
2043 * docs/html/configopts.html: Update.
2045 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2047 Revert the fix for libstdc++/11378.
2049 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2052 * include/std/std_fstream.h (xsputn): In the unbuffered case,
2053 provided always_noconv(), issue directly _M_file.xsputn.
2054 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
2056 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2058 * include/bits/stl_list.h: Fully qualify standard
2059 functions with std::, thus avoiding Koenig lookup.
2060 * include/bits/stl_queue.h: Likewise.
2061 * include/bits/stl_raw_storage_iter.h: Likewise.
2062 * include/bits/stl_tempbuf.h: Likewise.
2063 * include/bits/stl_tree.h: Likewise.
2064 * include/bits/stl_uninitialized.h: Likewise.
2065 * include/bits/stl_vector.h: Likewise.
2066 * include/ext/rope: Change includes order.
2068 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2070 * configure.host (fpos_include_dir): Fix.
2072 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2074 * include/bits/stl_heap.h: Fully qualify standard
2075 functions with std::, thus avoiding Koenig lookup.
2076 * include/bits/stl_iterator_base_funcs.h: Likewise.
2078 * include/bits/stl_algo.h: Qualify __iterator_category too.
2079 * include/bits/stl_algobase.h: Likewise.
2080 * include/bits/stl_bvector.h: Likewise.
2082 * include/bits/stl_algo.h: Don't qualify the pair type.
2084 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
2086 * include/Makefile.am (target_headers): Add fpos.h
2087 (bits_headers): Remove.
2088 * include/Makefile.in: Regenerate.
2089 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
2090 * configure: Regenerate.
2091 * configure.host: Add fpos_include_dir.
2092 * config/os/gnu-linux/fpos.h: New.
2093 * config/os/generic/fpos.h: Add.
2094 * include/bits/fpos.h: Remove.
2096 * config/io/c_io_stdio.h: Remove fpos_t typedef.
2098 * include/bits/fstream.tcc: Tweaks.
2099 * include/std/std_fstream.h: Same.
2101 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
2102 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
2103 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
2104 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
2105 * testsuite/27_io/fpos/1.cc: New.
2107 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
2108 Petur Runolfsson <peturr02@ru.is>
2110 * include/std/std_streambuf.h: Remove _M_pos.
2111 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
2112 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
2113 use fread/fwrite instead of read/write.
2114 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
2115 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
2116 before reading again.
2117 * testsuite/27_io/objects/char/6.cc: Tweak.
2119 2003-07-03 David Edelsohn <edelsohn@gnu.org>
2121 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
2122 _GLIBCPP_USE_WCHAR_T.
2124 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2126 * include/bits/basic_string.tcc (_M_replace_aux): Constify
2129 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2131 * include/bits/stl_bvector.h: Fully qualify standard
2132 functions with std::, thus avoiding Koenig lookup.
2133 * include/bits/stl_construct.h: Likewise.
2134 * include/bits/stl_deque.h: Likewise.
2136 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2138 * testsuite/22_locale/num_put/put/char/7.cc: Include
2139 <testsuite_hooks.h>, tweak.
2140 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
2142 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
2144 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
2145 check* targets, but not libs/programs).
2146 * testsuite/Makefile.in: Regenerate.
2148 2003-07-01 Roger Sayle <roger@eyesopen.com>
2150 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
2151 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
2152 * aclocal.m4: Regenerate.
2153 * configure: Regenerate.
2155 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
2157 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
2158 * aclocal.m4: Regenerated.
2159 * configure: Regenerated.
2161 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
2164 * include/bits/fstream.tcc (underflow): For encoding() == 0
2165 don't read more than __buflen chars.
2166 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
2167 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
2168 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
2169 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
2171 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
2173 * 22_locale/num_put/put/char/7.cc: New.
2174 * 22_locale/num_put/put/wchar_t/7.cc: New.
2176 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
2178 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
2179 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
2181 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
2183 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
2184 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
2185 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
2186 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
2187 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
2188 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
2189 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
2190 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
2191 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
2192 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
2193 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
2194 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
2195 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
2196 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
2197 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
2198 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
2199 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
2200 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
2201 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
2202 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
2203 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
2204 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
2205 * data/seekoff-1.tst: Remove.
2206 * data/seekoff-1io.tst: New.
2207 * data/seekoff-1out.tst: New.
2208 * data/seekoff-2.tst: Remove.
2209 * data/seekoff-2io.tst: New.
2210 * data/seekoff-2out.tst: New.
2212 * data/seekpos-1.tst: Remove.
2213 * data/seekpos-1io.tst: New.
2214 * data/seekpos-1out.tst: New.
2215 * data/seekpos-2.tst: Remove.
2216 * data/seekpos-2io.tst: New.
2217 * data/seekpos-2out.tst: New.
2218 * data/seekpos.txt: New.
2220 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
2222 * src/locale.cc (__use_cache<numpunct>): Move from here ...
2223 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
2226 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2228 * include/bits/stl_algobase.h: Fully qualify standard
2229 functions with std::, thus avoiding Koenig lookup.
2231 2003-06-30 Doug Gregor <dgregor@apple.com>
2233 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
2234 subscripting empty string.
2236 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
2238 * testsuite/Makefile.am (check-am): Do not override.
2239 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
2240 * testsuite/Makefile.in: Regenerate.
2242 2003-06-30 Doug Gregor <dgregor@apple.com>
2244 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
2245 Don't initialize an insert_iterator with a singular iterator.
2247 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
2249 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
2250 * aclocal.m4: Regenerate.
2251 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
2252 GLIBCPP_ENABLE_PCH, default to yes.
2253 * configure: Regenerate.
2254 * docs/html/configopts.html: Add --enable-pch.
2256 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
2258 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
2259 (libstdc++-v3-init): Also set LD_RUN_PATH.
2261 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2263 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
2264 from here to filebuf and stringbuf.
2265 (~basic_streambuf()): Don't set _M_mode.
2266 (basic_streambuf()): Don't set _M_mode.
2267 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
2268 (~basic_filebuf()): Clean up.
2269 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
2270 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
2271 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
2272 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
2273 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
2274 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
2275 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
2277 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2279 * include/std/std_fstream.h (_M_underflow): Remove.
2280 (uflow): Remove, inherited from streambuf.
2281 (underflow): Only declare.
2282 * include/bits/fstream.tcc (_M_underflow): Rename to
2283 underflow, to which is equivalent for __bump == false,
2285 * include/std/std_sstream.h (_M_underflow): Remove.
2286 (uflow): Remove, inherited from streambuf.
2287 (underflow): Only declare.
2288 * include/bits/sstream.tcc (_M_underflow): Rename to
2289 underflow, to which is equivalent for __bump == false,
2292 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2294 * include/bits/stl_algo.h: Fully qualify standard functions
2295 with std::, thus avoiding Koenig lookup.
2297 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2299 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
2300 Improve type correctness-wise.
2301 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
2303 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
2305 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
2308 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2310 * include/std/std_streambuf.h (uflow): According to
2311 27.5.2.4.3,p16, don't check gptr() < egptr().
2313 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
2316 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
2317 (seekpos): Likewise.
2318 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
2320 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
2323 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
2325 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
2326 output name to libstdc++-v3-performance.sum.
2327 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
2328 * testsuite/Makefile.in: Regenerate.
2330 2003-06-27 Matthias Klose <doko@debian.org>
2332 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
2333 output of abi-check in libstdc++-v3-abi.sum.
2334 * testsuite/Makefile.in: Regenerate.
2336 2003-06-27 Krister Walfridsson <cato@df.lth.se>
2338 * config/os/bsd/netbsd/ctype_noninline.h
2339 (_C_ctype_): Declare.
2340 (ctype<char>::classic_table): Return _C_ctype_ + 1.
2341 (ctype<char>::ctype): Use classic_table.
2343 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
2344 Nathan C. Myers <ncm-nospam@cantrip.org>
2347 * include/bits/fstream.tcc (_M_underflow): Properly estimate
2348 the worst-case number of external bytes for a given get area.
2349 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
2351 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
2352 Petur Runolfsson <peturr02@ru.is>
2355 * include/bits/fstream.tcc (overflow): Properly estimate the
2356 worst-case number of external bytes for a given put area
2357 (by using codecvt::max_length()).
2358 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
2359 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
2360 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
2361 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
2363 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
2365 * config/linker-map.gnu: Remove ; after __numpunct_cache.
2367 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
2369 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
2370 to the imbued locale.
2371 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
2373 (num_put::_M_convert_float): Use.
2375 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
2376 Jerry Quinn <jlquinn@optonline.net>
2378 * config/linker-map.gnu: Add __numpunct_cache.
2379 * config/locale/gnu/numeric_members.cc
2380 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
2381 all elements for "C" locale.
2382 (numpunct::~numpunct): Delete _M_data.
2383 * config/locale/generic/numeric_members.cc: Same.
2384 * include/bits/basic_ios.tcc
2385 (basic_ios::init): Remove __locale_cache bits.
2386 (basic_ios::_M_cache_locale): Same.
2387 * include/bits/ios_base.h: Same. Tweaks.
2388 * include/bits/locale_classes.h: Tweaks. Reorder classes.
2389 (__use_cache): Make friends with _Impl, locale.
2390 (_Impl::_M_caches): Add.
2391 (_Impl::_M_install_cache): Add.
2392 * include/bits/locale_facets.h (__numpunct_cache): New.
2393 (numpunct): Encapsulate data members in __numpunct_cache member,
2394 _M_data. Adjust virtuals.
2395 (numpunct::numpunct): New ctor for the same.
2396 (__locale_cache_base): Remove.
2397 (__locale_cache): Remove.
2398 * include/bits/locale_facets.tcc (__use_cache): New function,
2400 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
2401 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
2402 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
2403 * src/locale-inst.cc: Same. Add __numpunct_cache.
2404 * src/locale.cc: Tweak inlines.
2405 (__use_cache): Define specializations.
2406 * src/localename.cc: Use global bits.
2407 (_Impl::~Impl): Deal with __numpunct_cache destruction.
2408 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
2409 (_Impl::_M_init_facet): Take into account __numpunct_cache.
2410 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
2411 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2413 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
2414 Paolo Carlini <pcarlini@unitus.it>
2416 * testsuite/performance/filebuf_copy.cc: New, testing char
2419 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
2420 Nathan C. Myers <ncm-nospam@cantrip.org>
2422 * include/bits/fstream.tcc (_M_underflow): When the actual
2423 end of file is reached, set 'uncommitted' mode to allow a
2424 next write without an intervening seek (see C++98 27.8.1.1,2
2426 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
2428 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
2430 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
2431 sputc): Move inline, from here...
2432 * include/std/std_streambuf.h: ... to here.
2434 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
2435 sputbackc, sungetc, sputc): Use __builtin_expect.
2437 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
2439 * docs/doxygen/mainpage.html: Use a useful title.
2441 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
2443 * docs/html/documentation.html: Remove assignment info.
2444 * docs/html/17_intro/contribute.html: Edits.
2445 * docs/html/17_intro/libstdc++-assign.tx: Remove.
2447 * docs/html/test.html: Update.
2451 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
2452 Ulrich Drepper <drepper@redhat.com>
2454 * testsuite/testsuite_performance.h: Tweak mallinfo.
2456 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
2457 Nathan C. Myers <ncm-nospam@cantrip.org>
2459 * include/std/std_fstream.h (_M_filepos): Remove.
2460 (_M_reading, _M_writing): New, encode the various I/O modes:
2461 'read', 'write' and 'uncommitted'.
2462 (sync): If there is something to flush, do it, then go to
2464 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
2465 with three different cases: __off > 0 (upon underflow),
2466 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
2468 (_M_underflow): Don't call overflow, set _M_reading to true
2470 (pbackfail): Set _M_reading to true on pback creation, tweak.
2471 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
2472 set _M_writing to true on success, tweak.
2473 (seekoff): Simplify, set _M_reading, _M_writing to false, call
2474 _M_set_buffer(-1) ('uncommitted').
2475 (open, close, setbuf): Set _M_reading, _M_writing to false and
2476 call _M_set_buffer(-1), tweak.
2477 (basic_filebuf): Don't set _M_buf_unified.
2478 (_M_destroy_internal_buffer): Don't call setg and setp.
2479 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
2480 _M_writing and _M_set_buffer(-1).
2481 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
2482 _M_out_lim, _M_buf_unified): Remove.
2483 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
2484 (setp): Don't set _M_out_lim.
2485 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
2486 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
2487 upon open the mode is 'uncommitted' and therefore the put area
2489 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
2490 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
2491 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
2492 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
2493 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
2494 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
2495 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
2496 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
2497 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
2498 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
2499 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
2500 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
2501 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
2502 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
2503 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
2504 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
2505 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
2506 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
2507 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
2508 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
2510 * include/bits/fstream.tcc (showmanyc): Use only the
2511 documented derivation interface to basic_streambuf (gptr(),
2512 setg(), etc.) to work right with user specializations.
2513 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
2514 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
2515 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
2517 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
2520 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
2522 * configure.host (freebsd*): Set abi_baseline_pair.
2523 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
2524 (at or near first release) to 3.3.
2525 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
2526 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
2527 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
2529 * include/ext/mt_allocator.h: Portability.
2530 * testsuite/testsuite_performance.h: Likewise.
2532 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
2534 * docs/html/17_intro/libstdc++-assign.txt: Update address.
2536 * testsuite/performance/ifstream_getline.cc: Fix.
2538 2003-06-23 Doug Gregor <dgregor@apple.com>
2540 * include/bits/boost_concept_check.h: Don't use _D or _R for type
2543 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
2544 Nathan C. Myers <ncm-nospam@cantrip.org>
2546 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
2547 is now used only for filebuf, when _M_buf_unified is true.
2548 epgtr() plays the role of _M_out_lim but it's only updated
2549 upon overflow, underflow, uflow, seekoff/pos.
2550 * include/bits/sstream.tcc (_M_underflow): New, implements
2551 stringbuf::underflow and uflow.
2552 (seekoff, seekpos): Tweak, use _M_update_egptr.
2553 * include/std/std_sstream.h (str): Rewrote, deal correctly
2554 with the new logic, in particular, when pptr() > egptr().
2555 (_M_sync): When __testout && !__testin set all the get area
2556 pointers to the current string end.
2557 (_M_update_egptr): New, internal function updating egptr()
2558 to the actual string end.
2559 (_M_underflow): New, declare.
2560 (underflow): Dispatch to _M_underflow(false).
2561 (uflow): Dispatch to _M_underflow(true).
2563 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
2564 seekpos): Use only the documented derivation interface to
2565 basic_streambuf (gptr(), setg(), etc.) to work right with
2566 user specializations.
2567 * include/std/std_sstream.h (str, _M_sync): Likewise.
2569 2003-06-20 Doug Gregor <dgregor@apple.com>
2571 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
2572 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
2573 dereference end iterator.
2574 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
2575 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
2576 index equal to the length of a string.
2577 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
2578 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
2579 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
2580 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
2581 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
2582 * testsuite/23_containers/list_modifiers.cc: Don't dereference
2583 singular reverse iterator.
2584 * testsuite/23_containers/vector_bool.cc: Don't increment singular
2586 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
2588 2003-06-20 Doug Gregor <dgregor@apple.com>
2590 * include/bits/basic_string.h (basic_string::replace): Dispatch
2591 _InputIterator version based on _Is_integer.
2592 * include/bits/basic_string.tcc (basic_string::replace):
2593 Renamed replace(iterator, iterator, size_type, _CharT) to
2595 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
2596 Test basic_string::assign(_InputIterator, _InputIterator),
2597 which calls basic_string::replace(iterator, iterator,
2598 _Input_iterator, _InputIterator).
2600 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
2602 * testsuite/testsuite_performance.h (resource_counter): Don't use
2603 mallinfo at the moment.
2605 2003-06-20 Matthias Klose <doko@debian.org>
2607 * configure.host: Set try_cpu to target_cpu for existing
2610 2003-06-19 Andreas Jaeger <aj@suse.de>
2612 * testsuite/Makefile.am (extract_symvers): Revert accidental
2614 * testsuite/Makefile.in: Regenerate.
2616 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
2617 * configure: Regenerated.
2619 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
2621 * include/std/std_sstream.h (_M_sync): Make non virtual.
2623 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
2625 * testsuite/testsuite_performance.h (time_counter): New.
2626 (resource_counter): New.
2627 (report_performance): New.
2628 (start_counters): New.
2629 (stop_counters): New.
2630 (clear_counters): New.
2631 * testsuite/performance/allocator.cc: Instrument.
2632 * testsuite/performance/cout_insert_int.cc: Same.
2633 * testsuite/performance/complex_norm.cc: Same.
2634 * testsuite/performance/filebuf_sputc.cc: New.
2635 * testsuite/performance/fstream_seek_write.cc: Same.
2636 * testsuite/performance/ifstream_getline.cc: Same.
2637 * testsuite/performance/map_create_fill.cc: Same.
2638 * testsuite/performance/ofstream_insert_float.cc: Same.
2639 * testsuite/performance/ofstream_insert_int.cc: Same.
2640 * testsuite/performance/string_append.cc: Convert.
2641 * scripts/check_performance: New.
2642 * testsuite/Makefile.am (check-performance): New.
2645 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
2646 Benjamin Kosnik <bkoz@redhat.com>
2648 * include/std/std_sstream.h (setbuf): Check __n >= 0.
2649 * include/bits/fstream.tcc (setbuf): Tweak.
2651 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
2653 * include/bits/sstream.tcc (seekoff): We can't seek beyond
2654 _M_out_lim, therefore _M_move_out_cur boils down to simply
2655 updating _M_out_cur.
2656 (seekpos): Likewise, clean up.
2658 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
2659 Paolo Carlini <pcarlini@unitus.it>
2661 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
2662 simply equivalent to the unbuffered case (0, 0) as far as
2663 _M_buf_size is concerned.
2665 2003-06-18 Andreas Jaeger <aj@suse.de>
2667 * testsuite/Makefile.am (new-abi-baseline): Create baseline
2669 (baseline_file): Use baseline_dir.
2670 (baseline_dir): New.
2671 (mkinstalldirs): New.
2673 * acinclude.m4: Rename baseline_file to baseline_dir, strip
2674 filename from baseline_dir.
2676 * testsuite/Makefile.in: Regenerated.
2677 * Makefile.in: Regenerated.
2678 * aclocal.m4: Regenerated.
2679 * configure: Regenerated.
2681 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
2683 * configure.in: Missed check_survey bit.
2684 * configure: Regenerated.
2686 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
2689 * config/abi/extract_symvers: Move to...
2690 * scripts/extract_symvers: ...here.
2691 * mkcheck.in: Move to..
2692 * scripts/check_survey.in: ...here.
2693 * testsuite_flags.in: Move to..
2694 * scripts/testsuite_flags.in: ...here.
2695 * configure.in: Change check and testsuite_flags locations.
2696 * configure: Regenerate.
2697 * testsuite/Makefile.am (current_symbols.txt): Change location.
2698 * testsuite/Makefile.in: Regenerate.
2699 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
2700 location of testsuite_flags.
2701 * Makefile.am (check-script): Move..
2702 (check-script-install): Move...
2703 * testsuite/Makefile.am: ... here.
2704 * testsuite/Makefile.in: Regenerate.
2705 * Makefile.in: Regenerate.
2707 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
2709 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
2711 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
2713 * Makefile.am (check-abi): Move...
2714 (new-abi-baseline): Move...
2715 * testsuite/Makefile.am: ...here.
2716 (new-abi-baseline): Conditionalize.
2717 (check-abi): Conditionalize.
2718 (check-abi-verbose): New.
2719 * Makefile.in: Regenerate.
2720 * testsuite/Makefile.in: Regenerate.
2721 * configure.in: Consolidate testsuite configure bits.
2722 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
2723 * configure: Regenerate.
2724 * aclocal.m4: Regenerate.
2725 * testsuite/abi_check.cc: Add --check-verbose.
2726 Only output detailed information if --check-verbose.
2728 2003-06-16 Andreas Jaeger <aj@suse.de>
2730 * testsuite/abi_check.cc: Create summary report.
2732 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
2734 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
2735 for systems with BUFSIZ != 8192.
2736 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
2737 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
2740 2003-06-16 Andreas Jaeger <aj@suse.de>
2742 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
2743 check-abi multilib aware.
2744 * aclocal.m4: Regenerate.
2745 * configure: Regenerate.
2747 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
2748 Andreas Jaeger <aj@suse.de>
2750 * configure.host: Set x86_64 abi_baseline pair correctly.
2752 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
2754 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
2755 fix for missing seeks between gets and puts into...
2756 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
2757 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
2758 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
2759 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
2760 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
2761 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
2763 2003-06-15 Richard Henderson <rth@redhat.com>
2765 * config/linker-map.gnu: Export virtual function thunks for
2768 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
2770 * config/abi/i686-pc-linux-gnu: To..
2771 * config/abi/i486-linux-gnu: ...this.
2772 * config/abi/alphaev67-unknown-linux-gnu: To..
2773 * config/abi/alpha-linux-gnu: ...this.
2774 * config/abi/ia64-unknown-linux-gnu: To...
2775 * config/abi/ia64-linux-gnu: ...this.
2776 * config/abi/x86_64-unknown-linux-gnu: To...
2777 * config/abi/x86_64-linux-gnu: ...this.
2778 * config/abi/i386-unknown-freebsd4: To...
2779 * config/abi/i386-freebsd4: ...this.
2780 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
2782 * configure.host: abi_baseline_triplet to abi_baseline_pair.
2783 Simplify cpu bits so that abi_baseline_pair can use the same
2785 * acinclude.m4: Same.
2786 * aclocal.m4: Regenerate.
2787 * configure.in: Can't get enable_abi_check to yes unless native.
2788 * configure: Regenerate.
2790 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
2792 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
2793 fix for missing seeks between gets and puts into...
2794 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
2795 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
2796 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
2797 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
2798 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
2799 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
2800 for missing seeks between gets and puts.
2801 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
2802 * testsuite/data/seekoff-1.tst: New.
2803 * testsuite/data/seekoff-2.tst: New.
2804 * testsuite/data/seekpos-1.tst: New.
2805 * testsuite/data/seekpos-2.tst: New.
2807 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
2809 Avoid multi-processor bus contention on increment/decrement-and-
2810 test of the reference count in the empty-string object, by comparing
2811 addresses first, and never touching the reference count of the empty-
2813 * include/bits/basic_string.h:
2814 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
2816 (_Rep::_S_empty_rep()): New accessor.
2817 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
2818 a base class _Rep_base.
2819 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
2820 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
2821 since no longer must increment its refcount.
2822 * include/bits/basic_string.tcc:
2823 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
2824 return immediately. The former might be unnecessary. The latter
2825 prevents begin() and end() from cloning it unnecessarily.
2826 (_S_construct(_InIterator, _InIterator, const _Alloc&,
2827 input_iterator_tag), _S_construct(_InIterator, _InIterator,
2828 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
2829 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
2830 (_M_mutate): Check for the empty string and treat it as shared.
2831 This is necessary here because _M_mutate is sometimes called with
2832 all-zero arguments; in all other uses of _M_is_shared, the test comes
2835 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
2837 * src/allocator-inst.cc: Explicitly instantiate.
2838 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
2840 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
2842 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
2844 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
2845 * aclocal.m4: Regenerate.
2846 * Makefile.am (SUBDIRS): Remove libio.
2847 * Makefile.in: Regenerate.
2848 * configure.in: Same.
2849 * configure: Regenerate.
2850 * config/io/basic_file_libio.cc: Remove.
2851 * config/io/basic_file_libio.h: Remove.
2852 * config/io/c_io_libio_codecvt.c: Remove.
2853 * config/io/c_io_libio.h: Remove.
2855 * src/Makefile.am: Same.
2856 * src/Makefile.in: Regenerate.
2857 * docs/html/configopts.html: Edits.
2858 * docs/html/explanations.html: Edits.
2860 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
2862 * include/bits/stl_alloc.h (__debug_alloc): Move out.
2863 (__malloc_alloc): Same.
2864 (__pool_alloc): Same.
2865 (__new_alloc): Same.
2867 * include/bits/allocator.h: ...this.
2868 * include/bits/stl_deque.h: Modify comment.
2869 * include/bits/stl_tree.h: Modify include.
2870 * include/std/std_memory.h: Same.
2871 * include/ext/rope: Same.
2872 * include/ext/slist: Same.
2873 * include/std/std_vector.h: Same.
2874 * include/std/std_stack.h: Same.
2875 * include/std/std_queue.h: Same.
2876 * include/std/std_list.h: Same.
2877 * include/std/std_deque.h: Same.
2878 * include/backward/alloc.h: Same.
2879 * include/ext/debug_allocator.h: New.
2880 * include/ext/malloc_allocator.h: New.
2881 * include/ext/pool_allocator.h: New.
2882 * include/ext/new_allocator.h: New.
2883 * include/bits/pthread_allocimpl.h: Remove.
2884 * include/bits/stl_pthread_alloc.h: Remove.
2885 * include/Makefile.am (ext_headers): Add.
2886 * include/Makefile.in: Regenerate.
2887 * src/stl-inst.cc: Use __gnu_cxx namespace.
2888 * src/stl-inst.cc: Move to...
2889 * src/allocator-inst.cc: Here.
2890 * src/Makefile.am (sources): Update.
2891 * src/Makefile.in: Regenerate.
2892 * config/linker-map.gnu: Remove __pool_alloc bits.
2893 * testsuite/ext/headers.cc: Add.
2894 * testsuite/ext/allocators.cc: Fixup.
2896 2003-06-11 Stefan Olsson <stefan@snon.net>
2897 Ola Rönnerup <fnolis@home.se>
2899 * include/Makefile.am (ext_headers): Add.
2900 * include/Makefile.in: Regenerate.
2901 * include/ext/mt_allocator.h: New file.
2903 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
2905 * include/bits/fstream.tcc (close): Clean up a bit.
2907 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
2909 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
2910 - the saved _M_in_cur, that is - cannot be null.
2911 (sync): Constify a variable.
2913 * include/std/std_streambuf.h: Tweak a comment.
2914 (in_avail): Constify a variable.
2916 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
2918 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
2919 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
2920 correctness of container::iterator typedefs. Fix whitespace.
2921 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
2923 * docs/html/documentation.html: Regenerate.
2925 * include/bits/basic_string.h, include/bits/basic_string.tcc,
2926 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
2927 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2928 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
2929 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
2930 include/bits/stl_vector.h, include/bits/vector.tcc,
2931 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
2932 Change _Iter names to _Iterator, and __pos to __position.
2934 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
2935 include/bits/stl_multiset.h, include/bits/stl_set.h:
2936 Remove emacs markers.
2938 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
2940 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
2942 * include/bits/fstream.tcc (overflow): According to
2943 27.5.2.4.5, overflow() returns not_eof(eof()).
2944 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
2945 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
2947 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
2949 * include/bits/fstream.tcc (_M_underflow): Check overflow return
2950 value; tweak slightly.
2952 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
2954 * include/bits/fstream.tcc (_M_underflow): Do not special
2955 case the unbuffered case, which really means simply a one char
2957 (basic_filebuf): Initialize _M_buf_size.
2958 (setbuf): Unbuffered means _M_buf_size == 1, since only
2959 _M_buf_size - 1 == 0 chars are going to be used for the
2960 put area and 1 for the get area.
2961 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
2962 (~basic_streambuf): Tweak.
2963 (basic_streambuf): Do not initialize _M_buf_size.
2964 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
2965 (~basic_filebuf): Tweak.
2966 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
2967 unbuffered situation (i.e., put area pointers NULL).
2968 * include/bits/streambuf.tcc (sbumpc): Clean up.
2969 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
2970 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
2971 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
2972 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
2973 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
2974 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
2975 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
2977 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
2979 * acinclude.m4: Move all AM_CONDITIONAL calls out.
2980 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
2982 * configure.in: Centralize AM_CONDITIONALs so that they are always
2983 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
2984 * aclocal.m4, configure: Regenerated.
2986 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
2988 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
2990 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
2992 * include/bits/stl_iterator.h
2993 (reverse_iterator::reverse_iterator()): Apply DR235: default
2994 constructor default-initializes data member. Instantiated on a
2995 pointer type, the member has to end up equal to zero.
2997 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
2999 * include/bits/stl_alloc.h: Cleanups.
3000 * include/ext/functional: Same.
3001 * include/ext/hash_map: Same.
3002 * include/ext/hash_set: Same.
3003 * include/ext/iterator: Same.
3004 * include/ext/memory: Same.
3005 * include/ext/numeric: Same.
3006 * include/ext/rb_tree: Same.
3007 * include/ext/ropeimpl.h: Same.
3008 * include/ext/slist: Same.
3009 * include/ext/stdio_filebuf.h: Same.
3010 * include/ext/stdio_sync_filebuf.h: Same.
3011 * include/ext/stl_rope.h: Move to...
3012 * include/ext/rope: ...here.
3013 * include/ext/stl_hash_fun.h: Move to...
3014 * include/ext/hash_fun.h: ...here.
3015 * include/ext/stl_hashtable.h: Move to...
3016 * include/ext/hashtable.h: ...here.
3017 * include/backward/hashtable.h: Reflect new names.
3018 * include/Makefile.am: Same.
3019 * include/Makefile.in: Regenerated.
3021 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
3024 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
3025 * include/bits/stl_algobase.h: Tweak.
3026 * include/std/std_fstream.h: Move _M_buf_size to...
3027 * include/std/std_streambuf.h: ...here. Modify.
3028 * include/bits/streambuf.tcc: Same.
3029 * testsuite/testsuite_hooks.h: Tweak.
3030 * testsuite/testsuite_io.h (constraint_filebuf): New.
3031 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
3032 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
3033 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
3034 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
3035 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
3036 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
3037 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
3038 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
3039 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
3040 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
3041 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
3042 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
3043 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
3044 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
3045 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
3046 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
3047 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
3048 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
3049 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
3050 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
3051 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
3052 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
3053 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
3054 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
3055 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
3056 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
3057 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
3058 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
3059 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
3060 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
3061 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
3062 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
3063 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
3064 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
3065 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
3066 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
3067 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
3068 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
3069 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
3070 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
3071 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
3072 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
3073 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
3074 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
3075 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
3076 * testsuite/data/sgetc.txt: New.
3077 * testsuite/data/sgetn.txt: New.
3079 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
3082 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
3083 Deal with width() smaller than zero.
3084 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
3085 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
3086 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
3087 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
3088 operator<<(basic_ostream, const basic_string&)): Likewise.
3090 * testsuite/27_io/basic_istream/extractors_character/char/
3091 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3092 * testsuite/27_io/basic_ostream/inserters_character/char/
3093 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3094 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
3095 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
3097 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3099 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
3100 .gch compilation works.
3101 * aclocal.m4, configure: Regenerate.
3102 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
3103 initialize PCHFLAGS.
3105 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
3107 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
3108 erase(iterator), erase(iterator, iterator), c_str,
3109 compare(const basic_string&)): Constify various variables.
3110 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
3111 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
3112 _S_create, resize, _M_replace, _M_replace_safe,
3113 append(const basic_string&), append(const basic_string&, size_type,
3114 size_type), append(const _CharT*, size_type), append(size_type,
3115 _CharT), operator+(const _CharT*, const basic_string&),
3116 operator+(_CharT, const basic_string&), replace(iterator, iterator,
3117 size_type, _CharT), find(const _CharT*, size_type, size_type),
3118 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
3119 rfind(_CharT, size_type), compare(size_type, size_type,
3120 const basic_string&), compare(size_type, size_type,
3121 const basic_string&, size_type, size_type), compare(const _CharT*),
3122 compare(size_type, size_type, const _CharT*), compare(size_type,
3123 size_type, const _CharT*, size_type)): Likewise.
3125 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
3127 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
3128 'if' branch less obscure.
3130 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
3133 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
3135 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
3136 (__atomic_add): likewise.
3138 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3140 * include/bits/sstream.tcc (pbackfail): Minor clean up and
3141 reformatting, consistent with basic_filebuf::pbackfail.
3143 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
3146 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
3147 __attribute__ ((__unused__)).
3148 * config/os/aix/atomicity.h: Likewise.
3150 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3153 * include/bits/fstream.tcc (pbackfail): If the pback buffer
3154 is already active don't try to store in it a second char.
3155 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
3157 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
3159 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3161 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
3164 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3166 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
3167 instead of unnecessarily taking the address of _M_pback.
3168 (xsgetn): Simplify slightly for a single char pback buffer.
3170 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3172 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
3173 variables and two 'if', clean up.
3175 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3177 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
3178 not _M_out_end, since the former actually points to the string
3179 end (vs buffer end).
3180 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
3182 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
3184 * docs/doxygen/filter: New file.
3185 * docs/doxygen/filter.sed: New file.
3186 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
3187 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
3188 * docs/html/documentation.html: Fix links to doxygen pages.
3190 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
3192 * include/bits/fstream.tcc (_M_convert_to_external): Don't
3193 check for __ilen > 0.
3195 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
3198 * include/bits/stl_iterator.h (class __normal_iterator):
3199 Don't inherit from iterator, add missing typedefs.
3201 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
3203 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
3204 * testsuite/24_iterators/reverse_iterator/1.cc: New.
3205 * testsuite/24_iterators/reverse_iterator/2.cc: New.
3206 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
3209 2003-05-27 Steve Ellcey <sje@cup.hp.com>
3211 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
3213 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
3214 _LIBUNWIND_STD_ABI is set.
3216 2003-05-26 Brendan Kehoe <brendan@zen.org>
3218 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
3219 make sure the number of digits required after the decimal-point
3220 (if any) is exactly the value returned by frac_digits().
3221 * testsuite/22_locale/money_get/get/char/9.cc: New.
3222 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
3224 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
3226 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
3229 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
3232 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
3233 (_M_pback): No array necessary.
3234 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
3235 unbuffered case, coalesec into ...
3236 (basic_filebuf::overflow): ...this.
3237 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
3238 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
3240 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
3242 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
3243 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
3244 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
3245 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
3246 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
3247 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
3248 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
3249 libsupc++/eh_unex_handler.cc, libsupc++/exception,
3250 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
3251 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
3252 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
3253 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
3254 Replace "GNU CC" with "GCC".
3256 * include/backward/new.h: Replace "GNU CC" with "GCC".
3258 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
3261 * configure.in: Switch target to host, don't assume newlib.
3262 (target_alias): Remove.
3263 * configure: Regenerate.
3264 * acinclude.m4: Same.
3265 * aclocal.m4: Regenerate.
3266 * configure.target: Same. Rename to...
3267 * configure.host: This.
3269 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
3271 * include/std/std_fstream.h (_S_pback_size): Remove definition.
3272 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
3274 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
3275 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
3276 of _S_pback_size for systems with no COMDAT or weak support.
3277 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
3278 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
3279 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
3280 * testsuite/27_io/basic_fstream/3.cc: Likewise.
3281 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3282 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
3283 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
3284 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
3285 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
3287 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
3289 * include/bits/fstream.tcc (_M_underflow): Simplify:
3290 !__testout implies _M_filepos == _M_in_end, therefore
3291 the first _M_file.seekoff call is never issued.
3293 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
3295 * configure.in: Sort cross table.
3296 * configure: Regenerate.
3298 2003-05-22 Brad Spencer <spencer@infointeractive.com>
3301 * configure.in: Add Solaris cross bits.
3303 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
3305 * libstdc++-v3/config/os/mingw32/os_defines.h
3306 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
3307 (NOMINMAX): Define. Update copyright year.
3309 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
3311 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
3313 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
3315 * docs/html/faq/index.html: Fix typo.
3316 * docs/html/faq/index.txt: Regenerate.
3318 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
3320 * docs/html/test.html: Fix markup.
3322 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
3324 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
3326 Update copyright year.
3328 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
3330 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
3332 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
3334 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
3335 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
3337 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3339 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
3340 Cast via void* to avoid -Wcast-align warnings.
3341 (__default_alloc_template::_S_refill): Likewise.
3343 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
3345 * testsuite/README: Move to...
3346 * docs/html/test.html: ...here. Add documentation.
3347 * docs/html/install.html: Move testing bits out..
3348 * docs/html/documentation.html: Add separate testing link.
3349 * testsuite/performance: Add.
3350 * testsuite/performance/allocator.cc: New.
3351 * testsuite/performance/complex_norm.cc: New.
3352 * testsuite/performance/cout_insert_int.cc: New.
3353 * testsuite/performance/fstream_seek_write.cc: New.
3354 * testsuite/performance/ifstream_getline.cc: New.
3355 * testsuite/performance/map_create_fill.cc: New.
3356 * testsuite/performance/ofstream_insert_float.cc: New.
3357 * testsuite/performance/ofstream_insert_int.cc: New.
3358 * testsuite/performance/string_append.cc: New.
3359 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
3362 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
3365 * include/std/std_complex.h (pow): Tidy.
3367 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
3369 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
3370 that upon filebuf::close() 27.8.1.1,3 is enforced.
3372 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
3374 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
3376 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
3377 Nathan Myers <ncm@cantrip.org>
3379 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
3380 _M_convert_to_external only once (_M_buf_size is now the size of
3381 the put area + 1 for the overflow char of a full area); call
3382 _M_set_buffer instead of _M_set_indeterminate.
3383 (setbuf): Don't accept a buffer smaller than 2 chars.
3384 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
3385 instead of _M_set_determinate.
3386 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
3387 (seekoff): Likewise.
3388 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
3389 std::ios_base::openmode, bool, size_t),
3390 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
3392 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
3393 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
3395 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
3396 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
3397 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
3398 the put area is now BUFSIZ - 1.
3399 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
3400 that now the smallest _M_buf_size is 2 (still fails, for the same
3403 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
3405 * testsuite/thread/pthread4.cc: Tweak test.
3407 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
3409 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
3410 excess errors dg marker, use dg-errors instead.
3411 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
3412 * testsuite/20_util/auto_ptr_neg.cc: Same.
3414 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
3416 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
3418 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
3419 Initialize _M_codecvt.
3420 (basic_filebuf::imbue): Same.
3421 (basic_filebuf::showmanyc): Use it.
3422 (basic_filebuf::underflow): Use it.
3423 (basic_filebuf::_M_convert_to_external): Use it.
3424 (basic_filebuf::seekoff): Use it.
3425 (basic_filebuf::imbue): Use it, tweaks.
3426 * include/bits/localefwd.h (__check_facet): New.
3427 * include/bits/locale_classes.h: Tweaks.
3428 * include/bits/locale_facets.tcc: Tweaks.
3429 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
3430 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
3431 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
3432 * include/bits/basic_ios.tcc: Same.
3433 * include/bits/istream.tcc: Same.
3434 * include/bits/ostream.tcc: Same.
3435 * include/std/std_streambuf.h: Same.
3436 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
3437 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
3438 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
3439 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
3440 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
3441 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
3443 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
3445 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
3446 unnecessary includes and unused string literals.
3447 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3448 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3449 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3450 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3452 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
3454 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
3456 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
3458 * include/std/std_fstream.h (_M_convert_to_external): Change
3459 to return bool, take two less streamsize parameters.
3460 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
3461 consistently definition.
3462 (_M_overflow): Adjust call points.
3464 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
3466 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
3468 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
3470 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
3471 * testsuite/Makefile.in: Regenerate.
3473 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
3475 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
3476 * testsuite/Makefile.in: Regenerate.
3478 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3481 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
3482 (acos): Handle integer argument.
3501 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
3502 (__enable_if): Likewise.
3503 * testsuite/26_numerics/cmath/overloads.C: New test.
3505 2003-05-10 Petur Runolfsson <peturr02@ru.is>
3510 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
3511 implementation, based on old wchar_t specialization, add support
3512 for codecvt::in() return value of codecvt_base::noconv, remove
3513 _M_file.sys_ungetc() call.
3514 * include/std/std_fstream.h (basic_file::underflow,
3515 basic_file::uflow, basic_file::_M_underflow): Remove
3516 specialization declarations, call _M_underflow from generic versions
3517 of underflow and uflow.
3518 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
3519 basic_file::_M_underflow): Remove specializations.
3520 * src/Makefile.am (sources): Remove fstream.cc.
3521 * src/Makefile.in: Regenerated.
3522 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
3523 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
3524 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
3525 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
3527 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
3529 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
3531 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
3533 (__basic_file::xsputn): Same.
3534 (__basic_file::seekoff): Same.
3535 (__basic_file::seekpos): Same.
3536 (__basic_file::showmanyc): Same.
3537 * config/io/basic_file_stdio.cc: Same.
3538 * include/std/std_fstream.h: Same.
3539 * include/bits/fstream.tcc: Same.
3540 * src/fstream.cc: Same.
3541 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
3543 2003-05-10 Petur Runolfsson <peturr02@ru.is>
3548 * include/ext/stdio_sync_filebuf.h: New file.
3549 (basic_stdiobuf): New.
3550 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
3551 * include/Makefile.in: Regenerate.
3552 * include/bits/ios_base.h (Init::_S_create_buffers,
3553 Init::_S_destroy_buffers): Remove declarations.
3554 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
3555 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
3556 * src/ios.cc (Init::_S_create_buffers,
3557 Init::_S_destroy_buffers): Remove.
3558 (Init::Init): Create and use syncronized buffers.
3559 (ios_base::sync_with_stdio): Destroy syncronized buffers,
3560 create and install unsyncronized buffers.
3561 * testsuite/27_io/objects/char/10.cc: New test.
3562 * testsuite/27_io/objects/char/9.cc: New test.
3563 * testsuite/27_io/objects/char/9661-1.cc: New test.
3564 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
3565 * testsuite/27_io/objects/char/9661-2_xin.in: New.
3566 * testsuite/27_io/objects/wchar_t/1.cc: New test.
3567 * testsuite/27_io/objects/wchar_t/10.cc: New test.
3568 * testsuite/27_io/objects/wchar_t/2.cc: New test.
3569 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
3570 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
3571 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
3572 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
3573 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
3574 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
3575 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
3576 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
3577 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
3578 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
3579 * testsuite/27_io/objects/wchar_t/5.cc: New test.
3580 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
3581 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
3582 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
3583 * testsuite/27_io/objects/wchar_t/6.cc: New test.
3584 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
3585 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
3586 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
3587 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
3588 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
3589 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
3590 * testsuite/27_io/objects/wchar_t/7.cc: New test.
3591 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
3592 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
3593 * testsuite/27_io/objects/wchar_t/8.cc: New test.
3594 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
3595 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
3596 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
3597 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
3598 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
3599 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
3600 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
3601 * testsuite/ext/stdiobuf_char.cc: New test.
3602 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
3604 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
3606 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
3607 unnecessary includes and unused string literals.
3608 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3610 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
3612 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
3614 2003-05-07 Richard Henderson <rth@redhat.com>
3617 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
3618 (__cxa_end_catch): Likewise.
3619 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
3620 _Unwind_Resume_or_Rethrow.
3621 * libsupc++/eh_personality.cc (empty_exception_spec): New.
3622 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
3623 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
3624 exceptions. Don't push terminate/unexpected to cxa functions.
3625 (__cxa_call_unexpected): Remove foreign exception fixmes.
3627 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
3629 * testsuite/27_io/ios_base/cons: New.
3630 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
3631 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
3633 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
3635 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
3637 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
3638 there is no buffer or __testget == !__testinit.
3641 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
3642 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
3644 * include/std/std_fstream.h (_M_destroy_pback): Don't set
3645 unnecessarily _M_pback_cur_save and _M_pback_end_save.
3647 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
3649 * include/std/std_sstream.h (_M_sync): Minor tweak.
3651 * include/bits/fstream.tcc (close): No need to call
3652 _M_destroy_pback, setting _M_pback_init to false suffices
3655 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
3657 * include/bits/stl_algo.h: Enums as _S_.
3658 * include/bits/stl_tree.h: Same.
3659 * include/bits/stl_bvector.h: Same.
3660 * include/bits/ios_base.h: Same.
3661 * include/bits/stl_alloc.h: Same.
3662 * include/ext/stl_hashtable.h: Same.
3663 * src/ios.cc: And here.
3665 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
3666 * include/bits/sstream.tcc: Same.
3668 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
3670 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
3672 * include/bits/locale_facets.h (__num_base): Remove protected.
3673 Use _S_[io]* names for enumerations.
3674 (_S_format_int): Remove.
3675 * include/bits/locale_facets.tcc: Same.
3676 * src/locale.cc: Same.
3678 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
3680 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
3682 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
3683 * docs/html/faq/index.txt: Regenerated.
3685 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
3686 Matt Kraai <kraai@alumni.cmu.edu>
3688 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
3691 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
3693 * configure.target (mips*): Use the generic atomicity.h by default.
3695 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
3696 (Inspired by an alternate patch from Danny Smith.)
3698 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
3699 (_Swap_lock_struct<>): ...and the horse it rode in on.
3700 * src/globals.cc (_Swap_lock_struct<>): Likewise.
3701 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
3702 member to support...
3703 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
3704 visibility rules related to POSIX threads.
3705 * testsuite/thread/pthread7-rope.cc: New test.
3707 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
3709 * testsuite/21_strings/basic_string/find/char/3.cc: New
3710 file, testing basic_string<char>::find_first_not_of.
3711 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
3712 Likewise for basic_string<wchar_t>.
3714 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
3716 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
3718 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
3720 * include/Makefile.am (CLEANFILES): Remove PCH files in target
3722 * include/Makefile.in: Regenerate.
3724 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
3726 * include/std/std_sstream.h (str()): Tidy.
3728 2003-05-02 Nathan Myers <ncm@cantrip.org>
3729 Paolo Carlini <pcarlini@unitus.it>
3731 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
3733 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
3735 * include/bits/basic_string.h (swap): Remove redundant template
3736 parameters from declaration of non-template member function.
3738 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
3740 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
3741 * configure.in: Move libintl.h header test...
3742 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
3743 the NLS-related test results into one symbol.
3744 * src/functexcept.cc: Use it here.
3745 * aclocal.m4, config.h.in, configure: Regenerated.
3747 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3749 * include/bits/sstream.tcc (overflow): Instead of calling
3750 str(), then _M_string.reserve, thus copying the contents
3751 of the current buffer two times, just copy the latter in
3752 a temporary, then use the 'swap trick'.
3754 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3756 * include/std/std_sstream.h (str()): Revert the best of the
3757 previous 'improvement', incorrect due to the COW nature of
3758 v3 basic_string; simplify.
3760 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3762 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
3763 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
3765 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
3767 * testsuite/abi_check.cc (check_version): Update known versions.
3768 Check added symbols for version_name != base version. Add missing
3769 symbols to incompatible list.
3771 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
3773 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
3774 * aclocal.m4: Regenerated.
3775 * configure: Regenerated.
3777 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3779 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
3780 Const-ify some variables.
3781 (basic_streambuf::xsputn): Likewise; change the type of some
3782 variables to size_t.
3783 (__copy_streambufs): Change some variables to size_t.
3785 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3787 * include/std/std_sstream.h (str()): Avoid constructing
3788 a basic_string temporary not only when it would turn out
3789 to be zero-sized but also when identical to the current
3792 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
3794 * include/ext/stdio_filebuf.h
3795 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
3796 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
3797 Shorten a bit (-10 lines) by factoring out some code.
3799 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
3801 * acinclude.m4: Add bit missing from previous patch.
3802 * aclocal.m4, configure: Regenerated.
3804 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
3806 * docs/doxygen/mainpage.html: Bring up to date.
3807 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
3809 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
3810 breaks everything. Don't scan them.
3811 * docs/html/documentation.html: Point to "Write after approval"
3814 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
3816 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
3817 of libc if message translations are being used. Fix info text in
3818 xieee_1003.1-2001 case.
3819 * aclocal.m4, configure: Regenerate.
3821 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
3822 Loren J. Rittle <ljrittle@acm.org>
3823 Martin v. Loewis <martin@v.loewis.de>
3825 * config/cpu/i386/atomicity.h: New file.
3827 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
3829 * include/bits/fstream.tcc (open): Change to single return.
3831 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
3833 * include/std/std_sstream.h (underflow): Change to single return.
3835 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
3837 * include/std/std_streambuf.h (_M_buf): is currently
3838 used only for basic_filebuf, therefore move it there.
3839 (basic_streambuf(), ~basic_streambuf()): Adjust.
3840 * include/std/std_fstream.h (_M_buf): Moved here.
3841 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
3842 is actually redundant for basic_stringbuf.
3843 (_M_really_sync): Likewise.
3844 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
3845 * include/bits/sstream.tcc (seekoff): Adjust.
3847 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
3849 * src/localename.cc: Standardize exception strings.
3850 * src/locale.cc: Same.
3852 * include/bits/basic_string.tcc: Same.
3853 * include/bits/basic_ios.tcc: Same.
3854 * include/std/std_bitset.h: Same.
3855 * include/ext/ropeimpl.h: Same.
3856 * include/bits/stl_vector.h: Same.
3857 * include/bits/stl_deque.h: Same.
3858 * include/bits/stl_bvector.h: Same.
3859 * config/locale/generic/c_locale.cc: Same.
3860 * config/locale/gnu/c_locale.cc: Same.
3861 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
3863 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
3865 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
3867 * include/std/std_streambuf.h (_M_buf_size): is currently
3868 used only for basic_filebuf, therefore move it there.
3869 (basic_streambuf(), ~basic_streambuf()): Adjust.
3870 * include/std/std_fstream.h (_M_buf_size): Moved here.
3871 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
3873 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
3875 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
3876 _M_buf_size (synced input is now correctly dealt with
3877 elsewhere); when the output buffer is full don't fall back
3878 to a snextc-sputc loop, call overflow instead.
3880 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
3882 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
3883 the innermost 'if' by factoring out some code.
3885 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
3887 * configure.in: Test for libintl.h.
3888 * include/bits/c++config: Define __N for everybody.
3889 * include/bits/basic_string.h, include/bits/stl_bvector.h,
3890 include/bits/stl_deque.h, include/bits/stl_vector.h,
3891 include/std/std_bitset.h: Wrap all __throw* text with __N.
3892 * po/Makefile.am (pot): New rule, mostly working.
3893 * src/functexcept.cc: Call gettext on all __throw* arguments when
3894 -fexceptions is in effect.
3895 * po/Makefile.in, config.h.in, configure: Regenerate.
3897 2003-04-28 Petur Runolfsson <peturr02@ru.is>
3900 * include/bits/ios_base.h (Init::_S_ios_create,
3901 Init::_S_ios_destroy): Remove declarations.
3902 (Init::_S_create_buffers,
3903 Init::_S_destroy_buffers): Declare
3904 * src/ios.cc (Init::_S_ios_create): Remove
3905 (Init::_S_create_buffers): Create buffers and add to streams.
3906 (Init::_S_ios_destroy): Rename to...
3907 (Init::_S_destroy_buffers): this.
3908 (Init::Init): Only construct streams once.
3909 (Init::~Init): Flush streams, don't destroy them.
3910 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
3911 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
3912 * testsuite/27_io/objects/char/5.cc: New test.
3913 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
3914 * testsuite/27_io/objects/char/6.cc: New test.
3915 * testsuite/27_io/objects/char/7.cc: New test.
3917 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
3919 * testsuite/27_io/objects/char/8.cc: New test.
3921 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
3923 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
3924 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
3926 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
3928 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
3929 _M_destroy_pback. _M_pback_create to
3930 _M_create_pback. _M_underflow_common to
3931 _M_underflow. _M_really_overflow to _M_overflow.
3932 * include/bits/fstream.tcc: Same.
3933 * src/fstream.cc: Same.
3934 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
3935 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
3936 * include/bits/streambuf.tcc: Same.
3937 * include/bits/fstream.tcc: Same.
3938 * include/bits/sstream.tcc: Same.
3940 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
3942 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
3943 from fixed size array.
3944 (locale): Change _S_categories as well.
3946 * include/bits/locale_facets.tcc: Tweak.
3947 * config/locale/gnu/c_locale.cc: Assign _S_categories.
3948 * config/locale/generic/c_locale.cc: Same.
3949 * src/locale.cc: Tweak.
3950 * src/globals.cc: Change facet_name to name_vec, add names_c.
3951 * src/localename.cc: Use them.
3952 (locale::_Impl::~_Impl): Destroy _M_names.
3953 (locale::_Impl::_Impl): Create _M_names.
3955 2003-04-27 Andreas Schwab <schwab@suse.de>
3957 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3958 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
3960 2003-04-27 Nathan Myers <ncm@cantrip.org>
3962 Move some basic_string members out of line because
3963 they are too big to reasonably be inline.
3964 * include/bits/basic_string.h
3965 (assign(const basic_string&, size_type, size_type),
3966 assign(const _CharT*, size_type),
3967 insert(size_type, const basic_string&, size_type, size_type),
3968 insert(size_type, const _CharT*, size_type),
3969 replace(size_type, size_type, const _CharT*, size_type)):
3970 Move from here to...
3971 * include/bits/basic_string.tcc: ...here.
3973 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
3975 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
3976 the innermost 'if' by factoring out some code.
3978 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
3980 * include/bits/streambuf.tcc (__copy_streambufs): Don't
3981 use in_avail(), simplify.
3983 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
3985 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
3986 in basic_stringbuf it's unused.
3988 * include/std/std_sstream.h (underflow): consistently use
3989 _M_in_cur, not gptr().
3991 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
3992 Phil Edwards <pme@gcc.gnu.org>
3994 * testsuite_flags.in: Guard against the possibility
3995 of having "xgcc" as a part of a folder name in the
3996 path to the GCC build folder.
3997 * testsuite/Makefile.am: Likewise.
3998 * testsuite/Makefile.in: Regenerated.
4000 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
4003 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
4004 exception specifications.
4005 (basic_filebuf::close): Same.
4006 (basic_filebuf::_M_pback_destroy): Same.
4007 (basic_filebuf::_M_destroy_internal_buffer): Same.
4008 (basic_filebuf): Remove __res_type typedef.
4009 * src/fstream.cc: Same.
4010 * include/bits/fstream.tcc
4011 (basic_filebuf::_M_convert_to_external): Simplify.
4012 (basic_filebuf::seekoff): Use has_facet before use_facet.
4013 (basic_filebuf::close): Add exception specification of throw().
4014 * testsuite/27_io/basic_filebuf/cons: New.
4015 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
4016 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
4017 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
4018 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
4020 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
4022 * include/bits/locale_classes.h
4023 (locale::_S_extra_categories_size): Remove.
4024 * src/locale.cc: Remove _S_extra_categories_size.
4025 * src/localename.cc: Same.
4026 * config/locale/gnu/c_locale.cc: Same.
4027 * config/locale/generic/c_locale.cc: Same.
4029 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
4031 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
4033 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
4035 * docs/html/17_intro/howto.html: Update some links.
4036 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
4037 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
4038 * docs/html/ext/howto.html: Link to demangler notes and API.
4039 * docs/html/faq/index.html: Remove trailing whitespace.
4040 (1.4, 2.4, 3.8, 4.1): Bring up to date.
4041 (5.6): Change to a bulleted list.
4043 * docs/html/faq/index.txt, docs/html/documentation.html,
4044 docs/html/17_intro/porting.html: Regenerate.
4046 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
4048 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
4049 belongs to basic_filebuf.
4050 * testsuite/27_io/basic_fstream/3.cc: Likewise.
4051 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4052 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
4053 instantiation (now belongs to basic_filebuf).
4054 * testsuite/27_io/basic_iostream/3.cc: Likewise.
4055 * testsuite/27_io/basic_istream/3.cc: Likewise.
4056 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4057 _S_pback_size now belongs to basic_filebuf.
4058 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
4059 instantiation (now belongs to basic_filebuf).
4060 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
4061 belongs to basic_filebuf.
4062 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
4063 instantiation (now belongs to basic_filebuf).
4064 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
4065 _S_pback_size now belongs to basic_filebuf.
4066 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
4067 instantiation (now belongs to basic_filebuf).
4068 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
4070 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
4071 instantiation (now belongs to basic_filebuf).
4072 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
4074 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
4076 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
4077 * configure: Regenerated.
4079 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
4081 * config/locale/generic/c_locale.h (__convert_from_v): Use
4084 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
4086 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
4087 implementation only.
4088 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
4089 Comment and change to comply with DR 60 and the effect on gcount().
4090 * include/std/std_istream.h: Update comments.
4091 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
4092 comments about reasons for tests. Test sync() against gcount().
4093 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
4094 for effect on gcount().
4095 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
4096 for effect on gcount().
4098 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
4100 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
4103 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
4105 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
4106 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4107 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
4108 (basic_streambuf::basic_streambuf()): Adjust.
4109 * include/std/std_fstream.h (_S_pback_size, _M_pback,
4110 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4111 _M_pback_create(), _M_pback_destroy()): Moved here
4112 from basic_streambuf.
4113 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
4115 (basic_filebuf::_S_pback_size): Add declaration.
4116 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
4119 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4121 Consistently use _M_in_beg instead of eback(), _M_in_cur
4122 instead of gptr(), and so on.
4123 * include/bits/fstream.tcc (pbackfail, imbue): Here.
4124 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
4125 * include/bits/streambuf.tcc (sbumpc, sputbackc,
4126 __copy_streambufs): Ditto.
4127 * include/std/std_streambuf.h (sgetc): Ditto.
4129 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4131 * include/bits/sstream.tcc (pbackfail, overflow):
4134 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4136 * include/std/std_streambuf.h (uflow()): It's used only by
4137 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
4138 therefore do not consider the _M_buf_unified == true case.
4140 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
4142 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
4144 * docs/html/ext/howto.html ('LWG Issues'):
4145 Add issues 19, 90, 171, 231, 271.
4147 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
4149 * include/bits/sstream.tcc (pbackfail): Remove redundant
4150 NULL pointer check from test involving _M_in_*.
4151 (overflow, seekoff, seekpos): Const qualify bool variables.
4152 * include/std/std_sstream.h (underflow): Remove redundant
4153 NULL pointer check from test involving _M_in_*.
4154 (_M_really_sync): Const qualify bool variables.
4155 * src/fstream.cc (_M_underflow_common): Remove redundant
4156 NULL pointer check from test involving _M_in_*, const qualify
4159 * include/std/std_streambuf.h (sgetc): Remove redundant
4162 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
4164 According to 5.9 para 2 (second bullet) for pointers p, q
4165 pointing to the same type, with p == 0 and q == 0, (p < q)
4167 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
4168 seekoff): Remove redundant NULL pointer checks from tests
4169 involving _M_out_* and _M_in_*, const qualify bool variables.
4170 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
4171 qualify bool variables.
4172 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
4173 Remove redundant NULL pointer checks from tests involving
4174 _M_out_* and _M_in_*, const qualify bool variables.
4175 * include/std/std_fstream.h (sync): Likewise.
4176 (_M_is_indeterminate): Const qualify bool variables.
4177 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
4178 NULL pointer checks from tests involving _M_out_* and _M_in_*,
4179 const qualify bool variables.
4180 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
4183 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
4185 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
4186 C99 FP macros, if actually captured.
4188 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
4189 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4190 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4191 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4192 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
4194 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4195 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4196 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4197 * include/c_std/std_cstdlib.h: Use new macros.
4198 * include/c_std/std_cstdio.h: Use new macros.
4199 * include/c_std/std_cwchar.h: Use new macros.
4201 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
4204 * include/bits/ostream.tcc: Catch all exceptions for formatted
4205 output, instead of std::exception and derivatives.
4206 * include/bits/istream.tcc: Same.
4207 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
4208 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
4209 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
4210 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
4211 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
4212 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
4215 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
4217 * include/bits/c++config: Minor cosmetic tweaks.
4219 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
4221 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
4222 * include/Makefile.am (pch_input): Find in ${target_builddir}.
4223 (pch_output): Rename to...
4224 (pch_output_builddir): ..this. Find in ${target_builddir}.
4225 (pch_source): Tweak.
4226 (pch_build): Key off a built file.
4227 (pch_output rule): Rename to...
4228 (pch_input rule): ...this. Produce ${pch_output_builddir}
4229 instead of ${pch_output}.
4230 (install-pch rule): Install ${pch_output_builddir}.
4231 * include/Makefile.in: Regenerated.
4233 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
4235 * include/std/std_streambuf.h (setp): _M_out_lim, being
4236 the end limit of used put area, is set equal to _M_out_beg.
4238 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
4240 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
4241 * aclocal.m4: Regenerated.
4242 * configure.in: Remove old demangler bits.
4244 * configure: Regenerate.
4245 * config.h.in: Regenerate.
4246 * include/Makefile.am (allstamps): Now allstamped.
4247 (allcreated): Define this.
4248 (all-local): Use 'em.
4249 Conditionally define pch_build, pch_install based on
4251 (${pch_output}): New rule.
4252 (install-pch): New rule.
4253 (install-headers): New rule.
4254 (install-data-local): Install headers and conditionally pch.
4255 * include/Makefile.in: Regenerate.
4256 * testsuite_flags.in (--build-cxx): Use pch file.
4258 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
4260 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
4262 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
4263 Paolo Carlini <pcarlini at unitus dot it>
4266 * docs/html/27_io/howto.html
4267 ('The buffering is screwing up my program!'): Explain that
4268 opening counts as an I/O operation.
4270 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
4272 * testsuite/thread/pthread1.cc: Enable for darwin test.
4273 * testsuite/thread/pthread2.cc: Same.
4274 * testsuite/thread/pthread3.cc: Same.
4275 * testsuite/thread/pthread4.cc: Same.
4276 * testsuite/thread/pthread5.cc: Same.
4277 * testsuite/thread/pthread6.cc: Same.
4279 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
4282 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
4283 Populate it with multiple legal ways to obtain the C99 float
4284 transcendentals. Use them instead of direct global reference.
4285 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
4286 * docs/html/17_intro/porting.texi
4287 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4288 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4289 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
4290 * config/os/bsd/freebsd/os_defines.h
4291 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4292 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4293 * testsuite/26_numerics/c_math_dynamic.cc: New file.
4295 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
4296 Benjamin Kosnik <bkoz@redhat.com>
4298 * config/os/generic/ctype_inline.h: Fix.
4300 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
4302 * testsuite/testsuite_hooks.h
4303 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
4304 Change to try_named_locale.
4305 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
4307 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
4309 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
4310 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
4311 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
4312 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
4313 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
4314 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
4315 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
4316 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
4317 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
4318 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
4319 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
4320 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
4321 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
4322 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
4323 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
4324 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
4325 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
4326 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
4327 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
4328 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
4329 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
4330 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
4331 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
4332 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
4333 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
4334 * testsuite/22_locale/collate/compare/char/1.cc: Same.
4335 * testsuite/22_locale/collate/compare/char/2.cc: Same.
4336 * testsuite/22_locale/collate/compare/char/3.cc: Same.
4337 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
4338 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
4339 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
4340 * testsuite/22_locale/collate/hash/char/2.cc: Same.
4341 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
4342 * testsuite/22_locale/collate/transform/char/2.cc: Same.
4343 * testsuite/22_locale/collate/transform/char/3.cc: Same.
4344 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
4345 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
4346 * testsuite/22_locale/collate_byname/1.cc: Same.
4347 * testsuite/22_locale/ctype/is/char/2.cc: Same.
4348 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
4349 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
4350 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
4351 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
4352 * testsuite/22_locale/facet/2.cc: Same.
4353 * testsuite/22_locale/locale/cons/2.cc: Same.
4354 * testsuite/22_locale/locale/cons/4.cc: Same.
4355 * testsuite/22_locale/locale/cons/5.cc: Same.
4356 * testsuite/22_locale/locale/cons/7.cc: Same.
4357 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
4358 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
4359 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
4360 * testsuite/22_locale/messages/members/char/1.cc: Same.
4361 * testsuite/22_locale/messages/members/char/2.cc: Same.
4362 * testsuite/22_locale/messages/members/char/3.cc: Same.
4363 * testsuite/22_locale/messages_byname/1.cc: Same.
4364 * testsuite/22_locale/money_get/get/char/1.cc: Same.
4365 * testsuite/22_locale/money_get/get/char/2.cc: Same.
4366 * testsuite/22_locale/money_get/get/char/3.cc: Same.
4367 * testsuite/22_locale/money_get/get/char/4.cc: Same.
4368 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
4369 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
4370 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
4371 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
4372 * testsuite/22_locale/money_put/put/char/1.cc: Same.
4373 * testsuite/22_locale/money_put/put/char/2.cc: Same.
4374 * testsuite/22_locale/money_put/put/char/3.cc: Same.
4375 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
4376 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
4377 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
4378 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
4379 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
4380 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
4381 * testsuite/22_locale/num_get/get/char/1.cc: Same.
4382 * testsuite/22_locale/num_get/get/char/2.cc: Same.
4383 * testsuite/22_locale/num_get/get/char/3.cc: Same.
4384 * testsuite/22_locale/num_get/get/char/5.cc: Same.
4385 * testsuite/22_locale/num_get/get/char/6.cc: Same.
4386 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
4387 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
4388 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
4389 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
4390 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
4391 * testsuite/22_locale/num_put/put/char/1.cc: Same.
4392 * testsuite/22_locale/num_put/put/char/2.cc: Same.
4393 * testsuite/22_locale/num_put/put/char/3.cc: Same.
4394 * testsuite/22_locale/num_put/put/char/5.cc: Same.
4395 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
4396 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
4397 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
4398 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
4399 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
4400 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
4401 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
4402 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
4403 * testsuite/22_locale/numpunct_byname/1.cc: Same.
4404 * testsuite/22_locale/numpunct_byname/2.cc: Same.
4405 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
4406 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
4407 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
4408 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
4409 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
4410 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
4411 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
4412 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
4413 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
4414 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
4415 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
4416 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
4417 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
4418 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
4419 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
4420 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
4421 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
4422 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
4423 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
4424 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
4425 * testsuite/22_locale/time_put/put/char/1.cc: Same.
4426 * testsuite/22_locale/time_put/put/char/2.cc: Same.
4427 * testsuite/22_locale/time_put/put/char/3.cc: Same.
4428 * testsuite/22_locale/time_put/put/char/4.cc: Same.
4429 * testsuite/22_locale/time_put/put/char/5.cc: Same.
4430 * testsuite/22_locale/time_put/put/char/6.cc: Same.
4431 * testsuite/22_locale/time_put/put/char/7.cc: Same.
4432 * testsuite/22_locale/time_put/put/char/8.cc: Same.
4433 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
4434 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
4435 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
4436 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
4437 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
4438 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
4439 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
4440 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
4441 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
4442 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
4443 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
4444 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
4445 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
4447 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
4449 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
4450 solaris includes, not generic.
4452 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
4454 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
4456 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
4457 * include/bits/concept_check.h: Fix multi-line comment.
4458 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
4459 when target is *-*-freebsd*.
4461 2003-04-14 Nathan Myers <ncm@cantrip.org>
4462 Paolo Carlini <pcarlini@unitus.it>
4464 PR libstdc++/9701 (in_avail())
4465 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
4466 doesn't care if there is anything in some putback cell.
4467 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
4469 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
4470 unused string literals.
4472 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
4474 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
4475 _M_out_end, _M_set_indeterminate() does it.
4477 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4479 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
4481 2003-04-12 David Edelsohn <edelsohn@gnu.org>
4483 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4484 Change basic_streambuf instantiation to "unsigned char".
4485 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
4487 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
4489 Remove _M_buf_size_opt, use directly _M_buf_size instead.
4490 * include/bits/fstream.tcc
4491 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
4492 references to _M_buf_size_opt.
4493 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
4494 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
4495 __bufsize to __in_avail and __size_opt to __buf_size.
4496 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
4497 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
4498 * include/std/std_streambuf.h (~basic_streambuf(),
4499 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
4500 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
4501 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
4502 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
4503 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
4504 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
4505 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
4506 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
4507 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
4508 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
4509 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
4510 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
4511 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
4513 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
4515 * include/ext/stdio_filebuf.h
4516 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
4517 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
4518 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
4519 since a stack-based buffer is used for small values of the size_t
4521 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
4522 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
4523 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
4525 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
4528 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
4529 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
4531 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
4533 * testsuite/22_locale/locale/cons/3.cc: Split.
4534 * testsuite/22_locale/locale/cons/7222-c.cc: New.
4535 * testsuite/22_locale/locale/cons/7222-env.cc: New.
4536 Check before trying to create a locale from the environment.
4537 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
4538 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
4541 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
4543 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
4544 locale to construct this hybrid locale, not the global locale.
4546 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
4548 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
4549 instantiation for AIX.
4550 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
4551 * testsuite/25_algorithms/min_max.cc: Same.
4553 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4555 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
4556 twice. Always set _M_cfile to 0 when stream was open.
4558 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
4560 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
4561 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
4562 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
4563 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
4564 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
4565 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
4566 ifstream_members.cc, instantiations.cc, ios.cc,
4567 ios_base_callbacks.cc, ios_base_members_static-1.tst,
4568 ios_base_members_static.cc, ios_base_storage.cc,
4569 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
4570 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
4571 iostream.cc, iostream_members.cc, istream.cc,
4572 istream_exception.cc, istream_extractor_char.cc,
4573 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
4574 istream_extractor_other-2.tst, istream_extractor_other.cc,
4575 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
4576 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
4577 istream_sentry.cc, istream_unformatted-1.tst,
4578 istream_unformatted-1.txt, istream_unformatted.cc,
4579 istringstream.cc, istringstream_members.cc,
4580 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
4581 ofstream_members.cc, ostream.cc, ostream_exception.cc,
4582 ostream_fail.cc, ostream_inserter_arith.cc,
4583 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
4584 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
4585 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
4586 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
4587 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
4588 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
4589 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
4590 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
4591 wide_stream_objects.cc, istream_extractor_arith/01.cc,
4592 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
4593 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
4594 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
4595 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
4596 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
4598 * 27_io/basic_filebuf/1.cc: New.
4599 * 27_io/basic_filebuf/2.cc: New.
4600 * 27_io/basic_filebuf/3.cc: New.
4601 * 27_io/basic_filebuf/4.cc: New.
4602 * 27_io/basic_filebuf/close/char/1.cc: New.
4603 * 27_io/basic_filebuf/close/char/2.cc: New.
4604 * 27_io/basic_filebuf/close/char/3.cc: New.
4605 * 27_io/basic_filebuf/close/char/4879.cc: New.
4606 * 27_io/basic_filebuf/close/char/9964.cc: New.
4607 * 27_io/basic_filebuf/imbue/char/1.cc: New.
4608 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
4609 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
4610 * 27_io/basic_filebuf/is_open/char/1.cc: New.
4611 * 27_io/basic_filebuf/open/char/1.cc: New.
4612 * 27_io/basic_filebuf/open/char/2.cc: New.
4613 * 27_io/basic_filebuf/open/char/3.cc: New.
4614 * 27_io/basic_filebuf/open/char/9507.cc: New.
4615 * 27_io/basic_filebuf/overflow/char/1.cc: New.
4616 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
4617 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
4618 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
4619 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
4620 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
4621 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
4622 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
4623 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
4624 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
4625 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
4626 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
4627 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
4628 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
4629 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
4630 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
4631 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
4632 * 27_io/basic_filebuf/snextc/char/1.cc: New.
4633 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
4634 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
4635 * 27_io/basic_filebuf/sputc/char/1.cc: New.
4636 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
4637 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
4638 * 27_io/basic_filebuf/sputn/char/1.cc: New.
4639 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
4640 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
4641 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
4642 * 27_io/basic_filebuf/sync/char/1057.cc: New.
4643 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
4644 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
4645 * 27_io/basic_fstream/1.cc: New.
4646 * 27_io/basic_fstream/2.cc: New.
4647 * 27_io/basic_fstream/3.cc: New.
4648 * 27_io/basic_fstream/4.cc: New.
4649 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
4650 * 27_io/basic_ifstream/1.cc: New.
4651 * 27_io/basic_ifstream/2.cc: New.
4652 * 27_io/basic_ifstream/3.cc: New.
4653 * 27_io/basic_ifstream/4.cc: New.
4654 * 27_io/basic_ifstream/cons/char/1.cc: New.
4655 * 27_io/basic_ifstream/open/char/1.cc: New.
4656 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
4657 * 27_io/basic_ios/1.cc: New.
4658 * 27_io/basic_ios/2.cc: New.
4659 * 27_io/basic_ios/3.cc: New.
4660 * 27_io/basic_ios/4.cc: New.
4661 * 27_io/basic_ios/clear/char/1.cc: New.
4662 * 27_io/basic_ios/cons/char/1.cc: New.
4663 * 27_io/basic_ios/cons/char/2.cc: New.
4664 * 27_io/basic_ios/cons/char/3.cc: New.
4665 * 27_io/basic_ios/copyfmt/char/1.cc: New.
4666 * 27_io/basic_ios/copyfmt/char/2.cc: New.
4667 * 27_io/basic_ios/exceptions/char/1.cc: New.
4668 * 27_io/basic_ios/locales/char/1.cc: New.
4669 * 27_io/basic_iostream/1.cc: New.
4670 * 27_io/basic_iostream/2.cc: New.
4671 * 27_io/basic_iostream/3.cc: New.
4672 * 27_io/basic_iostream/4.cc: New.
4673 * 27_io/basic_istream/1.cc: New.
4674 * 27_io/basic_istream/2.cc: New.
4675 * 27_io/basic_istream/3.cc: New.
4676 * 27_io/basic_istream/4.cc: New.
4677 * 27_io/basic_istream/exceptions/char/9561.cc: New.
4678 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
4679 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
4680 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
4681 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
4682 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
4683 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
4684 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
4685 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
4686 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
4687 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
4688 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
4689 * 27_io/basic_istream/extractors_character/char/1.cc: New.
4690 * 27_io/basic_istream/extractors_character/char/2.cc: New.
4691 * 27_io/basic_istream/extractors_character/char/3.cc: New.
4692 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
4693 * 27_io/basic_istream/extractors_other/char/1.cc: New.
4694 * 27_io/basic_istream/extractors_other/char/2.cc: New.
4695 * 27_io/basic_istream/extractors_other/char/3.cc: New.
4696 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
4697 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
4698 * 27_io/basic_istream/get/char/1.cc: New.
4699 * 27_io/basic_istream/get/char/2.cc: New.
4700 * 27_io/basic_istream/getline/char/1.cc: New.
4701 * 27_io/basic_istream/getline/char/2.cc: New.
4702 * 27_io/basic_istream/getline/char/3.cc: New.
4703 * 27_io/basic_istream/ignore/char/1.cc: New.
4704 * 27_io/basic_istream/ignore/char/6360.cc: New.
4705 * 27_io/basic_istream/ignore/char/7220.cc: New.
4706 * 27_io/basic_istream/peek/char/1.cc: New.
4707 * 27_io/basic_istream/peek/char/6414.cc: New.
4708 * 27_io/basic_istream/putback/char/1.cc: New.
4709 * 27_io/basic_istream/read/char/1.cc: New.
4710 * 27_io/basic_istream/read/char/2.cc: New.
4711 * 27_io/basic_istream/read/char/3.cc: New.
4712 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
4713 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
4714 * 27_io/basic_istream/readsome/char/8258.cc: New.
4715 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
4716 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
4717 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
4718 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
4719 * 27_io/basic_istream/seekg/char/fstream.cc: New.
4720 * 27_io/basic_istream/seekg/char/sstream.cc: New.
4721 * 27_io/basic_istream/sentry/char/1.cc: New.
4722 * 27_io/basic_istream/sentry/char/2.cc: New.
4723 * 27_io/basic_istream/sentry/char/3.cc: New.
4724 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
4725 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
4726 * 27_io/basic_istream/tellg/char/1.cc: New.
4727 * 27_io/basic_istream/tellg/char/8348.cc: New.
4728 * 27_io/basic_istream/tellg/char/fstream.cc: New.
4729 * 27_io/basic_istream/tellg/char/sstream.cc: New.
4730 * 27_io/basic_istream/ws/char/1.cc: New.
4731 * 27_io/basic_istringstream/1.cc: New.
4732 * 27_io/basic_istringstream/2.cc: New.
4733 * 27_io/basic_istringstream/3.cc: New.
4734 * 27_io/basic_istringstream/4.cc: New.
4735 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
4736 * 27_io/basic_istringstream/str/char/1.cc: New.
4737 * 27_io/basic_ofstream/1.cc: New.
4738 * 27_io/basic_ofstream/2.cc: New.
4739 * 27_io/basic_ofstream/3.cc: New.
4740 * 27_io/basic_ofstream/4.cc: New.
4741 * 27_io/basic_ofstream/cons/char/2.cc: New.
4742 * 27_io/basic_ofstream/open/char/1.cc: New.
4743 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
4744 * 27_io/basic_ostream/1.cc: New.
4745 * 27_io/basic_ostream/2.cc: New.
4746 * 27_io/basic_ostream/3.cc: New.
4747 * 27_io/basic_ostream/4.cc: New.
4748 * 27_io/basic_ostream/cons/char/9827.cc: New.
4749 * 27_io/basic_ostream/endl/char/1.cc: New.
4750 * 27_io/basic_ostream/ends/char/1.cc: New.
4751 * 27_io/basic_ostream/ends/char/2.cc: New.
4752 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
4753 * 27_io/basic_ostream/flush/char/1.cc: New.
4754 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
4755 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
4756 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
4757 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
4758 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
4759 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
4760 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
4761 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
4762 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
4763 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
4764 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
4765 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
4766 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
4767 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
4768 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
4769 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
4770 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
4771 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
4772 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
4773 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
4774 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
4775 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
4776 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
4777 * 27_io/basic_ostream/sentry/char/1.cc: New.
4778 * 27_io/basic_ostream/sentry/char/2.cc: New.
4779 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
4780 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
4781 * 27_io/basic_ostream/tellp/char/1.cc: New.
4782 * 27_io/basic_ostream/tellp/char/2.cc: New.
4783 * 27_io/basic_ostringstream/1.cc: New.
4784 * 27_io/basic_ostringstream/2.cc: New.
4785 * 27_io/basic_ostringstream/3.cc: New.
4786 * 27_io/basic_ostringstream/4.cc: New.
4787 * 27_io/basic_ostringstream/cons/char/3.cc: New.
4788 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
4789 * 27_io/basic_ostringstream/str/char/1.cc: New.
4790 * 27_io/basic_ostringstream/str/char/2.cc: New.
4791 * 27_io/basic_streambuf/1.cc: New.
4792 * 27_io/basic_streambuf/2.cc: New.
4793 * 27_io/basic_streambuf/3.cc: New.
4794 * 27_io/basic_streambuf/cons/char/1.cc: New.
4795 * 27_io/basic_streambuf/imbue/char/1.cc: New.
4796 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
4797 * 27_io/basic_streambuf/overflow/char/1.cc: New.
4798 * 27_io/basic_streambuf/overflow/char/2.cc: New.
4799 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
4800 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
4801 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
4802 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
4803 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
4804 * 27_io/basic_streambuf/sputn/char/1.cc: New.
4805 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
4806 * 27_io/basic_streambuf/sync/char/1057.cc: New.
4807 * 27_io/basic_stringbuf/1.cc: New.
4808 * 27_io/basic_stringbuf/2.cc: New.
4809 * 27_io/basic_stringbuf/3.cc: New.
4810 * 27_io/basic_stringbuf/4.cc: New.
4811 * 27_io/basic_stringbuf/5.cc: New.
4812 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
4813 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
4814 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
4815 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
4816 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
4817 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
4818 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
4819 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
4820 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
4821 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
4822 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
4823 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
4824 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
4825 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
4826 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
4827 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
4828 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
4829 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
4830 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
4831 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
4832 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
4833 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
4834 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
4835 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
4836 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
4837 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
4838 * 27_io/basic_stringbuf/str/char/1.cc: New.
4839 * 27_io/basic_stringbuf/str/char/2.cc: New.
4840 * 27_io/basic_stringbuf/str/char/3.cc: New.
4841 * 27_io/basic_stringbuf/str/char/3955.cc: New.
4842 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
4843 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
4844 * 27_io/basic_stringstream/1.cc: New.
4845 * 27_io/basic_stringstream/2.cc: New.
4846 * 27_io/basic_stringstream/3.cc: New.
4847 * 27_io/basic_stringstream/4.cc: New.
4848 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
4849 * 27_io/basic_stringstream/str/char/1.cc: New.
4850 * 27_io/basic_stringstream/str/char/2.cc: New.
4851 * 27_io/basic_stringstream/str/char/3.cc: New.
4852 * 27_io/basic_stringstream/str/char/4.cc: New.
4853 * 27_io/fpos/1.cc: New.
4854 * 27_io/fpos/2.cc: New.
4855 * 27_io/fpos/3.cc: New.
4856 * 27_io/ios_base/callbacks/1.cc: New.
4857 * 27_io/ios_base/state/1.cc: New.
4858 * 27_io/ios_base/storage/1.cc: New.
4859 * 27_io/ios_base/storage/2.cc: New.
4860 * 27_io/ios_base/storage/3.cc: New.
4861 * 27_io/ios_base/sync_with_stdio/1.cc: New.
4862 * 27_io/ios_base/sync_with_stdio/2.cc: New.
4863 * 27_io/manipulators/adjustfield/char/1.cc: New.
4864 * 27_io/manipulators/adjustfield/char/2.cc: New.
4865 * 27_io/manipulators/basefield/char/1.cc: New.
4866 * 27_io/manipulators/standard/char/1.cc: New.
4867 * 27_io/manipulators/standard/char/2.cc: New.
4868 * 27_io/objects/char/1.cc: New.
4869 * 27_io/objects/char/2.cc: New.
4870 * 27_io/objects/char/2523-1_xin.cc: New.
4871 * 27_io/objects/char/2523-1_xin.in: New.
4872 * 27_io/objects/char/2523-2_xin.cc: New.
4873 * 27_io/objects/char/2523-2_xin.in: New.
4874 * 27_io/objects/char/3045.cc: New.
4875 * 27_io/objects/char/3647.cc: New.
4876 * 27_io/objects/char/3_xin.cc: New.
4877 * 27_io/objects/char/3_xin.in: New.
4878 * 27_io/objects/char/4_xin.cc: New.
4879 * 27_io/objects/char/4_xin.in: New.
4880 * 27_io/objects/char/5268.cc: New.
4881 * 27_io/objects/char/5280_xin.cc: New.
4882 * 27_io/objects/char/5280_xin.in: New.
4883 * 27_io/objects/char/6548_xin.cc: New.
4884 * 27_io/objects/char/6548_xin.in: New.
4885 * 27_io/objects/char/6648-1_xin.cc: New.
4886 * 27_io/objects/char/6648-1_xin.in: New.
4887 * 27_io/objects/char/6648-2_xin.cc: New.
4888 * 27_io/objects/char/6648-2_xin.in: New.
4889 * 27_io/objects/char/7744_xin.cc: New.
4890 * 27_io/objects/char/7744_xin.in: New.
4891 * 27_io/objects/wchar_t/1.cc: New.
4892 * 27_io/types/1.cc: New.
4893 * 27_io/types/2.cc: New.
4894 * data/filebuf_members-1.tst: New.
4895 * data/filebuf_members-1.txt: New.
4896 * data/filebuf_virtuals-1.tst: New.
4897 * data/filebuf_virtuals-1.txt: New.
4898 * data/filebuf_virtuals-2.tst: New.
4899 * data/filebuf_virtuals-3.tst: New.
4900 * data/ifstream_members-1.tst: New.
4901 * data/ifstream_members-1.txt: New.
4902 * data/ios_base_members_static-1.tst: New.
4903 * data/istream_extractor_other-1.tst: New.
4904 * data/istream_extractor_other-1.txt: New.
4905 * data/istream_extractor_other-2.tst: New.
4906 * data/istream_seeks-1.tst: New.
4907 * data/istream_seeks-1.txt: New.
4908 * data/istream_seeks-2.tst: New.
4909 * data/istream_seeks-3.tst: New.
4910 * data/istream_unformatted-1.tst: New.
4911 * data/istream_unformatted-1.txt: New.
4912 * data/ofstream_members-1.tst: New.
4913 * data/ostream_inserter_char-1.tst: New.
4914 * data/ostream_inserter_char-1.txt: New.
4915 * data/ostream_inserter_other-1.tst: New.
4916 * data/ostream_inserter_other-2.tst: New.
4917 * data/ostream_seeks-1.tst: New.
4919 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
4921 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
4922 requirement that __mode must be strict input or output.
4924 * include/std/std_streambuf.h (basic_streambuf::setp): Set
4927 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
4928 output string shouldn't core.
4929 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
4931 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
4933 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
4936 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
4938 * testsuite/data: New directory.
4939 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
4940 to copy files from the testsuite data directory.
4941 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
4942 testfiles containing _xin, which now means this is an interactive
4943 test and should be run with the interactive dejagnu hooks.
4944 * testsuite/Makefile.am: Remove testsuite_* files.
4945 * testsuite/Makefile.in: Regenerate.
4947 2003-04-09 Zack Weinberg <zack@codesourcery.com>
4949 * docs/html/install.html: Document complete list of locales
4950 required by test suite. Document procedure for installing
4951 said locales under Debian. Solicit instructions for other
4954 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
4956 * include/bits/sstream.tcc (overflow): Make sure operands of min
4957 and max have the same type.
4959 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
4962 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
4965 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
4967 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
4968 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
4969 Don't set _M_out_end.
4970 (basic_filebuf::overflow): Replace _M_out_buf_size() with
4971 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
4972 * include/bits/sstream.tcc (basic_stringbuf::overflow):
4973 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
4974 * include/bits/streambuf.tcc (basic_streambuf::sputc):
4975 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
4976 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
4977 _M_out_end - _M_out_cur.
4978 (__copy_streambufs): Likewise.
4979 * include/std/std_fstream.h (_M_set_determinate): Set
4982 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
4984 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
4985 _M_convert_to_external, _M_really_overflow, seekoff): Fix
4986 test for synced buffer.
4987 * include/std/std_fstream.h (sync): Likewise.
4988 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
4989 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
4991 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
4993 * include/std/std_sstream.h (basic_istringstream): Adjust
4995 (basic_ostringstream): Same.
4996 (basic_stringstream): Same.
4997 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
4998 (basic_ofstream): Same.
4999 (basic_fstream): Same.
5000 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
5001 that does not call init.
5002 * include/std/std_istream.h (basic_istream): Same.
5003 (basic_iostream): Construct istream, ostream uninitialized, use
5004 init to initialize just once. Add protected ctor that does not
5007 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
5008 Nathan Myers <ncm@cantrip.org>
5011 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
5013 (basic_filebuf<>::showmanyc): Use the information provided
5014 by codecvt and __basic_file<>::showmanyc_helper to implement
5015 a non-trivial showmanyc.
5016 * config/io/basic_file_stdio.h
5017 (__basic_file<>::showmanyc_helper): New, declare.
5018 * config/io/basic_file_stdio.cc
5019 (__basic_file<>::showmanyc_helper): Define.
5020 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
5021 (__basic_file<char>::open): Don't call fcntl().
5022 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
5023 GLIBCPP_CHECK_POLL): New macros.
5024 * configure.in: Call here.
5025 * acconfig.h: Add #undefs for the corresponding symbols.
5026 * aclocal.m4: Regenerate.
5027 * configure: Regenerate.
5028 * config.h.in: Regenerate.
5030 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
5032 * config/linker-map.gnu: Remove string export restrictions.
5034 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
5036 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
5037 find_first_of, find_last_of and find_last_not_of tests.
5038 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
5039 tests here, new file.
5040 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
5041 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
5042 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
5043 wchar_t find_first_of tests here, new file.
5044 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
5046 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
5048 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
5049 wchar_t find_last_of tests here.
5050 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
5051 wchar_t find_last_not_of tests here.
5053 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
5055 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
5056 Correct return value.
5058 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
5061 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
5062 * include/std/std_complex.h (norm): Use faster,
5063 less accurate computation for builtin float types under --fast-math.
5065 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
5067 * testsuite/testsuite_hooks.h: Fix warning nits.
5069 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
5071 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
5072 Only .set mips2 for the o32 ABI.
5074 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
5076 * testsuite/21_strings/char_traits/requirements/char/1.cc:
5077 Test char not wchar_t.
5079 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
5081 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
5082 Correct size, taking into account sizeof(wchar_t).
5084 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
5086 Reshuffle 21_strings testsuite.
5087 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
5088 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
5089 element_access.cc, operations.cc, char_traits_requirements.cc,
5090 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
5091 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
5092 wchar_t tests as follows.
5093 * 21_strings/basic_string/append/char/1.cc: New.
5094 * 21_strings/basic_string/append/wchar_t/1.cc: New.
5095 * 21_strings/basic_string/assign/char/1.cc: New.
5096 * 21_strings/basic_string/assign/char/2.cc: New.
5097 * 21_strings/basic_string/assign/char/3.cc: New.
5098 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
5099 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
5100 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
5101 * 21_strings/basic_string/capacity/1.cc: New.
5102 * 21_strings/basic_string/capacity/char/1.cc: New.
5103 * 21_strings/basic_string/capacity/char/2.cc: New.
5104 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
5105 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
5106 * 21_strings/basic_string/compare/char/1.cc: New.
5107 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
5108 * 21_strings/basic_string/cons/char/1.cc: New.
5109 * 21_strings/basic_string/cons/char/2.cc: New.
5110 * 21_strings/basic_string/cons/char/3.cc: New.
5111 * 21_strings/basic_string/cons/char/4.cc: New.
5112 * 21_strings/basic_string/cons/char/5.cc: New.
5113 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
5114 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
5115 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
5116 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
5117 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
5118 * 21_strings/basic_string/element_access/char/1.cc: New.
5119 * 21_strings/basic_string/element_access/char/2.cc: New.
5120 * 21_strings/basic_string/element_access/char/3.cc: New.
5121 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
5122 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
5123 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
5124 * 21_strings/basic_string/find/char/1.cc: New.
5125 * 21_strings/basic_string/find/wchar_t/1.cc: New.
5126 * 21_strings/basic_string/insert/char/1.cc: New.
5127 * 21_strings/basic_string/insert/char/2.cc: New.
5128 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
5129 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
5130 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
5131 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
5132 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
5133 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
5134 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
5135 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
5136 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
5137 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
5138 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
5139 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
5140 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
5141 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
5142 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
5143 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
5144 * 21_strings/basic_string/operators/char/1.cc: New.
5145 * 21_strings/basic_string/operators/char/2.cc: New.
5146 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
5147 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
5148 * 21_strings/basic_string/replace/char/1.cc: New.
5149 * 21_strings/basic_string/replace/char/2.cc: New.
5150 * 21_strings/basic_string/replace/char/3.cc: New.
5151 * 21_strings/basic_string/replace/char/4.cc: New.
5152 * 21_strings/basic_string/replace/char/5.cc: New.
5153 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
5154 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
5155 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
5156 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
5157 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
5158 * 21_strings/basic_string/rfind/char/1.cc: New.
5159 * 21_strings/basic_string/rfind/char/2.cc: New.
5160 * 21_strings/basic_string/rfind/char/3.cc: New.
5161 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
5162 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
5163 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
5164 * 21_strings/basic_string/substr/char/1.cc: New.
5165 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
5166 * 21_strings/c_strings/char/1.cc: New.
5167 * 21_strings/c_strings/char/2.cc: New.
5168 * 21_strings/c_strings/wchar_t/1.cc: New.
5169 * 21_strings/c_strings/wchar_t/2.cc: New.
5170 * 21_strings/char_traits/requirements/char/1.cc: New.
5171 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
5172 * 21_strings/char_traits/typedefs/char/1.cc: New.
5174 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
5175 Petur Runolfsson <peturr02@ru.is>
5178 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5179 basic_filebuf<wchar_t>::_M_underflow_common):
5180 if (gptr() < egptr()) return *gptr().
5181 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
5183 * testsuite/27_io/filebuf_members.cc (test_04): Minor
5184 changes: unlink fifo before making it, fix spelling error.
5186 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
5188 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
5189 * testsuite/Makefile.in: Regenerate.
5190 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
5193 2003-03-17 Petur Runolfsson <peturr02@ru.is>
5196 * include/bits/fstream.tcc (basic_filebuf::close):
5197 Always close file, even when write fails.
5198 * testsuite/27_io/filebuf_members.cc (test_07): New test.
5200 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
5202 * libsupc++/Makefile.am (C_COMPILE): Remove.
5203 (LTCOMPILE): Likewise.
5204 * libsupc++/Makefile.in: Regenerate.
5206 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
5208 * testsuite/23_containers/bitset_members.cc: Add test variable.
5209 * testsuite/23_containers/map_insert.cc: Same.
5210 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
5211 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
5212 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5213 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5214 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5215 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
5216 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
5217 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5218 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5219 * testsuite/27_io/istream_exception.cc: Same.
5220 * testsuite/27_io/filebuf_virtuals.cc: Same.
5221 * testsuite/27_io/stringbuf_virtuals.cc: Same.
5222 * testsuite/27_io/ostream_inserter_arith.cc: Same.
5223 * testsuite/26_numerics/valarray_operators.cc: Same.
5224 * testsuite/26_numerics/slice.cc: Same.
5225 * testsuite/26_numerics/slice_array_assignment.cc: Same.
5226 * testsuite/24_iterators/istream_iterator.cc: Same.
5227 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
5229 2003-03-14 Petur Runolfsson <peturr02@ru.is>
5233 * config/locale/generic/ctype_members.cc,
5234 * config/locale/gnu/ctype_members.cc
5235 (ctype<wchar_t>::do_widen(char)): Cast argument to
5236 unsigned char before passing to btowc.
5237 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
5238 Convert characters with btowc instead of mbsrtowcs.
5239 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
5241 Convert characters with wctob instead of wcsrtombs.
5242 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
5243 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
5244 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
5246 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
5248 * include/stdc++.h: New.
5249 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
5250 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
5251 * include/Makefile.in: Regenerate.
5252 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
5253 (--cxxflags): Put -g -O2 here.
5254 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
5256 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
5258 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
5259 missing named locale.
5261 2003-03-14 Andreas Schwab <schwab@suse.de>
5263 * configure.in: Only append to makefiles that are newly created to
5264 avoid multiple multi-do/multi-clean rules.
5265 * configure: Rebuilt.
5267 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
5269 * docs/html/configopts.html, docs/html/documentation.html,
5270 docs/html/explanations.html, docs/html/install.html,
5271 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
5272 invalid XHTML and make page header style consistent.
5274 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
5276 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
5277 * docs/html/faq/index.txt: Regenerate.
5278 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
5280 2003-03-12 Andreas Schwab <schwab@suse.de>
5282 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
5283 glibcpp_toolexeclibdir.
5284 * aclocal.m4, configure: Rebuilt.
5286 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
5288 * docs/html/faq/index.html: Update text about location of headers.
5289 * docs/html/faq/index.txt: Regenerate.
5291 2003-03-11 Carlo Wood <carlo@alinoe.com>
5293 * include/bits/demangle.h: Prepend accessors of
5294 class qualifier with 'get_' in order to fix warnings
5295 when compiling with -Wshadow.
5297 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
5299 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
5301 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
5303 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
5304 report lack of setenv().
5306 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5308 * config/io/basic_file_stdio.cc: include <unistd.h>.
5310 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5311 Nathan Myers <ncm@cantrip.org>
5314 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
5315 seekoff, seekpos): Add a boolean parameter __stdio.
5316 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
5317 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
5318 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
5320 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
5321 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
5322 * include/std/std_fstream.h (sync): Likewise.
5323 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
5324 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
5325 libstdc++/8399 commit involving isatty(0).
5326 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
5327 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
5328 * configure.in: Remove call.
5329 * aclocal.m4: Regenerate.
5330 * config.h.in: Regenerate.
5331 * configure: Regenerate.
5332 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
5334 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5337 * include/bits/fstream.tcc (overflow): don't write EOF to file.
5338 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
5340 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
5343 * include/bits/basic_ios.h (_M_setstate): New.
5344 * include/bits/ostream.tcc (operator<<): Use it.
5345 * include/bits/istream.tcc (operator>>): Use it.
5346 * include/std/std_ostream.h (operator<<): Make friends.
5347 * include/std/std_istream.h (operator>>): Make friends.
5348 * testsuite/27_io/ostream_exception.cc,
5349 testsuite/27_io/istream_exception.cc: New tests.
5351 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
5353 * include/bits/locale_facets.tcc: Fix typo.
5355 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
5357 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
5359 * config/locale/generic/c_locale.cc
5360 (locale::facet::_S_create_c_locale): Throw runtime exception when
5361 unsupported language is specified.
5362 * testsuite/testsuite_hooks.h
5363 (run_test_wrapped_generic_locale_exception_catcher): New function.
5364 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
5365 Suppress runtime exception thrown by generic implementation.
5366 (run_tests_wrapped_env): Likewise.
5367 (run_test_wrapped_generic_locale_exception_catcher): New function.
5368 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
5369 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
5370 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
5371 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
5372 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
5373 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
5374 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
5375 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
5376 * testsuite/22_locale/facet/2.cc: New test wrap.
5377 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
5378 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
5379 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
5380 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
5381 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
5382 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
5383 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
5384 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
5385 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
5386 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
5387 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
5388 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
5389 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
5390 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
5391 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
5392 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
5393 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
5394 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
5395 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
5396 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
5397 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
5398 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
5399 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
5400 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
5401 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
5402 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
5403 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
5404 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
5405 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
5406 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
5407 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
5408 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
5409 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
5410 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
5411 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
5412 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
5413 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
5414 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
5415 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
5416 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
5417 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
5418 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
5419 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
5420 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
5421 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
5422 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
5423 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
5424 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
5425 * testsuite/27_io/ios_members.cc: New test wrap.
5426 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
5428 * testsuite/27_io/streambuf_members.cc: New test wrap.
5429 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
5431 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
5432 Petur Runolfsson <peturr02@ru.is>
5435 * include/bits/streambuf.tcc (__copy_streambufs): Use
5436 sgetn-sputn only when sputn cannot fail, otherwise fall back
5437 to safe snextc-sputc.
5438 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
5440 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
5442 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
5443 locale cache for truename and falsename.
5445 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
5447 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
5448 _M_word_size initialization.
5450 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
5452 * include/bits/fstream.tcc (_M_convert_to_external):
5453 Set __elen to zero if codecvt::out eventually fails.
5455 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
5458 * include/bits/fstream.tcc (_M_really_overflow): Check
5459 for _M_convert_to_external possible failures.
5460 * include/std/std_fstream.h (sync): Check _M_really_overflow
5461 return value and return -1 in case of failure.
5462 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
5464 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
5467 * include/bits/istream.tcc (operator>>(_CharT*),
5468 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
5469 * testsuite/27_io/stringstream.cc (test02): Add.
5471 * include/bits/istream.tcc (operator>>(_CharT*)):
5472 Assign a char_type to *__s.
5474 2003-03-07 Petur Runolfsson <peturr02@ru.is>
5477 * include/bits/locale_facets.tcc
5478 (collate::do_compare, collate::do_transform):
5479 Handle nul characters in input.
5480 * testsuite/22_locale/collate/compare/char/3.cc: New test.
5481 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
5482 * testsuite/22_locale/collate/transform/char/3.cc: New test.
5483 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
5485 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
5487 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
5489 * testsuite/27_io/ostream_fail.cc: New test.
5491 2003-03-07 Matthias Klose <doko@debian.org>
5493 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
5494 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
5495 * Makefile.in: Regenerate.
5496 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
5498 AM_MAKEFLAGS: Pass gxx_include_dir.
5499 * libsupc++/Makefile.in: Regenerate.
5501 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
5503 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
5504 mask. Test setting small-numbered pword and iword slots. Test
5505 behavior at limit of numeric_limits::max. Check that values are
5506 still good after failures.
5508 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
5510 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
5511 (ios_base::ios_base): Set _M_word, _M_word_size.
5512 (ios_base::~ios_base): Remove redundant test.
5513 * testsuite/27_io/ios_base_storage.cc (test03): New.
5515 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
5517 * src/strstream.cc, include/bits/basic_string.tcc: Remove
5518 incorrect whitespace added in my previous change.
5520 2003-03-05 Carlo Wood <carlo@alinoe.com>
5522 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
5523 _S_initialized() in order to allow debugging libraries to detect
5524 when the std streams are initialized from an overloaded operator
5527 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
5529 * libsupc++/demangle.h: Move to..
5530 * include/bits/demangle.h: ...here.
5531 * src/demangle.cc: Adjust include.
5532 * include/Makefile.am (bits_headers): Add.
5533 * include/Makefile.in: Regenerate.
5535 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
5537 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
5539 * config/linker-map.gnu: Filter typeinfo and vtable info.
5541 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
5543 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
5544 new failure. Throw exception if badbit and exception mask when ix
5545 >= numeric_limits<int>::max().
5547 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
5549 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
5550 min and max have the same type.
5551 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
5553 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
5555 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
5556 * include/Makefile.in: Regenerate.
5558 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
5560 * testsuite/abi_check.cc (report_symbol_info): Add version info.
5562 * config/linker-map.gnu: Hide more stuff.
5563 * include/Makefile.am: Cleanups.
5564 * include/Makefile.in: Regenerate.
5566 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
5568 * config/locale/generic/messages_members.h (messages::messages):
5569 Remove name from unused parameter.
5571 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
5573 * src/Makefile.am (sources): Add demangle.cc.
5576 * src/Makefile.in: Regenerate.
5577 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
5578 * libsupc++/Makefile.in: Regenerate.
5580 * testsuite/testsuite_hooks.h
5581 (__gnu_cxx_test::verify_demangle): New.
5582 * testsuite/testsuite_hooks.cc: Define.
5584 2003-02-27 Carlo Wood <carlo@alinoe.com>
5586 * src/demangle.cc: New.
5587 * libsupc++/demangle.h: New.
5589 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
5590 Carlo Wood <carlo@alinoe.com>
5592 * testsuite/demangle/abi_examples/01.cc: New.
5593 * testsuite/demangle/abi_examples/02.cc: New.
5594 * testsuite/demangle/abi_examples/03.cc: New.
5595 * testsuite/demangle/abi_examples/04.cc: New.
5596 * testsuite/demangle/abi_examples/05.cc: New.
5597 * testsuite/demangle/abi_examples/06.cc: New.
5598 * testsuite/demangle/abi_examples/07.cc: New.
5599 * testsuite/demangle/abi_examples/08.cc: New.
5600 * testsuite/demangle/abi_examples/09.cc: New.
5601 * testsuite/demangle/abi_examples/10.cc: New.
5602 * testsuite/demangle/abi_examples/11.cc: New.
5603 * testsuite/demangle/abi_examples/12.cc: New.
5604 * testsuite/demangle/abi_examples/13.cc: New.
5605 * testsuite/demangle/abi_examples/14.cc: New.
5606 * testsuite/demangle/abi_examples/15.cc: New.
5607 * testsuite/demangle/abi_examples/16.cc: New.
5608 * testsuite/demangle/abi_examples/17.cc: New.
5609 * testsuite/demangle/abi_examples/18.cc: New.
5610 * testsuite/demangle/abi_examples/19.cc: New.
5611 * testsuite/demangle/abi_examples/20.cc: New.
5612 * testsuite/demangle/abi_examples/21.cc: New.
5613 * testsuite/demangle/abi_examples/22.cc: New.
5614 * testsuite/demangle/abi_examples/23.cc: New.
5615 * testsuite/demangle/abi_examples/24.cc: New.
5616 * testsuite/demangle/abi_examples/25.cc: New.
5617 * testsuite/demangle/abi_examples/26.cc: New.
5618 * testsuite/demangle/abi_text/01.cc: New.
5619 * testsuite/demangle/abi_text/02.cc: New.
5620 * testsuite/demangle/abi_text/03.cc: New.
5621 * testsuite/demangle/abi_text/04.cc: New.
5622 * testsuite/demangle/abi_text/05.cc: New.
5623 * testsuite/demangle/abi_text/06.cc: New.
5624 * testsuite/demangle/abi_text/07.cc: New.
5625 * testsuite/demangle/abi_text/08.cc: New.
5626 * testsuite/demangle/abi_text/09.cc: New.
5627 * testsuite/demangle/abi_text/10.cc: New.
5628 * testsuite/demangle/abi_text/11.cc: New.
5629 * testsuite/demangle/abi_text/12.cc: New.
5630 * testsuite/demangle/abi_text/13.cc: New.
5631 * testsuite/demangle/abi_text/14.cc: New.
5632 * testsuite/demangle/regression/3111-1.cc: New.
5633 * testsuite/demangle/regression/3111-2.cc: New.
5634 * testsuite/demangle/regression/7986-01.cc: New.
5635 * testsuite/demangle/regression/7986-02.cc: New.
5636 * testsuite/demangle/regression/7986-03.cc: New.
5637 * testsuite/demangle/regression/7986-04.cc: New.
5638 * testsuite/demangle/regression/7986-05.cc: New.
5639 * testsuite/demangle/regression/7986-06.cc: New.
5640 * testsuite/demangle/regression/7986-07.cc: New.
5641 * testsuite/demangle/regression/7986-08.cc: New.
5642 * testsuite/demangle/regression/7986-09.cc: New.
5643 * testsuite/demangle/regression/7986-10.cc: New.
5644 * testsuite/demangle/regression/7986-11.cc: New.
5645 * testsuite/demangle/regression/7986-12.cc: New.
5646 * testsuite/demangle/regression/7986.cc: New.
5647 * testsuite/demangle/regression/8897.cc: New.
5648 * testsuite/demangle/regression/cw-01.cc: New.
5649 * testsuite/demangle/regression/cw-02.cc: New.
5650 * testsuite/demangle/regression/cw-03.cc: New.
5651 * testsuite/demangle/regression/cw-04.cc: New.
5652 * testsuite/demangle/regression/cw-05.cc: New.
5653 * testsuite/demangle/regression/cw-06.cc: New.
5654 * testsuite/demangle/regression/cw-07.cc: New.
5655 * testsuite/demangle/regression/cw-08.cc: New.
5656 * testsuite/demangle/regression/cw-09.cc: New.
5657 * testsuite/demangle/regression/cw-10.cc: New.
5658 * testsuite/demangle/regression/cw-11.cc: New.
5659 * testsuite/demangle/regression/cw-12.cc: New.
5660 * testsuite/demangle/regression/cw-13.cc: New.
5661 * testsuite/demangle/regression/cw-14.cc: New.
5662 * testsuite/demangle/regression/old.cc: New.
5664 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
5666 * docs/doxygen/Intro.3: Update with new (proper) names.
5667 * docs/doxygen/TODO: Update.
5668 * docs/doxygen/run_doxygen: More comments, fix up man pages.
5669 Fake entries for standard typedefs.
5670 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
5671 * docs/html/documentation.html: Top-level man page is now called
5673 * include/std/std_limits.h: Doxygenate.
5675 2003-02-25 Scott Snyder <snyder@fnal.gov>
5678 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
5679 Correct documentation.
5680 * include/bits/stl_multimap.h (lower_bound, upper_bound,
5681 equal_range): Likewise.
5683 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
5687 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
5688 __bump is true (uflow), always increment the read pointer
5689 (_M_in_cur) before returning successfully.
5690 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
5692 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
5693 Nathan Myers <ncm@cantrip.org>
5695 PR libstdc++/9404, PR libstdc++/9701 (partial)
5696 (aka pptr == epptr implies overflow)
5697 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
5698 Consistently, _M_out_end points to the end of the buffer just
5700 (overflow): Tweak to use _M_out_buf_size().
5701 (_M_convert_to_external): The role of the old _M_out_end is
5702 now played by _M_out_lim.
5703 (_M_really_overflow): Likewise.
5704 (seekoff): Likewise.
5705 (setbuf): _M_out_end points to the end of the external buffer.
5706 * include/bits/sstream.tcc (overflow): Rewrote, taking into
5707 account the resolution of DR 169 (TC).
5708 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
5709 (seekpos): Use _M_string.capacity(); tweak.
5710 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
5711 * include/std/std_fstream.h (sync): The role of the old
5712 _M_out_end is now played by _M_out_lim.
5713 (_M_set_indeterminate): Use _M_set_determinate.
5714 (_M_set_determinate): _M_out_end is now _M_out_lim.
5715 (_M_is_indeterminate): Likewise.
5716 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
5717 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
5718 which have the information readily available as _M_string.capacity();
5719 for ate and app modes, pass the string size to _M_really_sync.
5720 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
5721 point to the end of the buffer (i.e., epptr) and to the string end,
5723 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
5724 which points to the right limit of the used put area.
5725 (_M_out_cur_move): The role of the old _M_out_end is now played
5727 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
5728 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
5730 (basic_streambuf()): Initialize _M_out_lim too.
5731 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
5732 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
5733 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
5735 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
5737 * testsuite/27_io/ios_base_storage.cc (main): Call
5740 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
5742 * include/bits/locale_facets.tcc (_M_convert_float): Replace
5743 numpunct facet accesses with data from __locale_cache.
5745 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
5747 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
5748 * docs/html/faq/index.txt: Regenerate.
5750 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
5752 * config/linker-map.gnu: Also export locking symbols needed for the
5753 generic atomicity.h case.
5755 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
5757 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
5759 * configure: Rebuilt.
5761 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
5763 * include/bits/sstream.tcc (overflow): According to
5764 27.7.1.3, p5, actual output is performed by sputc(c).
5766 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
5769 * include/bits/stl_alloc.h: Remove all traces of assert().
5771 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
5773 * include/std/std_sstream.h (str()): the size of the
5774 current string may be different from the initial one
5775 whenever _M_out_end > _M_out_beg.
5776 * testsuite/27_io/stringbuf_members.cc (test07): Add.
5778 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
5781 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
5783 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
5785 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
5786 * testsuite/27_io/ios_members.cc (test03): New.
5788 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
5790 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
5791 (basic_ios::_M_cache_facets): Move into above.
5792 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
5794 (basic_ios::imbue): Force locale cache to be built.
5795 (basic_ios::_M_init): Create and initialize locale cache.
5796 * include/bits/ios_base.h (__locale_cache_base): Declare.
5797 (ios_base::_M_locale_cache): New.
5798 (ios_base::_M_cache): Define.
5799 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
5801 (__locale_cache_base,__locale_cache<_CharT>): New classes.
5802 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
5803 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
5804 cache literal string, grouping flag, thousands separator.
5805 (__locale_cache<_CharT>::__locale_cache): New.
5806 (__locale_cache<_CharT>::_M_init): New.
5807 * src/ios.cc: Clear _M_locale_cache in constructor.
5808 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
5811 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
5813 * src/locale-inst.cc: Do not include <cassert>.
5814 * src/locale.cc: Likewise.
5816 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
5819 * include/std/std_fstream.h: Declare underflow and uflow
5820 specializations, change generic definitions to do nothing.
5821 * src/fstream.cc: Add underflow and uflow specializations.
5823 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
5826 * include/bits/fstream.tcc (_M_convert_to_external):
5827 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
5828 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
5830 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
5832 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
5833 * include/bits/basic_ios.tcc: Guard use of extern template.
5834 * include/std/std_iomanip.h: Same.
5835 * include/bits/streambuf.tcc: Same.
5836 * include/bits/stl_alloc.h: Same.
5837 * include/bits/locale_facets.tcc: Same.
5838 * include/bits/ostream.tcc: Same.
5839 * include/bits/istream.tcc: Same.
5840 * include/bits/fstream.tcc: Same.
5841 * include/bits/basic_string.tcc: Same.
5843 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
5845 * include/bits/ostream.tcc (sentry::sentry): Improve
5846 performance-wise the fix for libstdc++/9563.
5848 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
5850 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
5851 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
5852 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
5853 when we don't have static mutex initialization.
5854 (__exchange_and_add): Use _Atomic_add_mutex_once.
5855 * src/misc-inst.cc: Definitions of all the above.
5857 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
5860 * include/bits/ostream.tcc (sentry::sentry): Check
5861 the state of the stream after the preparation.
5862 * testsuite/27_io/ostream_sentry.cc (test02): Add.
5864 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
5866 * include/Makefile.am (stamp-std-precompile): Add rule.
5867 * include/Makefile.in: Regenerated.
5869 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
5870 Benjamin Kosnik <benjamin@redhat.com>
5872 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
5873 Add indexes into this array.
5874 (__num_base::_S_atoms): To _S_atoms_in.
5875 (num_put::_M_insert): Rename to _M_pad.
5876 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
5877 (num_put::_M_widen_int): Rename to _M_group_int.
5878 (num_put::_M_widen_float): Rename to _M_group_float.
5879 * include/bits/locale_facets.tcc (__int_to_char): New inline
5880 function and adapter functions.
5881 (num_put::_M_group_int): Streamline.
5882 (num_put::_M_group_float): Streamline.
5883 (num_put::_M_convert_int): Remove unused parameter names. Choose
5884 large enough buffer for text. Use __int_to_char instead of
5885 __convert_from_v. Formatted text is now at the end of the buffer.
5886 (num_put::_M_convert_float): Preliminary fixups.
5887 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
5888 (__int_to_char<unsigned long long>): Same.
5889 (__int_to_char<char, unsigned long>): New.
5890 (__int_to_char<char, unsigned long long>): New.
5891 (__int_to_char<wchar_t, unsigned long>): New.
5892 (__int_to_char<wchar_t, unsigned long long>): New.
5894 2003-02-11 Scott Snyder <snyder@fnal.gov>
5897 * include/bits/fstream.tcc (seekoff): Avoid operator+
5900 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
5903 * include/ext/stdio_filebuf.h
5904 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
5905 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
5906 Change to take a __size parameter of type size_t, not
5907 of type (template parameter dependent) int_type.
5908 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
5909 size vars to size_t.
5910 * testsuite/ext/stdio_filebuf.cc: Add.
5912 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
5913 Petur Runolfsson <peturr02@ru.is>
5916 * include/bits/streambuf.tcc (__copy_streambufs):
5917 Don't conditionalize the copy to __testput.
5918 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
5920 2002-02-11 DJ Delorie <dj@redhat.com>
5922 * acinclude.m4: Check for native targets that can't link at
5923 this point in the build.
5924 * aclocal.m4: Regenerate.
5925 * configure: Regenerate.
5927 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5929 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
5931 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
5934 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
5936 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
5937 unsigned char platforms.
5939 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
5942 * include/std/std_istream.h
5943 (basic_istream::sentry::operator bool()): Make const.
5944 * include/std/std_ostream.h
5945 (basic_ostream::sentry::operator bool()): Likewise.
5946 * testsuite/27_io/istream_sentry.cc (test03): Add.
5947 * testsuite/27_io/ostream_sentry.cc: Add.
5949 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
5952 Implement resolution of DR 231 (Ready)
5953 * include/bits/locale_facets.h (__num_base::_S_format_float):
5954 Change declaration: return void, remove __prec parameter.
5955 * src/locale.cc (__num_base::_S_format_float): Implement
5956 resolution of DR 231.
5957 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
5958 Tweak uses. Check for negative precision.
5959 * testsuite/22_locale/num_put/put/char/6.cc: Add
5960 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
5962 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
5964 * config/io/basic_file_libio.h: Fixups.
5965 * config/io/c_io_libio.h: Same.
5966 * libio/Makefile.am: Same.
5967 * libio/Makefile.in: Regenerated.
5969 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
5971 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
5972 Explicitly use the "C" locale.
5973 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
5975 2003-02-06 Petur Runolfsson <peturr02@ru.is>
5979 PR libstdc++/9028 (partial)
5985 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
5986 codecvt<wchar_t, char, mbstate_t>::do_length,
5987 codecvt<wchar_t, char, mbstate_t>::do_max_length):
5989 * config/locale/generic/codecvt_members.cc: ...here.
5990 * config/locale/gnu/codecvt_members.cc: ...and here.
5992 * config/locale/generic/codecvt_members.cc,
5993 * config/locale/gnu/codecvt_members.cc
5994 (codecvt<wchar_t, char, mbstate_t>::do_encoding
5995 codecvt<wchar_t, char, mbstate_t>::do_in,
5996 codecvt<wchar_t, char, mbstate_t>::do_length,
5997 codecvt<wchar_t, char, mbstate_t>::do_max_length,
5998 codecvt<wchar_t, char, mbstate_t>::do_out):
5999 New implementation that handles stateless encodings,
6002 * config/locale/generic/codecvt_members.cc,
6003 * config/locale/gnu/codecvt_members.cc,
6004 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
6005 * include/bits/codecvt.h,
6007 (codecvt::length, codecvt::do_length):
6008 Change type of first argument of length and do_length from
6009 'const state_type&' to 'state_type&' according to DR 75.
6011 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
6012 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
6013 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
6014 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
6015 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
6016 Cleanup and check for correct return value from encoding
6018 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
6019 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
6020 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
6021 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
6022 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
6023 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
6024 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
6025 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
6026 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
6027 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
6028 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
6029 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
6030 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
6031 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
6032 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
6033 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
6034 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
6035 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
6036 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
6037 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
6038 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
6039 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
6040 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
6041 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
6042 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
6043 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
6044 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
6045 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
6046 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
6047 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
6048 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
6049 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
6050 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
6051 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
6052 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
6053 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
6054 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
6056 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
6058 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
6059 (money_put::do_put): Same.
6061 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
6063 * include/bits/ios_base.h (ios_base): Document reserved storage.
6065 * include/bits/locale_facets.h: (struct __pad): Comment on
6067 (__verify_grouping): Same.
6068 (__add_grouping): Same.
6069 * include/bits/locale_facets.tcc (__verify_grouping): Move
6070 comments to declaration.
6071 (__add_grouping): Same.
6073 * include/bits/locale_facets.tcc:
6074 (__write<_CharT, _OutIter>): New function.
6075 (__write<_CharT>): New function specialization.
6076 (num_put::_M_insert): Remove explicit loop over iterator. Use
6078 (num_put::_M_widen_float): Remove __basefield.
6079 (num_put::_M_widen_int): Move __basefield to within grouping block.
6081 * include/bits/streambuf_iterator.h: Include <streambuf>.
6082 (ostreambuf_iterator::_M_put): Add.
6084 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
6086 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
6088 2003-02-04 Nathan Myers <ncm@cantrip.org>
6090 * testsuite/25_algorithms/min_max.cc (test02): Add.
6092 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6094 PR libstdc++/9439, PR libstdc++/9425
6095 * config/io/basic_file_stdio.cc
6096 (__basic_file<char>::seekoff, seekpos): Return -1L if
6098 * include/bits/fstream.tcc (basic_filebuf::seekoff):
6099 Check _M_file.seekoff return value; always return
6100 pos_type(off_type(-1)) in case of failure.
6101 (basic_filebuf::pbackfail): Check this->seekoff return
6102 value and return traits_type::eof() in case of failure.
6103 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
6105 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
6107 * include/std/std_ostream.h (ostream::_M_write): Declare.
6108 * ostream.tcc (ostream::_M_write): Define.
6109 (basic_ostream::write): Use it.
6110 (operator<<(basic_ostream, _CharT)): Ditto.
6111 (operator<<(basic_ostream, char)): Ditto.
6112 (operator<<(basic_ostream, _CharT*)): Ditto.
6113 (operator<<(basic_ostream, char*)): Ditto.
6114 (operator<<(basic_ostream, basic_string)): Ditto.
6116 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
6118 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
6120 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
6122 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
6123 add HTML comment about updating links if numbering changes.
6125 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6128 * include/bits/streambuf.tcc (sputbackc): Access
6129 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
6130 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6132 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6135 * include/bits/fstream.tcc (open): If the 'ate' repositioning
6136 operation fails, calls close _and_ returns a null pointer
6137 to indicate failure (27.8.1.3,4).
6138 * testsuite/27_io/filebuf_members.cc (test_06): Add.
6140 2003-02-04 Petur Runolfsson <peturr02@ru.is>
6142 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
6144 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
6146 * docs/html/27_io/howto.html: New section on stdio_filebuf.
6147 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
6148 * docs/html/documentation.html: Regenerate.
6150 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
6152 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
6153 * docs/html/17_intro/porting.html: Regenerate.
6155 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6156 Phil Edwards <pme@gcc.gnu.org>
6158 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
6159 numeric_limits for bits-per-word values.
6160 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
6161 Use __builtin_popcountl instead.
6162 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
6163 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
6164 Use __builtin_ctzl instead.
6165 (_S_bit_count, _S_first_one): Remove.
6166 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
6167 * src/Makefile.am (sources): Remove bitset.cc.
6168 * src/bitset.cc: Delete file.
6169 * src/Makefile.in: Regenerate.
6171 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
6173 PR libstdc++/9527, PR libstdc++/8713
6174 * docs/html/install.html: Mention glibc version requirement.
6175 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
6176 with 3.2.1+ (formatting bugfixes).
6177 * docs/html/faq/index.txt: Regenerate.
6179 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
6182 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
6185 * include/bits/valarray_before.h (__not_equal_to): Use != instead
6188 * testsuite/26_numerics/valarray_operators.cc: New test.
6190 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
6192 * docs/html/faq/index.html: Correct link to libg++ information.
6193 * docs/html/faq/index.txt: Regenerated.
6195 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
6196 Benjamin Kosnik <bkoz@redhat.com>
6198 Const correctness issue:
6199 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
6200 * include/bits/locale_classes.h
6201 (locale::_Impl::_M_facets): Change type to const facet**.
6202 (locale::_Impl::_M_install_facet): Change declaration to
6204 (locale::facet::_M_references): Make mutable.
6205 (locale::facet::_M_add_reference): Declare const.
6206 (locale::facet::_M_remove_reference): Likewise.
6207 * include/bits/locale_facets.tcc
6208 (use_facet(const locale&)): Tweak for const facet** _M_facets.
6209 (has_facet(const locale&)): Likewise.
6211 (locale::facet::_M_add_reference): Adjust definition.
6212 (locale::facet::_M_remove_reference): Likewise.
6214 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
6215 const facet** _M_facets.
6216 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
6217 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
6218 (locale::_Impl::_M_install_facet): Adjust definition to take
6219 const facet* and for const facet** _M_facets.
6220 * testsuite/22_locale/locale/cons/8.cc: Add.
6222 2003-01-29 Mark Mitchell <mark@codesourcery.com>
6224 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
6225 Use __FLT_HAS_INIFINITY__ to initialize.
6226 (numeric_limits<float>::has_quiet_NaN): Likewise.
6227 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
6229 (numeric_limits<double>::has_quiet_NaN): Likewise.
6230 (numeric_limits<long double>::has_infinity): Use
6231 __LDBL_HAS_INIFINITY__ to initialize.
6232 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
6234 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
6237 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
6238 with bases which are very ambiguous.
6240 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
6242 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
6243 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
6244 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
6245 * src/Makefile.in: Regenerate.
6246 * libsupc++/Makefile.in: Regenerate.
6248 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
6250 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
6251 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
6252 version_specific_libs is enabled.
6253 * aclocal.m4, configure: Rebuilt.
6255 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
6257 * include/bits/valarray_meta.h: Remove, split into ...
6258 * include/bits/valarray_before.h: ... this, and ...
6259 * include/bits/valarray_after.h: ... this.
6260 * include/std/std_valarray.h: Adjust.
6261 * include/Makefile.am (bits_headers): Adjust.
6262 * include/Makefile.in: Regenerate.
6264 2003-01-24 Andreas Schwab <schwab@suse.de>
6266 * config/linker-map.gnu: Fix for size_t variance.
6268 2003-01-23 Petur Runolfsson <peturr02@ru.is>
6271 * include/std/std_streambuf.h
6272 (basic_streambuf::basic_streambuf,
6273 basic_streambuf::~basic_streambuf,
6274 basic_streambuf::getloc, basic_streambuf::imbue):
6275 Remove _M_buf_locale_init
6276 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
6277 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6278 * testsuite/27_io/streambuf_members.cc (test08): Add.
6279 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
6281 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
6283 Revert include ordering.
6284 * config/locale/generic/c_locale.h: Add include guards.
6285 * config/locale/gnu/c_locale.h: Same.
6286 * include/bits/locale_classes.h: Remove cctype include.
6287 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
6288 * include/std/std_fstream.h: Remove streambuf include.
6289 * include/std/std_sstream.h: Remove streambuf include.
6291 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
6293 * configure.in (libtool_VERSION): To 6:0:0.
6294 * configure: Regenerated.
6295 * config/linker-map.gnu: Clean.
6297 * src/misc-inst.cc: Remove instantiations.
6299 * include/bits/stl_alloc.h (__malloc_alloc_template):
6301 (__default_alloc_template): To __pool_alloc.
6302 * src/stl-inst.cc: Same.
6303 * include/backward/alloc.h: Update.
6304 * testsuite/ext/allocators.cc: Update.
6306 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
6307 really try to remove these if possible.
6308 * src/locale.cc (std): Same.
6310 * testsuite/abi_check.cc (check_version): Add.
6312 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
6313 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
6314 Mark Mitchell <mark@codesourcery.com>
6317 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
6318 (basic_filebuf::underflow): Declare.
6321 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
6323 * include/bits/locale_facets.h: Move non-facet classes requiring
6325 * include/bits/locale_classes.h: New.
6326 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
6327 * include/bits/Makefile.in: Regenerate.
6329 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
6330 * config/locale/gnu/c_locale.h: ...here.
6331 * config/locale/generic/c_locale.h: Same.
6333 * include/bits/locale_facets.tcc: Move declarations to...
6334 * include/bits/locale_facets.h: ...here.
6335 * include/bits/basic_ios.h: Tweak includes accordingly.
6336 * include/std/std_sstream.h: Add streambuf include.
6337 * include/std/std_fstream.h: Ditto.
6338 * include/std/std_locale.h: Add locale_classes.h include.
6339 * include/std/std_iosfwd.h: Tweak.
6340 * src/concept-inst.cc: Add iterator include.
6342 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
6343 bits as unexported in the future.
6345 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
6347 Reshuffle 22_locale testsuite.
6348 * 22_locale/(codecvt.cc money_get.cc
6349 codecvt_members_char_char.cc money_get_members_char.cc
6350 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
6351 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
6352 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
6353 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
6354 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
6355 money_put_members_char.cc ctor_copy_dtor.cc
6356 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
6357 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
6358 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
6359 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
6360 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
6361 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
6362 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
6363 operators.cc ctype_widen_char.cc static_members.cc
6364 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
6365 global_templates.cc time_get_members_wchar_t.cc, members.cc,
6366 time_put.cc, messages_byname.cc, time_put_members_char.cc,
6367 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
6368 Split up into individual test cases...
6369 * 22_locale/codecvt/1.cc: New.
6370 * 22_locale/codecvt/2.cc: New.
6371 * 22_locale/codecvt/always_noconv/char/1.cc: New.
6372 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
6373 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
6374 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
6375 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
6376 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
6377 * 22_locale/codecvt/encoding/char/1.cc: New.
6378 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
6379 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
6380 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
6381 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
6382 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
6383 * 22_locale/codecvt/in/char/1.cc: New.
6384 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
6385 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
6386 * 22_locale/codecvt/in/wchar_t/1.cc: New.
6387 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
6388 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
6389 * 22_locale/codecvt/length/char/1.cc: New.
6390 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
6391 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
6392 * 22_locale/codecvt/length/wchar_t/1.cc: New.
6393 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
6394 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
6395 * 22_locale/codecvt/max_length/char/1.cc: New.
6396 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
6397 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
6398 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
6399 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
6400 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
6401 * 22_locale/codecvt/out/char/1.cc: New.
6402 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
6403 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
6404 * 22_locale/codecvt/out/wchar_t/1.cc: New.
6405 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
6406 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
6407 * 22_locale/codecvt/unicode/char.cc: New.
6408 * 22_locale/codecvt/unicode/wchar_t.cc: New.
6409 * 22_locale/codecvt/unshift/char/1.cc: New.
6410 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
6411 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
6412 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
6413 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
6414 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
6415 * 22_locale/collate/1.cc: New.
6416 * 22_locale/collate/2.cc: New.
6417 * 22_locale/collate/compare/char/1.cc: New.
6418 * 22_locale/collate/compare/char/2.cc: New.
6419 * 22_locale/collate/compare/char/wrapped_env.cc: New.
6420 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
6421 * 22_locale/collate/compare/wchar_t/1.cc: New.
6422 * 22_locale/collate/compare/wchar_t/2.cc: New.
6423 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
6424 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
6425 * 22_locale/collate/hash/char/1.cc: New.
6426 * 22_locale/collate/hash/char/2.cc: New.
6427 * 22_locale/collate/hash/char/wrapped_env.cc: New.
6428 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
6429 * 22_locale/collate/hash/wchar_t/1.cc: New.
6430 * 22_locale/collate/hash/wchar_t/2.cc: New.
6431 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
6432 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
6433 * 22_locale/collate/transform/char/2.cc: New.
6434 * 22_locale/collate/transform/char/wrapped_env.cc: New.
6435 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
6436 * 22_locale/collate/transform/wchar_t/2.cc: New.
6437 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
6438 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
6439 * 22_locale/collate_byname/1.cc: New.
6440 * 22_locale/ctype/1.cc: New.
6441 * 22_locale/ctype/2.cc: New.
6442 * 22_locale/ctype/cons/char/1.cc: New.
6443 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
6444 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
6445 * 22_locale/ctype/is/char/1.cc: New.
6446 * 22_locale/ctype/is/char/2.cc: New.
6447 * 22_locale/ctype/is/char/3.cc: New.
6448 * 22_locale/ctype/is/char/wrapped_env.cc: New.
6449 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
6450 * 22_locale/ctype/is/wchar_t/1.cc: New.
6451 * 22_locale/ctype/is/wchar_t/2.cc: New.
6452 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
6453 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
6454 * 22_locale/ctype/narrow/char/1.cc: New.
6455 * 22_locale/ctype/narrow/char/2.cc: New.
6456 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
6457 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
6458 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
6459 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
6460 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
6461 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
6462 * 22_locale/ctype/scan/char/1.cc: New.
6463 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
6464 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
6465 * 22_locale/ctype/scan/wchar_t/1.cc: New.
6466 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
6467 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
6468 * 22_locale/ctype/to/char/1.cc: New.
6469 * 22_locale/ctype/to/char/wrapped_env.cc: New.
6470 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
6471 * 22_locale/ctype/to/wchar_t/1.cc: New.
6472 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
6473 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
6474 * 22_locale/ctype/widen/char/1.cc: New.
6475 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
6476 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
6477 * 22_locale/ctype/widen/wchar_t/1.cc: New.
6478 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
6479 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
6480 * 22_locale/facet/1.cc: New.
6481 * 22_locale/facet/2.cc: New.
6482 * 22_locale/global_templates/1.cc: New.
6483 * 22_locale/locale/cons/1.cc: New.
6484 * 22_locale/locale/cons/2.cc: New.
6485 * 22_locale/locale/cons/3.cc: New.
6486 * 22_locale/locale/cons/4.cc: New.
6487 * 22_locale/locale/cons/5.cc: New.
6488 * 22_locale/locale/cons/6.cc: New.
6489 * 22_locale/locale/cons/7.cc: New.
6490 * 22_locale/locale/global_locale_objects/1.cc: New.
6491 * 22_locale/locale/global_locale_objects/2.cc: New.
6492 * 22_locale/locale/global_locale_objects/3.cc: New.
6493 * 22_locale/locale/operations/1.cc: New.
6494 * 22_locale/locale/operations/2.cc: New.
6495 * 22_locale/messages/1.cc: New.
6496 * 22_locale/messages/2.cc: New.
6497 * 22_locale/messages/members/char/1.cc: New.
6498 * 22_locale/messages/members/char/2.cc: New.
6499 * 22_locale/messages/members/char/3.cc: New.
6500 * 22_locale/messages/members/char/wrapped_env.cc: New.
6501 * 22_locale/messages/members/char/wrapped_locale.cc: New.
6502 * 22_locale/messages_byname/1.cc: New.
6503 * 22_locale/money_get/1.cc: New.
6504 * 22_locale/money_get/2.cc: New.
6505 * 22_locale/money_get/get/char/1.cc: New.
6506 * 22_locale/money_get/get/char/2.cc: New.
6507 * 22_locale/money_get/get/char/3.cc: New.
6508 * 22_locale/money_get/get/char/4.cc: New.
6509 * 22_locale/money_get/get/char/5.cc: New.
6510 * 22_locale/money_get/get/char/6.cc: New.
6511 * 22_locale/money_get/get/char/7.cc: New.
6512 * 22_locale/money_get/get/char/8.cc: New.
6513 * 22_locale/money_get/get/char/wrapped_env.cc: New.
6514 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
6515 * 22_locale/money_get/get/wchar_t/1.cc: New.
6516 * 22_locale/money_get/get/wchar_t/2.cc: New.
6517 * 22_locale/money_get/get/wchar_t/3.cc: New.
6518 * 22_locale/money_get/get/wchar_t/4.cc: New.
6519 * 22_locale/money_get/get/wchar_t/5.cc: New.
6520 * 22_locale/money_get/get/wchar_t/6.cc: New.
6521 * 22_locale/money_get/get/wchar_t/7.cc: New.
6522 * 22_locale/money_get/get/wchar_t/8.cc: New.
6523 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
6524 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
6525 * 22_locale/money_put/1.cc: New.
6526 * 22_locale/money_put/2.cc: New.
6527 * 22_locale/money_put/put/char/1.cc: New.
6528 * 22_locale/money_put/put/char/2.cc: New.
6529 * 22_locale/money_put/put/char/3.cc: New.
6530 * 22_locale/money_put/put/char/4.cc: New.
6531 * 22_locale/money_put/put/char/5.cc: New.
6532 * 22_locale/money_put/put/char/6.cc: New.
6533 * 22_locale/money_put/put/char/wrapped_env.cc: New.
6534 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
6535 * 22_locale/money_put/put/wchar_t/1.cc: New.
6536 * 22_locale/money_put/put/wchar_t/2.cc: New.
6537 * 22_locale/money_put/put/wchar_t/3.cc: New.
6538 * 22_locale/money_put/put/wchar_t/4.cc: New.
6539 * 22_locale/money_put/put/wchar_t/5.cc: New.
6540 * 22_locale/money_put/put/wchar_t/6.cc: New.
6541 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
6542 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
6543 * 22_locale/moneypunct/1.cc: New.
6544 * 22_locale/moneypunct/2.cc: New.
6545 * 22_locale/moneypunct/3.cc: New.
6546 * 22_locale/moneypunct/members/char/1.cc: New.
6547 * 22_locale/moneypunct/members/char/2.cc: New.
6548 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
6549 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
6550 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
6551 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
6552 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
6553 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
6554 * 22_locale/moneypunct_byname/1.cc: New.
6555 * 22_locale/num_get/1.cc: New.
6556 * 22_locale/num_get/2.cc: New.
6557 * 22_locale/num_get/get/char/1.cc: New.
6558 * 22_locale/num_get/get/char/2.cc: New.
6559 * 22_locale/num_get/get/char/3.cc: New.
6560 * 22_locale/num_get/get/char/4.cc: New.
6561 * 22_locale/num_get/get/char/5.cc: New.
6562 * 22_locale/num_get/get/char/6.cc: New.
6563 * 22_locale/num_get/get/char/wrapped_env.cc: New.
6564 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
6565 * 22_locale/num_get/get/wchar_t/1.cc: New.
6566 * 22_locale/num_get/get/wchar_t/2.cc: New.
6567 * 22_locale/num_get/get/wchar_t/3.cc: New.
6568 * 22_locale/num_get/get/wchar_t/4.cc: New.
6569 * 22_locale/num_get/get/wchar_t/5.cc: New.
6570 * 22_locale/num_get/get/wchar_t/6.cc: New.
6571 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
6572 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
6573 * 22_locale/num_put/1.cc: New.
6574 * 22_locale/num_put/2.cc: New.
6575 * 22_locale/num_put/put/char/1.cc: New.
6576 * 22_locale/num_put/put/char/2.cc: New.
6577 * 22_locale/num_put/put/char/3.cc: New.
6578 * 22_locale/num_put/put/char/4.cc: New.
6579 * 22_locale/num_put/put/char/5.cc: New.
6580 * 22_locale/num_put/put/char/wrapped_env.cc: New.
6581 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
6582 * 22_locale/num_put/put/wchar_t/1.cc: New.
6583 * 22_locale/num_put/put/wchar_t/2.cc: New.
6584 * 22_locale/num_put/put/wchar_t/3.cc: New.
6585 * 22_locale/num_put/put/wchar_t/4.cc: New.
6586 * 22_locale/num_put/put/wchar_t/5.cc: New.
6587 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
6588 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
6589 * 22_locale/numpunct/1.cc: New.
6590 * 22_locale/numpunct/2.cc: New.
6591 * 22_locale/numpunct/members/char/1.cc: New.
6592 * 22_locale/numpunct/members/char/2.cc: New.
6593 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
6594 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
6595 * 22_locale/numpunct/members/wchar_t/1.cc: New.
6596 * 22_locale/numpunct/members/wchar_t/2.cc: New.
6597 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
6598 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
6599 * 22_locale/numpunct_byname/1.cc: New.
6600 * 22_locale/numpunct_byname/2.cc: New.
6601 * 22_locale/time_get/1.cc: New.
6602 * 22_locale/time_get/2.cc: New.
6603 * 22_locale/time_get/date_order/char/1.cc: New.
6604 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
6605 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
6606 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
6607 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
6608 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
6609 * 22_locale/time_get/get_date/char/1.cc: New.
6610 * 22_locale/time_get/get_date/char/2.cc: New.
6611 * 22_locale/time_get/get_date/char/3.cc: New.
6612 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
6613 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
6614 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
6615 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
6616 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
6617 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
6618 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
6619 * 22_locale/time_get/get_monthname/char/1.cc: New.
6620 * 22_locale/time_get/get_monthname/char/2.cc: New.
6621 * 22_locale/time_get/get_monthname/char/3.cc: New.
6622 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
6623 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
6624 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
6625 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
6626 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
6627 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
6628 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
6629 * 22_locale/time_get/get_time/char/1.cc: New.
6630 * 22_locale/time_get/get_time/char/2.cc: New.
6631 * 22_locale/time_get/get_time/char/3.cc: New.
6632 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
6633 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
6634 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
6635 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
6636 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
6637 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
6638 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
6639 * 22_locale/time_get/get_weekday/char/1.cc: New.
6640 * 22_locale/time_get/get_weekday/char/2.cc: New.
6641 * 22_locale/time_get/get_weekday/char/3.cc: New.
6642 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
6643 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
6644 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
6645 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
6646 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
6647 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
6648 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
6649 * 22_locale/time_get/get_year/char/1.cc: New.
6650 * 22_locale/time_get/get_year/char/3.cc: New.
6651 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
6652 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
6653 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
6654 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
6655 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
6656 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
6657 * 22_locale/time_put/1.cc: New.
6658 * 22_locale/time_put/2.cc: New.
6659 * 22_locale/time_put/put/char/1.cc: New.
6660 * 22_locale/time_put/put/char/10.cc: New.
6661 * 22_locale/time_put/put/char/2.cc: New.
6662 * 22_locale/time_put/put/char/3.cc: New.
6663 * 22_locale/time_put/put/char/4.cc: New.
6664 * 22_locale/time_put/put/char/5.cc: New.
6665 * 22_locale/time_put/put/char/6.cc: New.
6666 * 22_locale/time_put/put/char/7.cc: New.
6667 * 22_locale/time_put/put/char/8.cc: New.
6668 * 22_locale/time_put/put/char/9.cc: New.
6669 * 22_locale/time_put/put/char/wrapped_env.cc: New.
6670 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
6671 * 22_locale/time_put/put/wchar_t/1.cc: New.
6672 * 22_locale/time_put/put/wchar_t/10.cc: New.
6673 * 22_locale/time_put/put/wchar_t/2.cc: New.
6674 * 22_locale/time_put/put/wchar_t/3.cc: New.
6675 * 22_locale/time_put/put/wchar_t/4.cc: New.
6676 * 22_locale/time_put/put/wchar_t/5.cc: New.
6677 * 22_locale/time_put/put/wchar_t/6.cc: New.
6678 * 22_locale/time_put/put/wchar_t/7.cc: New.
6679 * 22_locale/time_put/put/wchar_t/8.cc: New.
6680 * 22_locale/time_put/put/wchar_t/9.cc: New.
6681 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
6682 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
6684 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
6686 * config/locale/generic/messages_members.h
6687 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
6688 unqualified members of base clasess.
6690 2003-01-16 Mark Mitchell <mark@codesourcery.com>
6691 Jeffrey Oldham <oldham@codesourcery.com>
6693 * config/locale/gnu/messages_members.h: Use this-> to refer to
6694 unqualified members of base clasess.
6695 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
6696 * include/bits/codecvt.h: Likewise.
6697 * include/bits/deque.tcc: Likewise.
6698 * include/bits/fstream.tcc: Likewise.
6699 * include/bits/istream.tcc: Likewise.
6700 * include/bits/list.tcc: Likewise.
6701 * include/bits/locale_facets.h: Likewise.
6702 * include/bits/ostream.tcc: Likewise.
6703 * include/bits/sstream.tcc: Likewise.
6704 * include/bits/stl_bvector.h: Likewise.
6705 * include/bits/stl_deque.h: Likewise.
6706 * include/bits/stl_list.h: Likewise.
6707 * include/bits/stl_tree.h: Likewise.
6708 * include/bits/stl_vector.h: Likewise.
6709 * include/bits/vector.tcc: Likewise.
6710 * include/ext/ropeimpl.h: Likewise.
6711 * include/ext/stdio_filebuf.h: Likewise.
6712 * include/ext/stl_rope.h: Likewise.
6713 * include/std/std_fstream.h: Likewise.
6714 * include/std/std_sstream.h: Likewise.
6716 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
6718 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
6720 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
6722 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
6723 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
6724 * aclocal.m4: Regenerate.
6725 * configure: Regenerate.
6726 * testsuite/Makefile.am (all-local): Add conditional rule to
6727 generate testsuite_wchar_t.
6728 * testsuite/Makefile.in: Regenerate.
6729 * testsuite/lib/libstdc++-v3-dg.exp
6730 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
6731 testsuite_wchar_t is not present in the build directory.
6732 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
6733 Remove setulimit bits.
6734 * testsuite/26_numerics/complex_value.cc: Set to noopts.
6735 * testsuite/Makefile.am (CLEANFILES): Add.
6736 * testsuite/Makefile.in: Regenerate.
6738 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6740 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
6743 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
6745 Further conform g++'s __vmi_class_type_info to the C++ ABI
6747 * libsupc++/cxxabi.h
6748 (__vmi_class_type_info::__flags_masks): Remove enumerations not
6749 required by the specification.
6751 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
6753 Renames, namespaces for testsuite utilities.
6754 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
6755 (gnu_allocator_tracker): Rename to allocation_tracker.
6756 (gnu_new_allocator): Rename to tracker_alloc.
6757 (__set_testsuite_memlimit): Rename to set_memory_limits.
6758 (gnu_assignment_operator): Rename to assignment_operator.
6759 (gnu_destructor): Rename to destructor.
6760 (gnu_copy_tracker): Rename to copy_tracker.
6761 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
6762 (run_tests_wrapped_locale): New.
6763 (run_tests_wrapped_env): New.
6764 * testsuite/testsuite_hooks.cc: Same.
6765 (class locale_data): Add.
6766 (class enviornment_variable): Add.
6767 (class not_found): Add.
6768 * testsuite/testsuite_allocator.h: Same.
6769 * testsuite/testsuite_allocator.cc: Same.
6770 * testsuite/23_containers/deque_ctor.cc
6771 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
6773 Change gnu_new_allocator to tracker_alloc.
6774 Change gnu_counting_struct to counter.
6775 Change gnu_copy_tracker to copy_tracker.
6776 Change gnu_copy_constructor to copy_constructor.
6777 Change gnu_assignment_operator to assignment_operator.
6779 * testsuite/23_containers/vector_capacity.cc: Same.
6780 * testsuite/23_containers/vector_ctor.cc (test01): Same.
6781 * testsuite/23_containers/list_modifiers.cc: Change
6782 gnu_copy_tracker to copy_tracker.
6783 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
6784 __set_testsuite_memlimit to set_memory_limits.
6785 * testsuite/21_strings/insert.cc (main): Same.
6786 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
6787 * testsuite/27_io/stringstream.cc: Same.
6788 * testsuite/27_io/stringbuf.cc: Same.
6789 * testsuite/27_io/streambuf.cc: Same.
6790 * testsuite/27_io/ostream.cc: Same.
6791 * testsuite/27_io/istream.cc: Same.
6792 * testsuite/27_io/fstream.cc: Same.
6793 * testsuite/lib/libstdc++-v3-dg.exp
6794 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
6795 three levels deeper in glob patterns.
6797 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
6799 * docs/doxygen/tables.html: Finished now.
6800 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
6801 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
6804 * include/bits/deque.tcc, include/bits/stl_alloc.h,
6805 include/bits/stl_deque.h, include/bits/stl_list.h,
6806 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
6809 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
6811 * configure.in: Revert.
6812 * configure: Regenerate.
6814 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6816 * include/Makefile.am (install-data-local): Prepend
6817 $(DESTDIR) to destination paths in all (un)installation
6818 commands. Use ${c_base_builddir} and ${std_builddir}
6819 as destination subdirectories to achieve consistency with
6820 preceding mkinstalldirs commands. No effect because both
6821 variables contain "." only.
6822 * include/Makefile.in: Regenerate.
6824 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
6826 * include/Makefile.am (stamp-*): Add checks for existing stamps.
6827 * include/Makefile.in: Regenerate.
6829 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
6830 * aclocal.m4: Regenerate.
6832 * configure.in: Don't add new multi-do rules every time the
6833 directory is reconfigured.
6834 * configure: Regenerate.
6836 2003-01-08 Brad Spencer <spencer@infointeractive.com>
6837 Nathan Myers <ncm@cantrip.org>
6839 * src/Makefile.am (stamp-debug): Clean.
6840 * src/Makefile.in: Regenerate.
6842 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
6845 * Makefile.am (distclean-multi): Fix.
6846 * Makefile.in: Regenerate.
6848 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
6850 * include/bits/locale_facets.h (messages): Move ctor, dtor
6852 (__timepunct): Same.
6853 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
6854 definitions. Conditionalize for GNU systems.
6855 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
6857 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
6858 definitions. Conditionalize for GNU systems.
6859 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
6861 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
6862 * src/locale.cc: Define.
6863 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
6865 * config/locale/gnu/time_members.h: Use it.
6866 * config/locale/gnu/messages_members.h: Use it.
6867 * config/linker-map.gnu: Add locale::facets details.
6868 * include/Makefile.am (target_headers_extra): Add time_members.h.
6869 * include/Makefile.in: Regenerate.
6870 * acinclude.m4: Export CTIME_H.
6871 * aclocal.m4: Regenerate.
6872 * configure: Regnerate.
6874 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
6877 (codecvt<char, char, mbstate_t>::do_in, do_out):
6878 Tweak parameters to avoid unused parameter warnings.
6880 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
6883 * include/bits/locale_facets.cc (num_put::_M_convert_float):
6884 Limit __prec to digits10 + 2, not digits10 + 1, taking into
6885 account the possibility of %{g,G} conversion specifiers
6886 inside _S_format_float.
6887 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
6889 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6891 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
6892 libstdc++-v3-list-sourcefiles): Additionally handle files one
6893 level deeper in glob patterns.
6895 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
6896 * testsuite/27_io/istream_extractor_arith/01.cc,
6897 testsuite/27_io/istream_extractor_arith/02.cc,
6898 testsuite/27_io/istream_extractor_arith/03.cc,
6899 testsuite/27_io/istream_extractor_arith/06.cc,
6900 testsuite/27_io/istream_extractor_arith/07.cc,
6901 testsuite/27_io/istream_extractor_arith/08.cc,
6902 testsuite/27_io/istream_extractor_arith/09.cc,
6903 testsuite/27_io/istream_extractor_arith/10.cc,
6904 testsuite/27_io/istream_extractor_arith/11.cc,
6905 testsuite/27_io/istream_extractor_arith/12.cc,
6906 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
6907 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
6910 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
6914 (codecvt<char, char, mbstate_t>::do_in, do_out):
6915 Implement the resolution of DR19 (TC).
6916 * testsuite/22_locale/codecvt_members_char_char.cc
6919 2003-01-02 Jason Merrill <jason@redhat.com>
6921 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
6922 *__mem is also an output.
6923 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.