1 2003-08-28 Alan Modra <amodra@bigpond.net.au>
3 * configure.ac: Test $with_cross_host against $build_alias, not $build.
4 * configure: Regenerate.
6 2003-08-27 Petur Runolfsson <peturr02@ru.is>
8 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
9 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
11 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
13 * Makefile.am: Remove trailing whitespace. Remove needless
14 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
15 * include/Makefile.am: Likewise.
16 * libmath/Makefile.am: Likewise.
17 * libsupc++/Makefile.am: Likewise.
18 * po/Makefile.am: Likewise.
19 * src/Makefile.am: Likewise.
20 * testsuite/Makefile.am: Likewise.
22 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
23 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
24 testsuite/Makefile.in: Regenerated.
26 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
28 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
30 * aclocal.m4, configure: Regenerate.
32 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
34 * acinclude.m4: Include no-executables.m4.
35 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
36 * aclocal.m4: Regenerated.
37 * configure: Regenerated.
39 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
41 * acinclude.m4: Don't call AC_ISC_POSIX.
42 * aclocal.m4: Regenerated.
43 * configure: Regenerated.
45 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
47 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
48 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
49 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
50 used elsewhere in this file.
51 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
52 * configure.ac: ...called here to expand all conditionals.
53 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
54 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
55 (install-freestanding-headers): New target, a subset of
56 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
58 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
59 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
60 src/Makefile.in, testsuite/Makefile.in: Regenerated.
62 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
64 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
65 pathnames from generated tag file.
67 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
69 * Makefile.am: Add comment.
70 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
72 * configure.ac: Use them both here, instead of hardcoded lists.
74 * fragment.am: Add STAMP varaible.
75 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
77 (stamp-*): Move file creation rule outside of 'if' branches to
78 ensure the stamp-* files are actually updated. Use $(STAMP).
79 * src/Makefile.am: Remove now-nonexistant variable.
80 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
82 * po/Makefile.am: Include same fragment as all the others.
84 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
85 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
87 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
89 * testsuite/data/cin_unget-1.txt: New.
90 * testsuite/27_io/objects/char/12048.cc: New.
92 2003-08-25 Zack Weinberg <zack@codesourcery.com>
94 * config/os/hpux/os_defines.h: Unconditionally define
95 _GLIBCXX_GTHREAD_USE_WEAK to 0.
97 2003-08-19 Geoffrey Keating <geoffk@apple.com>
99 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
100 crosses to Darwin targets.
101 * configure: Regenerate.
103 2003-08-19 Petur Runolfsson <peturr02@ru.is>
105 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
107 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
109 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
110 in the patch from 3 minutes ago. Boy, is my face red.
111 * configure: At least I remembered to regenerate this.
113 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
115 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
116 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
117 things from the top level.
118 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
119 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
120 (currently unused). Strip the fake-VPATH shell fragment from
121 automake-generated rules, if present.
122 * linkage.m4: Add comment.
124 * fragment.am: New file, containing factored-out common settings.
125 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
126 * Makefile.am: Include fragment.am. Remove common variables.
127 * include/Makefile.am: Likewise.
128 * libmath/Makefile.am: Likewise.
129 * libsupc++/Makefile.am: Likewise.
130 * po/Makefile.am: Likewise. Print rules during check.
131 * src/Makefile.am: Likewise.
132 * testsuite/Makefile.am: Likewise.
134 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
135 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
136 src/Makefile.in, testsuite/Makefile.in: Regenerate.
138 2003-08-11 John Levon <levon@movementarian.org>
140 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
141 remaining places for the name change from GLIBCPP_FORCE_NEW
144 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
146 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
148 * include/bits/basic_ios.tcc: Same.
149 * include/bits/istream.tcc: Same.
150 * include/bits/locale_facets.h: Same.
151 * include/bits/ostream.tcc: Same.
152 * include/std/std_istream.h: Same.
153 * include/std/std_ostream.h: Same.
154 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
156 * include/ext/rope: Remove build warning.
158 2003-08-11 Andreas Jaeger <aj@suse.de>
160 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
162 * include/Makefile.in: Regenerated.
164 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
166 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
167 when calling AC_PROG_CC.
168 * aclocal.m4, configure: Regenerate.
170 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
172 * acinclude.m4: Properly quote variable which will be expanded
173 inside makefiles. Use CXX instead of CC to extract compiler info.
174 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
175 correct form in PACKAGE.
176 * aclocal.m4, configure: Regenerate.
178 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
180 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
181 (check-abi-verbose): Same.
182 * testsuite/testsuite_performance.h (report_performance): Same.
184 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
186 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
188 2003-08-07 Doug Gregor <dgregor@apple.com>
190 * include/bits/char_traits.h (char_traits::not_eof): Match operand
193 2003-08-07 Bernardo Innocenti <bernie@develer.com>
196 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
197 Replace variants with new BSET-based version.
199 2003-08-07 Carlo Wood <carlo@alinoe.com>
201 * include/bits/demangle.h: Do not use cctype functions that depend
204 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
206 * configure.in: Rename...
207 * configure.ac: ...to this.
208 * docs/html/17_intro/porting.texi: Update name.
210 * docs/html/17_intro/porting.html: Regenerate.
211 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
212 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
213 testsuite/Makefile.in: Regenerate (picks up new dependancy).
215 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
217 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
218 pipe, open the window to let out the fumes, redo the option-handling
219 logic to properly execute the detection test.
220 * aclocal.m4, configure: Regenerate.
222 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
224 Convert to new autotools.
225 * acconfig.h: Update with correct names.
226 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
227 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
228 * configure.in: Update. Split hardcoded cross-configury settings
230 * crossconfig.m4: ...here. New file. Contents untouched.
231 * acinclude.m4: Reorganize and rewrite as needed. Split large
233 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
235 * scripts/testsuite_flags.in: Update.
237 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
238 variables (already generated by automake).
239 * include/Makefile.am: Ditto.
240 * libmath/Makefile.am: Ditto.
241 * libsupc++/Makefile.am: Ditto.
242 * po/Makefile.am: Ditto.
243 * src/Makefile.am: Ditto.
245 * aclocal.m4: Regenerate using new versions.
246 * config.h.in: Ditto.
248 * Makefile.in: Ditto.
249 * include/Makefile.in: Ditto.
250 * libmath/Makefile.in: Ditto.
251 * libsupc++/Makefile.in: Ditto.
252 * po/Makefile.in: Ditto.
253 * src/Makefile.in: Ditto.
254 * testsuite/Makefile.in: Ditto.
256 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
258 * po/libstdc++.pot: Re-extract/regenerate.
260 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
262 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
263 Remove unneeded variable assignments. Leave them for automake.
264 * testsuite/lib/libstdc++-v3.exp: Rename...
265 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
267 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
268 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
271 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
273 * docs/doxygen/guide.html: run_doxygen uses bash.
274 * docs/doxygen/mainpage.html: We'll be shipping tag files.
275 * docs/doxygen/run_doxygen: Tweaks and improvements.
276 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
277 * docs/html/install.html: Update autoconf/automake requirements.
278 * docs/html/test.html: Add section describing DejaGNU support.
279 * docs/html/17_intro/confdeps.dot: New file, generates...
280 * docs/html/17_intro/confdeps.png: ...this new file.
281 * docs/html/Makefile: Generated here.
282 * docs/html/17_intro/configury.html: New file.
284 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
286 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
287 * testsuite/lib/libstdc++-v3.exp: ...to this.
288 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
290 2003-07-31 Doug Gregor <dgregor@apple.com>
292 Add user specialization tests.
293 * testsuite/23_containers/deque/1.cc: New.
294 * testsuite/23_containers/list/1.cc: New.
295 * testsuite/23_containers/map/1.cc: New.
296 * testsuite/23_containers/multimap/1.cc: New.
297 * testsuite/23_containers/multiset/1.cc: New.
298 * testsuite/23_containers/set/1.cc: New.
299 * testsuite/23_containers/vector/1.cc: New.
301 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
303 Reshuffle 23_containers testsuite.
304 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
305 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
306 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
307 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
308 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
309 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
310 vector_resize.cc: Split into...
311 * 23_containers/bitset/cons/1.cc: New.
312 * 23_containers/bitset/cons/6282.cc: New.
313 * 23_containers/bitset/count/6124.cc: New.
314 * 23_containers/bitset/operations/1.cc: New.
315 * 23_containers/bitset/operations/2.cc: New.
316 * 23_containers/bitset/test/1.cc: New.
317 * 23_containers/bitset/to_ulong/1.cc: New.
318 * 23_containers/deque/cons/1.cc: New.
319 * 23_containers/deque/cons/2.cc: New.
320 * 23_containers/deque/operators/1.cc: New.
321 * 23_containers/list/capacity/1.cc: New.
322 * 23_containers/list/cons/1.cc: New.
323 * 23_containers/list/cons/2.cc: New.
324 * 23_containers/list/cons/3.cc: New.
325 * 23_containers/list/cons/4.cc: New.
326 * 23_containers/list/cons/5.cc: New.
327 * 23_containers/list/cons/6.cc: New.
328 * 23_containers/list/cons/7.cc: New.
329 * 23_containers/list/cons/8.cc: New.
330 * 23_containers/list/cons/9.cc: New.
331 * 23_containers/list/modifiers/1.cc: New.
332 * 23_containers/list/modifiers/2.cc: New.
333 * 23_containers/list/modifiers/3.cc: New.
334 * 23_containers/list/operators/1.cc: New.
335 * 23_containers/list/operators/2.cc: New.
336 * 23_containers/list/operators/3.cc: New.
337 * 23_containers/list/operators/4.cc: New.
338 * 23_containers/map/insert/1.cc: New.
339 * 23_containers/map/operators/1.cc: New.
340 * 23_containers/map/operators/1_neg.cc: New.
341 * 23_containers/multiset/insert/1.cc: New.
342 * 23_containers/priority_queue/members/7161.cc: New.
343 * 23_containers/queue/members/7157.cc: New.
344 * 23_containers/set/operators/1_neg.cc: New.
345 * 23_containers/stack/members/7158.cc: New.
346 * 23_containers/vector/bool/1.cc: New.
347 * 23_containers/vector/bool/6886.cc: New.
348 * 23_containers/vector/capacity/1.cc: New.
349 * 23_containers/vector/capacity/2.cc: New.
350 * 23_containers/vector/capacity/8230.cc: New.
351 * 23_containers/vector/cons/1.cc: New.
352 * 23_containers/vector/cons/2.cc: New.
353 * 23_containers/vector/cons/3.cc: New.
354 * 23_containers/vector/cons/4.cc: New.
355 * 23_containers/vector/cons/6513.cc: New.
356 * 23_containers/vector/element_access/1.cc: New.
357 * 23_containers/vector/modifiers/1.cc: New.
358 * 23_containers/vector/modifiers/2.cc: New.
359 * 23_containers/vector/resize/1.cc: New.
361 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
363 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
365 * testsuite/thread/pthread2.cc: Likewise.
366 * testsuite/thread/pthread3.cc: Likewise.
367 * testsuite/thread/pthread4.cc: Likewise.
368 * testsuite/thread/pthread5.cc: Likewise.
369 * testsuite/thread/pthread6.cc: Likewise.
370 * testsuite/thread/pthread7-rope.cc: Likewise.
372 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
374 * include/bits/c++config: Partial reversion (comment placement) of
377 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
379 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
380 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
381 (_GLIBCXX_AT_AT): Remove.
382 (__USE_MALLOC): Remove.
383 * include/std/std_fstream.h: Modify.
384 * include/bits/basic_ios.h: Same.
385 * include/bits/valarray_array.h: Same.
386 * include/c_std/std_cmath.h: Same.
387 * include/c_std/cmath.tcc: Same.
388 * include/std/std_vector.h: Same.
389 * include/std/std_string.h: Same.
390 * include/std/std_stack.h: Same.
391 * include/std/std_queue.h: Same.
392 * include/std/std_list.h: Same.
393 * include/std/std_deque.h: Same.
394 * include/std/std_streambuf.h: Same.
395 * include/std/std_sstream.h: Same.
396 * include/std/std_ostream.h: Same.
397 * include/std/std_istream.h: Same.
398 * include/bits/valarray_array.tcc: Same, format.
400 * include/c/std_cctype.h: Fix include guards.
401 * include/c/std_cerrno.h: Same.
402 * include/c/std_cfloat.h: Same.
403 * include/c/std_climits.h: Same.
404 * include/c/std_clocale.h: Same.
405 * include/c/std_cmath.h: Same.
406 * include/c/std_csetjmp.h: Same.
407 * include/c/std_csignal.h: Same.
408 * include/c/std_cstdarg.h: Same.
409 * include/c/std_cstddef.h: Same.
410 * include/c/std_cstdio.h: Same.
411 * include/c/std_cstdlib.h: Same.
412 * include/c/std_cstring.h: Same.
413 * include/c/std_ctime.h: Same.
414 * include/c/std_cwchar.h: Same.
415 * include/c/std_cwctype.h: Same.
416 * include/c_std/cmath.tcc: Same.
417 * include/c_std/std_cmath.h: Same.
419 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
422 * include/bits/stl_tree.h: Replace C-style casts with C++-style
423 casts. Changes to avoid casting away constness. Eliminate
424 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
425 initialization lists. Move out implementation of __black_count()
427 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
428 Rename_Rb_tree_base_iterator::_M_increment() to
429 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
431 * config/linker-map.gnu: Add and change symbols here.
433 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
435 * docs/html/22_locale/howto.html: Use locale::classic() instead
438 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
440 * testsuite/testsuite_hooks.h: Remove list include.
441 (func_callback): Define as unique type, not std::list.
442 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
443 * testsuite/libstdc++-v3.dg/dg.exp: Same.
444 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
445 * testsuite/23_containers/bitset_ctor.cc:
446 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
447 * testsuite/18_support/numeric_limits.cc: Same.
448 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
449 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
450 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
451 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
452 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
453 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
454 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
455 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
456 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
457 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
458 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
459 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
460 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
461 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
462 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
463 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
464 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
465 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
466 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
467 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
468 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
469 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
470 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
471 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
472 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
473 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
474 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
475 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
476 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
477 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
478 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
479 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
480 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
481 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
482 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
483 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
484 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
485 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
486 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
487 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
488 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
489 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
490 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
491 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
492 * testsuite/23_containers/bitset_ctor.cc: Same.
493 * testsuite/23_containers/bitset_shift.cc: Same.
494 * testsuite/23_containers/vector_ctor.cc: Same.
495 * testsuite/23_containers/vector_element_access.cc: Same.
496 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
497 * testsuite/24_iterators/iterator.cc: Same.
498 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
499 * testsuite/25_algorithms/lower_bound.cc: Same.
500 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
501 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
502 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
503 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
504 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
505 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
506 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
507 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
508 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
509 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
510 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
513 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
515 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
516 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
517 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
518 GLIBCPP to GLIBCXX (and explain as needed).
520 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
524 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
526 * testsuite/22_locale/messages/members/char/1.cc,
527 testsuite/22_locale/messages/members/char/2.cc,
528 testsuite/22_locale/messages/members/char/3.cc,
529 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
530 the origin of LOCALEDIR.
531 * testsuite/lib/libstdc++-v3.exp: New file.
533 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
535 * include/bits/char_traits.h: Update copyright, tweak.
536 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
539 2003-07-24 Matt Austern <austern@apple.com>
541 * /include/bits/char_traits.h (class char_traits): Put all the
542 real work into the new class template __gnu_cxx::char_traits.
543 Gave generic definitions for member functions. Types are taken
544 from the new class template __gnu_cxx::_Char_types.
545 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
546 file. Test of std::char_traits<short>, which serves as a test of
547 the char_traits primary template.
549 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
551 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
553 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
555 * testsuite/23_containers/map_operators.cc: Conform to
556 container requirement as value must be Assignable.
558 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
560 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
561 tests not only generation of pch files, but also their use.
562 * aclocal.m4, configure: Rebuilt.
564 2003-07-23 Steve Ellcey <sje@cup.hp.com>
566 * config/cpu/hppa/atomicity.h: Change
567 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
568 to match misc-inst.cc
570 2003-07-23 Steve Ellcey <sje@cup.hp.com>
572 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
573 * include/c_std/std_cctype.h: Ditto.
574 * include/c_std/std_cerrno.h: Ditto.
575 * include/c_std/std_cfloat.h: Ditto.
576 * include/c_std/std_climits.h: Ditto.
577 * include/c_std/std_clocale.h: Ditto.
578 * include/c_std/std_cmath.h: Ditto.
579 * include/c_std/std_csetjmp.h: Ditto.
580 * include/c_std/std_csignal.h: Ditto.
581 * include/c_std/std_cstdarg.h: Ditto.
582 * include/c_std/std_cstddef.h: Ditto.
583 * include/c_std/std_cstdio.h: Ditto.
584 * include/c_std/std_cstdlib.h: Ditto.
585 * include/c_std/std_cstring.h: Ditto.
586 * include/c_std/std_ctime.h: Ditto.
587 * include/c_std/std_cwchar.h: Ditto.
588 * include/c_std/std_cwctype.h: Ditto.
589 * include/std/std_algorithm.h: Ditto.
590 * include/std/std_bitset.h: Ditto.
591 * include/std/std_complex.h: Ditto.
592 * include/std/std_deque.h: Ditto.
593 * include/std/std_fstream.h: Ditto.
594 * include/std/std_functional.h: Ditto.
595 * include/std/std_iomanip.h: Ditto.
596 * include/std/std_ios.h: Ditto.
597 * include/std/std_iosfwd.h: Ditto.
598 * include/std/std_iostream.h: Ditto.
599 * include/std/std_istream.h: Ditto.
600 * include/std/std_iterator.h: Ditto.
601 * include/std/std_limits.h: Ditto.
602 * include/std/std_list.h: Ditto.
603 * include/std/std_locale.h: Ditto.
604 * include/std/std_map.h: Ditto.
605 * include/std/std_memory.h: Ditto.
606 * include/std/std_numeric.h: Ditto.
607 * include/std/std_ostream.h: Ditto.
608 * include/std/std_queue.h: Ditto.
609 * include/std/std_set.h: Ditto.
610 * include/std/std_sstream.h: Ditto.
611 * include/std/std_stack.h: Ditto.
612 * include/std/std_stdexcept.h: Ditto.
613 * include/std/std_streambuf.h: Ditto.
614 * include/std/std_string.h: Ditto.
615 * include/std/std_utility.h: Ditto.
616 * include/std/std_valarray.h: Ditto.
617 * include/std/std_vector.h: Ditto.
619 2003-07-22 Doug Gregor <dgregor@apple.com>
621 * include/bits/basic_string.h (basic_string::insert): Deprecate
624 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
626 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
628 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
629 (test03): Include typeinfo for bad_cast.
630 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
631 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
632 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
634 2003-07-21 Doug Gregor <dgregor@apple.com>
636 * include/bits/boost_concept_check.h:
637 (_EqualityComparableConcept::__constraints): Remove != from the
638 list of constraints; it is not listed in Table 28 of the C++98
641 2003-07-18 Andreas Jaeger <aj@suse.de>
643 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
644 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
645 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
646 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
648 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
650 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
651 * config/locale/generic/messages_members.h: Tweaks.
652 * config/locale/generic/monetary_members.cc
653 (moneypunct::_M_initialize_moneypunct): Use cache.
654 (moneypunct::~moneypunct): Delete cache.
655 * config/locale/generic/time_members.cc:
656 (__timepunct::_M_initialize_timepunct): Use cache.
657 * config/locale/generic/time_members.h:
658 (__timepunct::~__timepunct): Delete cache.
659 (__timepunct::__timepunct): Set cache.
660 * config/locale/gnu/messages_members.h: Tweaks.
661 * config/locale/gnu/monetary_members.cc:
662 (moneypunct::_M_initialize_moneypunct): Use cache.
663 (moneypunct::~moneypunct): Delete cache.
664 * config/locale/gnu/time_members.cc:
665 (__timepunct::_M_initialize_timepunct): Use cache.
666 * config/locale/gnu/time_members.h:
667 (__timepunct::~__timepunct): Delete cache.
668 (__timepunct::__timepunct): Set cache.
669 * include/bits/locale_facets.h (__timepunct_cache): New.
670 (__moneypunct_cache): New.
671 * include/bits/locale_facets.tcc: Tweak.
672 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
673 * src/locale-inst.cc: Instantiate caches.
674 * src/globals.cc: Add "C" caches.
675 * src/localename.cc: Use external "C" caches.
677 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
679 * docs/doxygen/guide.html: Fix typo.
681 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
683 * include/ext/pod_char_traits.h: Add state template argument.
685 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
687 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
688 (num_get::_M_convert_int): To _M_insert_int.
689 (num_get::_M_convert_float): To _M_insert_float.
690 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
691 Use caches for ctype, num_get.
692 (num_get::_M_extract_int): Same.
693 (num_get::get(bool)): Same.
694 (__verify_grouping): Use size_t.
695 * src/locale-inst.cc: Update.
696 * src/locale.cc: Adjust _S_atoms_in.
698 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
700 * docs/doxygen/mainpage.html: Move building/writing instructions...
701 * docs/doxygen/guide.html: ...to here. New file.
703 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
705 * docs/html/ext/howto.html: Update URL for SGI STL docs.
706 * docs/html/faq/index.html: Same.
707 * docs/html/faq/index.txt: Regenerate.
709 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
712 * include/bits/locale_facets.tcc (money_get::do_get):
713 Strip only _leading_ zeros.
714 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
715 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
717 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
719 * include/ext/hash_map (class hash_multimap): Remove extra
720 semicolons from __glibcxx_class_requires3 entries.
721 * include/ext/hash_set (class hash_set): Ditto.
722 (class hash_multiset): Ditto.
724 2003-07-15 Petur Runolfsson <peturr02@ru.is>
726 * include/bits/char_traits.h (char_traits<wchar_t>::move):
727 Change last parameter from int_type to size_t.
729 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
731 * include/bits/stl_algo.h (includes, set_union, set_intersection,
732 set_difference, set_symmetric_difference, max_element, min_element,
733 next_permutation, prev_permutation, find_first_of, find_end):
735 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
736 restrictions in docs.
737 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
739 * docs/doxygen/doxygroups.cc (setoperations): New group.
741 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
743 * include/bits/basic_string.h: Document public functions.
744 * docs/doxygen/TODO: Update c21 todo.
746 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
748 * include/bits/stl_list.h: Document more functions.
749 * docs/doxygen/TODO: Update c23 todo.
751 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
753 * config/locale/gnu/c_locale.h (__convert_from_v): One more
756 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
758 * include/bits/stl_tempbuf.h: Qualify free with std::.
759 * src/locale.cc: Include <cstdlib>, qualify getenv.
761 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
763 * config/locale/gnu/c_locale.h (__convert_from_v): Include
764 <cstdio>. Qualify names.
765 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
767 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
768 Nathan C. Myers <ncm-nospam@cantrip.org>
771 * include/std/std_fstream.h (xsputn): Declare only.
772 * include/bits/fstream.tcc (xsputn): Define, optimize for the
773 always_noconv() case: when __n is sufficiently large flush
774 the buffer and issue a direct write, if possible combining the
775 two with writev in __basic_file<>::xsputn_2.
776 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
778 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
780 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
781 the availability of writev in <sys/uio.h>.
782 * configure.in: Call here.
783 * acconfig.h: Add undef for the corresponding symbol.
784 * aclocal.m4: Regenerate.
785 * configure: Regenerate.
786 * config.h.in: Regenerate.
787 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
789 * include/std/std_fstream.h (sync): Constify a variable.
791 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
793 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
794 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
796 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
798 * config/locale/gnu/c_locale.h (__convert_from_v): Include
799 <cstring> and <cstdlib>. Qualify names.
801 2003-07-13 Mark Mitchell <mark@codesourcery.com>
803 * config/locale/generic/c_locale.h: Include <cstdlib> and
805 * include/bits/boost_concept_check.h: Add this-> to unqualified
807 * include/bits/deque.tcc: Likewise.
808 * include/bits/locale_facets.h : Likewise.
809 * include/bits/ostream.tcc: Likewise.
810 * include/bits/stl_algo.h: Likewise.
811 * include/bits/stl_bvector.h: Likewise.
812 * include/bits/stl_deque.h: Likewise.
813 * include/bits/stl_list.h: Likewise.
814 * include/bits/stl_tree.h: Likewise.
815 * include/bits/stl_vector.h: Likewise.
816 * include/bits/vector.tcc: Likewise.
817 * include/ext/rope: Likewise.
818 * include/ext/ropeimpl.h: Likewise.
819 * include/ext/stdio_filebuf.h: Likewise.
821 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
823 * include/bits/basic_ios.h (copyfmt): Document.
824 * include/bits/ios_base.h (event, event_callback, register_callback,
825 xalloc, iword, pword): Document.
826 (imbue, ~ios_base): Update docs on callbacks.
828 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
830 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
831 warning messages if the environment cannot support symbol versioning.
832 (port_specific_symbol_file): It's plural, add an 's' on the end.
833 * configure.host: Likewise.
834 * src/Makefile.am: Likewise.
835 * config/linker-map.gnu: Remove one semicolon, heh.
836 * scripts/extract_symvers: Don't assume useful 'export' syntax.
837 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
838 * aclocal.m4, configure, src/Makefile.in: Regenerated.
840 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
842 * include/bits/locale_facets.tcc: Use function object for
843 __use_cache instead of template function. Partially specialize for
845 * include/bits/locale_classes.h: Update friend declaration for
847 (_M_install_cache): No throw exception specs.
848 * src/locale.cc: Remove __use_cache specializations.
849 * include/ext/pod_char_traits.h (length): Tweak.
850 * include/bits/locale_facets.h (__numpunct_cache): Remove
852 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
854 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
855 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
856 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
857 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
858 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
859 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
861 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
863 * src/ios.cc (_M_grow_words): Fix spelling.
865 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
867 * include/bits/stl_tree.h: Move larger member functions in
868 _Rb_tree_base_iterator and _Rb_tree_node to...
869 * src/stl_tree.cc: Here.
870 * src/Makefile.in: Add stl_tree.cc.
871 * src/Makefile.in: Regenerated.
872 * config/linker-map.gnu: Add symbols here.
874 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
876 * testsuite/ext/pod_char_traits.cc: New.
877 * include/ext/pod_char_traits.h: New.
878 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
879 * include/Makefile.in: Regenerate.
880 * docs/html/21_strings/howto.html: Update.
882 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
884 * testsuite/performance/list_create_fill_sort.cc: New.
886 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
888 * config/locale/generic/numeric_members.cc: Correct type info.
889 * config/locale/gnu/numeric_members.cc: Same.
890 * include/bits/locale_facets.h: Same.
892 * include/bits/char_traits.h: Correct spacing.
894 * src/locale.cc: Wrap to 80 col.
896 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
898 * include/std/std_complex.h: Partially revert last
899 changes: cmath functions must not be qualified.
901 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
903 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
904 2.11 with globbing backport fix.
905 * aclocal.m4, configure: Regenerated.
907 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
909 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
910 if output is at all possible (!_M_reading), cannot be active.
912 * include/std/std_fstream.h: Tweak comments to doxygen style.
914 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
916 * include/bits/locale_classes.h: Fully qualify standard
917 functions with std::, thus avoiding Koenig lookup.
918 * include/bits/locale_facets.tcc: Likewise.
919 * src/locale.cc: Likewise.
920 * src/localename.cc: Likewise.
922 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
924 * include/bits/allocator_traits.h: Fix doxygen markup.
925 * include/ext/mt_allocator.h: Likewise.
927 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
929 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
931 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
933 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
934 requirement. Add port_specific_symbol_file variable.
935 * configure.host: Add docs for port_specific_symbol_file.
936 Clean up try_cpu block for x86.
937 * config/linker-map.gnu: No more "last symbol can't have a
938 semicolon" kaka. Add hook for port-specific symbols.
939 * src/Makefile.am: Remove trailing whitespace.
940 (libstdc++-symbol.ver): Detect the presence of port-specific
941 symbols, and add them accordingly.
943 * docs/html/17_intro/porting.texi: Bring up to date.
945 * src/Makefile.in, aclocal.m4, configure,
946 docs/html/17_intro/porting.html: Regenerated.
948 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
950 * scripts/create_testsuite_files: New file.
951 * testsuite/Makefile.am (all-local, check-performance): Use it.
952 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
953 * testsuite/Makefile.in: Regenerated.
955 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
957 * testsuite/performance/fstream_seek_write.cc: Likewise.
958 * testsuite/performance/ofstream_insert_float.cc: Likewise.
959 * testsuite/performance/ofstream_insert_int.cc: Likewise.
960 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
962 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
964 * include/bits/stl_list.h: Performance and memory usage
965 improvements. In particular, the behaviour of the constructor and
966 destructor as the list header node is no longer dynamically
967 allocated/de-allocated.
968 * include/bits/list.tcc: Likewise.
970 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
972 * include/std/std_complex.h: Fully qualify standard
973 functions with std::, thus avoiding Koenig lookup.
974 * include/std/std_memory.h: Likewise.
975 * include/std/std_valarray.h: Likewise.
977 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
979 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
980 variable for grandparent and use const
982 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
984 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
985 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
986 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
987 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
988 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
989 * testsuite/27_io/objects/char/7.cc: Ditto
990 * testsuite/27_io/objects/char/9661-1.cc: Ditto
992 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
994 * include/std/std_bitset.h: Fully qualify standard
995 functions with std::, thus avoiding Koenig lookup.
997 * include/std/std_fstream.h: Change comment to doxygen style.
999 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
1001 * include/std/std_limits.h: More CPP->CXX changes.
1002 * scripts/check_survey.in: Likewise.
1004 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1006 Move from CPP to CXX.
1007 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
1008 * testsuite/Makefile.am: Same.
1009 * testsuite/Makefile.in: Regenerate.
1010 * po/Makefile.am: Same.
1011 * po/Makefile.in: Regenerate.
1012 * libsupc++/Makefile.am: Same.
1013 * libsupc++/Makefile.in: Regenerate.
1014 * libmath/Makefile.am: Same.
1015 * libmath/Makefile.in: Regenerate.
1016 * include/Makefile.am: Same.
1017 * include/Makefile.in: Regenerate.
1018 * src/Makefile.am: Same.
1019 * src/Makefile.in: Regenerate.
1021 * configure.host: Same.
1022 * configure.in: Same.
1023 * configure: Regenerate.
1024 * acinclude.m4: Same.
1026 * src: Change all files in this directory.
1028 * include: Same, standardize include guards.
1032 2003-07-04 Zack Weinberg <zack@codesourcery.com>
1034 * testsuite/22_locale/collate/compare/wchar_t/2.cc
1035 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
1036 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
1037 * testsuite/22_locale/collate/hash/wchar_t/2.cc
1038 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
1039 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
1040 * testsuite/22_locale/collate/transform/wchar_t/2.cc
1041 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
1042 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1043 XFAIL on all targets.
1045 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1047 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
1048 * aclocal.m4: Regenerate.
1049 * configure: Regenerate.
1051 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
1053 * include/bits/locale_facets.tcc (__int_to_char): Move common case
1056 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1057 Petur Runolfsson <peturr02@ru.is>
1059 * config/io/basic_file_stdio.cc: Revert.
1061 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1063 * include/bits/deque.tcc: Fully qualify standard
1064 functions with std::, thus avoiding Koenig lookup.
1065 * include/bits/gslice_array.h: Likewise.
1066 * include/bits/indirect_array.h: Likewise.
1067 * include/bits/list.tcc: Likewise.
1068 * include/bits/mask_array.h: Likewise.
1069 * include/bits/slice_array.h: Likewise.
1071 2003-07-04 Gawain Bolton <gbolton@free.fr>
1073 * include/bits/stl_tree.h: Performance and memory usage
1076 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
1078 * Makefile.am: Replace PWD with PWD_COMMAND.
1079 * Makefile.in: Regenerated.
1080 * docs/html/Makefile: Likewise.
1082 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1084 * include/bits/valarray_array.h: Fully qualify standard
1085 functions with std::, thus avoiding Koenig lookup.
1086 * include/bits/vector.tcc: Likewise.
1088 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1090 * include/Makefile.am: Update target_ to host_.
1091 * include/Makefile.in: Regenerate.
1092 * src/Makefile.am: Same.
1093 * src/Makefile.in: Regenerate.
1095 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
1097 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1099 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
1100 --enable-libstdcxx-debug-flags.
1101 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
1102 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
1103 * aclocal.m4: Regenerate.
1105 * docs/html/configopts.html: Update.
1107 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1109 Revert the fix for libstdc++/11378.
1111 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1114 * include/std/std_fstream.h (xsputn): In the unbuffered case,
1115 provided always_noconv(), issue directly _M_file.xsputn.
1116 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
1118 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1120 * include/bits/stl_list.h: Fully qualify standard
1121 functions with std::, thus avoiding Koenig lookup.
1122 * include/bits/stl_queue.h: Likewise.
1123 * include/bits/stl_raw_storage_iter.h: Likewise.
1124 * include/bits/stl_tempbuf.h: Likewise.
1125 * include/bits/stl_tree.h: Likewise.
1126 * include/bits/stl_uninitialized.h: Likewise.
1127 * include/bits/stl_vector.h: Likewise.
1128 * include/ext/rope: Change includes order.
1130 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1132 * configure.host (fpos_include_dir): Fix.
1134 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1136 * include/bits/stl_heap.h: Fully qualify standard
1137 functions with std::, thus avoiding Koenig lookup.
1138 * include/bits/stl_iterator_base_funcs.h: Likewise.
1140 * include/bits/stl_algo.h: Qualify __iterator_category too.
1141 * include/bits/stl_algobase.h: Likewise.
1142 * include/bits/stl_bvector.h: Likewise.
1144 * include/bits/stl_algo.h: Don't qualify the pair type.
1146 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
1148 * include/Makefile.am (target_headers): Add fpos.h
1149 (bits_headers): Remove.
1150 * include/Makefile.in: Regenerate.
1151 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
1152 * configure: Regenerate.
1153 * configure.host: Add fpos_include_dir.
1154 * config/os/gnu-linux/fpos.h: New.
1155 * config/os/generic/fpos.h: Add.
1156 * include/bits/fpos.h: Remove.
1158 * config/io/c_io_stdio.h: Remove fpos_t typedef.
1160 * include/bits/fstream.tcc: Tweaks.
1161 * include/std/std_fstream.h: Same.
1163 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
1164 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
1165 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
1166 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1167 * testsuite/27_io/fpos/1.cc: New.
1169 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
1170 Petur Runolfsson <peturr02@ru.is>
1172 * include/std/std_streambuf.h: Remove _M_pos.
1173 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
1174 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
1175 use fread/fwrite instead of read/write.
1176 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
1177 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
1178 before reading again.
1179 * testsuite/27_io/objects/char/6.cc: Tweak.
1181 2003-07-03 David Edelsohn <edelsohn@gnu.org>
1183 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
1184 _GLIBCPP_USE_WCHAR_T.
1186 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1188 * include/bits/basic_string.tcc (_M_replace_aux): Constify
1191 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1193 * include/bits/stl_bvector.h: Fully qualify standard
1194 functions with std::, thus avoiding Koenig lookup.
1195 * include/bits/stl_construct.h: Likewise.
1196 * include/bits/stl_deque.h: Likewise.
1198 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1200 * testsuite/22_locale/num_put/put/char/7.cc: Include
1201 <testsuite_hooks.h>, tweak.
1202 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
1204 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
1206 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
1207 check* targets, but not libs/programs).
1208 * testsuite/Makefile.in: Regenerate.
1210 2003-07-01 Roger Sayle <roger@eyesopen.com>
1212 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
1213 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
1214 * aclocal.m4: Regenerate.
1215 * configure: Regenerate.
1217 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
1219 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
1220 * aclocal.m4: Regenerated.
1221 * configure: Regenerated.
1223 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
1226 * include/bits/fstream.tcc (underflow): For encoding() == 0
1227 don't read more than __buflen chars.
1228 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
1229 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
1230 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
1231 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
1233 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
1235 * 22_locale/num_put/put/char/7.cc: New.
1236 * 22_locale/num_put/put/wchar_t/7.cc: New.
1238 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
1240 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
1241 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
1243 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1245 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
1246 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
1247 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
1248 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
1249 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
1250 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
1251 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
1252 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
1253 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
1254 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
1255 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
1256 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
1257 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
1258 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
1259 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
1260 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
1261 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
1262 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
1263 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
1264 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
1265 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
1266 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
1267 * data/seekoff-1.tst: Remove.
1268 * data/seekoff-1io.tst: New.
1269 * data/seekoff-1out.tst: New.
1270 * data/seekoff-2.tst: Remove.
1271 * data/seekoff-2io.tst: New.
1272 * data/seekoff-2out.tst: New.
1274 * data/seekpos-1.tst: Remove.
1275 * data/seekpos-1io.tst: New.
1276 * data/seekpos-1out.tst: New.
1277 * data/seekpos-2.tst: Remove.
1278 * data/seekpos-2io.tst: New.
1279 * data/seekpos-2out.tst: New.
1280 * data/seekpos.txt: New.
1282 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
1284 * src/locale.cc (__use_cache<numpunct>): Move from here ...
1285 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
1288 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1290 * include/bits/stl_algobase.h: Fully qualify standard
1291 functions with std::, thus avoiding Koenig lookup.
1293 2003-06-30 Doug Gregor <dgregor@apple.com>
1295 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
1296 subscripting empty string.
1298 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
1300 * testsuite/Makefile.am (check-am): Do not override.
1301 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
1302 * testsuite/Makefile.in: Regenerate.
1304 2003-06-30 Doug Gregor <dgregor@apple.com>
1306 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
1307 Don't initialize an insert_iterator with a singular iterator.
1309 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1311 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
1312 * aclocal.m4: Regenerate.
1313 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
1314 GLIBCPP_ENABLE_PCH, default to yes.
1315 * configure: Regenerate.
1316 * docs/html/configopts.html: Add --enable-pch.
1318 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
1320 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
1321 (libstdc++-v3-init): Also set LD_RUN_PATH.
1323 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1325 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
1326 from here to filebuf and stringbuf.
1327 (~basic_streambuf()): Don't set _M_mode.
1328 (basic_streambuf()): Don't set _M_mode.
1329 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
1330 (~basic_filebuf()): Clean up.
1331 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
1332 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
1333 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
1334 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
1335 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
1336 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
1337 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
1339 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1341 * include/std/std_fstream.h (_M_underflow): Remove.
1342 (uflow): Remove, inherited from streambuf.
1343 (underflow): Only declare.
1344 * include/bits/fstream.tcc (_M_underflow): Rename to
1345 underflow, to which is equivalent for __bump == false,
1347 * include/std/std_sstream.h (_M_underflow): Remove.
1348 (uflow): Remove, inherited from streambuf.
1349 (underflow): Only declare.
1350 * include/bits/sstream.tcc (_M_underflow): Rename to
1351 underflow, to which is equivalent for __bump == false,
1354 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1356 * include/bits/stl_algo.h: Fully qualify standard functions
1357 with std::, thus avoiding Koenig lookup.
1359 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1361 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
1362 Improve type correctness-wise.
1363 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
1365 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
1367 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
1370 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1372 * include/std/std_streambuf.h (uflow): According to
1373 27.5.2.4.3,p16, don't check gptr() < egptr().
1375 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
1378 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
1379 (seekpos): Likewise.
1380 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
1382 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
1385 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
1387 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
1388 output name to libstdc++-v3-performance.sum.
1389 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
1390 * testsuite/Makefile.in: Regenerate.
1392 2003-06-27 Matthias Klose <doko@debian.org>
1394 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
1395 output of abi-check in libstdc++-v3-abi.sum.
1396 * testsuite/Makefile.in: Regenerate.
1398 2003-06-27 Krister Walfridsson <cato@df.lth.se>
1400 * config/os/bsd/netbsd/ctype_noninline.h
1401 (_C_ctype_): Declare.
1402 (ctype<char>::classic_table): Return _C_ctype_ + 1.
1403 (ctype<char>::ctype): Use classic_table.
1405 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
1406 Nathan C. Myers <ncm-nospam@cantrip.org>
1409 * include/bits/fstream.tcc (_M_underflow): Properly estimate
1410 the worst-case number of external bytes for a given get area.
1411 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
1413 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
1414 Petur Runolfsson <peturr02@ru.is>
1417 * include/bits/fstream.tcc (overflow): Properly estimate the
1418 worst-case number of external bytes for a given put area
1419 (by using codecvt::max_length()).
1420 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
1421 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
1422 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
1423 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
1425 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1427 * config/linker-map.gnu: Remove ; after __numpunct_cache.
1429 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1431 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
1432 to the imbued locale.
1433 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
1435 (num_put::_M_convert_float): Use.
1437 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1438 Jerry Quinn <jlquinn@optonline.net>
1440 * config/linker-map.gnu: Add __numpunct_cache.
1441 * config/locale/gnu/numeric_members.cc
1442 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
1443 all elements for "C" locale.
1444 (numpunct::~numpunct): Delete _M_data.
1445 * config/locale/generic/numeric_members.cc: Same.
1446 * include/bits/basic_ios.tcc
1447 (basic_ios::init): Remove __locale_cache bits.
1448 (basic_ios::_M_cache_locale): Same.
1449 * include/bits/ios_base.h: Same. Tweaks.
1450 * include/bits/locale_classes.h: Tweaks. Reorder classes.
1451 (__use_cache): Make friends with _Impl, locale.
1452 (_Impl::_M_caches): Add.
1453 (_Impl::_M_install_cache): Add.
1454 * include/bits/locale_facets.h (__numpunct_cache): New.
1455 (numpunct): Encapsulate data members in __numpunct_cache member,
1456 _M_data. Adjust virtuals.
1457 (numpunct::numpunct): New ctor for the same.
1458 (__locale_cache_base): Remove.
1459 (__locale_cache): Remove.
1460 * include/bits/locale_facets.tcc (__use_cache): New function,
1462 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
1463 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
1464 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
1465 * src/locale-inst.cc: Same. Add __numpunct_cache.
1466 * src/locale.cc: Tweak inlines.
1467 (__use_cache): Define specializations.
1468 * src/localename.cc: Use global bits.
1469 (_Impl::~Impl): Deal with __numpunct_cache destruction.
1470 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
1471 (_Impl::_M_init_facet): Take into account __numpunct_cache.
1472 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
1473 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1475 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
1476 Paolo Carlini <pcarlini@unitus.it>
1478 * testsuite/performance/filebuf_copy.cc: New, testing char
1481 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
1482 Nathan C. Myers <ncm-nospam@cantrip.org>
1484 * include/bits/fstream.tcc (_M_underflow): When the actual
1485 end of file is reached, set 'uncommitted' mode to allow a
1486 next write without an intervening seek (see C++98 27.8.1.1,2
1488 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
1490 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
1492 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1493 sputc): Move inline, from here...
1494 * include/std/std_streambuf.h: ... to here.
1496 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
1497 sputbackc, sungetc, sputc): Use __builtin_expect.
1499 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
1501 * docs/doxygen/mainpage.html: Use a useful title.
1503 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1505 * docs/html/documentation.html: Remove assignment info.
1506 * docs/html/17_intro/contribute.html: Edits.
1507 * docs/html/17_intro/libstdc++-assign.tx: Remove.
1509 * docs/html/test.html: Update.
1513 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1514 Ulrich Drepper <drepper@redhat.com>
1516 * testsuite/testsuite_performance.h: Tweak mallinfo.
1518 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
1519 Nathan C. Myers <ncm-nospam@cantrip.org>
1521 * include/std/std_fstream.h (_M_filepos): Remove.
1522 (_M_reading, _M_writing): New, encode the various I/O modes:
1523 'read', 'write' and 'uncommitted'.
1524 (sync): If there is something to flush, do it, then go to
1526 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
1527 with three different cases: __off > 0 (upon underflow),
1528 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
1530 (_M_underflow): Don't call overflow, set _M_reading to true
1532 (pbackfail): Set _M_reading to true on pback creation, tweak.
1533 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
1534 set _M_writing to true on success, tweak.
1535 (seekoff): Simplify, set _M_reading, _M_writing to false, call
1536 _M_set_buffer(-1) ('uncommitted').
1537 (open, close, setbuf): Set _M_reading, _M_writing to false and
1538 call _M_set_buffer(-1), tweak.
1539 (basic_filebuf): Don't set _M_buf_unified.
1540 (_M_destroy_internal_buffer): Don't call setg and setp.
1541 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
1542 _M_writing and _M_set_buffer(-1).
1543 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
1544 _M_out_lim, _M_buf_unified): Remove.
1545 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
1546 (setp): Don't set _M_out_lim.
1547 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
1548 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
1549 upon open the mode is 'uncommitted' and therefore the put area
1551 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
1552 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
1553 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
1554 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
1555 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
1556 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
1557 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1558 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
1559 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
1560 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
1561 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
1562 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
1563 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
1564 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
1565 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
1566 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
1567 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
1568 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
1569 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
1570 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
1572 * include/bits/fstream.tcc (showmanyc): Use only the
1573 documented derivation interface to basic_streambuf (gptr(),
1574 setg(), etc.) to work right with user specializations.
1575 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1576 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
1577 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
1579 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
1582 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
1584 * configure.host (freebsd*): Set abi_baseline_pair.
1585 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
1586 (at or near first release) to 3.3.
1587 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
1588 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
1589 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
1591 * include/ext/mt_allocator.h: Portability.
1592 * testsuite/testsuite_performance.h: Likewise.
1594 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
1596 * docs/html/17_intro/libstdc++-assign.txt: Update address.
1598 * testsuite/performance/ifstream_getline.cc: Fix.
1600 2003-06-23 Doug Gregor <dgregor@apple.com>
1602 * include/bits/boost_concept_check.h: Don't use _D or _R for type
1605 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
1606 Nathan C. Myers <ncm-nospam@cantrip.org>
1608 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
1609 is now used only for filebuf, when _M_buf_unified is true.
1610 epgtr() plays the role of _M_out_lim but it's only updated
1611 upon overflow, underflow, uflow, seekoff/pos.
1612 * include/bits/sstream.tcc (_M_underflow): New, implements
1613 stringbuf::underflow and uflow.
1614 (seekoff, seekpos): Tweak, use _M_update_egptr.
1615 * include/std/std_sstream.h (str): Rewrote, deal correctly
1616 with the new logic, in particular, when pptr() > egptr().
1617 (_M_sync): When __testout && !__testin set all the get area
1618 pointers to the current string end.
1619 (_M_update_egptr): New, internal function updating egptr()
1620 to the actual string end.
1621 (_M_underflow): New, declare.
1622 (underflow): Dispatch to _M_underflow(false).
1623 (uflow): Dispatch to _M_underflow(true).
1625 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
1626 seekpos): Use only the documented derivation interface to
1627 basic_streambuf (gptr(), setg(), etc.) to work right with
1628 user specializations.
1629 * include/std/std_sstream.h (str, _M_sync): Likewise.
1631 2003-06-20 Doug Gregor <dgregor@apple.com>
1633 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
1634 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
1635 dereference end iterator.
1636 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
1637 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
1638 index equal to the length of a string.
1639 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
1640 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
1641 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
1642 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
1643 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
1644 * testsuite/23_containers/list_modifiers.cc: Don't dereference
1645 singular reverse iterator.
1646 * testsuite/23_containers/vector_bool.cc: Don't increment singular
1648 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
1650 2003-06-20 Doug Gregor <dgregor@apple.com>
1652 * include/bits/basic_string.h (basic_string::replace): Dispatch
1653 _InputIterator version based on _Is_integer.
1654 * include/bits/basic_string.tcc (basic_string::replace):
1655 Renamed replace(iterator, iterator, size_type, _CharT) to
1657 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
1658 Test basic_string::assign(_InputIterator, _InputIterator),
1659 which calls basic_string::replace(iterator, iterator,
1660 _Input_iterator, _InputIterator).
1662 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
1664 * testsuite/testsuite_performance.h (resource_counter): Don't use
1665 mallinfo at the moment.
1667 2003-06-20 Matthias Klose <doko@debian.org>
1669 * configure.host: Set try_cpu to target_cpu for existing
1672 2003-06-19 Andreas Jaeger <aj@suse.de>
1674 * testsuite/Makefile.am (extract_symvers): Revert accidental
1676 * testsuite/Makefile.in: Regenerate.
1678 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
1679 * configure: Regenerated.
1681 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
1683 * include/std/std_sstream.h (_M_sync): Make non virtual.
1685 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
1687 * testsuite/testsuite_performance.h (time_counter): New.
1688 (resource_counter): New.
1689 (report_performance): New.
1690 (start_counters): New.
1691 (stop_counters): New.
1692 (clear_counters): New.
1693 * testsuite/performance/allocator.cc: Instrument.
1694 * testsuite/performance/cout_insert_int.cc: Same.
1695 * testsuite/performance/complex_norm.cc: Same.
1696 * testsuite/performance/filebuf_sputc.cc: New.
1697 * testsuite/performance/fstream_seek_write.cc: Same.
1698 * testsuite/performance/ifstream_getline.cc: Same.
1699 * testsuite/performance/map_create_fill.cc: Same.
1700 * testsuite/performance/ofstream_insert_float.cc: Same.
1701 * testsuite/performance/ofstream_insert_int.cc: Same.
1702 * testsuite/performance/string_append.cc: Convert.
1703 * scripts/check_performance: New.
1704 * testsuite/Makefile.am (check-performance): New.
1707 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
1708 Benjamin Kosnik <bkoz@redhat.com>
1710 * include/std/std_sstream.h (setbuf): Check __n >= 0.
1711 * include/bits/fstream.tcc (setbuf): Tweak.
1713 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
1715 * include/bits/sstream.tcc (seekoff): We can't seek beyond
1716 _M_out_lim, therefore _M_move_out_cur boils down to simply
1717 updating _M_out_cur.
1718 (seekpos): Likewise, clean up.
1720 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
1721 Paolo Carlini <pcarlini@unitus.it>
1723 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
1724 simply equivalent to the unbuffered case (0, 0) as far as
1725 _M_buf_size is concerned.
1727 2003-06-18 Andreas Jaeger <aj@suse.de>
1729 * testsuite/Makefile.am (new-abi-baseline): Create baseline
1731 (baseline_file): Use baseline_dir.
1732 (baseline_dir): New.
1733 (mkinstalldirs): New.
1735 * acinclude.m4: Rename baseline_file to baseline_dir, strip
1736 filename from baseline_dir.
1738 * testsuite/Makefile.in: Regenerated.
1739 * Makefile.in: Regenerated.
1740 * aclocal.m4: Regenerated.
1741 * configure: Regenerated.
1743 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1745 * configure.in: Missed check_survey bit.
1746 * configure: Regenerated.
1748 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1751 * config/abi/extract_symvers: Move to...
1752 * scripts/extract_symvers: ...here.
1753 * mkcheck.in: Move to..
1754 * scripts/check_survey.in: ...here.
1755 * testsuite_flags.in: Move to..
1756 * scripts/testsuite_flags.in: ...here.
1757 * configure.in: Change check and testsuite_flags locations.
1758 * configure: Regenerate.
1759 * testsuite/Makefile.am (current_symbols.txt): Change location.
1760 * testsuite/Makefile.in: Regenerate.
1761 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1762 location of testsuite_flags.
1763 * Makefile.am (check-script): Move..
1764 (check-script-install): Move...
1765 * testsuite/Makefile.am: ... here.
1766 * testsuite/Makefile.in: Regenerate.
1767 * Makefile.in: Regenerate.
1769 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1771 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
1773 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1775 * Makefile.am (check-abi): Move...
1776 (new-abi-baseline): Move...
1777 * testsuite/Makefile.am: ...here.
1778 (new-abi-baseline): Conditionalize.
1779 (check-abi): Conditionalize.
1780 (check-abi-verbose): New.
1781 * Makefile.in: Regenerate.
1782 * testsuite/Makefile.in: Regenerate.
1783 * configure.in: Consolidate testsuite configure bits.
1784 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
1785 * configure: Regenerate.
1786 * aclocal.m4: Regenerate.
1787 * testsuite/abi_check.cc: Add --check-verbose.
1788 Only output detailed information if --check-verbose.
1790 2003-06-16 Andreas Jaeger <aj@suse.de>
1792 * testsuite/abi_check.cc: Create summary report.
1794 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
1796 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
1797 for systems with BUFSIZ != 8192.
1798 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1799 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
1802 2003-06-16 Andreas Jaeger <aj@suse.de>
1804 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
1805 check-abi multilib aware.
1806 * aclocal.m4: Regenerate.
1807 * configure: Regenerate.
1809 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1810 Andreas Jaeger <aj@suse.de>
1812 * configure.host: Set x86_64 abi_baseline pair correctly.
1814 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
1816 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
1817 fix for missing seeks between gets and puts into...
1818 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
1819 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
1820 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
1821 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
1822 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
1823 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
1825 2003-06-15 Richard Henderson <rth@redhat.com>
1827 * config/linker-map.gnu: Export virtual function thunks for
1830 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
1832 * config/abi/i686-pc-linux-gnu: To..
1833 * config/abi/i486-linux-gnu: ...this.
1834 * config/abi/alphaev67-unknown-linux-gnu: To..
1835 * config/abi/alpha-linux-gnu: ...this.
1836 * config/abi/ia64-unknown-linux-gnu: To...
1837 * config/abi/ia64-linux-gnu: ...this.
1838 * config/abi/x86_64-unknown-linux-gnu: To...
1839 * config/abi/x86_64-linux-gnu: ...this.
1840 * config/abi/i386-unknown-freebsd4: To...
1841 * config/abi/i386-freebsd4: ...this.
1842 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
1844 * configure.host: abi_baseline_triplet to abi_baseline_pair.
1845 Simplify cpu bits so that abi_baseline_pair can use the same
1847 * acinclude.m4: Same.
1848 * aclocal.m4: Regenerate.
1849 * configure.in: Can't get enable_abi_check to yes unless native.
1850 * configure: Regenerate.
1852 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
1854 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
1855 fix for missing seeks between gets and puts into...
1856 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
1857 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
1858 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
1859 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
1860 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
1861 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
1862 for missing seeks between gets and puts.
1863 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
1864 * testsuite/data/seekoff-1.tst: New.
1865 * testsuite/data/seekoff-2.tst: New.
1866 * testsuite/data/seekpos-1.tst: New.
1867 * testsuite/data/seekpos-2.tst: New.
1869 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
1871 Avoid multi-processor bus contention on increment/decrement-and-
1872 test of the reference count in the empty-string object, by comparing
1873 addresses first, and never touching the reference count of the empty-
1875 * include/bits/basic_string.h:
1876 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
1878 (_Rep::_S_empty_rep()): New accessor.
1879 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
1880 a base class _Rep_base.
1881 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
1882 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
1883 since no longer must increment its refcount.
1884 * include/bits/basic_string.tcc:
1885 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
1886 return immediately. The former might be unnecessary. The latter
1887 prevents begin() and end() from cloning it unnecessarily.
1888 (_S_construct(_InIterator, _InIterator, const _Alloc&,
1889 input_iterator_tag), _S_construct(_InIterator, _InIterator,
1890 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
1891 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
1892 (_M_mutate): Check for the empty string and treat it as shared.
1893 This is necessary here because _M_mutate is sometimes called with
1894 all-zero arguments; in all other uses of _M_is_shared, the test comes
1897 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
1899 * src/allocator-inst.cc: Explicitly instantiate.
1900 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
1902 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
1904 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1906 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
1907 * aclocal.m4: Regenerate.
1908 * Makefile.am (SUBDIRS): Remove libio.
1909 * Makefile.in: Regenerate.
1910 * configure.in: Same.
1911 * configure: Regenerate.
1912 * config/io/basic_file_libio.cc: Remove.
1913 * config/io/basic_file_libio.h: Remove.
1914 * config/io/c_io_libio_codecvt.c: Remove.
1915 * config/io/c_io_libio.h: Remove.
1917 * src/Makefile.am: Same.
1918 * src/Makefile.in: Regenerate.
1919 * docs/html/configopts.html: Edits.
1920 * docs/html/explanations.html: Edits.
1922 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1924 * include/bits/stl_alloc.h (__debug_alloc): Move out.
1925 (__malloc_alloc): Same.
1926 (__pool_alloc): Same.
1927 (__new_alloc): Same.
1929 * include/bits/allocator.h: ...this.
1930 * include/bits/stl_deque.h: Modify comment.
1931 * include/bits/stl_tree.h: Modify include.
1932 * include/std/std_memory.h: Same.
1933 * include/ext/rope: Same.
1934 * include/ext/slist: Same.
1935 * include/std/std_vector.h: Same.
1936 * include/std/std_stack.h: Same.
1937 * include/std/std_queue.h: Same.
1938 * include/std/std_list.h: Same.
1939 * include/std/std_deque.h: Same.
1940 * include/backward/alloc.h: Same.
1941 * include/ext/debug_allocator.h: New.
1942 * include/ext/malloc_allocator.h: New.
1943 * include/ext/pool_allocator.h: New.
1944 * include/ext/new_allocator.h: New.
1945 * include/bits/pthread_allocimpl.h: Remove.
1946 * include/bits/stl_pthread_alloc.h: Remove.
1947 * include/Makefile.am (ext_headers): Add.
1948 * include/Makefile.in: Regenerate.
1949 * src/stl-inst.cc: Use __gnu_cxx namespace.
1950 * src/stl-inst.cc: Move to...
1951 * src/allocator-inst.cc: Here.
1952 * src/Makefile.am (sources): Update.
1953 * src/Makefile.in: Regenerate.
1954 * config/linker-map.gnu: Remove __pool_alloc bits.
1955 * testsuite/ext/headers.cc: Add.
1956 * testsuite/ext/allocators.cc: Fixup.
1958 2003-06-11 Stefan Olsson <stefan@snon.net>
1959 Ola Rönnerup <fnolis@home.se>
1961 * include/Makefile.am (ext_headers): Add.
1962 * include/Makefile.in: Regenerate.
1963 * include/ext/mt_allocator.h: New file.
1965 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1967 * include/bits/fstream.tcc (close): Clean up a bit.
1969 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
1971 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
1972 - the saved _M_in_cur, that is - cannot be null.
1973 (sync): Constify a variable.
1975 * include/std/std_streambuf.h: Tweak a comment.
1976 (in_avail): Constify a variable.
1978 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
1980 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
1981 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
1982 correctness of container::iterator typedefs. Fix whitespace.
1983 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
1985 * docs/html/documentation.html: Regenerate.
1987 * include/bits/basic_string.h, include/bits/basic_string.tcc,
1988 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
1989 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1990 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
1991 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
1992 include/bits/stl_vector.h, include/bits/vector.tcc,
1993 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
1994 Change _Iter names to _Iterator, and __pos to __position.
1996 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
1997 include/bits/stl_multiset.h, include/bits/stl_set.h:
1998 Remove emacs markers.
2000 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
2002 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
2004 * include/bits/fstream.tcc (overflow): According to
2005 27.5.2.4.5, overflow() returns not_eof(eof()).
2006 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
2007 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
2009 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
2011 * include/bits/fstream.tcc (_M_underflow): Check overflow return
2012 value; tweak slightly.
2014 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
2016 * include/bits/fstream.tcc (_M_underflow): Do not special
2017 case the unbuffered case, which really means simply a one char
2019 (basic_filebuf): Initialize _M_buf_size.
2020 (setbuf): Unbuffered means _M_buf_size == 1, since only
2021 _M_buf_size - 1 == 0 chars are going to be used for the
2022 put area and 1 for the get area.
2023 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
2024 (~basic_streambuf): Tweak.
2025 (basic_streambuf): Do not initialize _M_buf_size.
2026 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
2027 (~basic_filebuf): Tweak.
2028 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
2029 unbuffered situation (i.e., put area pointers NULL).
2030 * include/bits/streambuf.tcc (sbumpc): Clean up.
2031 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
2032 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
2033 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
2034 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
2035 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
2036 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
2037 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
2039 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
2041 * acinclude.m4: Move all AM_CONDITIONAL calls out.
2042 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
2044 * configure.in: Centralize AM_CONDITIONALs so that they are always
2045 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
2046 * aclocal.m4, configure: Regenerated.
2048 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
2050 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
2052 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
2054 * include/bits/stl_iterator.h
2055 (reverse_iterator::reverse_iterator()): Apply DR235: default
2056 constructor default-initializes data member. Instantiated on a
2057 pointer type, the member has to end up equal to zero.
2059 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
2061 * include/bits/stl_alloc.h: Cleanups.
2062 * include/ext/functional: Same.
2063 * include/ext/hash_map: Same.
2064 * include/ext/hash_set: Same.
2065 * include/ext/iterator: Same.
2066 * include/ext/memory: Same.
2067 * include/ext/numeric: Same.
2068 * include/ext/rb_tree: Same.
2069 * include/ext/ropeimpl.h: Same.
2070 * include/ext/slist: Same.
2071 * include/ext/stdio_filebuf.h: Same.
2072 * include/ext/stdio_sync_filebuf.h: Same.
2073 * include/ext/stl_rope.h: Move to...
2074 * include/ext/rope: ...here.
2075 * include/ext/stl_hash_fun.h: Move to...
2076 * include/ext/hash_fun.h: ...here.
2077 * include/ext/stl_hashtable.h: Move to...
2078 * include/ext/hashtable.h: ...here.
2079 * include/backward/hashtable.h: Reflect new names.
2080 * include/Makefile.am: Same.
2081 * include/Makefile.in: Regenerated.
2083 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
2086 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
2087 * include/bits/stl_algobase.h: Tweak.
2088 * include/std/std_fstream.h: Move _M_buf_size to...
2089 * include/std/std_streambuf.h: ...here. Modify.
2090 * include/bits/streambuf.tcc: Same.
2091 * testsuite/testsuite_hooks.h: Tweak.
2092 * testsuite/testsuite_io.h (constraint_filebuf): New.
2093 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
2094 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
2095 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
2096 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
2097 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
2098 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
2099 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
2100 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
2101 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
2102 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
2103 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
2104 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
2105 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
2106 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
2107 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
2108 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
2109 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
2110 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
2111 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
2112 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
2113 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
2114 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
2115 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
2116 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
2117 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
2118 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
2119 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
2120 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
2121 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
2122 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
2123 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
2124 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
2125 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
2126 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
2127 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
2128 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
2129 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
2130 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
2131 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
2132 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
2133 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
2134 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
2135 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
2136 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
2137 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
2138 * testsuite/data/sgetc.txt: New.
2139 * testsuite/data/sgetn.txt: New.
2141 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
2144 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
2145 Deal with width() smaller than zero.
2146 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
2147 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
2148 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
2149 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
2150 operator<<(basic_ostream, const basic_string&)): Likewise.
2152 * testsuite/27_io/basic_istream/extractors_character/char/
2153 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2154 * testsuite/27_io/basic_ostream/inserters_character/char/
2155 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2156 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
2157 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
2159 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2161 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
2162 .gch compilation works.
2163 * aclocal.m4, configure: Regenerate.
2164 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
2165 initialize PCHFLAGS.
2167 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
2169 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
2170 erase(iterator), erase(iterator, iterator), c_str,
2171 compare(const basic_string&)): Constify various variables.
2172 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
2173 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
2174 _S_create, resize, _M_replace, _M_replace_safe,
2175 append(const basic_string&), append(const basic_string&, size_type,
2176 size_type), append(const _CharT*, size_type), append(size_type,
2177 _CharT), operator+(const _CharT*, const basic_string&),
2178 operator+(_CharT, const basic_string&), replace(iterator, iterator,
2179 size_type, _CharT), find(const _CharT*, size_type, size_type),
2180 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
2181 rfind(_CharT, size_type), compare(size_type, size_type,
2182 const basic_string&), compare(size_type, size_type,
2183 const basic_string&, size_type, size_type), compare(const _CharT*),
2184 compare(size_type, size_type, const _CharT*), compare(size_type,
2185 size_type, const _CharT*, size_type)): Likewise.
2187 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
2189 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
2190 'if' branch less obscure.
2192 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
2195 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
2197 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
2198 (__atomic_add): likewise.
2200 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2202 * include/bits/sstream.tcc (pbackfail): Minor clean up and
2203 reformatting, consistent with basic_filebuf::pbackfail.
2205 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
2208 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
2209 __attribute__ ((__unused__)).
2210 * config/os/aix/atomicity.h: Likewise.
2212 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2215 * include/bits/fstream.tcc (pbackfail): If the pback buffer
2216 is already active don't try to store in it a second char.
2217 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
2219 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
2221 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2223 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
2226 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2228 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
2229 instead of unnecessarily taking the address of _M_pback.
2230 (xsgetn): Simplify slightly for a single char pback buffer.
2232 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2234 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
2235 variables and two 'if', clean up.
2237 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2239 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
2240 not _M_out_end, since the former actually points to the string
2241 end (vs buffer end).
2242 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
2244 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
2246 * docs/doxygen/filter: New file.
2247 * docs/doxygen/filter.sed: New file.
2248 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
2249 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
2250 * docs/html/documentation.html: Fix links to doxygen pages.
2252 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
2254 * include/bits/fstream.tcc (_M_convert_to_external): Don't
2255 check for __ilen > 0.
2257 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
2260 * include/bits/stl_iterator.h (class __normal_iterator):
2261 Don't inherit from iterator, add missing typedefs.
2263 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
2265 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
2266 * testsuite/24_iterators/reverse_iterator/1.cc: New.
2267 * testsuite/24_iterators/reverse_iterator/2.cc: New.
2268 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
2271 2003-05-27 Steve Ellcey <sje@cup.hp.com>
2273 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
2275 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
2276 _LIBUNWIND_STD_ABI is set.
2278 2003-05-26 Brendan Kehoe <brendan@zen.org>
2280 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
2281 make sure the number of digits required after the decimal-point
2282 (if any) is exactly the value returned by frac_digits().
2283 * testsuite/22_locale/money_get/get/char/9.cc: New.
2284 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
2286 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
2288 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
2291 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
2294 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
2295 (_M_pback): No array necessary.
2296 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
2297 unbuffered case, coalesec into ...
2298 (basic_filebuf::overflow): ...this.
2299 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
2300 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
2302 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
2304 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
2305 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
2306 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
2307 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
2308 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
2309 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
2310 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
2311 libsupc++/eh_unex_handler.cc, libsupc++/exception,
2312 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
2313 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
2314 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
2315 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
2316 Replace "GNU CC" with "GCC".
2318 * include/backward/new.h: Replace "GNU CC" with "GCC".
2320 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
2323 * configure.in: Switch target to host, don't assume newlib.
2324 (target_alias): Remove.
2325 * configure: Regenerate.
2326 * acinclude.m4: Same.
2327 * aclocal.m4: Regenerate.
2328 * configure.target: Same. Rename to...
2329 * configure.host: This.
2331 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
2333 * include/std/std_fstream.h (_S_pback_size): Remove definition.
2334 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
2336 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
2337 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
2338 of _S_pback_size for systems with no COMDAT or weak support.
2339 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
2340 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
2341 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
2342 * testsuite/27_io/basic_fstream/3.cc: Likewise.
2343 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2344 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
2345 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
2346 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
2347 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
2349 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
2351 * include/bits/fstream.tcc (_M_underflow): Simplify:
2352 !__testout implies _M_filepos == _M_in_end, therefore
2353 the first _M_file.seekoff call is never issued.
2355 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
2357 * configure.in: Sort cross table.
2358 * configure: Regenerate.
2360 2003-05-22 Brad Spencer <spencer@infointeractive.com>
2363 * configure.in: Add Solaris cross bits.
2365 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2367 * libstdc++-v3/config/os/mingw32/os_defines.h
2368 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
2369 (NOMINMAX): Define. Update copyright year.
2371 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
2373 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
2375 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
2377 * docs/html/faq/index.html: Fix typo.
2378 * docs/html/faq/index.txt: Regenerate.
2380 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
2382 * docs/html/test.html: Fix markup.
2384 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2386 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
2388 Update copyright year.
2390 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
2392 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
2394 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
2396 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
2397 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
2399 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2401 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
2402 Cast via void* to avoid -Wcast-align warnings.
2403 (__default_alloc_template::_S_refill): Likewise.
2405 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
2407 * testsuite/README: Move to...
2408 * docs/html/test.html: ...here. Add documentation.
2409 * docs/html/install.html: Move testing bits out..
2410 * docs/html/documentation.html: Add separate testing link.
2411 * testsuite/performance: Add.
2412 * testsuite/performance/allocator.cc: New.
2413 * testsuite/performance/complex_norm.cc: New.
2414 * testsuite/performance/cout_insert_int.cc: New.
2415 * testsuite/performance/fstream_seek_write.cc: New.
2416 * testsuite/performance/ifstream_getline.cc: New.
2417 * testsuite/performance/map_create_fill.cc: New.
2418 * testsuite/performance/ofstream_insert_float.cc: New.
2419 * testsuite/performance/ofstream_insert_int.cc: New.
2420 * testsuite/performance/string_append.cc: New.
2421 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
2424 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
2427 * include/std/std_complex.h (pow): Tidy.
2429 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
2431 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
2432 that upon filebuf::close() 27.8.1.1,3 is enforced.
2434 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
2436 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
2438 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
2439 Nathan Myers <ncm@cantrip.org>
2441 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
2442 _M_convert_to_external only once (_M_buf_size is now the size of
2443 the put area + 1 for the overflow char of a full area); call
2444 _M_set_buffer instead of _M_set_indeterminate.
2445 (setbuf): Don't accept a buffer smaller than 2 chars.
2446 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
2447 instead of _M_set_determinate.
2448 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
2449 (seekoff): Likewise.
2450 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
2451 std::ios_base::openmode, bool, size_t),
2452 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
2454 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
2455 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
2457 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
2458 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
2459 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
2460 the put area is now BUFSIZ - 1.
2461 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
2462 that now the smallest _M_buf_size is 2 (still fails, for the same
2465 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
2467 * testsuite/thread/pthread4.cc: Tweak test.
2469 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
2471 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
2472 excess errors dg marker, use dg-errors instead.
2473 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
2474 * testsuite/20_util/auto_ptr_neg.cc: Same.
2476 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2478 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
2480 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
2481 Initialize _M_codecvt.
2482 (basic_filebuf::imbue): Same.
2483 (basic_filebuf::showmanyc): Use it.
2484 (basic_filebuf::underflow): Use it.
2485 (basic_filebuf::_M_convert_to_external): Use it.
2486 (basic_filebuf::seekoff): Use it.
2487 (basic_filebuf::imbue): Use it, tweaks.
2488 * include/bits/localefwd.h (__check_facet): New.
2489 * include/bits/locale_classes.h: Tweaks.
2490 * include/bits/locale_facets.tcc: Tweaks.
2491 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
2492 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
2493 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
2494 * include/bits/basic_ios.tcc: Same.
2495 * include/bits/istream.tcc: Same.
2496 * include/bits/ostream.tcc: Same.
2497 * include/std/std_streambuf.h: Same.
2498 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
2499 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
2500 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
2501 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
2502 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
2503 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
2505 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
2507 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
2508 unnecessary includes and unused string literals.
2509 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2510 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2511 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2512 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2514 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2516 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
2518 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
2520 * include/std/std_fstream.h (_M_convert_to_external): Change
2521 to return bool, take two less streamsize parameters.
2522 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
2523 consistently definition.
2524 (_M_overflow): Adjust call points.
2526 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2528 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
2530 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
2532 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
2533 * testsuite/Makefile.in: Regenerate.
2535 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
2537 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
2538 * testsuite/Makefile.in: Regenerate.
2540 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2543 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
2544 (acos): Handle integer argument.
2563 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
2564 (__enable_if): Likewise.
2565 * testsuite/26_numerics/cmath/overloads.C: New test.
2567 2003-05-10 Petur Runolfsson <peturr02@ru.is>
2572 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
2573 implementation, based on old wchar_t specialization, add support
2574 for codecvt::in() return value of codecvt_base::noconv, remove
2575 _M_file.sys_ungetc() call.
2576 * include/std/std_fstream.h (basic_file::underflow,
2577 basic_file::uflow, basic_file::_M_underflow): Remove
2578 specialization declarations, call _M_underflow from generic versions
2579 of underflow and uflow.
2580 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
2581 basic_file::_M_underflow): Remove specializations.
2582 * src/Makefile.am (sources): Remove fstream.cc.
2583 * src/Makefile.in: Regenerated.
2584 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
2585 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
2586 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
2587 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
2589 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
2591 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
2593 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
2595 (__basic_file::xsputn): Same.
2596 (__basic_file::seekoff): Same.
2597 (__basic_file::seekpos): Same.
2598 (__basic_file::showmanyc): Same.
2599 * config/io/basic_file_stdio.cc: Same.
2600 * include/std/std_fstream.h: Same.
2601 * include/bits/fstream.tcc: Same.
2602 * src/fstream.cc: Same.
2603 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
2605 2003-05-10 Petur Runolfsson <peturr02@ru.is>
2610 * include/ext/stdio_sync_filebuf.h: New file.
2611 (basic_stdiobuf): New.
2612 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
2613 * include/Makefile.in: Regenerate.
2614 * include/bits/ios_base.h (Init::_S_create_buffers,
2615 Init::_S_destroy_buffers): Remove declarations.
2616 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
2617 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
2618 * src/ios.cc (Init::_S_create_buffers,
2619 Init::_S_destroy_buffers): Remove.
2620 (Init::Init): Create and use syncronized buffers.
2621 (ios_base::sync_with_stdio): Destroy syncronized buffers,
2622 create and install unsyncronized buffers.
2623 * testsuite/27_io/objects/char/10.cc: New test.
2624 * testsuite/27_io/objects/char/9.cc: New test.
2625 * testsuite/27_io/objects/char/9661-1.cc: New test.
2626 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
2627 * testsuite/27_io/objects/char/9661-2_xin.in: New.
2628 * testsuite/27_io/objects/wchar_t/1.cc: New test.
2629 * testsuite/27_io/objects/wchar_t/10.cc: New test.
2630 * testsuite/27_io/objects/wchar_t/2.cc: New test.
2631 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
2632 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
2633 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
2634 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
2635 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
2636 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
2637 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
2638 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
2639 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
2640 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
2641 * testsuite/27_io/objects/wchar_t/5.cc: New test.
2642 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
2643 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
2644 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
2645 * testsuite/27_io/objects/wchar_t/6.cc: New test.
2646 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
2647 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
2648 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
2649 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
2650 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
2651 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
2652 * testsuite/27_io/objects/wchar_t/7.cc: New test.
2653 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
2654 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
2655 * testsuite/27_io/objects/wchar_t/8.cc: New test.
2656 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
2657 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
2658 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
2659 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
2660 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
2661 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
2662 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
2663 * testsuite/ext/stdiobuf_char.cc: New test.
2664 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
2666 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
2668 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
2669 unnecessary includes and unused string literals.
2670 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2672 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
2674 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
2676 2003-05-07 Richard Henderson <rth@redhat.com>
2679 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
2680 (__cxa_end_catch): Likewise.
2681 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
2682 _Unwind_Resume_or_Rethrow.
2683 * libsupc++/eh_personality.cc (empty_exception_spec): New.
2684 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
2685 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
2686 exceptions. Don't push terminate/unexpected to cxa functions.
2687 (__cxa_call_unexpected): Remove foreign exception fixmes.
2689 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
2691 * testsuite/27_io/ios_base/cons: New.
2692 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
2693 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
2695 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
2697 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
2699 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
2700 there is no buffer or __testget == !__testinit.
2703 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
2704 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
2706 * include/std/std_fstream.h (_M_destroy_pback): Don't set
2707 unnecessarily _M_pback_cur_save and _M_pback_end_save.
2709 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
2711 * include/std/std_sstream.h (_M_sync): Minor tweak.
2713 * include/bits/fstream.tcc (close): No need to call
2714 _M_destroy_pback, setting _M_pback_init to false suffices
2717 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
2719 * include/bits/stl_algo.h: Enums as _S_.
2720 * include/bits/stl_tree.h: Same.
2721 * include/bits/stl_bvector.h: Same.
2722 * include/bits/ios_base.h: Same.
2723 * include/bits/stl_alloc.h: Same.
2724 * include/ext/stl_hashtable.h: Same.
2725 * src/ios.cc: And here.
2727 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
2728 * include/bits/sstream.tcc: Same.
2730 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
2732 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
2734 * include/bits/locale_facets.h (__num_base): Remove protected.
2735 Use _S_[io]* names for enumerations.
2736 (_S_format_int): Remove.
2737 * include/bits/locale_facets.tcc: Same.
2738 * src/locale.cc: Same.
2740 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
2742 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
2744 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
2745 * docs/html/faq/index.txt: Regenerated.
2747 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
2748 Matt Kraai <kraai@alumni.cmu.edu>
2750 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
2753 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
2755 * configure.target (mips*): Use the generic atomicity.h by default.
2757 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
2758 (Inspired by an alternate patch from Danny Smith.)
2760 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
2761 (_Swap_lock_struct<>): ...and the horse it rode in on.
2762 * src/globals.cc (_Swap_lock_struct<>): Likewise.
2763 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
2764 member to support...
2765 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
2766 visibility rules related to POSIX threads.
2767 * testsuite/thread/pthread7-rope.cc: New test.
2769 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
2771 * testsuite/21_strings/basic_string/find/char/3.cc: New
2772 file, testing basic_string<char>::find_first_not_of.
2773 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
2774 Likewise for basic_string<wchar_t>.
2776 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
2778 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
2780 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
2782 * include/Makefile.am (CLEANFILES): Remove PCH files in target
2784 * include/Makefile.in: Regenerate.
2786 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
2788 * include/std/std_sstream.h (str()): Tidy.
2790 2003-05-02 Nathan Myers <ncm@cantrip.org>
2791 Paolo Carlini <pcarlini@unitus.it>
2793 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
2795 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
2797 * include/bits/basic_string.h (swap): Remove redundant template
2798 parameters from declaration of non-template member function.
2800 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
2802 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
2803 * configure.in: Move libintl.h header test...
2804 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
2805 the NLS-related test results into one symbol.
2806 * src/functexcept.cc: Use it here.
2807 * aclocal.m4, config.h.in, configure: Regenerated.
2809 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2811 * include/bits/sstream.tcc (overflow): Instead of calling
2812 str(), then _M_string.reserve, thus copying the contents
2813 of the current buffer two times, just copy the latter in
2814 a temporary, then use the 'swap trick'.
2816 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2818 * include/std/std_sstream.h (str()): Revert the best of the
2819 previous 'improvement', incorrect due to the COW nature of
2820 v3 basic_string; simplify.
2822 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2824 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
2825 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
2827 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
2829 * testsuite/abi_check.cc (check_version): Update known versions.
2830 Check added symbols for version_name != base version. Add missing
2831 symbols to incompatible list.
2833 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
2835 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
2836 * aclocal.m4: Regenerated.
2837 * configure: Regenerated.
2839 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2841 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
2842 Const-ify some variables.
2843 (basic_streambuf::xsputn): Likewise; change the type of some
2844 variables to size_t.
2845 (__copy_streambufs): Change some variables to size_t.
2847 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2849 * include/std/std_sstream.h (str()): Avoid constructing
2850 a basic_string temporary not only when it would turn out
2851 to be zero-sized but also when identical to the current
2854 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2856 * include/ext/stdio_filebuf.h
2857 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
2858 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
2859 Shorten a bit (-10 lines) by factoring out some code.
2861 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
2863 * acinclude.m4: Add bit missing from previous patch.
2864 * aclocal.m4, configure: Regenerated.
2866 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
2868 * docs/doxygen/mainpage.html: Bring up to date.
2869 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
2871 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
2872 breaks everything. Don't scan them.
2873 * docs/html/documentation.html: Point to "Write after approval"
2876 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
2878 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
2879 of libc if message translations are being used. Fix info text in
2880 xieee_1003.1-2001 case.
2881 * aclocal.m4, configure: Regenerate.
2883 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
2884 Loren J. Rittle <ljrittle@acm.org>
2885 Martin v. Loewis <martin@v.loewis.de>
2887 * config/cpu/i386/atomicity.h: New file.
2889 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
2891 * include/bits/fstream.tcc (open): Change to single return.
2893 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
2895 * include/std/std_sstream.h (underflow): Change to single return.
2897 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2899 * include/std/std_streambuf.h (_M_buf): is currently
2900 used only for basic_filebuf, therefore move it there.
2901 (basic_streambuf(), ~basic_streambuf()): Adjust.
2902 * include/std/std_fstream.h (_M_buf): Moved here.
2903 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
2904 is actually redundant for basic_stringbuf.
2905 (_M_really_sync): Likewise.
2906 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2907 * include/bits/sstream.tcc (seekoff): Adjust.
2909 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2911 * src/localename.cc: Standardize exception strings.
2912 * src/locale.cc: Same.
2914 * include/bits/basic_string.tcc: Same.
2915 * include/bits/basic_ios.tcc: Same.
2916 * include/std/std_bitset.h: Same.
2917 * include/ext/ropeimpl.h: Same.
2918 * include/bits/stl_vector.h: Same.
2919 * include/bits/stl_deque.h: Same.
2920 * include/bits/stl_bvector.h: Same.
2921 * config/locale/generic/c_locale.cc: Same.
2922 * config/locale/gnu/c_locale.cc: Same.
2923 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
2925 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
2927 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2929 * include/std/std_streambuf.h (_M_buf_size): is currently
2930 used only for basic_filebuf, therefore move it there.
2931 (basic_streambuf(), ~basic_streambuf()): Adjust.
2932 * include/std/std_fstream.h (_M_buf_size): Moved here.
2933 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2935 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2937 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
2938 _M_buf_size (synced input is now correctly dealt with
2939 elsewhere); when the output buffer is full don't fall back
2940 to a snextc-sputc loop, call overflow instead.
2942 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2944 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
2945 the innermost 'if' by factoring out some code.
2947 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
2949 * configure.in: Test for libintl.h.
2950 * include/bits/c++config: Define __N for everybody.
2951 * include/bits/basic_string.h, include/bits/stl_bvector.h,
2952 include/bits/stl_deque.h, include/bits/stl_vector.h,
2953 include/std/std_bitset.h: Wrap all __throw* text with __N.
2954 * po/Makefile.am (pot): New rule, mostly working.
2955 * src/functexcept.cc: Call gettext on all __throw* arguments when
2956 -fexceptions is in effect.
2957 * po/Makefile.in, config.h.in, configure: Regenerate.
2959 2003-04-28 Petur Runolfsson <peturr02@ru.is>
2962 * include/bits/ios_base.h (Init::_S_ios_create,
2963 Init::_S_ios_destroy): Remove declarations.
2964 (Init::_S_create_buffers,
2965 Init::_S_destroy_buffers): Declare
2966 * src/ios.cc (Init::_S_ios_create): Remove
2967 (Init::_S_create_buffers): Create buffers and add to streams.
2968 (Init::_S_ios_destroy): Rename to...
2969 (Init::_S_destroy_buffers): this.
2970 (Init::Init): Only construct streams once.
2971 (Init::~Init): Flush streams, don't destroy them.
2972 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
2973 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
2974 * testsuite/27_io/objects/char/5.cc: New test.
2975 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
2976 * testsuite/27_io/objects/char/6.cc: New test.
2977 * testsuite/27_io/objects/char/7.cc: New test.
2979 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2981 * testsuite/27_io/objects/char/8.cc: New test.
2983 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2985 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
2986 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
2988 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
2990 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
2991 _M_destroy_pback. _M_pback_create to
2992 _M_create_pback. _M_underflow_common to
2993 _M_underflow. _M_really_overflow to _M_overflow.
2994 * include/bits/fstream.tcc: Same.
2995 * src/fstream.cc: Same.
2996 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
2997 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
2998 * include/bits/streambuf.tcc: Same.
2999 * include/bits/fstream.tcc: Same.
3000 * include/bits/sstream.tcc: Same.
3002 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
3004 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
3005 from fixed size array.
3006 (locale): Change _S_categories as well.
3008 * include/bits/locale_facets.tcc: Tweak.
3009 * config/locale/gnu/c_locale.cc: Assign _S_categories.
3010 * config/locale/generic/c_locale.cc: Same.
3011 * src/locale.cc: Tweak.
3012 * src/globals.cc: Change facet_name to name_vec, add names_c.
3013 * src/localename.cc: Use them.
3014 (locale::_Impl::~_Impl): Destroy _M_names.
3015 (locale::_Impl::_Impl): Create _M_names.
3017 2003-04-27 Andreas Schwab <schwab@suse.de>
3019 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3020 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
3022 2003-04-27 Nathan Myers <ncm@cantrip.org>
3024 Move some basic_string members out of line because
3025 they are too big to reasonably be inline.
3026 * include/bits/basic_string.h
3027 (assign(const basic_string&, size_type, size_type),
3028 assign(const _CharT*, size_type),
3029 insert(size_type, const basic_string&, size_type, size_type),
3030 insert(size_type, const _CharT*, size_type),
3031 replace(size_type, size_type, const _CharT*, size_type)):
3032 Move from here to...
3033 * include/bits/basic_string.tcc: ...here.
3035 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
3037 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
3038 the innermost 'if' by factoring out some code.
3040 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
3042 * include/bits/streambuf.tcc (__copy_streambufs): Don't
3043 use in_avail(), simplify.
3045 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
3047 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
3048 in basic_stringbuf it's unused.
3050 * include/std/std_sstream.h (underflow): consistently use
3051 _M_in_cur, not gptr().
3053 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
3054 Phil Edwards <pme@gcc.gnu.org>
3056 * testsuite_flags.in: Guard against the possibility
3057 of having "xgcc" as a part of a folder name in the
3058 path to the GCC build folder.
3059 * testsuite/Makefile.am: Likewise.
3060 * testsuite/Makefile.in: Regenerated.
3062 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
3065 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
3066 exception specifications.
3067 (basic_filebuf::close): Same.
3068 (basic_filebuf::_M_pback_destroy): Same.
3069 (basic_filebuf::_M_destroy_internal_buffer): Same.
3070 (basic_filebuf): Remove __res_type typedef.
3071 * src/fstream.cc: Same.
3072 * include/bits/fstream.tcc
3073 (basic_filebuf::_M_convert_to_external): Simplify.
3074 (basic_filebuf::seekoff): Use has_facet before use_facet.
3075 (basic_filebuf::close): Add exception specification of throw().
3076 * testsuite/27_io/basic_filebuf/cons: New.
3077 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
3078 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
3079 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
3080 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
3082 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
3084 * include/bits/locale_classes.h
3085 (locale::_S_extra_categories_size): Remove.
3086 * src/locale.cc: Remove _S_extra_categories_size.
3087 * src/localename.cc: Same.
3088 * config/locale/gnu/c_locale.cc: Same.
3089 * config/locale/generic/c_locale.cc: Same.
3091 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
3093 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
3095 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
3097 * docs/html/17_intro/howto.html: Update some links.
3098 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
3099 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
3100 * docs/html/ext/howto.html: Link to demangler notes and API.
3101 * docs/html/faq/index.html: Remove trailing whitespace.
3102 (1.4, 2.4, 3.8, 4.1): Bring up to date.
3103 (5.6): Change to a bulleted list.
3105 * docs/html/faq/index.txt, docs/html/documentation.html,
3106 docs/html/17_intro/porting.html: Regenerate.
3108 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
3110 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
3111 belongs to basic_filebuf.
3112 * testsuite/27_io/basic_fstream/3.cc: Likewise.
3113 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3114 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
3115 instantiation (now belongs to basic_filebuf).
3116 * testsuite/27_io/basic_iostream/3.cc: Likewise.
3117 * testsuite/27_io/basic_istream/3.cc: Likewise.
3118 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3119 _S_pback_size now belongs to basic_filebuf.
3120 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
3121 instantiation (now belongs to basic_filebuf).
3122 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
3123 belongs to basic_filebuf.
3124 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
3125 instantiation (now belongs to basic_filebuf).
3126 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
3127 _S_pback_size now belongs to basic_filebuf.
3128 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
3129 instantiation (now belongs to basic_filebuf).
3130 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
3132 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
3133 instantiation (now belongs to basic_filebuf).
3134 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
3136 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
3138 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
3139 * configure: Regenerated.
3141 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
3143 * config/locale/generic/c_locale.h (__convert_from_v): Use
3146 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
3148 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
3149 implementation only.
3150 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
3151 Comment and change to comply with DR 60 and the effect on gcount().
3152 * include/std/std_istream.h: Update comments.
3153 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
3154 comments about reasons for tests. Test sync() against gcount().
3155 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
3156 for effect on gcount().
3157 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
3158 for effect on gcount().
3160 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
3162 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
3165 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
3167 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
3168 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3169 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
3170 (basic_streambuf::basic_streambuf()): Adjust.
3171 * include/std/std_fstream.h (_S_pback_size, _M_pback,
3172 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3173 _M_pback_create(), _M_pback_destroy()): Moved here
3174 from basic_streambuf.
3175 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
3177 (basic_filebuf::_S_pback_size): Add declaration.
3178 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
3181 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3183 Consistently use _M_in_beg instead of eback(), _M_in_cur
3184 instead of gptr(), and so on.
3185 * include/bits/fstream.tcc (pbackfail, imbue): Here.
3186 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
3187 * include/bits/streambuf.tcc (sbumpc, sputbackc,
3188 __copy_streambufs): Ditto.
3189 * include/std/std_streambuf.h (sgetc): Ditto.
3191 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3193 * include/bits/sstream.tcc (pbackfail, overflow):
3196 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3198 * include/std/std_streambuf.h (uflow()): It's used only by
3199 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
3200 therefore do not consider the _M_buf_unified == true case.
3202 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
3204 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
3206 * docs/html/ext/howto.html ('LWG Issues'):
3207 Add issues 19, 90, 171, 231, 271.
3209 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
3211 * include/bits/sstream.tcc (pbackfail): Remove redundant
3212 NULL pointer check from test involving _M_in_*.
3213 (overflow, seekoff, seekpos): Const qualify bool variables.
3214 * include/std/std_sstream.h (underflow): Remove redundant
3215 NULL pointer check from test involving _M_in_*.
3216 (_M_really_sync): Const qualify bool variables.
3217 * src/fstream.cc (_M_underflow_common): Remove redundant
3218 NULL pointer check from test involving _M_in_*, const qualify
3221 * include/std/std_streambuf.h (sgetc): Remove redundant
3224 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
3226 According to 5.9 para 2 (second bullet) for pointers p, q
3227 pointing to the same type, with p == 0 and q == 0, (p < q)
3229 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
3230 seekoff): Remove redundant NULL pointer checks from tests
3231 involving _M_out_* and _M_in_*, const qualify bool variables.
3232 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
3233 qualify bool variables.
3234 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
3235 Remove redundant NULL pointer checks from tests involving
3236 _M_out_* and _M_in_*, const qualify bool variables.
3237 * include/std/std_fstream.h (sync): Likewise.
3238 (_M_is_indeterminate): Const qualify bool variables.
3239 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
3240 NULL pointer checks from tests involving _M_out_* and _M_in_*,
3241 const qualify bool variables.
3242 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
3245 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
3247 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
3248 C99 FP macros, if actually captured.
3250 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
3251 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3252 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3253 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3254 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
3256 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3257 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3258 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3259 * include/c_std/std_cstdlib.h: Use new macros.
3260 * include/c_std/std_cstdio.h: Use new macros.
3261 * include/c_std/std_cwchar.h: Use new macros.
3263 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
3266 * include/bits/ostream.tcc: Catch all exceptions for formatted
3267 output, instead of std::exception and derivatives.
3268 * include/bits/istream.tcc: Same.
3269 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
3270 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
3271 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
3272 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
3273 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3274 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
3277 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
3279 * include/bits/c++config: Minor cosmetic tweaks.
3281 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
3283 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
3284 * include/Makefile.am (pch_input): Find in ${target_builddir}.
3285 (pch_output): Rename to...
3286 (pch_output_builddir): ..this. Find in ${target_builddir}.
3287 (pch_source): Tweak.
3288 (pch_build): Key off a built file.
3289 (pch_output rule): Rename to...
3290 (pch_input rule): ...this. Produce ${pch_output_builddir}
3291 instead of ${pch_output}.
3292 (install-pch rule): Install ${pch_output_builddir}.
3293 * include/Makefile.in: Regenerated.
3295 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
3297 * include/std/std_streambuf.h (setp): _M_out_lim, being
3298 the end limit of used put area, is set equal to _M_out_beg.
3300 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
3302 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
3303 * aclocal.m4: Regenerated.
3304 * configure.in: Remove old demangler bits.
3306 * configure: Regenerate.
3307 * config.h.in: Regenerate.
3308 * include/Makefile.am (allstamps): Now allstamped.
3309 (allcreated): Define this.
3310 (all-local): Use 'em.
3311 Conditionally define pch_build, pch_install based on
3313 (${pch_output}): New rule.
3314 (install-pch): New rule.
3315 (install-headers): New rule.
3316 (install-data-local): Install headers and conditionally pch.
3317 * include/Makefile.in: Regenerate.
3318 * testsuite_flags.in (--build-cxx): Use pch file.
3320 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
3322 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
3324 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
3325 Paolo Carlini <pcarlini at unitus dot it>
3328 * docs/html/27_io/howto.html
3329 ('The buffering is screwing up my program!'): Explain that
3330 opening counts as an I/O operation.
3332 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
3334 * testsuite/thread/pthread1.cc: Enable for darwin test.
3335 * testsuite/thread/pthread2.cc: Same.
3336 * testsuite/thread/pthread3.cc: Same.
3337 * testsuite/thread/pthread4.cc: Same.
3338 * testsuite/thread/pthread5.cc: Same.
3339 * testsuite/thread/pthread6.cc: Same.
3341 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
3344 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
3345 Populate it with multiple legal ways to obtain the C99 float
3346 transcendentals. Use them instead of direct global reference.
3347 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
3348 * docs/html/17_intro/porting.texi
3349 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3350 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3351 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
3352 * config/os/bsd/freebsd/os_defines.h
3353 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3354 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3355 * testsuite/26_numerics/c_math_dynamic.cc: New file.
3357 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
3358 Benjamin Kosnik <bkoz@redhat.com>
3360 * config/os/generic/ctype_inline.h: Fix.
3362 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
3364 * testsuite/testsuite_hooks.h
3365 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
3366 Change to try_named_locale.
3367 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
3369 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
3371 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3372 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3373 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
3374 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
3375 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
3376 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
3377 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
3378 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
3379 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
3380 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
3381 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
3382 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
3383 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
3384 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
3385 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
3386 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3387 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3388 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3389 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
3390 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
3391 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
3392 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
3393 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
3394 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
3395 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
3396 * testsuite/22_locale/collate/compare/char/1.cc: Same.
3397 * testsuite/22_locale/collate/compare/char/2.cc: Same.
3398 * testsuite/22_locale/collate/compare/char/3.cc: Same.
3399 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
3400 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
3401 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
3402 * testsuite/22_locale/collate/hash/char/2.cc: Same.
3403 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
3404 * testsuite/22_locale/collate/transform/char/2.cc: Same.
3405 * testsuite/22_locale/collate/transform/char/3.cc: Same.
3406 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
3407 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
3408 * testsuite/22_locale/collate_byname/1.cc: Same.
3409 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3410 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3411 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
3412 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
3413 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
3414 * testsuite/22_locale/facet/2.cc: Same.
3415 * testsuite/22_locale/locale/cons/2.cc: Same.
3416 * testsuite/22_locale/locale/cons/4.cc: Same.
3417 * testsuite/22_locale/locale/cons/5.cc: Same.
3418 * testsuite/22_locale/locale/cons/7.cc: Same.
3419 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
3420 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
3421 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
3422 * testsuite/22_locale/messages/members/char/1.cc: Same.
3423 * testsuite/22_locale/messages/members/char/2.cc: Same.
3424 * testsuite/22_locale/messages/members/char/3.cc: Same.
3425 * testsuite/22_locale/messages_byname/1.cc: Same.
3426 * testsuite/22_locale/money_get/get/char/1.cc: Same.
3427 * testsuite/22_locale/money_get/get/char/2.cc: Same.
3428 * testsuite/22_locale/money_get/get/char/3.cc: Same.
3429 * testsuite/22_locale/money_get/get/char/4.cc: Same.
3430 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
3431 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
3432 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
3433 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
3434 * testsuite/22_locale/money_put/put/char/1.cc: Same.
3435 * testsuite/22_locale/money_put/put/char/2.cc: Same.
3436 * testsuite/22_locale/money_put/put/char/3.cc: Same.
3437 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
3438 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
3439 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
3440 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
3441 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
3442 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
3443 * testsuite/22_locale/num_get/get/char/1.cc: Same.
3444 * testsuite/22_locale/num_get/get/char/2.cc: Same.
3445 * testsuite/22_locale/num_get/get/char/3.cc: Same.
3446 * testsuite/22_locale/num_get/get/char/5.cc: Same.
3447 * testsuite/22_locale/num_get/get/char/6.cc: Same.
3448 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
3449 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
3450 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
3451 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
3452 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
3453 * testsuite/22_locale/num_put/put/char/1.cc: Same.
3454 * testsuite/22_locale/num_put/put/char/2.cc: Same.
3455 * testsuite/22_locale/num_put/put/char/3.cc: Same.
3456 * testsuite/22_locale/num_put/put/char/5.cc: Same.
3457 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
3458 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
3459 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
3460 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
3461 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
3462 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
3463 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
3464 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
3465 * testsuite/22_locale/numpunct_byname/1.cc: Same.
3466 * testsuite/22_locale/numpunct_byname/2.cc: Same.
3467 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
3468 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
3469 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
3470 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
3471 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
3472 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
3473 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
3474 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
3475 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
3476 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
3477 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
3478 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
3479 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
3480 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
3481 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
3482 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
3483 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
3484 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
3485 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
3486 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
3487 * testsuite/22_locale/time_put/put/char/1.cc: Same.
3488 * testsuite/22_locale/time_put/put/char/2.cc: Same.
3489 * testsuite/22_locale/time_put/put/char/3.cc: Same.
3490 * testsuite/22_locale/time_put/put/char/4.cc: Same.
3491 * testsuite/22_locale/time_put/put/char/5.cc: Same.
3492 * testsuite/22_locale/time_put/put/char/6.cc: Same.
3493 * testsuite/22_locale/time_put/put/char/7.cc: Same.
3494 * testsuite/22_locale/time_put/put/char/8.cc: Same.
3495 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
3496 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
3497 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
3498 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
3499 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
3500 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
3501 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
3502 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
3503 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
3504 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
3505 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
3506 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
3507 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
3509 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
3511 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
3512 solaris includes, not generic.
3514 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
3516 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
3518 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
3519 * include/bits/concept_check.h: Fix multi-line comment.
3520 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
3521 when target is *-*-freebsd*.
3523 2003-04-14 Nathan Myers <ncm@cantrip.org>
3524 Paolo Carlini <pcarlini@unitus.it>
3526 PR libstdc++/9701 (in_avail())
3527 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
3528 doesn't care if there is anything in some putback cell.
3529 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
3531 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
3532 unused string literals.
3534 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
3536 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
3537 _M_out_end, _M_set_indeterminate() does it.
3539 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3541 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
3543 2003-04-12 David Edelsohn <edelsohn@gnu.org>
3545 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3546 Change basic_streambuf instantiation to "unsigned char".
3547 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3549 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
3551 Remove _M_buf_size_opt, use directly _M_buf_size instead.
3552 * include/bits/fstream.tcc
3553 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
3554 references to _M_buf_size_opt.
3555 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
3556 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
3557 __bufsize to __in_avail and __size_opt to __buf_size.
3558 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
3559 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
3560 * include/std/std_streambuf.h (~basic_streambuf(),
3561 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
3562 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
3563 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3564 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
3565 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
3566 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
3567 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
3568 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
3569 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
3570 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3571 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3572 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3573 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3575 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
3577 * include/ext/stdio_filebuf.h
3578 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
3579 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
3580 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
3581 since a stack-based buffer is used for small values of the size_t
3583 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
3584 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
3585 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
3587 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
3590 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
3591 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
3593 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3595 * testsuite/22_locale/locale/cons/3.cc: Split.
3596 * testsuite/22_locale/locale/cons/7222-c.cc: New.
3597 * testsuite/22_locale/locale/cons/7222-env.cc: New.
3598 Check before trying to create a locale from the environment.
3599 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
3600 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3603 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3605 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
3606 locale to construct this hybrid locale, not the global locale.
3608 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3610 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
3611 instantiation for AIX.
3612 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3613 * testsuite/25_algorithms/min_max.cc: Same.
3615 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3617 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
3618 twice. Always set _M_cfile to 0 when stream was open.
3620 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3622 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
3623 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
3624 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
3625 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
3626 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
3627 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
3628 ifstream_members.cc, instantiations.cc, ios.cc,
3629 ios_base_callbacks.cc, ios_base_members_static-1.tst,
3630 ios_base_members_static.cc, ios_base_storage.cc,
3631 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
3632 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
3633 iostream.cc, iostream_members.cc, istream.cc,
3634 istream_exception.cc, istream_extractor_char.cc,
3635 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
3636 istream_extractor_other-2.tst, istream_extractor_other.cc,
3637 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
3638 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
3639 istream_sentry.cc, istream_unformatted-1.tst,
3640 istream_unformatted-1.txt, istream_unformatted.cc,
3641 istringstream.cc, istringstream_members.cc,
3642 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
3643 ofstream_members.cc, ostream.cc, ostream_exception.cc,
3644 ostream_fail.cc, ostream_inserter_arith.cc,
3645 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
3646 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
3647 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
3648 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
3649 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
3650 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
3651 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
3652 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
3653 wide_stream_objects.cc, istream_extractor_arith/01.cc,
3654 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
3655 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
3656 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
3657 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
3658 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
3660 * 27_io/basic_filebuf/1.cc: New.
3661 * 27_io/basic_filebuf/2.cc: New.
3662 * 27_io/basic_filebuf/3.cc: New.
3663 * 27_io/basic_filebuf/4.cc: New.
3664 * 27_io/basic_filebuf/close/char/1.cc: New.
3665 * 27_io/basic_filebuf/close/char/2.cc: New.
3666 * 27_io/basic_filebuf/close/char/3.cc: New.
3667 * 27_io/basic_filebuf/close/char/4879.cc: New.
3668 * 27_io/basic_filebuf/close/char/9964.cc: New.
3669 * 27_io/basic_filebuf/imbue/char/1.cc: New.
3670 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
3671 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
3672 * 27_io/basic_filebuf/is_open/char/1.cc: New.
3673 * 27_io/basic_filebuf/open/char/1.cc: New.
3674 * 27_io/basic_filebuf/open/char/2.cc: New.
3675 * 27_io/basic_filebuf/open/char/3.cc: New.
3676 * 27_io/basic_filebuf/open/char/9507.cc: New.
3677 * 27_io/basic_filebuf/overflow/char/1.cc: New.
3678 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
3679 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
3680 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
3681 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
3682 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
3683 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
3684 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
3685 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
3686 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
3687 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
3688 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
3689 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
3690 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
3691 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
3692 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
3693 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
3694 * 27_io/basic_filebuf/snextc/char/1.cc: New.
3695 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
3696 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
3697 * 27_io/basic_filebuf/sputc/char/1.cc: New.
3698 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
3699 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
3700 * 27_io/basic_filebuf/sputn/char/1.cc: New.
3701 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
3702 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
3703 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
3704 * 27_io/basic_filebuf/sync/char/1057.cc: New.
3705 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
3706 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
3707 * 27_io/basic_fstream/1.cc: New.
3708 * 27_io/basic_fstream/2.cc: New.
3709 * 27_io/basic_fstream/3.cc: New.
3710 * 27_io/basic_fstream/4.cc: New.
3711 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
3712 * 27_io/basic_ifstream/1.cc: New.
3713 * 27_io/basic_ifstream/2.cc: New.
3714 * 27_io/basic_ifstream/3.cc: New.
3715 * 27_io/basic_ifstream/4.cc: New.
3716 * 27_io/basic_ifstream/cons/char/1.cc: New.
3717 * 27_io/basic_ifstream/open/char/1.cc: New.
3718 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
3719 * 27_io/basic_ios/1.cc: New.
3720 * 27_io/basic_ios/2.cc: New.
3721 * 27_io/basic_ios/3.cc: New.
3722 * 27_io/basic_ios/4.cc: New.
3723 * 27_io/basic_ios/clear/char/1.cc: New.
3724 * 27_io/basic_ios/cons/char/1.cc: New.
3725 * 27_io/basic_ios/cons/char/2.cc: New.
3726 * 27_io/basic_ios/cons/char/3.cc: New.
3727 * 27_io/basic_ios/copyfmt/char/1.cc: New.
3728 * 27_io/basic_ios/copyfmt/char/2.cc: New.
3729 * 27_io/basic_ios/exceptions/char/1.cc: New.
3730 * 27_io/basic_ios/locales/char/1.cc: New.
3731 * 27_io/basic_iostream/1.cc: New.
3732 * 27_io/basic_iostream/2.cc: New.
3733 * 27_io/basic_iostream/3.cc: New.
3734 * 27_io/basic_iostream/4.cc: New.
3735 * 27_io/basic_istream/1.cc: New.
3736 * 27_io/basic_istream/2.cc: New.
3737 * 27_io/basic_istream/3.cc: New.
3738 * 27_io/basic_istream/4.cc: New.
3739 * 27_io/basic_istream/exceptions/char/9561.cc: New.
3740 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
3741 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
3742 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
3743 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
3744 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
3745 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
3746 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
3747 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
3748 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
3749 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
3750 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
3751 * 27_io/basic_istream/extractors_character/char/1.cc: New.
3752 * 27_io/basic_istream/extractors_character/char/2.cc: New.
3753 * 27_io/basic_istream/extractors_character/char/3.cc: New.
3754 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
3755 * 27_io/basic_istream/extractors_other/char/1.cc: New.
3756 * 27_io/basic_istream/extractors_other/char/2.cc: New.
3757 * 27_io/basic_istream/extractors_other/char/3.cc: New.
3758 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
3759 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
3760 * 27_io/basic_istream/get/char/1.cc: New.
3761 * 27_io/basic_istream/get/char/2.cc: New.
3762 * 27_io/basic_istream/getline/char/1.cc: New.
3763 * 27_io/basic_istream/getline/char/2.cc: New.
3764 * 27_io/basic_istream/getline/char/3.cc: New.
3765 * 27_io/basic_istream/ignore/char/1.cc: New.
3766 * 27_io/basic_istream/ignore/char/6360.cc: New.
3767 * 27_io/basic_istream/ignore/char/7220.cc: New.
3768 * 27_io/basic_istream/peek/char/1.cc: New.
3769 * 27_io/basic_istream/peek/char/6414.cc: New.
3770 * 27_io/basic_istream/putback/char/1.cc: New.
3771 * 27_io/basic_istream/read/char/1.cc: New.
3772 * 27_io/basic_istream/read/char/2.cc: New.
3773 * 27_io/basic_istream/read/char/3.cc: New.
3774 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
3775 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
3776 * 27_io/basic_istream/readsome/char/8258.cc: New.
3777 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
3778 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
3779 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
3780 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
3781 * 27_io/basic_istream/seekg/char/fstream.cc: New.
3782 * 27_io/basic_istream/seekg/char/sstream.cc: New.
3783 * 27_io/basic_istream/sentry/char/1.cc: New.
3784 * 27_io/basic_istream/sentry/char/2.cc: New.
3785 * 27_io/basic_istream/sentry/char/3.cc: New.
3786 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
3787 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
3788 * 27_io/basic_istream/tellg/char/1.cc: New.
3789 * 27_io/basic_istream/tellg/char/8348.cc: New.
3790 * 27_io/basic_istream/tellg/char/fstream.cc: New.
3791 * 27_io/basic_istream/tellg/char/sstream.cc: New.
3792 * 27_io/basic_istream/ws/char/1.cc: New.
3793 * 27_io/basic_istringstream/1.cc: New.
3794 * 27_io/basic_istringstream/2.cc: New.
3795 * 27_io/basic_istringstream/3.cc: New.
3796 * 27_io/basic_istringstream/4.cc: New.
3797 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
3798 * 27_io/basic_istringstream/str/char/1.cc: New.
3799 * 27_io/basic_ofstream/1.cc: New.
3800 * 27_io/basic_ofstream/2.cc: New.
3801 * 27_io/basic_ofstream/3.cc: New.
3802 * 27_io/basic_ofstream/4.cc: New.
3803 * 27_io/basic_ofstream/cons/char/2.cc: New.
3804 * 27_io/basic_ofstream/open/char/1.cc: New.
3805 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
3806 * 27_io/basic_ostream/1.cc: New.
3807 * 27_io/basic_ostream/2.cc: New.
3808 * 27_io/basic_ostream/3.cc: New.
3809 * 27_io/basic_ostream/4.cc: New.
3810 * 27_io/basic_ostream/cons/char/9827.cc: New.
3811 * 27_io/basic_ostream/endl/char/1.cc: New.
3812 * 27_io/basic_ostream/ends/char/1.cc: New.
3813 * 27_io/basic_ostream/ends/char/2.cc: New.
3814 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
3815 * 27_io/basic_ostream/flush/char/1.cc: New.
3816 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
3817 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
3818 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
3819 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
3820 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
3821 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
3822 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
3823 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
3824 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
3825 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
3826 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
3827 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
3828 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
3829 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
3830 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
3831 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
3832 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
3833 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
3834 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
3835 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
3836 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
3837 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
3838 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
3839 * 27_io/basic_ostream/sentry/char/1.cc: New.
3840 * 27_io/basic_ostream/sentry/char/2.cc: New.
3841 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
3842 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
3843 * 27_io/basic_ostream/tellp/char/1.cc: New.
3844 * 27_io/basic_ostream/tellp/char/2.cc: New.
3845 * 27_io/basic_ostringstream/1.cc: New.
3846 * 27_io/basic_ostringstream/2.cc: New.
3847 * 27_io/basic_ostringstream/3.cc: New.
3848 * 27_io/basic_ostringstream/4.cc: New.
3849 * 27_io/basic_ostringstream/cons/char/3.cc: New.
3850 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
3851 * 27_io/basic_ostringstream/str/char/1.cc: New.
3852 * 27_io/basic_ostringstream/str/char/2.cc: New.
3853 * 27_io/basic_streambuf/1.cc: New.
3854 * 27_io/basic_streambuf/2.cc: New.
3855 * 27_io/basic_streambuf/3.cc: New.
3856 * 27_io/basic_streambuf/cons/char/1.cc: New.
3857 * 27_io/basic_streambuf/imbue/char/1.cc: New.
3858 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
3859 * 27_io/basic_streambuf/overflow/char/1.cc: New.
3860 * 27_io/basic_streambuf/overflow/char/2.cc: New.
3861 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
3862 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
3863 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
3864 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
3865 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
3866 * 27_io/basic_streambuf/sputn/char/1.cc: New.
3867 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
3868 * 27_io/basic_streambuf/sync/char/1057.cc: New.
3869 * 27_io/basic_stringbuf/1.cc: New.
3870 * 27_io/basic_stringbuf/2.cc: New.
3871 * 27_io/basic_stringbuf/3.cc: New.
3872 * 27_io/basic_stringbuf/4.cc: New.
3873 * 27_io/basic_stringbuf/5.cc: New.
3874 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
3875 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
3876 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
3877 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
3878 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
3879 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
3880 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
3881 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
3882 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
3883 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
3884 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
3885 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
3886 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
3887 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
3888 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
3889 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
3890 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
3891 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
3892 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
3893 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
3894 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
3895 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
3896 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
3897 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
3898 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
3899 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
3900 * 27_io/basic_stringbuf/str/char/1.cc: New.
3901 * 27_io/basic_stringbuf/str/char/2.cc: New.
3902 * 27_io/basic_stringbuf/str/char/3.cc: New.
3903 * 27_io/basic_stringbuf/str/char/3955.cc: New.
3904 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
3905 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
3906 * 27_io/basic_stringstream/1.cc: New.
3907 * 27_io/basic_stringstream/2.cc: New.
3908 * 27_io/basic_stringstream/3.cc: New.
3909 * 27_io/basic_stringstream/4.cc: New.
3910 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
3911 * 27_io/basic_stringstream/str/char/1.cc: New.
3912 * 27_io/basic_stringstream/str/char/2.cc: New.
3913 * 27_io/basic_stringstream/str/char/3.cc: New.
3914 * 27_io/basic_stringstream/str/char/4.cc: New.
3915 * 27_io/fpos/1.cc: New.
3916 * 27_io/fpos/2.cc: New.
3917 * 27_io/fpos/3.cc: New.
3918 * 27_io/ios_base/callbacks/1.cc: New.
3919 * 27_io/ios_base/state/1.cc: New.
3920 * 27_io/ios_base/storage/1.cc: New.
3921 * 27_io/ios_base/storage/2.cc: New.
3922 * 27_io/ios_base/storage/3.cc: New.
3923 * 27_io/ios_base/sync_with_stdio/1.cc: New.
3924 * 27_io/ios_base/sync_with_stdio/2.cc: New.
3925 * 27_io/manipulators/adjustfield/char/1.cc: New.
3926 * 27_io/manipulators/adjustfield/char/2.cc: New.
3927 * 27_io/manipulators/basefield/char/1.cc: New.
3928 * 27_io/manipulators/standard/char/1.cc: New.
3929 * 27_io/manipulators/standard/char/2.cc: New.
3930 * 27_io/objects/char/1.cc: New.
3931 * 27_io/objects/char/2.cc: New.
3932 * 27_io/objects/char/2523-1_xin.cc: New.
3933 * 27_io/objects/char/2523-1_xin.in: New.
3934 * 27_io/objects/char/2523-2_xin.cc: New.
3935 * 27_io/objects/char/2523-2_xin.in: New.
3936 * 27_io/objects/char/3045.cc: New.
3937 * 27_io/objects/char/3647.cc: New.
3938 * 27_io/objects/char/3_xin.cc: New.
3939 * 27_io/objects/char/3_xin.in: New.
3940 * 27_io/objects/char/4_xin.cc: New.
3941 * 27_io/objects/char/4_xin.in: New.
3942 * 27_io/objects/char/5268.cc: New.
3943 * 27_io/objects/char/5280_xin.cc: New.
3944 * 27_io/objects/char/5280_xin.in: New.
3945 * 27_io/objects/char/6548_xin.cc: New.
3946 * 27_io/objects/char/6548_xin.in: New.
3947 * 27_io/objects/char/6648-1_xin.cc: New.
3948 * 27_io/objects/char/6648-1_xin.in: New.
3949 * 27_io/objects/char/6648-2_xin.cc: New.
3950 * 27_io/objects/char/6648-2_xin.in: New.
3951 * 27_io/objects/char/7744_xin.cc: New.
3952 * 27_io/objects/char/7744_xin.in: New.
3953 * 27_io/objects/wchar_t/1.cc: New.
3954 * 27_io/types/1.cc: New.
3955 * 27_io/types/2.cc: New.
3956 * data/filebuf_members-1.tst: New.
3957 * data/filebuf_members-1.txt: New.
3958 * data/filebuf_virtuals-1.tst: New.
3959 * data/filebuf_virtuals-1.txt: New.
3960 * data/filebuf_virtuals-2.tst: New.
3961 * data/filebuf_virtuals-3.tst: New.
3962 * data/ifstream_members-1.tst: New.
3963 * data/ifstream_members-1.txt: New.
3964 * data/ios_base_members_static-1.tst: New.
3965 * data/istream_extractor_other-1.tst: New.
3966 * data/istream_extractor_other-1.txt: New.
3967 * data/istream_extractor_other-2.tst: New.
3968 * data/istream_seeks-1.tst: New.
3969 * data/istream_seeks-1.txt: New.
3970 * data/istream_seeks-2.tst: New.
3971 * data/istream_seeks-3.tst: New.
3972 * data/istream_unformatted-1.tst: New.
3973 * data/istream_unformatted-1.txt: New.
3974 * data/ofstream_members-1.tst: New.
3975 * data/ostream_inserter_char-1.tst: New.
3976 * data/ostream_inserter_char-1.txt: New.
3977 * data/ostream_inserter_other-1.tst: New.
3978 * data/ostream_inserter_other-2.tst: New.
3979 * data/ostream_seeks-1.tst: New.
3981 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3983 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
3984 requirement that __mode must be strict input or output.
3986 * include/std/std_streambuf.h (basic_streambuf::setp): Set
3989 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
3990 output string shouldn't core.
3991 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
3993 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
3995 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
3998 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
4000 * testsuite/data: New directory.
4001 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
4002 to copy files from the testsuite data directory.
4003 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
4004 testfiles containing _xin, which now means this is an interactive
4005 test and should be run with the interactive dejagnu hooks.
4006 * testsuite/Makefile.am: Remove testsuite_* files.
4007 * testsuite/Makefile.in: Regenerate.
4009 2003-04-09 Zack Weinberg <zack@codesourcery.com>
4011 * docs/html/install.html: Document complete list of locales
4012 required by test suite. Document procedure for installing
4013 said locales under Debian. Solicit instructions for other
4016 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
4018 * include/bits/sstream.tcc (overflow): Make sure operands of min
4019 and max have the same type.
4021 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
4024 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
4027 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
4029 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
4030 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
4031 Don't set _M_out_end.
4032 (basic_filebuf::overflow): Replace _M_out_buf_size() with
4033 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
4034 * include/bits/sstream.tcc (basic_stringbuf::overflow):
4035 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
4036 * include/bits/streambuf.tcc (basic_streambuf::sputc):
4037 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
4038 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
4039 _M_out_end - _M_out_cur.
4040 (__copy_streambufs): Likewise.
4041 * include/std/std_fstream.h (_M_set_determinate): Set
4044 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
4046 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
4047 _M_convert_to_external, _M_really_overflow, seekoff): Fix
4048 test for synced buffer.
4049 * include/std/std_fstream.h (sync): Likewise.
4050 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
4051 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
4053 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
4055 * include/std/std_sstream.h (basic_istringstream): Adjust
4057 (basic_ostringstream): Same.
4058 (basic_stringstream): Same.
4059 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
4060 (basic_ofstream): Same.
4061 (basic_fstream): Same.
4062 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
4063 that does not call init.
4064 * include/std/std_istream.h (basic_istream): Same.
4065 (basic_iostream): Construct istream, ostream uninitialized, use
4066 init to initialize just once. Add protected ctor that does not
4069 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
4070 Nathan Myers <ncm@cantrip.org>
4073 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
4075 (basic_filebuf<>::showmanyc): Use the information provided
4076 by codecvt and __basic_file<>::showmanyc_helper to implement
4077 a non-trivial showmanyc.
4078 * config/io/basic_file_stdio.h
4079 (__basic_file<>::showmanyc_helper): New, declare.
4080 * config/io/basic_file_stdio.cc
4081 (__basic_file<>::showmanyc_helper): Define.
4082 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
4083 (__basic_file<char>::open): Don't call fcntl().
4084 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
4085 GLIBCPP_CHECK_POLL): New macros.
4086 * configure.in: Call here.
4087 * acconfig.h: Add #undefs for the corresponding symbols.
4088 * aclocal.m4: Regenerate.
4089 * configure: Regenerate.
4090 * config.h.in: Regenerate.
4092 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
4094 * config/linker-map.gnu: Remove string export restrictions.
4096 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
4098 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
4099 find_first_of, find_last_of and find_last_not_of tests.
4100 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
4101 tests here, new file.
4102 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
4103 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
4104 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
4105 wchar_t find_first_of tests here, new file.
4106 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
4108 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
4110 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
4111 wchar_t find_last_of tests here.
4112 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
4113 wchar_t find_last_not_of tests here.
4115 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
4117 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
4118 Correct return value.
4120 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
4123 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
4124 * include/std/std_complex.h (norm): Use faster,
4125 less accurate computation for builtin float types under --fast-math.
4127 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
4129 * testsuite/testsuite_hooks.h: Fix warning nits.
4131 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
4133 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
4134 Only .set mips2 for the o32 ABI.
4136 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
4138 * testsuite/21_strings/char_traits/requirements/char/1.cc:
4139 Test char not wchar_t.
4141 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
4143 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
4144 Correct size, taking into account sizeof(wchar_t).
4146 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
4148 Reshuffle 21_strings testsuite.
4149 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
4150 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
4151 element_access.cc, operations.cc, char_traits_requirements.cc,
4152 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
4153 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
4154 wchar_t tests as follows.
4155 * 21_strings/basic_string/append/char/1.cc: New.
4156 * 21_strings/basic_string/append/wchar_t/1.cc: New.
4157 * 21_strings/basic_string/assign/char/1.cc: New.
4158 * 21_strings/basic_string/assign/char/2.cc: New.
4159 * 21_strings/basic_string/assign/char/3.cc: New.
4160 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
4161 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
4162 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
4163 * 21_strings/basic_string/capacity/1.cc: New.
4164 * 21_strings/basic_string/capacity/char/1.cc: New.
4165 * 21_strings/basic_string/capacity/char/2.cc: New.
4166 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
4167 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
4168 * 21_strings/basic_string/compare/char/1.cc: New.
4169 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
4170 * 21_strings/basic_string/cons/char/1.cc: New.
4171 * 21_strings/basic_string/cons/char/2.cc: New.
4172 * 21_strings/basic_string/cons/char/3.cc: New.
4173 * 21_strings/basic_string/cons/char/4.cc: New.
4174 * 21_strings/basic_string/cons/char/5.cc: New.
4175 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
4176 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
4177 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
4178 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
4179 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
4180 * 21_strings/basic_string/element_access/char/1.cc: New.
4181 * 21_strings/basic_string/element_access/char/2.cc: New.
4182 * 21_strings/basic_string/element_access/char/3.cc: New.
4183 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
4184 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
4185 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
4186 * 21_strings/basic_string/find/char/1.cc: New.
4187 * 21_strings/basic_string/find/wchar_t/1.cc: New.
4188 * 21_strings/basic_string/insert/char/1.cc: New.
4189 * 21_strings/basic_string/insert/char/2.cc: New.
4190 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
4191 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
4192 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
4193 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
4194 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
4195 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
4196 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
4197 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
4198 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
4199 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
4200 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
4201 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
4202 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
4203 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
4204 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
4205 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
4206 * 21_strings/basic_string/operators/char/1.cc: New.
4207 * 21_strings/basic_string/operators/char/2.cc: New.
4208 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
4209 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
4210 * 21_strings/basic_string/replace/char/1.cc: New.
4211 * 21_strings/basic_string/replace/char/2.cc: New.
4212 * 21_strings/basic_string/replace/char/3.cc: New.
4213 * 21_strings/basic_string/replace/char/4.cc: New.
4214 * 21_strings/basic_string/replace/char/5.cc: New.
4215 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
4216 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
4217 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
4218 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
4219 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
4220 * 21_strings/basic_string/rfind/char/1.cc: New.
4221 * 21_strings/basic_string/rfind/char/2.cc: New.
4222 * 21_strings/basic_string/rfind/char/3.cc: New.
4223 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
4224 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
4225 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
4226 * 21_strings/basic_string/substr/char/1.cc: New.
4227 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
4228 * 21_strings/c_strings/char/1.cc: New.
4229 * 21_strings/c_strings/char/2.cc: New.
4230 * 21_strings/c_strings/wchar_t/1.cc: New.
4231 * 21_strings/c_strings/wchar_t/2.cc: New.
4232 * 21_strings/char_traits/requirements/char/1.cc: New.
4233 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
4234 * 21_strings/char_traits/typedefs/char/1.cc: New.
4236 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
4237 Petur Runolfsson <peturr02@ru.is>
4240 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
4241 basic_filebuf<wchar_t>::_M_underflow_common):
4242 if (gptr() < egptr()) return *gptr().
4243 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
4245 * testsuite/27_io/filebuf_members.cc (test_04): Minor
4246 changes: unlink fifo before making it, fix spelling error.
4248 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
4250 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
4251 * testsuite/Makefile.in: Regenerate.
4252 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
4255 2003-03-17 Petur Runolfsson <peturr02@ru.is>
4258 * include/bits/fstream.tcc (basic_filebuf::close):
4259 Always close file, even when write fails.
4260 * testsuite/27_io/filebuf_members.cc (test_07): New test.
4262 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
4264 * libsupc++/Makefile.am (C_COMPILE): Remove.
4265 (LTCOMPILE): Likewise.
4266 * libsupc++/Makefile.in: Regenerate.
4268 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
4270 * testsuite/23_containers/bitset_members.cc: Add test variable.
4271 * testsuite/23_containers/map_insert.cc: Same.
4272 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
4273 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
4274 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
4275 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
4276 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
4277 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
4278 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
4279 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
4280 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
4281 * testsuite/27_io/istream_exception.cc: Same.
4282 * testsuite/27_io/filebuf_virtuals.cc: Same.
4283 * testsuite/27_io/stringbuf_virtuals.cc: Same.
4284 * testsuite/27_io/ostream_inserter_arith.cc: Same.
4285 * testsuite/26_numerics/valarray_operators.cc: Same.
4286 * testsuite/26_numerics/slice.cc: Same.
4287 * testsuite/26_numerics/slice_array_assignment.cc: Same.
4288 * testsuite/24_iterators/istream_iterator.cc: Same.
4289 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
4291 2003-03-14 Petur Runolfsson <peturr02@ru.is>
4295 * config/locale/generic/ctype_members.cc,
4296 * config/locale/gnu/ctype_members.cc
4297 (ctype<wchar_t>::do_widen(char)): Cast argument to
4298 unsigned char before passing to btowc.
4299 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
4300 Convert characters with btowc instead of mbsrtowcs.
4301 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
4303 Convert characters with wctob instead of wcsrtombs.
4304 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
4305 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
4306 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
4308 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
4310 * include/stdc++.h: New.
4311 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
4312 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
4313 * include/Makefile.in: Regenerate.
4314 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
4315 (--cxxflags): Put -g -O2 here.
4316 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
4318 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
4320 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
4321 missing named locale.
4323 2003-03-14 Andreas Schwab <schwab@suse.de>
4325 * configure.in: Only append to makefiles that are newly created to
4326 avoid multiple multi-do/multi-clean rules.
4327 * configure: Rebuilt.
4329 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
4331 * docs/html/configopts.html, docs/html/documentation.html,
4332 docs/html/explanations.html, docs/html/install.html,
4333 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
4334 invalid XHTML and make page header style consistent.
4336 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
4338 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
4339 * docs/html/faq/index.txt: Regenerate.
4340 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
4342 2003-03-12 Andreas Schwab <schwab@suse.de>
4344 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
4345 glibcpp_toolexeclibdir.
4346 * aclocal.m4, configure: Rebuilt.
4348 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
4350 * docs/html/faq/index.html: Update text about location of headers.
4351 * docs/html/faq/index.txt: Regenerate.
4353 2003-03-11 Carlo Wood <carlo@alinoe.com>
4355 * include/bits/demangle.h: Prepend accessors of
4356 class qualifier with 'get_' in order to fix warnings
4357 when compiling with -Wshadow.
4359 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
4361 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
4363 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
4365 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
4366 report lack of setenv().
4368 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4370 * config/io/basic_file_stdio.cc: include <unistd.h>.
4372 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4373 Nathan Myers <ncm@cantrip.org>
4376 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
4377 seekoff, seekpos): Add a boolean parameter __stdio.
4378 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
4379 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
4380 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
4382 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
4383 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
4384 * include/std/std_fstream.h (sync): Likewise.
4385 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
4386 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
4387 libstdc++/8399 commit involving isatty(0).
4388 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
4389 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
4390 * configure.in: Remove call.
4391 * aclocal.m4: Regenerate.
4392 * config.h.in: Regenerate.
4393 * configure: Regenerate.
4394 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
4396 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4399 * include/bits/fstream.tcc (overflow): don't write EOF to file.
4400 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
4402 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4405 * include/bits/basic_ios.h (_M_setstate): New.
4406 * include/bits/ostream.tcc (operator<<): Use it.
4407 * include/bits/istream.tcc (operator>>): Use it.
4408 * include/std/std_ostream.h (operator<<): Make friends.
4409 * include/std/std_istream.h (operator>>): Make friends.
4410 * testsuite/27_io/ostream_exception.cc,
4411 testsuite/27_io/istream_exception.cc: New tests.
4413 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
4415 * include/bits/locale_facets.tcc: Fix typo.
4417 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
4419 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
4421 * config/locale/generic/c_locale.cc
4422 (locale::facet::_S_create_c_locale): Throw runtime exception when
4423 unsupported language is specified.
4424 * testsuite/testsuite_hooks.h
4425 (run_test_wrapped_generic_locale_exception_catcher): New function.
4426 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
4427 Suppress runtime exception thrown by generic implementation.
4428 (run_tests_wrapped_env): Likewise.
4429 (run_test_wrapped_generic_locale_exception_catcher): New function.
4430 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
4431 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
4432 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
4433 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
4434 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
4435 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
4436 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
4437 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
4438 * testsuite/22_locale/facet/2.cc: New test wrap.
4439 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
4440 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
4441 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
4442 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
4443 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
4444 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
4445 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
4446 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
4447 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
4448 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
4449 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
4450 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
4451 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
4452 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
4453 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
4454 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
4455 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
4456 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
4457 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
4458 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
4459 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
4460 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
4461 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
4462 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
4463 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
4464 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
4465 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
4466 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
4467 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
4468 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
4469 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
4470 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
4471 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
4472 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
4473 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
4474 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
4475 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
4476 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
4477 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
4478 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
4479 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
4480 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
4481 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
4482 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
4483 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
4484 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
4485 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
4486 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
4487 * testsuite/27_io/ios_members.cc: New test wrap.
4488 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
4490 * testsuite/27_io/streambuf_members.cc: New test wrap.
4491 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
4493 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
4494 Petur Runolfsson <peturr02@ru.is>
4497 * include/bits/streambuf.tcc (__copy_streambufs): Use
4498 sgetn-sputn only when sputn cannot fail, otherwise fall back
4499 to safe snextc-sputc.
4500 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
4502 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4504 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
4505 locale cache for truename and falsename.
4507 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4509 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
4510 _M_word_size initialization.
4512 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4514 * include/bits/fstream.tcc (_M_convert_to_external):
4515 Set __elen to zero if codecvt::out eventually fails.
4517 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4520 * include/bits/fstream.tcc (_M_really_overflow): Check
4521 for _M_convert_to_external possible failures.
4522 * include/std/std_fstream.h (sync): Check _M_really_overflow
4523 return value and return -1 in case of failure.
4524 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
4526 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4529 * include/bits/istream.tcc (operator>>(_CharT*),
4530 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
4531 * testsuite/27_io/stringstream.cc (test02): Add.
4533 * include/bits/istream.tcc (operator>>(_CharT*)):
4534 Assign a char_type to *__s.
4536 2003-03-07 Petur Runolfsson <peturr02@ru.is>
4539 * include/bits/locale_facets.tcc
4540 (collate::do_compare, collate::do_transform):
4541 Handle nul characters in input.
4542 * testsuite/22_locale/collate/compare/char/3.cc: New test.
4543 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
4544 * testsuite/22_locale/collate/transform/char/3.cc: New test.
4545 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
4547 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
4549 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
4551 * testsuite/27_io/ostream_fail.cc: New test.
4553 2003-03-07 Matthias Klose <doko@debian.org>
4555 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
4556 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
4557 * Makefile.in: Regenerate.
4558 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
4560 AM_MAKEFLAGS: Pass gxx_include_dir.
4561 * libsupc++/Makefile.in: Regenerate.
4563 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
4565 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
4566 mask. Test setting small-numbered pword and iword slots. Test
4567 behavior at limit of numeric_limits::max. Check that values are
4568 still good after failures.
4570 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
4572 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
4573 (ios_base::ios_base): Set _M_word, _M_word_size.
4574 (ios_base::~ios_base): Remove redundant test.
4575 * testsuite/27_io/ios_base_storage.cc (test03): New.
4577 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
4579 * src/strstream.cc, include/bits/basic_string.tcc: Remove
4580 incorrect whitespace added in my previous change.
4582 2003-03-05 Carlo Wood <carlo@alinoe.com>
4584 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
4585 _S_initialized() in order to allow debugging libraries to detect
4586 when the std streams are initialized from an overloaded operator
4589 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
4591 * libsupc++/demangle.h: Move to..
4592 * include/bits/demangle.h: ...here.
4593 * src/demangle.cc: Adjust include.
4594 * include/Makefile.am (bits_headers): Add.
4595 * include/Makefile.in: Regenerate.
4597 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
4599 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
4601 * config/linker-map.gnu: Filter typeinfo and vtable info.
4603 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
4605 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
4606 new failure. Throw exception if badbit and exception mask when ix
4607 >= numeric_limits<int>::max().
4609 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
4611 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
4612 min and max have the same type.
4613 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
4615 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
4617 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
4618 * include/Makefile.in: Regenerate.
4620 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
4622 * testsuite/abi_check.cc (report_symbol_info): Add version info.
4624 * config/linker-map.gnu: Hide more stuff.
4625 * include/Makefile.am: Cleanups.
4626 * include/Makefile.in: Regenerate.
4628 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
4630 * config/locale/generic/messages_members.h (messages::messages):
4631 Remove name from unused parameter.
4633 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
4635 * src/Makefile.am (sources): Add demangle.cc.
4638 * src/Makefile.in: Regenerate.
4639 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
4640 * libsupc++/Makefile.in: Regenerate.
4642 * testsuite/testsuite_hooks.h
4643 (__gnu_cxx_test::verify_demangle): New.
4644 * testsuite/testsuite_hooks.cc: Define.
4646 2003-02-27 Carlo Wood <carlo@alinoe.com>
4648 * src/demangle.cc: New.
4649 * libsupc++/demangle.h: New.
4651 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
4652 Carlo Wood <carlo@alinoe.com>
4654 * testsuite/demangle/abi_examples/01.cc: New.
4655 * testsuite/demangle/abi_examples/02.cc: New.
4656 * testsuite/demangle/abi_examples/03.cc: New.
4657 * testsuite/demangle/abi_examples/04.cc: New.
4658 * testsuite/demangle/abi_examples/05.cc: New.
4659 * testsuite/demangle/abi_examples/06.cc: New.
4660 * testsuite/demangle/abi_examples/07.cc: New.
4661 * testsuite/demangle/abi_examples/08.cc: New.
4662 * testsuite/demangle/abi_examples/09.cc: New.
4663 * testsuite/demangle/abi_examples/10.cc: New.
4664 * testsuite/demangle/abi_examples/11.cc: New.
4665 * testsuite/demangle/abi_examples/12.cc: New.
4666 * testsuite/demangle/abi_examples/13.cc: New.
4667 * testsuite/demangle/abi_examples/14.cc: New.
4668 * testsuite/demangle/abi_examples/15.cc: New.
4669 * testsuite/demangle/abi_examples/16.cc: New.
4670 * testsuite/demangle/abi_examples/17.cc: New.
4671 * testsuite/demangle/abi_examples/18.cc: New.
4672 * testsuite/demangle/abi_examples/19.cc: New.
4673 * testsuite/demangle/abi_examples/20.cc: New.
4674 * testsuite/demangle/abi_examples/21.cc: New.
4675 * testsuite/demangle/abi_examples/22.cc: New.
4676 * testsuite/demangle/abi_examples/23.cc: New.
4677 * testsuite/demangle/abi_examples/24.cc: New.
4678 * testsuite/demangle/abi_examples/25.cc: New.
4679 * testsuite/demangle/abi_examples/26.cc: New.
4680 * testsuite/demangle/abi_text/01.cc: New.
4681 * testsuite/demangle/abi_text/02.cc: New.
4682 * testsuite/demangle/abi_text/03.cc: New.
4683 * testsuite/demangle/abi_text/04.cc: New.
4684 * testsuite/demangle/abi_text/05.cc: New.
4685 * testsuite/demangle/abi_text/06.cc: New.
4686 * testsuite/demangle/abi_text/07.cc: New.
4687 * testsuite/demangle/abi_text/08.cc: New.
4688 * testsuite/demangle/abi_text/09.cc: New.
4689 * testsuite/demangle/abi_text/10.cc: New.
4690 * testsuite/demangle/abi_text/11.cc: New.
4691 * testsuite/demangle/abi_text/12.cc: New.
4692 * testsuite/demangle/abi_text/13.cc: New.
4693 * testsuite/demangle/abi_text/14.cc: New.
4694 * testsuite/demangle/regression/3111-1.cc: New.
4695 * testsuite/demangle/regression/3111-2.cc: New.
4696 * testsuite/demangle/regression/7986-01.cc: New.
4697 * testsuite/demangle/regression/7986-02.cc: New.
4698 * testsuite/demangle/regression/7986-03.cc: New.
4699 * testsuite/demangle/regression/7986-04.cc: New.
4700 * testsuite/demangle/regression/7986-05.cc: New.
4701 * testsuite/demangle/regression/7986-06.cc: New.
4702 * testsuite/demangle/regression/7986-07.cc: New.
4703 * testsuite/demangle/regression/7986-08.cc: New.
4704 * testsuite/demangle/regression/7986-09.cc: New.
4705 * testsuite/demangle/regression/7986-10.cc: New.
4706 * testsuite/demangle/regression/7986-11.cc: New.
4707 * testsuite/demangle/regression/7986-12.cc: New.
4708 * testsuite/demangle/regression/7986.cc: New.
4709 * testsuite/demangle/regression/8897.cc: New.
4710 * testsuite/demangle/regression/cw-01.cc: New.
4711 * testsuite/demangle/regression/cw-02.cc: New.
4712 * testsuite/demangle/regression/cw-03.cc: New.
4713 * testsuite/demangle/regression/cw-04.cc: New.
4714 * testsuite/demangle/regression/cw-05.cc: New.
4715 * testsuite/demangle/regression/cw-06.cc: New.
4716 * testsuite/demangle/regression/cw-07.cc: New.
4717 * testsuite/demangle/regression/cw-08.cc: New.
4718 * testsuite/demangle/regression/cw-09.cc: New.
4719 * testsuite/demangle/regression/cw-10.cc: New.
4720 * testsuite/demangle/regression/cw-11.cc: New.
4721 * testsuite/demangle/regression/cw-12.cc: New.
4722 * testsuite/demangle/regression/cw-13.cc: New.
4723 * testsuite/demangle/regression/cw-14.cc: New.
4724 * testsuite/demangle/regression/old.cc: New.
4726 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
4728 * docs/doxygen/Intro.3: Update with new (proper) names.
4729 * docs/doxygen/TODO: Update.
4730 * docs/doxygen/run_doxygen: More comments, fix up man pages.
4731 Fake entries for standard typedefs.
4732 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
4733 * docs/html/documentation.html: Top-level man page is now called
4735 * include/std/std_limits.h: Doxygenate.
4737 2003-02-25 Scott Snyder <snyder@fnal.gov>
4740 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
4741 Correct documentation.
4742 * include/bits/stl_multimap.h (lower_bound, upper_bound,
4743 equal_range): Likewise.
4745 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
4749 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
4750 __bump is true (uflow), always increment the read pointer
4751 (_M_in_cur) before returning successfully.
4752 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
4754 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
4755 Nathan Myers <ncm@cantrip.org>
4757 PR libstdc++/9404, PR libstdc++/9701 (partial)
4758 (aka pptr == epptr implies overflow)
4759 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
4760 Consistently, _M_out_end points to the end of the buffer just
4762 (overflow): Tweak to use _M_out_buf_size().
4763 (_M_convert_to_external): The role of the old _M_out_end is
4764 now played by _M_out_lim.
4765 (_M_really_overflow): Likewise.
4766 (seekoff): Likewise.
4767 (setbuf): _M_out_end points to the end of the external buffer.
4768 * include/bits/sstream.tcc (overflow): Rewrote, taking into
4769 account the resolution of DR 169 (TC).
4770 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
4771 (seekpos): Use _M_string.capacity(); tweak.
4772 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
4773 * include/std/std_fstream.h (sync): The role of the old
4774 _M_out_end is now played by _M_out_lim.
4775 (_M_set_indeterminate): Use _M_set_determinate.
4776 (_M_set_determinate): _M_out_end is now _M_out_lim.
4777 (_M_is_indeterminate): Likewise.
4778 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
4779 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
4780 which have the information readily available as _M_string.capacity();
4781 for ate and app modes, pass the string size to _M_really_sync.
4782 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
4783 point to the end of the buffer (i.e., epptr) and to the string end,
4785 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
4786 which points to the right limit of the used put area.
4787 (_M_out_cur_move): The role of the old _M_out_end is now played
4789 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
4790 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
4792 (basic_streambuf()): Initialize _M_out_lim too.
4793 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
4794 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
4795 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
4797 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
4799 * testsuite/27_io/ios_base_storage.cc (main): Call
4802 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
4804 * include/bits/locale_facets.tcc (_M_convert_float): Replace
4805 numpunct facet accesses with data from __locale_cache.
4807 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
4809 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
4810 * docs/html/faq/index.txt: Regenerate.
4812 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
4814 * config/linker-map.gnu: Also export locking symbols needed for the
4815 generic atomicity.h case.
4817 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
4819 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
4821 * configure: Rebuilt.
4823 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
4825 * include/bits/sstream.tcc (overflow): According to
4826 27.7.1.3, p5, actual output is performed by sputc(c).
4828 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
4831 * include/bits/stl_alloc.h: Remove all traces of assert().
4833 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
4835 * include/std/std_sstream.h (str()): the size of the
4836 current string may be different from the initial one
4837 whenever _M_out_end > _M_out_beg.
4838 * testsuite/27_io/stringbuf_members.cc (test07): Add.
4840 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
4843 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
4845 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
4847 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
4848 * testsuite/27_io/ios_members.cc (test03): New.
4850 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
4852 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
4853 (basic_ios::_M_cache_facets): Move into above.
4854 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
4856 (basic_ios::imbue): Force locale cache to be built.
4857 (basic_ios::_M_init): Create and initialize locale cache.
4858 * include/bits/ios_base.h (__locale_cache_base): Declare.
4859 (ios_base::_M_locale_cache): New.
4860 (ios_base::_M_cache): Define.
4861 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
4863 (__locale_cache_base,__locale_cache<_CharT>): New classes.
4864 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
4865 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
4866 cache literal string, grouping flag, thousands separator.
4867 (__locale_cache<_CharT>::__locale_cache): New.
4868 (__locale_cache<_CharT>::_M_init): New.
4869 * src/ios.cc: Clear _M_locale_cache in constructor.
4870 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
4873 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4875 * src/locale-inst.cc: Do not include <cassert>.
4876 * src/locale.cc: Likewise.
4878 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4881 * include/std/std_fstream.h: Declare underflow and uflow
4882 specializations, change generic definitions to do nothing.
4883 * src/fstream.cc: Add underflow and uflow specializations.
4885 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4888 * include/bits/fstream.tcc (_M_convert_to_external):
4889 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
4890 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
4892 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
4894 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
4895 * include/bits/basic_ios.tcc: Guard use of extern template.
4896 * include/std/std_iomanip.h: Same.
4897 * include/bits/streambuf.tcc: Same.
4898 * include/bits/stl_alloc.h: Same.
4899 * include/bits/locale_facets.tcc: Same.
4900 * include/bits/ostream.tcc: Same.
4901 * include/bits/istream.tcc: Same.
4902 * include/bits/fstream.tcc: Same.
4903 * include/bits/basic_string.tcc: Same.
4905 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
4907 * include/bits/ostream.tcc (sentry::sentry): Improve
4908 performance-wise the fix for libstdc++/9563.
4910 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
4912 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
4913 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
4914 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
4915 when we don't have static mutex initialization.
4916 (__exchange_and_add): Use _Atomic_add_mutex_once.
4917 * src/misc-inst.cc: Definitions of all the above.
4919 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
4922 * include/bits/ostream.tcc (sentry::sentry): Check
4923 the state of the stream after the preparation.
4924 * testsuite/27_io/ostream_sentry.cc (test02): Add.
4926 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
4928 * include/Makefile.am (stamp-std-precompile): Add rule.
4929 * include/Makefile.in: Regenerated.
4931 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
4932 Benjamin Kosnik <benjamin@redhat.com>
4934 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
4935 Add indexes into this array.
4936 (__num_base::_S_atoms): To _S_atoms_in.
4937 (num_put::_M_insert): Rename to _M_pad.
4938 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
4939 (num_put::_M_widen_int): Rename to _M_group_int.
4940 (num_put::_M_widen_float): Rename to _M_group_float.
4941 * include/bits/locale_facets.tcc (__int_to_char): New inline
4942 function and adapter functions.
4943 (num_put::_M_group_int): Streamline.
4944 (num_put::_M_group_float): Streamline.
4945 (num_put::_M_convert_int): Remove unused parameter names. Choose
4946 large enough buffer for text. Use __int_to_char instead of
4947 __convert_from_v. Formatted text is now at the end of the buffer.
4948 (num_put::_M_convert_float): Preliminary fixups.
4949 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
4950 (__int_to_char<unsigned long long>): Same.
4951 (__int_to_char<char, unsigned long>): New.
4952 (__int_to_char<char, unsigned long long>): New.
4953 (__int_to_char<wchar_t, unsigned long>): New.
4954 (__int_to_char<wchar_t, unsigned long long>): New.
4956 2003-02-11 Scott Snyder <snyder@fnal.gov>
4959 * include/bits/fstream.tcc (seekoff): Avoid operator+
4962 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
4965 * include/ext/stdio_filebuf.h
4966 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
4967 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
4968 Change to take a __size parameter of type size_t, not
4969 of type (template parameter dependent) int_type.
4970 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
4971 size vars to size_t.
4972 * testsuite/ext/stdio_filebuf.cc: Add.
4974 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
4975 Petur Runolfsson <peturr02@ru.is>
4978 * include/bits/streambuf.tcc (__copy_streambufs):
4979 Don't conditionalize the copy to __testput.
4980 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
4982 2002-02-11 DJ Delorie <dj@redhat.com>
4984 * acinclude.m4: Check for native targets that can't link at
4985 this point in the build.
4986 * aclocal.m4: Regenerate.
4987 * configure: Regenerate.
4989 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4991 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
4993 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
4996 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
4998 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
4999 unsigned char platforms.
5001 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
5004 * include/std/std_istream.h
5005 (basic_istream::sentry::operator bool()): Make const.
5006 * include/std/std_ostream.h
5007 (basic_ostream::sentry::operator bool()): Likewise.
5008 * testsuite/27_io/istream_sentry.cc (test03): Add.
5009 * testsuite/27_io/ostream_sentry.cc: Add.
5011 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
5014 Implement resolution of DR 231 (Ready)
5015 * include/bits/locale_facets.h (__num_base::_S_format_float):
5016 Change declaration: return void, remove __prec parameter.
5017 * src/locale.cc (__num_base::_S_format_float): Implement
5018 resolution of DR 231.
5019 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
5020 Tweak uses. Check for negative precision.
5021 * testsuite/22_locale/num_put/put/char/6.cc: Add
5022 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
5024 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
5026 * config/io/basic_file_libio.h: Fixups.
5027 * config/io/c_io_libio.h: Same.
5028 * libio/Makefile.am: Same.
5029 * libio/Makefile.in: Regenerated.
5031 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
5033 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
5034 Explicitly use the "C" locale.
5035 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
5037 2003-02-06 Petur Runolfsson <peturr02@ru.is>
5041 PR libstdc++/9028 (partial)
5047 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
5048 codecvt<wchar_t, char, mbstate_t>::do_length,
5049 codecvt<wchar_t, char, mbstate_t>::do_max_length):
5051 * config/locale/generic/codecvt_members.cc: ...here.
5052 * config/locale/gnu/codecvt_members.cc: ...and here.
5054 * config/locale/generic/codecvt_members.cc,
5055 * config/locale/gnu/codecvt_members.cc
5056 (codecvt<wchar_t, char, mbstate_t>::do_encoding
5057 codecvt<wchar_t, char, mbstate_t>::do_in,
5058 codecvt<wchar_t, char, mbstate_t>::do_length,
5059 codecvt<wchar_t, char, mbstate_t>::do_max_length,
5060 codecvt<wchar_t, char, mbstate_t>::do_out):
5061 New implementation that handles stateless encodings,
5064 * config/locale/generic/codecvt_members.cc,
5065 * config/locale/gnu/codecvt_members.cc,
5066 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
5067 * include/bits/codecvt.h,
5069 (codecvt::length, codecvt::do_length):
5070 Change type of first argument of length and do_length from
5071 'const state_type&' to 'state_type&' according to DR 75.
5073 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
5074 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
5075 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
5076 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
5077 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
5078 Cleanup and check for correct return value from encoding
5080 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
5081 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
5082 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
5083 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
5084 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
5085 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
5086 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
5087 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
5088 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
5089 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
5090 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
5091 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
5092 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
5093 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
5094 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
5095 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
5096 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
5097 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
5098 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
5099 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
5100 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
5101 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
5102 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
5103 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
5104 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
5105 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
5106 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
5107 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
5108 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
5109 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
5110 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
5111 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
5112 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
5113 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
5114 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
5115 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
5116 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
5118 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
5120 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
5121 (money_put::do_put): Same.
5123 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
5125 * include/bits/ios_base.h (ios_base): Document reserved storage.
5127 * include/bits/locale_facets.h: (struct __pad): Comment on
5129 (__verify_grouping): Same.
5130 (__add_grouping): Same.
5131 * include/bits/locale_facets.tcc (__verify_grouping): Move
5132 comments to declaration.
5133 (__add_grouping): Same.
5135 * include/bits/locale_facets.tcc:
5136 (__write<_CharT, _OutIter>): New function.
5137 (__write<_CharT>): New function specialization.
5138 (num_put::_M_insert): Remove explicit loop over iterator. Use
5140 (num_put::_M_widen_float): Remove __basefield.
5141 (num_put::_M_widen_int): Move __basefield to within grouping block.
5143 * include/bits/streambuf_iterator.h: Include <streambuf>.
5144 (ostreambuf_iterator::_M_put): Add.
5146 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
5148 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
5150 2003-02-04 Nathan Myers <ncm@cantrip.org>
5152 * testsuite/25_algorithms/min_max.cc (test02): Add.
5154 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5156 PR libstdc++/9439, PR libstdc++/9425
5157 * config/io/basic_file_stdio.cc
5158 (__basic_file<char>::seekoff, seekpos): Return -1L if
5160 * include/bits/fstream.tcc (basic_filebuf::seekoff):
5161 Check _M_file.seekoff return value; always return
5162 pos_type(off_type(-1)) in case of failure.
5163 (basic_filebuf::pbackfail): Check this->seekoff return
5164 value and return traits_type::eof() in case of failure.
5165 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
5167 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
5169 * include/std/std_ostream.h (ostream::_M_write): Declare.
5170 * ostream.tcc (ostream::_M_write): Define.
5171 (basic_ostream::write): Use it.
5172 (operator<<(basic_ostream, _CharT)): Ditto.
5173 (operator<<(basic_ostream, char)): Ditto.
5174 (operator<<(basic_ostream, _CharT*)): Ditto.
5175 (operator<<(basic_ostream, char*)): Ditto.
5176 (operator<<(basic_ostream, basic_string)): Ditto.
5178 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
5180 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
5182 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5184 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
5185 add HTML comment about updating links if numbering changes.
5187 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5190 * include/bits/streambuf.tcc (sputbackc): Access
5191 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
5192 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
5194 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5197 * include/bits/fstream.tcc (open): If the 'ate' repositioning
5198 operation fails, calls close _and_ returns a null pointer
5199 to indicate failure (27.8.1.3,4).
5200 * testsuite/27_io/filebuf_members.cc (test_06): Add.
5202 2003-02-04 Petur Runolfsson <peturr02@ru.is>
5204 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
5206 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5208 * docs/html/27_io/howto.html: New section on stdio_filebuf.
5209 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
5210 * docs/html/documentation.html: Regenerate.
5212 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
5214 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
5215 * docs/html/17_intro/porting.html: Regenerate.
5217 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5218 Phil Edwards <pme@gcc.gnu.org>
5220 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
5221 numeric_limits for bits-per-word values.
5222 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
5223 Use __builtin_popcountl instead.
5224 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
5225 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
5226 Use __builtin_ctzl instead.
5227 (_S_bit_count, _S_first_one): Remove.
5228 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
5229 * src/Makefile.am (sources): Remove bitset.cc.
5230 * src/bitset.cc: Delete file.
5231 * src/Makefile.in: Regenerate.
5233 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
5235 PR libstdc++/9527, PR libstdc++/8713
5236 * docs/html/install.html: Mention glibc version requirement.
5237 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
5238 with 3.2.1+ (formatting bugfixes).
5239 * docs/html/faq/index.txt: Regenerate.
5241 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5244 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
5247 * include/bits/valarray_before.h (__not_equal_to): Use != instead
5250 * testsuite/26_numerics/valarray_operators.cc: New test.
5252 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
5254 * docs/html/faq/index.html: Correct link to libg++ information.
5255 * docs/html/faq/index.txt: Regenerated.
5257 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
5258 Benjamin Kosnik <bkoz@redhat.com>
5260 Const correctness issue:
5261 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
5262 * include/bits/locale_classes.h
5263 (locale::_Impl::_M_facets): Change type to const facet**.
5264 (locale::_Impl::_M_install_facet): Change declaration to
5266 (locale::facet::_M_references): Make mutable.
5267 (locale::facet::_M_add_reference): Declare const.
5268 (locale::facet::_M_remove_reference): Likewise.
5269 * include/bits/locale_facets.tcc
5270 (use_facet(const locale&)): Tweak for const facet** _M_facets.
5271 (has_facet(const locale&)): Likewise.
5273 (locale::facet::_M_add_reference): Adjust definition.
5274 (locale::facet::_M_remove_reference): Likewise.
5276 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
5277 const facet** _M_facets.
5278 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
5279 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
5280 (locale::_Impl::_M_install_facet): Adjust definition to take
5281 const facet* and for const facet** _M_facets.
5282 * testsuite/22_locale/locale/cons/8.cc: Add.
5284 2003-01-29 Mark Mitchell <mark@codesourcery.com>
5286 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
5287 Use __FLT_HAS_INIFINITY__ to initialize.
5288 (numeric_limits<float>::has_quiet_NaN): Likewise.
5289 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
5291 (numeric_limits<double>::has_quiet_NaN): Likewise.
5292 (numeric_limits<long double>::has_infinity): Use
5293 __LDBL_HAS_INIFINITY__ to initialize.
5294 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
5296 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
5299 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
5300 with bases which are very ambiguous.
5302 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5304 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
5305 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
5306 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
5307 * src/Makefile.in: Regenerate.
5308 * libsupc++/Makefile.in: Regenerate.
5310 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
5312 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
5313 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
5314 version_specific_libs is enabled.
5315 * aclocal.m4, configure: Rebuilt.
5317 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
5319 * include/bits/valarray_meta.h: Remove, split into ...
5320 * include/bits/valarray_before.h: ... this, and ...
5321 * include/bits/valarray_after.h: ... this.
5322 * include/std/std_valarray.h: Adjust.
5323 * include/Makefile.am (bits_headers): Adjust.
5324 * include/Makefile.in: Regenerate.
5326 2003-01-24 Andreas Schwab <schwab@suse.de>
5328 * config/linker-map.gnu: Fix for size_t variance.
5330 2003-01-23 Petur Runolfsson <peturr02@ru.is>
5333 * include/std/std_streambuf.h
5334 (basic_streambuf::basic_streambuf,
5335 basic_streambuf::~basic_streambuf,
5336 basic_streambuf::getloc, basic_streambuf::imbue):
5337 Remove _M_buf_locale_init
5338 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
5339 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
5340 * testsuite/27_io/streambuf_members.cc (test08): Add.
5341 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
5343 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
5345 Revert include ordering.
5346 * config/locale/generic/c_locale.h: Add include guards.
5347 * config/locale/gnu/c_locale.h: Same.
5348 * include/bits/locale_classes.h: Remove cctype include.
5349 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
5350 * include/std/std_fstream.h: Remove streambuf include.
5351 * include/std/std_sstream.h: Remove streambuf include.
5353 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
5355 * configure.in (libtool_VERSION): To 6:0:0.
5356 * configure: Regenerated.
5357 * config/linker-map.gnu: Clean.
5359 * src/misc-inst.cc: Remove instantiations.
5361 * include/bits/stl_alloc.h (__malloc_alloc_template):
5363 (__default_alloc_template): To __pool_alloc.
5364 * src/stl-inst.cc: Same.
5365 * include/backward/alloc.h: Update.
5366 * testsuite/ext/allocators.cc: Update.
5368 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
5369 really try to remove these if possible.
5370 * src/locale.cc (std): Same.
5372 * testsuite/abi_check.cc (check_version): Add.
5374 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
5375 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
5376 Mark Mitchell <mark@codesourcery.com>
5379 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
5380 (basic_filebuf::underflow): Declare.
5383 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
5385 * include/bits/locale_facets.h: Move non-facet classes requiring
5387 * include/bits/locale_classes.h: New.
5388 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
5389 * include/bits/Makefile.in: Regenerate.
5391 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
5392 * config/locale/gnu/c_locale.h: ...here.
5393 * config/locale/generic/c_locale.h: Same.
5395 * include/bits/locale_facets.tcc: Move declarations to...
5396 * include/bits/locale_facets.h: ...here.
5397 * include/bits/basic_ios.h: Tweak includes accordingly.
5398 * include/std/std_sstream.h: Add streambuf include.
5399 * include/std/std_fstream.h: Ditto.
5400 * include/std/std_locale.h: Add locale_classes.h include.
5401 * include/std/std_iosfwd.h: Tweak.
5402 * src/concept-inst.cc: Add iterator include.
5404 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
5405 bits as unexported in the future.
5407 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
5409 Reshuffle 22_locale testsuite.
5410 * 22_locale/(codecvt.cc money_get.cc
5411 codecvt_members_char_char.cc money_get_members_char.cc
5412 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
5413 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
5414 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
5415 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
5416 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
5417 money_put_members_char.cc ctor_copy_dtor.cc
5418 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
5419 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
5420 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
5421 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
5422 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
5423 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
5424 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
5425 operators.cc ctype_widen_char.cc static_members.cc
5426 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
5427 global_templates.cc time_get_members_wchar_t.cc, members.cc,
5428 time_put.cc, messages_byname.cc, time_put_members_char.cc,
5429 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
5430 Split up into individual test cases...
5431 * 22_locale/codecvt/1.cc: New.
5432 * 22_locale/codecvt/2.cc: New.
5433 * 22_locale/codecvt/always_noconv/char/1.cc: New.
5434 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
5435 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
5436 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
5437 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
5438 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
5439 * 22_locale/codecvt/encoding/char/1.cc: New.
5440 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
5441 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
5442 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
5443 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
5444 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
5445 * 22_locale/codecvt/in/char/1.cc: New.
5446 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
5447 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
5448 * 22_locale/codecvt/in/wchar_t/1.cc: New.
5449 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
5450 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
5451 * 22_locale/codecvt/length/char/1.cc: New.
5452 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
5453 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
5454 * 22_locale/codecvt/length/wchar_t/1.cc: New.
5455 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
5456 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
5457 * 22_locale/codecvt/max_length/char/1.cc: New.
5458 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
5459 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
5460 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
5461 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
5462 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
5463 * 22_locale/codecvt/out/char/1.cc: New.
5464 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
5465 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
5466 * 22_locale/codecvt/out/wchar_t/1.cc: New.
5467 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
5468 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
5469 * 22_locale/codecvt/unicode/char.cc: New.
5470 * 22_locale/codecvt/unicode/wchar_t.cc: New.
5471 * 22_locale/codecvt/unshift/char/1.cc: New.
5472 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
5473 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
5474 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
5475 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
5476 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
5477 * 22_locale/collate/1.cc: New.
5478 * 22_locale/collate/2.cc: New.
5479 * 22_locale/collate/compare/char/1.cc: New.
5480 * 22_locale/collate/compare/char/2.cc: New.
5481 * 22_locale/collate/compare/char/wrapped_env.cc: New.
5482 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
5483 * 22_locale/collate/compare/wchar_t/1.cc: New.
5484 * 22_locale/collate/compare/wchar_t/2.cc: New.
5485 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
5486 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
5487 * 22_locale/collate/hash/char/1.cc: New.
5488 * 22_locale/collate/hash/char/2.cc: New.
5489 * 22_locale/collate/hash/char/wrapped_env.cc: New.
5490 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
5491 * 22_locale/collate/hash/wchar_t/1.cc: New.
5492 * 22_locale/collate/hash/wchar_t/2.cc: New.
5493 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
5494 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
5495 * 22_locale/collate/transform/char/2.cc: New.
5496 * 22_locale/collate/transform/char/wrapped_env.cc: New.
5497 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
5498 * 22_locale/collate/transform/wchar_t/2.cc: New.
5499 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
5500 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
5501 * 22_locale/collate_byname/1.cc: New.
5502 * 22_locale/ctype/1.cc: New.
5503 * 22_locale/ctype/2.cc: New.
5504 * 22_locale/ctype/cons/char/1.cc: New.
5505 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
5506 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
5507 * 22_locale/ctype/is/char/1.cc: New.
5508 * 22_locale/ctype/is/char/2.cc: New.
5509 * 22_locale/ctype/is/char/3.cc: New.
5510 * 22_locale/ctype/is/char/wrapped_env.cc: New.
5511 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
5512 * 22_locale/ctype/is/wchar_t/1.cc: New.
5513 * 22_locale/ctype/is/wchar_t/2.cc: New.
5514 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
5515 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
5516 * 22_locale/ctype/narrow/char/1.cc: New.
5517 * 22_locale/ctype/narrow/char/2.cc: New.
5518 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
5519 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
5520 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
5521 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
5522 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
5523 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
5524 * 22_locale/ctype/scan/char/1.cc: New.
5525 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
5526 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
5527 * 22_locale/ctype/scan/wchar_t/1.cc: New.
5528 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
5529 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
5530 * 22_locale/ctype/to/char/1.cc: New.
5531 * 22_locale/ctype/to/char/wrapped_env.cc: New.
5532 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
5533 * 22_locale/ctype/to/wchar_t/1.cc: New.
5534 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
5535 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
5536 * 22_locale/ctype/widen/char/1.cc: New.
5537 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
5538 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
5539 * 22_locale/ctype/widen/wchar_t/1.cc: New.
5540 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
5541 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
5542 * 22_locale/facet/1.cc: New.
5543 * 22_locale/facet/2.cc: New.
5544 * 22_locale/global_templates/1.cc: New.
5545 * 22_locale/locale/cons/1.cc: New.
5546 * 22_locale/locale/cons/2.cc: New.
5547 * 22_locale/locale/cons/3.cc: New.
5548 * 22_locale/locale/cons/4.cc: New.
5549 * 22_locale/locale/cons/5.cc: New.
5550 * 22_locale/locale/cons/6.cc: New.
5551 * 22_locale/locale/cons/7.cc: New.
5552 * 22_locale/locale/global_locale_objects/1.cc: New.
5553 * 22_locale/locale/global_locale_objects/2.cc: New.
5554 * 22_locale/locale/global_locale_objects/3.cc: New.
5555 * 22_locale/locale/operations/1.cc: New.
5556 * 22_locale/locale/operations/2.cc: New.
5557 * 22_locale/messages/1.cc: New.
5558 * 22_locale/messages/2.cc: New.
5559 * 22_locale/messages/members/char/1.cc: New.
5560 * 22_locale/messages/members/char/2.cc: New.
5561 * 22_locale/messages/members/char/3.cc: New.
5562 * 22_locale/messages/members/char/wrapped_env.cc: New.
5563 * 22_locale/messages/members/char/wrapped_locale.cc: New.
5564 * 22_locale/messages_byname/1.cc: New.
5565 * 22_locale/money_get/1.cc: New.
5566 * 22_locale/money_get/2.cc: New.
5567 * 22_locale/money_get/get/char/1.cc: New.
5568 * 22_locale/money_get/get/char/2.cc: New.
5569 * 22_locale/money_get/get/char/3.cc: New.
5570 * 22_locale/money_get/get/char/4.cc: New.
5571 * 22_locale/money_get/get/char/5.cc: New.
5572 * 22_locale/money_get/get/char/6.cc: New.
5573 * 22_locale/money_get/get/char/7.cc: New.
5574 * 22_locale/money_get/get/char/8.cc: New.
5575 * 22_locale/money_get/get/char/wrapped_env.cc: New.
5576 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
5577 * 22_locale/money_get/get/wchar_t/1.cc: New.
5578 * 22_locale/money_get/get/wchar_t/2.cc: New.
5579 * 22_locale/money_get/get/wchar_t/3.cc: New.
5580 * 22_locale/money_get/get/wchar_t/4.cc: New.
5581 * 22_locale/money_get/get/wchar_t/5.cc: New.
5582 * 22_locale/money_get/get/wchar_t/6.cc: New.
5583 * 22_locale/money_get/get/wchar_t/7.cc: New.
5584 * 22_locale/money_get/get/wchar_t/8.cc: New.
5585 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
5586 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
5587 * 22_locale/money_put/1.cc: New.
5588 * 22_locale/money_put/2.cc: New.
5589 * 22_locale/money_put/put/char/1.cc: New.
5590 * 22_locale/money_put/put/char/2.cc: New.
5591 * 22_locale/money_put/put/char/3.cc: New.
5592 * 22_locale/money_put/put/char/4.cc: New.
5593 * 22_locale/money_put/put/char/5.cc: New.
5594 * 22_locale/money_put/put/char/6.cc: New.
5595 * 22_locale/money_put/put/char/wrapped_env.cc: New.
5596 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
5597 * 22_locale/money_put/put/wchar_t/1.cc: New.
5598 * 22_locale/money_put/put/wchar_t/2.cc: New.
5599 * 22_locale/money_put/put/wchar_t/3.cc: New.
5600 * 22_locale/money_put/put/wchar_t/4.cc: New.
5601 * 22_locale/money_put/put/wchar_t/5.cc: New.
5602 * 22_locale/money_put/put/wchar_t/6.cc: New.
5603 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
5604 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
5605 * 22_locale/moneypunct/1.cc: New.
5606 * 22_locale/moneypunct/2.cc: New.
5607 * 22_locale/moneypunct/3.cc: New.
5608 * 22_locale/moneypunct/members/char/1.cc: New.
5609 * 22_locale/moneypunct/members/char/2.cc: New.
5610 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
5611 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
5612 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
5613 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
5614 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
5615 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
5616 * 22_locale/moneypunct_byname/1.cc: New.
5617 * 22_locale/num_get/1.cc: New.
5618 * 22_locale/num_get/2.cc: New.
5619 * 22_locale/num_get/get/char/1.cc: New.
5620 * 22_locale/num_get/get/char/2.cc: New.
5621 * 22_locale/num_get/get/char/3.cc: New.
5622 * 22_locale/num_get/get/char/4.cc: New.
5623 * 22_locale/num_get/get/char/5.cc: New.
5624 * 22_locale/num_get/get/char/6.cc: New.
5625 * 22_locale/num_get/get/char/wrapped_env.cc: New.
5626 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
5627 * 22_locale/num_get/get/wchar_t/1.cc: New.
5628 * 22_locale/num_get/get/wchar_t/2.cc: New.
5629 * 22_locale/num_get/get/wchar_t/3.cc: New.
5630 * 22_locale/num_get/get/wchar_t/4.cc: New.
5631 * 22_locale/num_get/get/wchar_t/5.cc: New.
5632 * 22_locale/num_get/get/wchar_t/6.cc: New.
5633 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
5634 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
5635 * 22_locale/num_put/1.cc: New.
5636 * 22_locale/num_put/2.cc: New.
5637 * 22_locale/num_put/put/char/1.cc: New.
5638 * 22_locale/num_put/put/char/2.cc: New.
5639 * 22_locale/num_put/put/char/3.cc: New.
5640 * 22_locale/num_put/put/char/4.cc: New.
5641 * 22_locale/num_put/put/char/5.cc: New.
5642 * 22_locale/num_put/put/char/wrapped_env.cc: New.
5643 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
5644 * 22_locale/num_put/put/wchar_t/1.cc: New.
5645 * 22_locale/num_put/put/wchar_t/2.cc: New.
5646 * 22_locale/num_put/put/wchar_t/3.cc: New.
5647 * 22_locale/num_put/put/wchar_t/4.cc: New.
5648 * 22_locale/num_put/put/wchar_t/5.cc: New.
5649 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
5650 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
5651 * 22_locale/numpunct/1.cc: New.
5652 * 22_locale/numpunct/2.cc: New.
5653 * 22_locale/numpunct/members/char/1.cc: New.
5654 * 22_locale/numpunct/members/char/2.cc: New.
5655 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
5656 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
5657 * 22_locale/numpunct/members/wchar_t/1.cc: New.
5658 * 22_locale/numpunct/members/wchar_t/2.cc: New.
5659 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
5660 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
5661 * 22_locale/numpunct_byname/1.cc: New.
5662 * 22_locale/numpunct_byname/2.cc: New.
5663 * 22_locale/time_get/1.cc: New.
5664 * 22_locale/time_get/2.cc: New.
5665 * 22_locale/time_get/date_order/char/1.cc: New.
5666 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
5667 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
5668 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
5669 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
5670 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
5671 * 22_locale/time_get/get_date/char/1.cc: New.
5672 * 22_locale/time_get/get_date/char/2.cc: New.
5673 * 22_locale/time_get/get_date/char/3.cc: New.
5674 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
5675 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
5676 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
5677 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
5678 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
5679 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
5680 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
5681 * 22_locale/time_get/get_monthname/char/1.cc: New.
5682 * 22_locale/time_get/get_monthname/char/2.cc: New.
5683 * 22_locale/time_get/get_monthname/char/3.cc: New.
5684 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
5685 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
5686 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
5687 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
5688 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
5689 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
5690 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
5691 * 22_locale/time_get/get_time/char/1.cc: New.
5692 * 22_locale/time_get/get_time/char/2.cc: New.
5693 * 22_locale/time_get/get_time/char/3.cc: New.
5694 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
5695 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
5696 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
5697 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
5698 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
5699 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
5700 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
5701 * 22_locale/time_get/get_weekday/char/1.cc: New.
5702 * 22_locale/time_get/get_weekday/char/2.cc: New.
5703 * 22_locale/time_get/get_weekday/char/3.cc: New.
5704 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
5705 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
5706 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
5707 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
5708 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
5709 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
5710 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
5711 * 22_locale/time_get/get_year/char/1.cc: New.
5712 * 22_locale/time_get/get_year/char/3.cc: New.
5713 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
5714 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
5715 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
5716 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
5717 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
5718 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
5719 * 22_locale/time_put/1.cc: New.
5720 * 22_locale/time_put/2.cc: New.
5721 * 22_locale/time_put/put/char/1.cc: New.
5722 * 22_locale/time_put/put/char/10.cc: New.
5723 * 22_locale/time_put/put/char/2.cc: New.
5724 * 22_locale/time_put/put/char/3.cc: New.
5725 * 22_locale/time_put/put/char/4.cc: New.
5726 * 22_locale/time_put/put/char/5.cc: New.
5727 * 22_locale/time_put/put/char/6.cc: New.
5728 * 22_locale/time_put/put/char/7.cc: New.
5729 * 22_locale/time_put/put/char/8.cc: New.
5730 * 22_locale/time_put/put/char/9.cc: New.
5731 * 22_locale/time_put/put/char/wrapped_env.cc: New.
5732 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
5733 * 22_locale/time_put/put/wchar_t/1.cc: New.
5734 * 22_locale/time_put/put/wchar_t/10.cc: New.
5735 * 22_locale/time_put/put/wchar_t/2.cc: New.
5736 * 22_locale/time_put/put/wchar_t/3.cc: New.
5737 * 22_locale/time_put/put/wchar_t/4.cc: New.
5738 * 22_locale/time_put/put/wchar_t/5.cc: New.
5739 * 22_locale/time_put/put/wchar_t/6.cc: New.
5740 * 22_locale/time_put/put/wchar_t/7.cc: New.
5741 * 22_locale/time_put/put/wchar_t/8.cc: New.
5742 * 22_locale/time_put/put/wchar_t/9.cc: New.
5743 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
5744 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
5746 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
5748 * config/locale/generic/messages_members.h
5749 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
5750 unqualified members of base clasess.
5752 2003-01-16 Mark Mitchell <mark@codesourcery.com>
5753 Jeffrey Oldham <oldham@codesourcery.com>
5755 * config/locale/gnu/messages_members.h: Use this-> to refer to
5756 unqualified members of base clasess.
5757 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
5758 * include/bits/codecvt.h: Likewise.
5759 * include/bits/deque.tcc: Likewise.
5760 * include/bits/fstream.tcc: Likewise.
5761 * include/bits/istream.tcc: Likewise.
5762 * include/bits/list.tcc: Likewise.
5763 * include/bits/locale_facets.h: Likewise.
5764 * include/bits/ostream.tcc: Likewise.
5765 * include/bits/sstream.tcc: Likewise.
5766 * include/bits/stl_bvector.h: Likewise.
5767 * include/bits/stl_deque.h: Likewise.
5768 * include/bits/stl_list.h: Likewise.
5769 * include/bits/stl_tree.h: Likewise.
5770 * include/bits/stl_vector.h: Likewise.
5771 * include/bits/vector.tcc: Likewise.
5772 * include/ext/ropeimpl.h: Likewise.
5773 * include/ext/stdio_filebuf.h: Likewise.
5774 * include/ext/stl_rope.h: Likewise.
5775 * include/std/std_fstream.h: Likewise.
5776 * include/std/std_sstream.h: Likewise.
5778 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
5780 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
5782 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
5784 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
5785 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
5786 * aclocal.m4: Regenerate.
5787 * configure: Regenerate.
5788 * testsuite/Makefile.am (all-local): Add conditional rule to
5789 generate testsuite_wchar_t.
5790 * testsuite/Makefile.in: Regenerate.
5791 * testsuite/lib/libstdc++-v3-dg.exp
5792 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
5793 testsuite_wchar_t is not present in the build directory.
5794 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
5795 Remove setulimit bits.
5796 * testsuite/26_numerics/complex_value.cc: Set to noopts.
5797 * testsuite/Makefile.am (CLEANFILES): Add.
5798 * testsuite/Makefile.in: Regenerate.
5800 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5802 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
5805 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
5807 Further conform g++'s __vmi_class_type_info to the C++ ABI
5809 * libsupc++/cxxabi.h
5810 (__vmi_class_type_info::__flags_masks): Remove enumerations not
5811 required by the specification.
5813 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
5815 Renames, namespaces for testsuite utilities.
5816 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
5817 (gnu_allocator_tracker): Rename to allocation_tracker.
5818 (gnu_new_allocator): Rename to tracker_alloc.
5819 (__set_testsuite_memlimit): Rename to set_memory_limits.
5820 (gnu_assignment_operator): Rename to assignment_operator.
5821 (gnu_destructor): Rename to destructor.
5822 (gnu_copy_tracker): Rename to copy_tracker.
5823 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
5824 (run_tests_wrapped_locale): New.
5825 (run_tests_wrapped_env): New.
5826 * testsuite/testsuite_hooks.cc: Same.
5827 (class locale_data): Add.
5828 (class enviornment_variable): Add.
5829 (class not_found): Add.
5830 * testsuite/testsuite_allocator.h: Same.
5831 * testsuite/testsuite_allocator.cc: Same.
5832 * testsuite/23_containers/deque_ctor.cc
5833 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
5835 Change gnu_new_allocator to tracker_alloc.
5836 Change gnu_counting_struct to counter.
5837 Change gnu_copy_tracker to copy_tracker.
5838 Change gnu_copy_constructor to copy_constructor.
5839 Change gnu_assignment_operator to assignment_operator.
5841 * testsuite/23_containers/vector_capacity.cc: Same.
5842 * testsuite/23_containers/vector_ctor.cc (test01): Same.
5843 * testsuite/23_containers/list_modifiers.cc: Change
5844 gnu_copy_tracker to copy_tracker.
5845 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
5846 __set_testsuite_memlimit to set_memory_limits.
5847 * testsuite/21_strings/insert.cc (main): Same.
5848 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
5849 * testsuite/27_io/stringstream.cc: Same.
5850 * testsuite/27_io/stringbuf.cc: Same.
5851 * testsuite/27_io/streambuf.cc: Same.
5852 * testsuite/27_io/ostream.cc: Same.
5853 * testsuite/27_io/istream.cc: Same.
5854 * testsuite/27_io/fstream.cc: Same.
5855 * testsuite/lib/libstdc++-v3-dg.exp
5856 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
5857 three levels deeper in glob patterns.
5859 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
5861 * docs/doxygen/tables.html: Finished now.
5862 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
5863 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
5866 * include/bits/deque.tcc, include/bits/stl_alloc.h,
5867 include/bits/stl_deque.h, include/bits/stl_list.h,
5868 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
5871 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
5873 * configure.in: Revert.
5874 * configure: Regenerate.
5876 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5878 * include/Makefile.am (install-data-local): Prepend
5879 $(DESTDIR) to destination paths in all (un)installation
5880 commands. Use ${c_base_builddir} and ${std_builddir}
5881 as destination subdirectories to achieve consistency with
5882 preceding mkinstalldirs commands. No effect because both
5883 variables contain "." only.
5884 * include/Makefile.in: Regenerate.
5886 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
5888 * include/Makefile.am (stamp-*): Add checks for existing stamps.
5889 * include/Makefile.in: Regenerate.
5891 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
5892 * aclocal.m4: Regenerate.
5894 * configure.in: Don't add new multi-do rules every time the
5895 directory is reconfigured.
5896 * configure: Regenerate.
5898 2003-01-08 Brad Spencer <spencer@infointeractive.com>
5899 Nathan Myers <ncm@cantrip.org>
5901 * src/Makefile.am (stamp-debug): Clean.
5902 * src/Makefile.in: Regenerate.
5904 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
5907 * Makefile.am (distclean-multi): Fix.
5908 * Makefile.in: Regenerate.
5910 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
5912 * include/bits/locale_facets.h (messages): Move ctor, dtor
5914 (__timepunct): Same.
5915 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
5916 definitions. Conditionalize for GNU systems.
5917 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
5919 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
5920 definitions. Conditionalize for GNU systems.
5921 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
5923 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
5924 * src/locale.cc: Define.
5925 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
5927 * config/locale/gnu/time_members.h: Use it.
5928 * config/locale/gnu/messages_members.h: Use it.
5929 * config/linker-map.gnu: Add locale::facets details.
5930 * include/Makefile.am (target_headers_extra): Add time_members.h.
5931 * include/Makefile.in: Regenerate.
5932 * acinclude.m4: Export CTIME_H.
5933 * aclocal.m4: Regenerate.
5934 * configure: Regnerate.
5936 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
5939 (codecvt<char, char, mbstate_t>::do_in, do_out):
5940 Tweak parameters to avoid unused parameter warnings.
5942 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
5945 * include/bits/locale_facets.cc (num_put::_M_convert_float):
5946 Limit __prec to digits10 + 2, not digits10 + 1, taking into
5947 account the possibility of %{g,G} conversion specifiers
5948 inside _S_format_float.
5949 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
5951 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5953 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
5954 libstdc++-v3-list-sourcefiles): Additionally handle files one
5955 level deeper in glob patterns.
5957 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
5958 * testsuite/27_io/istream_extractor_arith/01.cc,
5959 testsuite/27_io/istream_extractor_arith/02.cc,
5960 testsuite/27_io/istream_extractor_arith/03.cc,
5961 testsuite/27_io/istream_extractor_arith/06.cc,
5962 testsuite/27_io/istream_extractor_arith/07.cc,
5963 testsuite/27_io/istream_extractor_arith/08.cc,
5964 testsuite/27_io/istream_extractor_arith/09.cc,
5965 testsuite/27_io/istream_extractor_arith/10.cc,
5966 testsuite/27_io/istream_extractor_arith/11.cc,
5967 testsuite/27_io/istream_extractor_arith/12.cc,
5968 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
5969 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
5972 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
5976 (codecvt<char, char, mbstate_t>::do_in, do_out):
5977 Implement the resolution of DR19 (TC).
5978 * testsuite/22_locale/codecvt_members_char_char.cc
5981 2003-01-02 Jason Merrill <jason@redhat.com>
5983 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
5984 *__mem is also an output.
5985 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.