1 2003-08-27 Petur Runolfsson <peturr02@ru.is>
3 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
4 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
6 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
8 * Makefile.am: Remove trailing whitespace. Remove needless
9 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
10 * include/Makefile.am: Likewise.
11 * libmath/Makefile.am: Likewise.
12 * libsupc++/Makefile.am: Likewise.
13 * po/Makefile.am: Likewise.
14 * src/Makefile.am: Likewise.
15 * testsuite/Makefile.am: Likewise.
17 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
18 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
19 testsuite/Makefile.in: Regenerated.
21 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
23 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
25 * aclocal.m4, configure: Regenerate.
27 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
29 * acinclude.m4: Include no-executables.m4.
30 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
31 * aclocal.m4: Regenerated.
32 * configure: Regenerated.
34 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
36 * acinclude.m4: Don't call AC_ISC_POSIX.
37 * aclocal.m4: Regenerated.
38 * configure: Regenerated.
40 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
42 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
43 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
44 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
45 used elsewhere in this file.
46 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
47 * configure.ac: ...called here to expand all conditionals.
48 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
49 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
50 (install-freestanding-headers): New target, a subset of
51 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
53 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
54 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
55 src/Makefile.in, testsuite/Makefile.in: Regenerated.
57 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
59 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
60 pathnames from generated tag file.
62 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
64 * Makefile.am: Add comment.
65 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
67 * configure.ac: Use them both here, instead of hardcoded lists.
69 * fragment.am: Add STAMP varaible.
70 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
72 (stamp-*): Move file creation rule outside of 'if' branches to
73 ensure the stamp-* files are actually updated. Use $(STAMP).
74 * src/Makefile.am: Remove now-nonexistant variable.
75 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
77 * po/Makefile.am: Include same fragment as all the others.
79 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
80 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
82 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
84 * testsuite/data/cin_unget-1.txt: New.
85 * testsuite/27_io/objects/char/12048.cc: New.
87 2003-08-25 Zack Weinberg <zack@codesourcery.com>
89 * config/os/hpux/os_defines.h: Unconditionally define
90 _GLIBCXX_GTHREAD_USE_WEAK to 0.
92 2003-08-19 Geoffrey Keating <geoffk@apple.com>
94 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
95 crosses to Darwin targets.
96 * configure: Regenerate.
98 2003-08-19 Petur Runolfsson <peturr02@ru.is>
100 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
102 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
104 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
105 in the patch from 3 minutes ago. Boy, is my face red.
106 * configure: At least I remembered to regenerate this.
108 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
110 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
111 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
112 things from the top level.
113 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
114 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
115 (currently unused). Strip the fake-VPATH shell fragment from
116 automake-generated rules, if present.
117 * linkage.m4: Add comment.
119 * fragment.am: New file, containing factored-out common settings.
120 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
121 * Makefile.am: Include fragment.am. Remove common variables.
122 * include/Makefile.am: Likewise.
123 * libmath/Makefile.am: Likewise.
124 * libsupc++/Makefile.am: Likewise.
125 * po/Makefile.am: Likewise. Print rules during check.
126 * src/Makefile.am: Likewise.
127 * testsuite/Makefile.am: Likewise.
129 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
130 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
131 src/Makefile.in, testsuite/Makefile.in: Regenerate.
133 2003-08-11 John Levon <levon@movementarian.org>
135 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
136 remaining places for the name change from GLIBCPP_FORCE_NEW
139 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
141 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
143 * include/bits/basic_ios.tcc: Same.
144 * include/bits/istream.tcc: Same.
145 * include/bits/locale_facets.h: Same.
146 * include/bits/ostream.tcc: Same.
147 * include/std/std_istream.h: Same.
148 * include/std/std_ostream.h: Same.
149 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
151 * include/ext/rope: Remove build warning.
153 2003-08-11 Andreas Jaeger <aj@suse.de>
155 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
157 * include/Makefile.in: Regenerated.
159 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
161 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
162 when calling AC_PROG_CC.
163 * aclocal.m4, configure: Regenerate.
165 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
167 * acinclude.m4: Properly quote variable which will be expanded
168 inside makefiles. Use CXX instead of CC to extract compiler info.
169 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
170 correct form in PACKAGE.
171 * aclocal.m4, configure: Regenerate.
173 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
175 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
176 (check-abi-verbose): Same.
177 * testsuite/testsuite_performance.h (report_performance): Same.
179 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
181 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
183 2003-08-07 Doug Gregor <dgregor@apple.com>
185 * include/bits/char_traits.h (char_traits::not_eof): Match operand
188 2003-08-07 Bernardo Innocenti <bernie@develer.com>
191 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
192 Replace variants with new BSET-based version.
194 2003-08-07 Carlo Wood <carlo@alinoe.com>
196 * include/bits/demangle.h: Do not use cctype functions that depend
199 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
201 * configure.in: Rename...
202 * configure.ac: ...to this.
203 * docs/html/17_intro/porting.texi: Update name.
205 * docs/html/17_intro/porting.html: Regenerate.
206 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
207 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
208 testsuite/Makefile.in: Regenerate (picks up new dependancy).
210 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
212 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
213 pipe, open the window to let out the fumes, redo the option-handling
214 logic to properly execute the detection test.
215 * aclocal.m4, configure: Regenerate.
217 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
219 Convert to new autotools.
220 * acconfig.h: Update with correct names.
221 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
222 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
223 * configure.in: Update. Split hardcoded cross-configury settings
225 * crossconfig.m4: ...here. New file. Contents untouched.
226 * acinclude.m4: Reorganize and rewrite as needed. Split large
228 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
230 * scripts/testsuite_flags.in: Update.
232 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
233 variables (already generated by automake).
234 * include/Makefile.am: Ditto.
235 * libmath/Makefile.am: Ditto.
236 * libsupc++/Makefile.am: Ditto.
237 * po/Makefile.am: Ditto.
238 * src/Makefile.am: Ditto.
240 * aclocal.m4: Regenerate using new versions.
241 * config.h.in: Ditto.
243 * Makefile.in: Ditto.
244 * include/Makefile.in: Ditto.
245 * libmath/Makefile.in: Ditto.
246 * libsupc++/Makefile.in: Ditto.
247 * po/Makefile.in: Ditto.
248 * src/Makefile.in: Ditto.
249 * testsuite/Makefile.in: Ditto.
251 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
253 * po/libstdc++.pot: Re-extract/regenerate.
255 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
257 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
258 Remove unneeded variable assignments. Leave them for automake.
259 * testsuite/lib/libstdc++-v3.exp: Rename...
260 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
262 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
263 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
266 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
268 * docs/doxygen/guide.html: run_doxygen uses bash.
269 * docs/doxygen/mainpage.html: We'll be shipping tag files.
270 * docs/doxygen/run_doxygen: Tweaks and improvements.
271 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
272 * docs/html/install.html: Update autoconf/automake requirements.
273 * docs/html/test.html: Add section describing DejaGNU support.
274 * docs/html/17_intro/confdeps.dot: New file, generates...
275 * docs/html/17_intro/confdeps.png: ...this new file.
276 * docs/html/Makefile: Generated here.
277 * docs/html/17_intro/configury.html: New file.
279 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
281 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
282 * testsuite/lib/libstdc++-v3.exp: ...to this.
283 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
285 2003-07-31 Doug Gregor <dgregor@apple.com>
287 Add user specialization tests.
288 * testsuite/23_containers/deque/1.cc: New.
289 * testsuite/23_containers/list/1.cc: New.
290 * testsuite/23_containers/map/1.cc: New.
291 * testsuite/23_containers/multimap/1.cc: New.
292 * testsuite/23_containers/multiset/1.cc: New.
293 * testsuite/23_containers/set/1.cc: New.
294 * testsuite/23_containers/vector/1.cc: New.
296 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
298 Reshuffle 23_containers testsuite.
299 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
300 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
301 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
302 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
303 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
304 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
305 vector_resize.cc: Split into...
306 * 23_containers/bitset/cons/1.cc: New.
307 * 23_containers/bitset/cons/6282.cc: New.
308 * 23_containers/bitset/count/6124.cc: New.
309 * 23_containers/bitset/operations/1.cc: New.
310 * 23_containers/bitset/operations/2.cc: New.
311 * 23_containers/bitset/test/1.cc: New.
312 * 23_containers/bitset/to_ulong/1.cc: New.
313 * 23_containers/deque/cons/1.cc: New.
314 * 23_containers/deque/cons/2.cc: New.
315 * 23_containers/deque/operators/1.cc: New.
316 * 23_containers/list/capacity/1.cc: New.
317 * 23_containers/list/cons/1.cc: New.
318 * 23_containers/list/cons/2.cc: New.
319 * 23_containers/list/cons/3.cc: New.
320 * 23_containers/list/cons/4.cc: New.
321 * 23_containers/list/cons/5.cc: New.
322 * 23_containers/list/cons/6.cc: New.
323 * 23_containers/list/cons/7.cc: New.
324 * 23_containers/list/cons/8.cc: New.
325 * 23_containers/list/cons/9.cc: New.
326 * 23_containers/list/modifiers/1.cc: New.
327 * 23_containers/list/modifiers/2.cc: New.
328 * 23_containers/list/modifiers/3.cc: New.
329 * 23_containers/list/operators/1.cc: New.
330 * 23_containers/list/operators/2.cc: New.
331 * 23_containers/list/operators/3.cc: New.
332 * 23_containers/list/operators/4.cc: New.
333 * 23_containers/map/insert/1.cc: New.
334 * 23_containers/map/operators/1.cc: New.
335 * 23_containers/map/operators/1_neg.cc: New.
336 * 23_containers/multiset/insert/1.cc: New.
337 * 23_containers/priority_queue/members/7161.cc: New.
338 * 23_containers/queue/members/7157.cc: New.
339 * 23_containers/set/operators/1_neg.cc: New.
340 * 23_containers/stack/members/7158.cc: New.
341 * 23_containers/vector/bool/1.cc: New.
342 * 23_containers/vector/bool/6886.cc: New.
343 * 23_containers/vector/capacity/1.cc: New.
344 * 23_containers/vector/capacity/2.cc: New.
345 * 23_containers/vector/capacity/8230.cc: New.
346 * 23_containers/vector/cons/1.cc: New.
347 * 23_containers/vector/cons/2.cc: New.
348 * 23_containers/vector/cons/3.cc: New.
349 * 23_containers/vector/cons/4.cc: New.
350 * 23_containers/vector/cons/6513.cc: New.
351 * 23_containers/vector/element_access/1.cc: New.
352 * 23_containers/vector/modifiers/1.cc: New.
353 * 23_containers/vector/modifiers/2.cc: New.
354 * 23_containers/vector/resize/1.cc: New.
356 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
358 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
360 * testsuite/thread/pthread2.cc: Likewise.
361 * testsuite/thread/pthread3.cc: Likewise.
362 * testsuite/thread/pthread4.cc: Likewise.
363 * testsuite/thread/pthread5.cc: Likewise.
364 * testsuite/thread/pthread6.cc: Likewise.
365 * testsuite/thread/pthread7-rope.cc: Likewise.
367 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
369 * include/bits/c++config: Partial reversion (comment placement) of
372 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
374 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
375 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
376 (_GLIBCXX_AT_AT): Remove.
377 (__USE_MALLOC): Remove.
378 * include/std/std_fstream.h: Modify.
379 * include/bits/basic_ios.h: Same.
380 * include/bits/valarray_array.h: Same.
381 * include/c_std/std_cmath.h: Same.
382 * include/c_std/cmath.tcc: Same.
383 * include/std/std_vector.h: Same.
384 * include/std/std_string.h: Same.
385 * include/std/std_stack.h: Same.
386 * include/std/std_queue.h: Same.
387 * include/std/std_list.h: Same.
388 * include/std/std_deque.h: Same.
389 * include/std/std_streambuf.h: Same.
390 * include/std/std_sstream.h: Same.
391 * include/std/std_ostream.h: Same.
392 * include/std/std_istream.h: Same.
393 * include/bits/valarray_array.tcc: Same, format.
395 * include/c/std_cctype.h: Fix include guards.
396 * include/c/std_cerrno.h: Same.
397 * include/c/std_cfloat.h: Same.
398 * include/c/std_climits.h: Same.
399 * include/c/std_clocale.h: Same.
400 * include/c/std_cmath.h: Same.
401 * include/c/std_csetjmp.h: Same.
402 * include/c/std_csignal.h: Same.
403 * include/c/std_cstdarg.h: Same.
404 * include/c/std_cstddef.h: Same.
405 * include/c/std_cstdio.h: Same.
406 * include/c/std_cstdlib.h: Same.
407 * include/c/std_cstring.h: Same.
408 * include/c/std_ctime.h: Same.
409 * include/c/std_cwchar.h: Same.
410 * include/c/std_cwctype.h: Same.
411 * include/c_std/cmath.tcc: Same.
412 * include/c_std/std_cmath.h: Same.
414 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
417 * include/bits/stl_tree.h: Replace C-style casts with C++-style
418 casts. Changes to avoid casting away constness. Eliminate
419 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
420 initialization lists. Move out implementation of __black_count()
422 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
423 Rename_Rb_tree_base_iterator::_M_increment() to
424 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
426 * config/linker-map.gnu: Add and change symbols here.
428 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
430 * docs/html/22_locale/howto.html: Use locale::classic() instead
433 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
435 * testsuite/testsuite_hooks.h: Remove list include.
436 (func_callback): Define as unique type, not std::list.
437 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
438 * testsuite/libstdc++-v3.dg/dg.exp: Same.
439 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
440 * testsuite/23_containers/bitset_ctor.cc:
441 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
442 * testsuite/18_support/numeric_limits.cc: Same.
443 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
444 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
445 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
446 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
447 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
448 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
449 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
450 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
451 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
452 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
453 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
454 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
455 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
456 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
457 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
458 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
459 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
460 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
461 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
462 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
463 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
464 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
465 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
466 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
467 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
468 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
469 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
470 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
471 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
472 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
473 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
474 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
475 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
476 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
477 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
478 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
479 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
480 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
481 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
482 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
483 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
484 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
485 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
486 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
487 * testsuite/23_containers/bitset_ctor.cc: Same.
488 * testsuite/23_containers/bitset_shift.cc: Same.
489 * testsuite/23_containers/vector_ctor.cc: Same.
490 * testsuite/23_containers/vector_element_access.cc: Same.
491 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
492 * testsuite/24_iterators/iterator.cc: Same.
493 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
494 * testsuite/25_algorithms/lower_bound.cc: Same.
495 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
496 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
497 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
498 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
499 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
500 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
501 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
502 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
503 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
504 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
505 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
508 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
510 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
511 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
512 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
513 GLIBCPP to GLIBCXX (and explain as needed).
515 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
519 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
521 * testsuite/22_locale/messages/members/char/1.cc,
522 testsuite/22_locale/messages/members/char/2.cc,
523 testsuite/22_locale/messages/members/char/3.cc,
524 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
525 the origin of LOCALEDIR.
526 * testsuite/lib/libstdc++-v3.exp: New file.
528 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
530 * include/bits/char_traits.h: Update copyright, tweak.
531 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
534 2003-07-24 Matt Austern <austern@apple.com>
536 * /include/bits/char_traits.h (class char_traits): Put all the
537 real work into the new class template __gnu_cxx::char_traits.
538 Gave generic definitions for member functions. Types are taken
539 from the new class template __gnu_cxx::_Char_types.
540 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
541 file. Test of std::char_traits<short>, which serves as a test of
542 the char_traits primary template.
544 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
546 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
548 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
550 * testsuite/23_containers/map_operators.cc: Conform to
551 container requirement as value must be Assignable.
553 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
555 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
556 tests not only generation of pch files, but also their use.
557 * aclocal.m4, configure: Rebuilt.
559 2003-07-23 Steve Ellcey <sje@cup.hp.com>
561 * config/cpu/hppa/atomicity.h: Change
562 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
563 to match misc-inst.cc
565 2003-07-23 Steve Ellcey <sje@cup.hp.com>
567 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
568 * include/c_std/std_cctype.h: Ditto.
569 * include/c_std/std_cerrno.h: Ditto.
570 * include/c_std/std_cfloat.h: Ditto.
571 * include/c_std/std_climits.h: Ditto.
572 * include/c_std/std_clocale.h: Ditto.
573 * include/c_std/std_cmath.h: Ditto.
574 * include/c_std/std_csetjmp.h: Ditto.
575 * include/c_std/std_csignal.h: Ditto.
576 * include/c_std/std_cstdarg.h: Ditto.
577 * include/c_std/std_cstddef.h: Ditto.
578 * include/c_std/std_cstdio.h: Ditto.
579 * include/c_std/std_cstdlib.h: Ditto.
580 * include/c_std/std_cstring.h: Ditto.
581 * include/c_std/std_ctime.h: Ditto.
582 * include/c_std/std_cwchar.h: Ditto.
583 * include/c_std/std_cwctype.h: Ditto.
584 * include/std/std_algorithm.h: Ditto.
585 * include/std/std_bitset.h: Ditto.
586 * include/std/std_complex.h: Ditto.
587 * include/std/std_deque.h: Ditto.
588 * include/std/std_fstream.h: Ditto.
589 * include/std/std_functional.h: Ditto.
590 * include/std/std_iomanip.h: Ditto.
591 * include/std/std_ios.h: Ditto.
592 * include/std/std_iosfwd.h: Ditto.
593 * include/std/std_iostream.h: Ditto.
594 * include/std/std_istream.h: Ditto.
595 * include/std/std_iterator.h: Ditto.
596 * include/std/std_limits.h: Ditto.
597 * include/std/std_list.h: Ditto.
598 * include/std/std_locale.h: Ditto.
599 * include/std/std_map.h: Ditto.
600 * include/std/std_memory.h: Ditto.
601 * include/std/std_numeric.h: Ditto.
602 * include/std/std_ostream.h: Ditto.
603 * include/std/std_queue.h: Ditto.
604 * include/std/std_set.h: Ditto.
605 * include/std/std_sstream.h: Ditto.
606 * include/std/std_stack.h: Ditto.
607 * include/std/std_stdexcept.h: Ditto.
608 * include/std/std_streambuf.h: Ditto.
609 * include/std/std_string.h: Ditto.
610 * include/std/std_utility.h: Ditto.
611 * include/std/std_valarray.h: Ditto.
612 * include/std/std_vector.h: Ditto.
614 2003-07-22 Doug Gregor <dgregor@apple.com>
616 * include/bits/basic_string.h (basic_string::insert): Deprecate
619 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
621 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
623 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
624 (test03): Include typeinfo for bad_cast.
625 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
626 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
627 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
629 2003-07-21 Doug Gregor <dgregor@apple.com>
631 * include/bits/boost_concept_check.h:
632 (_EqualityComparableConcept::__constraints): Remove != from the
633 list of constraints; it is not listed in Table 28 of the C++98
636 2003-07-18 Andreas Jaeger <aj@suse.de>
638 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
639 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
640 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
641 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
643 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
645 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
646 * config/locale/generic/messages_members.h: Tweaks.
647 * config/locale/generic/monetary_members.cc
648 (moneypunct::_M_initialize_moneypunct): Use cache.
649 (moneypunct::~moneypunct): Delete cache.
650 * config/locale/generic/time_members.cc:
651 (__timepunct::_M_initialize_timepunct): Use cache.
652 * config/locale/generic/time_members.h:
653 (__timepunct::~__timepunct): Delete cache.
654 (__timepunct::__timepunct): Set cache.
655 * config/locale/gnu/messages_members.h: Tweaks.
656 * config/locale/gnu/monetary_members.cc:
657 (moneypunct::_M_initialize_moneypunct): Use cache.
658 (moneypunct::~moneypunct): Delete cache.
659 * config/locale/gnu/time_members.cc:
660 (__timepunct::_M_initialize_timepunct): Use cache.
661 * config/locale/gnu/time_members.h:
662 (__timepunct::~__timepunct): Delete cache.
663 (__timepunct::__timepunct): Set cache.
664 * include/bits/locale_facets.h (__timepunct_cache): New.
665 (__moneypunct_cache): New.
666 * include/bits/locale_facets.tcc: Tweak.
667 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
668 * src/locale-inst.cc: Instantiate caches.
669 * src/globals.cc: Add "C" caches.
670 * src/localename.cc: Use external "C" caches.
672 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
674 * docs/doxygen/guide.html: Fix typo.
676 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
678 * include/ext/pod_char_traits.h: Add state template argument.
680 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
682 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
683 (num_get::_M_convert_int): To _M_insert_int.
684 (num_get::_M_convert_float): To _M_insert_float.
685 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
686 Use caches for ctype, num_get.
687 (num_get::_M_extract_int): Same.
688 (num_get::get(bool)): Same.
689 (__verify_grouping): Use size_t.
690 * src/locale-inst.cc: Update.
691 * src/locale.cc: Adjust _S_atoms_in.
693 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
695 * docs/doxygen/mainpage.html: Move building/writing instructions...
696 * docs/doxygen/guide.html: ...to here. New file.
698 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
700 * docs/html/ext/howto.html: Update URL for SGI STL docs.
701 * docs/html/faq/index.html: Same.
702 * docs/html/faq/index.txt: Regenerate.
704 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
707 * include/bits/locale_facets.tcc (money_get::do_get):
708 Strip only _leading_ zeros.
709 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
710 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
712 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
714 * include/ext/hash_map (class hash_multimap): Remove extra
715 semicolons from __glibcxx_class_requires3 entries.
716 * include/ext/hash_set (class hash_set): Ditto.
717 (class hash_multiset): Ditto.
719 2003-07-15 Petur Runolfsson <peturr02@ru.is>
721 * include/bits/char_traits.h (char_traits<wchar_t>::move):
722 Change last parameter from int_type to size_t.
724 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
726 * include/bits/stl_algo.h (includes, set_union, set_intersection,
727 set_difference, set_symmetric_difference, max_element, min_element,
728 next_permutation, prev_permutation, find_first_of, find_end):
730 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
731 restrictions in docs.
732 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
734 * docs/doxygen/doxygroups.cc (setoperations): New group.
736 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
738 * include/bits/basic_string.h: Document public functions.
739 * docs/doxygen/TODO: Update c21 todo.
741 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
743 * include/bits/stl_list.h: Document more functions.
744 * docs/doxygen/TODO: Update c23 todo.
746 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
748 * config/locale/gnu/c_locale.h (__convert_from_v): One more
751 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
753 * include/bits/stl_tempbuf.h: Qualify free with std::.
754 * src/locale.cc: Include <cstdlib>, qualify getenv.
756 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
758 * config/locale/gnu/c_locale.h (__convert_from_v): Include
759 <cstdio>. Qualify names.
760 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
762 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
763 Nathan C. Myers <ncm-nospam@cantrip.org>
766 * include/std/std_fstream.h (xsputn): Declare only.
767 * include/bits/fstream.tcc (xsputn): Define, optimize for the
768 always_noconv() case: when __n is sufficiently large flush
769 the buffer and issue a direct write, if possible combining the
770 two with writev in __basic_file<>::xsputn_2.
771 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
773 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
775 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
776 the availability of writev in <sys/uio.h>.
777 * configure.in: Call here.
778 * acconfig.h: Add undef for the corresponding symbol.
779 * aclocal.m4: Regenerate.
780 * configure: Regenerate.
781 * config.h.in: Regenerate.
782 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
784 * include/std/std_fstream.h (sync): Constify a variable.
786 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
788 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
789 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
791 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
793 * config/locale/gnu/c_locale.h (__convert_from_v): Include
794 <cstring> and <cstdlib>. Qualify names.
796 2003-07-13 Mark Mitchell <mark@codesourcery.com>
798 * config/locale/generic/c_locale.h: Include <cstdlib> and
800 * include/bits/boost_concept_check.h: Add this-> to unqualified
802 * include/bits/deque.tcc: Likewise.
803 * include/bits/locale_facets.h : Likewise.
804 * include/bits/ostream.tcc: Likewise.
805 * include/bits/stl_algo.h: Likewise.
806 * include/bits/stl_bvector.h: Likewise.
807 * include/bits/stl_deque.h: Likewise.
808 * include/bits/stl_list.h: Likewise.
809 * include/bits/stl_tree.h: Likewise.
810 * include/bits/stl_vector.h: Likewise.
811 * include/bits/vector.tcc: Likewise.
812 * include/ext/rope: Likewise.
813 * include/ext/ropeimpl.h: Likewise.
814 * include/ext/stdio_filebuf.h: Likewise.
816 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
818 * include/bits/basic_ios.h (copyfmt): Document.
819 * include/bits/ios_base.h (event, event_callback, register_callback,
820 xalloc, iword, pword): Document.
821 (imbue, ~ios_base): Update docs on callbacks.
823 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
825 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
826 warning messages if the environment cannot support symbol versioning.
827 (port_specific_symbol_file): It's plural, add an 's' on the end.
828 * configure.host: Likewise.
829 * src/Makefile.am: Likewise.
830 * config/linker-map.gnu: Remove one semicolon, heh.
831 * scripts/extract_symvers: Don't assume useful 'export' syntax.
832 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
833 * aclocal.m4, configure, src/Makefile.in: Regenerated.
835 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
837 * include/bits/locale_facets.tcc: Use function object for
838 __use_cache instead of template function. Partially specialize for
840 * include/bits/locale_classes.h: Update friend declaration for
842 (_M_install_cache): No throw exception specs.
843 * src/locale.cc: Remove __use_cache specializations.
844 * include/ext/pod_char_traits.h (length): Tweak.
845 * include/bits/locale_facets.h (__numpunct_cache): Remove
847 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
849 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
850 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
851 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
852 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
853 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
854 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
856 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
858 * src/ios.cc (_M_grow_words): Fix spelling.
860 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
862 * include/bits/stl_tree.h: Move larger member functions in
863 _Rb_tree_base_iterator and _Rb_tree_node to...
864 * src/stl_tree.cc: Here.
865 * src/Makefile.in: Add stl_tree.cc.
866 * src/Makefile.in: Regenerated.
867 * config/linker-map.gnu: Add symbols here.
869 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
871 * testsuite/ext/pod_char_traits.cc: New.
872 * include/ext/pod_char_traits.h: New.
873 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
874 * include/Makefile.in: Regenerate.
875 * docs/html/21_strings/howto.html: Update.
877 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
879 * testsuite/performance/list_create_fill_sort.cc: New.
881 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
883 * config/locale/generic/numeric_members.cc: Correct type info.
884 * config/locale/gnu/numeric_members.cc: Same.
885 * include/bits/locale_facets.h: Same.
887 * include/bits/char_traits.h: Correct spacing.
889 * src/locale.cc: Wrap to 80 col.
891 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
893 * include/std/std_complex.h: Partially revert last
894 changes: cmath functions must not be qualified.
896 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
898 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
899 2.11 with globbing backport fix.
900 * aclocal.m4, configure: Regenerated.
902 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
904 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
905 if output is at all possible (!_M_reading), cannot be active.
907 * include/std/std_fstream.h: Tweak comments to doxygen style.
909 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
911 * include/bits/locale_classes.h: Fully qualify standard
912 functions with std::, thus avoiding Koenig lookup.
913 * include/bits/locale_facets.tcc: Likewise.
914 * src/locale.cc: Likewise.
915 * src/localename.cc: Likewise.
917 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
919 * include/bits/allocator_traits.h: Fix doxygen markup.
920 * include/ext/mt_allocator.h: Likewise.
922 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
924 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
926 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
928 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
929 requirement. Add port_specific_symbol_file variable.
930 * configure.host: Add docs for port_specific_symbol_file.
931 Clean up try_cpu block for x86.
932 * config/linker-map.gnu: No more "last symbol can't have a
933 semicolon" kaka. Add hook for port-specific symbols.
934 * src/Makefile.am: Remove trailing whitespace.
935 (libstdc++-symbol.ver): Detect the presence of port-specific
936 symbols, and add them accordingly.
938 * docs/html/17_intro/porting.texi: Bring up to date.
940 * src/Makefile.in, aclocal.m4, configure,
941 docs/html/17_intro/porting.html: Regenerated.
943 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
945 * scripts/create_testsuite_files: New file.
946 * testsuite/Makefile.am (all-local, check-performance): Use it.
947 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
948 * testsuite/Makefile.in: Regenerated.
950 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
952 * testsuite/performance/fstream_seek_write.cc: Likewise.
953 * testsuite/performance/ofstream_insert_float.cc: Likewise.
954 * testsuite/performance/ofstream_insert_int.cc: Likewise.
955 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
957 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
959 * include/bits/stl_list.h: Performance and memory usage
960 improvements. In particular, the behaviour of the constructor and
961 destructor as the list header node is no longer dynamically
962 allocated/de-allocated.
963 * include/bits/list.tcc: Likewise.
965 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
967 * include/std/std_complex.h: Fully qualify standard
968 functions with std::, thus avoiding Koenig lookup.
969 * include/std/std_memory.h: Likewise.
970 * include/std/std_valarray.h: Likewise.
972 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
974 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
975 variable for grandparent and use const
977 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
979 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
980 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
981 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
982 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
983 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
984 * testsuite/27_io/objects/char/7.cc: Ditto
985 * testsuite/27_io/objects/char/9661-1.cc: Ditto
987 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
989 * include/std/std_bitset.h: Fully qualify standard
990 functions with std::, thus avoiding Koenig lookup.
992 * include/std/std_fstream.h: Change comment to doxygen style.
994 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
996 * include/std/std_limits.h: More CPP->CXX changes.
997 * scripts/check_survey.in: Likewise.
999 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1001 Move from CPP to CXX.
1002 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
1003 * testsuite/Makefile.am: Same.
1004 * testsuite/Makefile.in: Regenerate.
1005 * po/Makefile.am: Same.
1006 * po/Makefile.in: Regenerate.
1007 * libsupc++/Makefile.am: Same.
1008 * libsupc++/Makefile.in: Regenerate.
1009 * libmath/Makefile.am: Same.
1010 * libmath/Makefile.in: Regenerate.
1011 * include/Makefile.am: Same.
1012 * include/Makefile.in: Regenerate.
1013 * src/Makefile.am: Same.
1014 * src/Makefile.in: Regenerate.
1016 * configure.host: Same.
1017 * configure.in: Same.
1018 * configure: Regenerate.
1019 * acinclude.m4: Same.
1021 * src: Change all files in this directory.
1023 * include: Same, standardize include guards.
1027 2003-07-04 Zack Weinberg <zack@codesourcery.com>
1029 * testsuite/22_locale/collate/compare/wchar_t/2.cc
1030 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
1031 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
1032 * testsuite/22_locale/collate/hash/wchar_t/2.cc
1033 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
1034 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
1035 * testsuite/22_locale/collate/transform/wchar_t/2.cc
1036 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
1037 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1038 XFAIL on all targets.
1040 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1042 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
1043 * aclocal.m4: Regenerate.
1044 * configure: Regenerate.
1046 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
1048 * include/bits/locale_facets.tcc (__int_to_char): Move common case
1051 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1052 Petur Runolfsson <peturr02@ru.is>
1054 * config/io/basic_file_stdio.cc: Revert.
1056 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1058 * include/bits/deque.tcc: Fully qualify standard
1059 functions with std::, thus avoiding Koenig lookup.
1060 * include/bits/gslice_array.h: Likewise.
1061 * include/bits/indirect_array.h: Likewise.
1062 * include/bits/list.tcc: Likewise.
1063 * include/bits/mask_array.h: Likewise.
1064 * include/bits/slice_array.h: Likewise.
1066 2003-07-04 Gawain Bolton <gbolton@free.fr>
1068 * include/bits/stl_tree.h: Performance and memory usage
1071 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
1073 * Makefile.am: Replace PWD with PWD_COMMAND.
1074 * Makefile.in: Regenerated.
1075 * docs/html/Makefile: Likewise.
1077 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1079 * include/bits/valarray_array.h: Fully qualify standard
1080 functions with std::, thus avoiding Koenig lookup.
1081 * include/bits/vector.tcc: Likewise.
1083 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1085 * include/Makefile.am: Update target_ to host_.
1086 * include/Makefile.in: Regenerate.
1087 * src/Makefile.am: Same.
1088 * src/Makefile.in: Regenerate.
1090 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
1092 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1094 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
1095 --enable-libstdcxx-debug-flags.
1096 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
1097 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
1098 * aclocal.m4: Regenerate.
1100 * docs/html/configopts.html: Update.
1102 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1104 Revert the fix for libstdc++/11378.
1106 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1109 * include/std/std_fstream.h (xsputn): In the unbuffered case,
1110 provided always_noconv(), issue directly _M_file.xsputn.
1111 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
1113 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1115 * include/bits/stl_list.h: Fully qualify standard
1116 functions with std::, thus avoiding Koenig lookup.
1117 * include/bits/stl_queue.h: Likewise.
1118 * include/bits/stl_raw_storage_iter.h: Likewise.
1119 * include/bits/stl_tempbuf.h: Likewise.
1120 * include/bits/stl_tree.h: Likewise.
1121 * include/bits/stl_uninitialized.h: Likewise.
1122 * include/bits/stl_vector.h: Likewise.
1123 * include/ext/rope: Change includes order.
1125 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1127 * configure.host (fpos_include_dir): Fix.
1129 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1131 * include/bits/stl_heap.h: Fully qualify standard
1132 functions with std::, thus avoiding Koenig lookup.
1133 * include/bits/stl_iterator_base_funcs.h: Likewise.
1135 * include/bits/stl_algo.h: Qualify __iterator_category too.
1136 * include/bits/stl_algobase.h: Likewise.
1137 * include/bits/stl_bvector.h: Likewise.
1139 * include/bits/stl_algo.h: Don't qualify the pair type.
1141 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
1143 * include/Makefile.am (target_headers): Add fpos.h
1144 (bits_headers): Remove.
1145 * include/Makefile.in: Regenerate.
1146 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
1147 * configure: Regenerate.
1148 * configure.host: Add fpos_include_dir.
1149 * config/os/gnu-linux/fpos.h: New.
1150 * config/os/generic/fpos.h: Add.
1151 * include/bits/fpos.h: Remove.
1153 * config/io/c_io_stdio.h: Remove fpos_t typedef.
1155 * include/bits/fstream.tcc: Tweaks.
1156 * include/std/std_fstream.h: Same.
1158 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
1159 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
1160 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
1161 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1162 * testsuite/27_io/fpos/1.cc: New.
1164 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
1165 Petur Runolfsson <peturr02@ru.is>
1167 * include/std/std_streambuf.h: Remove _M_pos.
1168 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
1169 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
1170 use fread/fwrite instead of read/write.
1171 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
1172 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
1173 before reading again.
1174 * testsuite/27_io/objects/char/6.cc: Tweak.
1176 2003-07-03 David Edelsohn <edelsohn@gnu.org>
1178 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
1179 _GLIBCPP_USE_WCHAR_T.
1181 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1183 * include/bits/basic_string.tcc (_M_replace_aux): Constify
1186 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1188 * include/bits/stl_bvector.h: Fully qualify standard
1189 functions with std::, thus avoiding Koenig lookup.
1190 * include/bits/stl_construct.h: Likewise.
1191 * include/bits/stl_deque.h: Likewise.
1193 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1195 * testsuite/22_locale/num_put/put/char/7.cc: Include
1196 <testsuite_hooks.h>, tweak.
1197 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
1199 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
1201 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
1202 check* targets, but not libs/programs).
1203 * testsuite/Makefile.in: Regenerate.
1205 2003-07-01 Roger Sayle <roger@eyesopen.com>
1207 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
1208 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
1209 * aclocal.m4: Regenerate.
1210 * configure: Regenerate.
1212 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
1214 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
1215 * aclocal.m4: Regenerated.
1216 * configure: Regenerated.
1218 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
1221 * include/bits/fstream.tcc (underflow): For encoding() == 0
1222 don't read more than __buflen chars.
1223 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
1224 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
1225 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
1226 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
1228 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
1230 * 22_locale/num_put/put/char/7.cc: New.
1231 * 22_locale/num_put/put/wchar_t/7.cc: New.
1233 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
1235 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
1236 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
1238 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1240 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
1241 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
1242 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
1243 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
1244 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
1245 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
1246 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
1247 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
1248 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
1249 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
1250 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
1251 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
1252 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
1253 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
1254 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
1255 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
1256 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
1257 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
1258 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
1259 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
1260 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
1261 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
1262 * data/seekoff-1.tst: Remove.
1263 * data/seekoff-1io.tst: New.
1264 * data/seekoff-1out.tst: New.
1265 * data/seekoff-2.tst: Remove.
1266 * data/seekoff-2io.tst: New.
1267 * data/seekoff-2out.tst: New.
1269 * data/seekpos-1.tst: Remove.
1270 * data/seekpos-1io.tst: New.
1271 * data/seekpos-1out.tst: New.
1272 * data/seekpos-2.tst: Remove.
1273 * data/seekpos-2io.tst: New.
1274 * data/seekpos-2out.tst: New.
1275 * data/seekpos.txt: New.
1277 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
1279 * src/locale.cc (__use_cache<numpunct>): Move from here ...
1280 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
1283 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1285 * include/bits/stl_algobase.h: Fully qualify standard
1286 functions with std::, thus avoiding Koenig lookup.
1288 2003-06-30 Doug Gregor <dgregor@apple.com>
1290 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
1291 subscripting empty string.
1293 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
1295 * testsuite/Makefile.am (check-am): Do not override.
1296 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
1297 * testsuite/Makefile.in: Regenerate.
1299 2003-06-30 Doug Gregor <dgregor@apple.com>
1301 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
1302 Don't initialize an insert_iterator with a singular iterator.
1304 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1306 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
1307 * aclocal.m4: Regenerate.
1308 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
1309 GLIBCPP_ENABLE_PCH, default to yes.
1310 * configure: Regenerate.
1311 * docs/html/configopts.html: Add --enable-pch.
1313 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
1315 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
1316 (libstdc++-v3-init): Also set LD_RUN_PATH.
1318 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1320 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
1321 from here to filebuf and stringbuf.
1322 (~basic_streambuf()): Don't set _M_mode.
1323 (basic_streambuf()): Don't set _M_mode.
1324 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
1325 (~basic_filebuf()): Clean up.
1326 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
1327 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
1328 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
1329 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
1330 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
1331 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
1332 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
1334 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1336 * include/std/std_fstream.h (_M_underflow): Remove.
1337 (uflow): Remove, inherited from streambuf.
1338 (underflow): Only declare.
1339 * include/bits/fstream.tcc (_M_underflow): Rename to
1340 underflow, to which is equivalent for __bump == false,
1342 * include/std/std_sstream.h (_M_underflow): Remove.
1343 (uflow): Remove, inherited from streambuf.
1344 (underflow): Only declare.
1345 * include/bits/sstream.tcc (_M_underflow): Rename to
1346 underflow, to which is equivalent for __bump == false,
1349 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1351 * include/bits/stl_algo.h: Fully qualify standard functions
1352 with std::, thus avoiding Koenig lookup.
1354 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1356 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
1357 Improve type correctness-wise.
1358 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
1360 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
1362 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
1365 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1367 * include/std/std_streambuf.h (uflow): According to
1368 27.5.2.4.3,p16, don't check gptr() < egptr().
1370 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
1373 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
1374 (seekpos): Likewise.
1375 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
1377 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
1380 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
1382 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
1383 output name to libstdc++-v3-performance.sum.
1384 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
1385 * testsuite/Makefile.in: Regenerate.
1387 2003-06-27 Matthias Klose <doko@debian.org>
1389 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
1390 output of abi-check in libstdc++-v3-abi.sum.
1391 * testsuite/Makefile.in: Regenerate.
1393 2003-06-27 Krister Walfridsson <cato@df.lth.se>
1395 * config/os/bsd/netbsd/ctype_noninline.h
1396 (_C_ctype_): Declare.
1397 (ctype<char>::classic_table): Return _C_ctype_ + 1.
1398 (ctype<char>::ctype): Use classic_table.
1400 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
1401 Nathan C. Myers <ncm-nospam@cantrip.org>
1404 * include/bits/fstream.tcc (_M_underflow): Properly estimate
1405 the worst-case number of external bytes for a given get area.
1406 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
1408 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
1409 Petur Runolfsson <peturr02@ru.is>
1412 * include/bits/fstream.tcc (overflow): Properly estimate the
1413 worst-case number of external bytes for a given put area
1414 (by using codecvt::max_length()).
1415 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
1416 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
1417 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
1418 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
1420 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1422 * config/linker-map.gnu: Remove ; after __numpunct_cache.
1424 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1426 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
1427 to the imbued locale.
1428 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
1430 (num_put::_M_convert_float): Use.
1432 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1433 Jerry Quinn <jlquinn@optonline.net>
1435 * config/linker-map.gnu: Add __numpunct_cache.
1436 * config/locale/gnu/numeric_members.cc
1437 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
1438 all elements for "C" locale.
1439 (numpunct::~numpunct): Delete _M_data.
1440 * config/locale/generic/numeric_members.cc: Same.
1441 * include/bits/basic_ios.tcc
1442 (basic_ios::init): Remove __locale_cache bits.
1443 (basic_ios::_M_cache_locale): Same.
1444 * include/bits/ios_base.h: Same. Tweaks.
1445 * include/bits/locale_classes.h: Tweaks. Reorder classes.
1446 (__use_cache): Make friends with _Impl, locale.
1447 (_Impl::_M_caches): Add.
1448 (_Impl::_M_install_cache): Add.
1449 * include/bits/locale_facets.h (__numpunct_cache): New.
1450 (numpunct): Encapsulate data members in __numpunct_cache member,
1451 _M_data. Adjust virtuals.
1452 (numpunct::numpunct): New ctor for the same.
1453 (__locale_cache_base): Remove.
1454 (__locale_cache): Remove.
1455 * include/bits/locale_facets.tcc (__use_cache): New function,
1457 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
1458 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
1459 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
1460 * src/locale-inst.cc: Same. Add __numpunct_cache.
1461 * src/locale.cc: Tweak inlines.
1462 (__use_cache): Define specializations.
1463 * src/localename.cc: Use global bits.
1464 (_Impl::~Impl): Deal with __numpunct_cache destruction.
1465 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
1466 (_Impl::_M_init_facet): Take into account __numpunct_cache.
1467 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
1468 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1470 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
1471 Paolo Carlini <pcarlini@unitus.it>
1473 * testsuite/performance/filebuf_copy.cc: New, testing char
1476 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
1477 Nathan C. Myers <ncm-nospam@cantrip.org>
1479 * include/bits/fstream.tcc (_M_underflow): When the actual
1480 end of file is reached, set 'uncommitted' mode to allow a
1481 next write without an intervening seek (see C++98 27.8.1.1,2
1483 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
1485 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
1487 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1488 sputc): Move inline, from here...
1489 * include/std/std_streambuf.h: ... to here.
1491 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
1492 sputbackc, sungetc, sputc): Use __builtin_expect.
1494 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
1496 * docs/doxygen/mainpage.html: Use a useful title.
1498 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1500 * docs/html/documentation.html: Remove assignment info.
1501 * docs/html/17_intro/contribute.html: Edits.
1502 * docs/html/17_intro/libstdc++-assign.tx: Remove.
1504 * docs/html/test.html: Update.
1508 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1509 Ulrich Drepper <drepper@redhat.com>
1511 * testsuite/testsuite_performance.h: Tweak mallinfo.
1513 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
1514 Nathan C. Myers <ncm-nospam@cantrip.org>
1516 * include/std/std_fstream.h (_M_filepos): Remove.
1517 (_M_reading, _M_writing): New, encode the various I/O modes:
1518 'read', 'write' and 'uncommitted'.
1519 (sync): If there is something to flush, do it, then go to
1521 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
1522 with three different cases: __off > 0 (upon underflow),
1523 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
1525 (_M_underflow): Don't call overflow, set _M_reading to true
1527 (pbackfail): Set _M_reading to true on pback creation, tweak.
1528 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
1529 set _M_writing to true on success, tweak.
1530 (seekoff): Simplify, set _M_reading, _M_writing to false, call
1531 _M_set_buffer(-1) ('uncommitted').
1532 (open, close, setbuf): Set _M_reading, _M_writing to false and
1533 call _M_set_buffer(-1), tweak.
1534 (basic_filebuf): Don't set _M_buf_unified.
1535 (_M_destroy_internal_buffer): Don't call setg and setp.
1536 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
1537 _M_writing and _M_set_buffer(-1).
1538 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
1539 _M_out_lim, _M_buf_unified): Remove.
1540 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
1541 (setp): Don't set _M_out_lim.
1542 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
1543 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
1544 upon open the mode is 'uncommitted' and therefore the put area
1546 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
1547 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
1548 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
1549 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
1550 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
1551 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
1552 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1553 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
1554 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
1555 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
1556 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
1557 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
1558 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
1559 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
1560 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
1561 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
1562 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
1563 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
1564 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
1565 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
1567 * include/bits/fstream.tcc (showmanyc): Use only the
1568 documented derivation interface to basic_streambuf (gptr(),
1569 setg(), etc.) to work right with user specializations.
1570 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1571 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
1572 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
1574 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
1577 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
1579 * configure.host (freebsd*): Set abi_baseline_pair.
1580 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
1581 (at or near first release) to 3.3.
1582 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
1583 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
1584 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
1586 * include/ext/mt_allocator.h: Portability.
1587 * testsuite/testsuite_performance.h: Likewise.
1589 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
1591 * docs/html/17_intro/libstdc++-assign.txt: Update address.
1593 * testsuite/performance/ifstream_getline.cc: Fix.
1595 2003-06-23 Doug Gregor <dgregor@apple.com>
1597 * include/bits/boost_concept_check.h: Don't use _D or _R for type
1600 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
1601 Nathan C. Myers <ncm-nospam@cantrip.org>
1603 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
1604 is now used only for filebuf, when _M_buf_unified is true.
1605 epgtr() plays the role of _M_out_lim but it's only updated
1606 upon overflow, underflow, uflow, seekoff/pos.
1607 * include/bits/sstream.tcc (_M_underflow): New, implements
1608 stringbuf::underflow and uflow.
1609 (seekoff, seekpos): Tweak, use _M_update_egptr.
1610 * include/std/std_sstream.h (str): Rewrote, deal correctly
1611 with the new logic, in particular, when pptr() > egptr().
1612 (_M_sync): When __testout && !__testin set all the get area
1613 pointers to the current string end.
1614 (_M_update_egptr): New, internal function updating egptr()
1615 to the actual string end.
1616 (_M_underflow): New, declare.
1617 (underflow): Dispatch to _M_underflow(false).
1618 (uflow): Dispatch to _M_underflow(true).
1620 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
1621 seekpos): Use only the documented derivation interface to
1622 basic_streambuf (gptr(), setg(), etc.) to work right with
1623 user specializations.
1624 * include/std/std_sstream.h (str, _M_sync): Likewise.
1626 2003-06-20 Doug Gregor <dgregor@apple.com>
1628 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
1629 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
1630 dereference end iterator.
1631 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
1632 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
1633 index equal to the length of a string.
1634 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
1635 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
1636 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
1637 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
1638 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
1639 * testsuite/23_containers/list_modifiers.cc: Don't dereference
1640 singular reverse iterator.
1641 * testsuite/23_containers/vector_bool.cc: Don't increment singular
1643 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
1645 2003-06-20 Doug Gregor <dgregor@apple.com>
1647 * include/bits/basic_string.h (basic_string::replace): Dispatch
1648 _InputIterator version based on _Is_integer.
1649 * include/bits/basic_string.tcc (basic_string::replace):
1650 Renamed replace(iterator, iterator, size_type, _CharT) to
1652 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
1653 Test basic_string::assign(_InputIterator, _InputIterator),
1654 which calls basic_string::replace(iterator, iterator,
1655 _Input_iterator, _InputIterator).
1657 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
1659 * testsuite/testsuite_performance.h (resource_counter): Don't use
1660 mallinfo at the moment.
1662 2003-06-20 Matthias Klose <doko@debian.org>
1664 * configure.host: Set try_cpu to target_cpu for existing
1667 2003-06-19 Andreas Jaeger <aj@suse.de>
1669 * testsuite/Makefile.am (extract_symvers): Revert accidental
1671 * testsuite/Makefile.in: Regenerate.
1673 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
1674 * configure: Regenerated.
1676 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
1678 * include/std/std_sstream.h (_M_sync): Make non virtual.
1680 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
1682 * testsuite/testsuite_performance.h (time_counter): New.
1683 (resource_counter): New.
1684 (report_performance): New.
1685 (start_counters): New.
1686 (stop_counters): New.
1687 (clear_counters): New.
1688 * testsuite/performance/allocator.cc: Instrument.
1689 * testsuite/performance/cout_insert_int.cc: Same.
1690 * testsuite/performance/complex_norm.cc: Same.
1691 * testsuite/performance/filebuf_sputc.cc: New.
1692 * testsuite/performance/fstream_seek_write.cc: Same.
1693 * testsuite/performance/ifstream_getline.cc: Same.
1694 * testsuite/performance/map_create_fill.cc: Same.
1695 * testsuite/performance/ofstream_insert_float.cc: Same.
1696 * testsuite/performance/ofstream_insert_int.cc: Same.
1697 * testsuite/performance/string_append.cc: Convert.
1698 * scripts/check_performance: New.
1699 * testsuite/Makefile.am (check-performance): New.
1702 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
1703 Benjamin Kosnik <bkoz@redhat.com>
1705 * include/std/std_sstream.h (setbuf): Check __n >= 0.
1706 * include/bits/fstream.tcc (setbuf): Tweak.
1708 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
1710 * include/bits/sstream.tcc (seekoff): We can't seek beyond
1711 _M_out_lim, therefore _M_move_out_cur boils down to simply
1712 updating _M_out_cur.
1713 (seekpos): Likewise, clean up.
1715 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
1716 Paolo Carlini <pcarlini@unitus.it>
1718 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
1719 simply equivalent to the unbuffered case (0, 0) as far as
1720 _M_buf_size is concerned.
1722 2003-06-18 Andreas Jaeger <aj@suse.de>
1724 * testsuite/Makefile.am (new-abi-baseline): Create baseline
1726 (baseline_file): Use baseline_dir.
1727 (baseline_dir): New.
1728 (mkinstalldirs): New.
1730 * acinclude.m4: Rename baseline_file to baseline_dir, strip
1731 filename from baseline_dir.
1733 * testsuite/Makefile.in: Regenerated.
1734 * Makefile.in: Regenerated.
1735 * aclocal.m4: Regenerated.
1736 * configure: Regenerated.
1738 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1740 * configure.in: Missed check_survey bit.
1741 * configure: Regenerated.
1743 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1746 * config/abi/extract_symvers: Move to...
1747 * scripts/extract_symvers: ...here.
1748 * mkcheck.in: Move to..
1749 * scripts/check_survey.in: ...here.
1750 * testsuite_flags.in: Move to..
1751 * scripts/testsuite_flags.in: ...here.
1752 * configure.in: Change check and testsuite_flags locations.
1753 * configure: Regenerate.
1754 * testsuite/Makefile.am (current_symbols.txt): Change location.
1755 * testsuite/Makefile.in: Regenerate.
1756 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1757 location of testsuite_flags.
1758 * Makefile.am (check-script): Move..
1759 (check-script-install): Move...
1760 * testsuite/Makefile.am: ... here.
1761 * testsuite/Makefile.in: Regenerate.
1762 * Makefile.in: Regenerate.
1764 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1766 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
1768 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1770 * Makefile.am (check-abi): Move...
1771 (new-abi-baseline): Move...
1772 * testsuite/Makefile.am: ...here.
1773 (new-abi-baseline): Conditionalize.
1774 (check-abi): Conditionalize.
1775 (check-abi-verbose): New.
1776 * Makefile.in: Regenerate.
1777 * testsuite/Makefile.in: Regenerate.
1778 * configure.in: Consolidate testsuite configure bits.
1779 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
1780 * configure: Regenerate.
1781 * aclocal.m4: Regenerate.
1782 * testsuite/abi_check.cc: Add --check-verbose.
1783 Only output detailed information if --check-verbose.
1785 2003-06-16 Andreas Jaeger <aj@suse.de>
1787 * testsuite/abi_check.cc: Create summary report.
1789 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
1791 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
1792 for systems with BUFSIZ != 8192.
1793 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1794 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
1797 2003-06-16 Andreas Jaeger <aj@suse.de>
1799 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
1800 check-abi multilib aware.
1801 * aclocal.m4: Regenerate.
1802 * configure: Regenerate.
1804 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1805 Andreas Jaeger <aj@suse.de>
1807 * configure.host: Set x86_64 abi_baseline pair correctly.
1809 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
1811 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
1812 fix for missing seeks between gets and puts into...
1813 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
1814 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
1815 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
1816 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
1817 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
1818 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
1820 2003-06-15 Richard Henderson <rth@redhat.com>
1822 * config/linker-map.gnu: Export virtual function thunks for
1825 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
1827 * config/abi/i686-pc-linux-gnu: To..
1828 * config/abi/i486-linux-gnu: ...this.
1829 * config/abi/alphaev67-unknown-linux-gnu: To..
1830 * config/abi/alpha-linux-gnu: ...this.
1831 * config/abi/ia64-unknown-linux-gnu: To...
1832 * config/abi/ia64-linux-gnu: ...this.
1833 * config/abi/x86_64-unknown-linux-gnu: To...
1834 * config/abi/x86_64-linux-gnu: ...this.
1835 * config/abi/i386-unknown-freebsd4: To...
1836 * config/abi/i386-freebsd4: ...this.
1837 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
1839 * configure.host: abi_baseline_triplet to abi_baseline_pair.
1840 Simplify cpu bits so that abi_baseline_pair can use the same
1842 * acinclude.m4: Same.
1843 * aclocal.m4: Regenerate.
1844 * configure.in: Can't get enable_abi_check to yes unless native.
1845 * configure: Regenerate.
1847 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
1849 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
1850 fix for missing seeks between gets and puts into...
1851 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
1852 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
1853 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
1854 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
1855 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
1856 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
1857 for missing seeks between gets and puts.
1858 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
1859 * testsuite/data/seekoff-1.tst: New.
1860 * testsuite/data/seekoff-2.tst: New.
1861 * testsuite/data/seekpos-1.tst: New.
1862 * testsuite/data/seekpos-2.tst: New.
1864 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
1866 Avoid multi-processor bus contention on increment/decrement-and-
1867 test of the reference count in the empty-string object, by comparing
1868 addresses first, and never touching the reference count of the empty-
1870 * include/bits/basic_string.h:
1871 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
1873 (_Rep::_S_empty_rep()): New accessor.
1874 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
1875 a base class _Rep_base.
1876 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
1877 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
1878 since no longer must increment its refcount.
1879 * include/bits/basic_string.tcc:
1880 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
1881 return immediately. The former might be unnecessary. The latter
1882 prevents begin() and end() from cloning it unnecessarily.
1883 (_S_construct(_InIterator, _InIterator, const _Alloc&,
1884 input_iterator_tag), _S_construct(_InIterator, _InIterator,
1885 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
1886 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
1887 (_M_mutate): Check for the empty string and treat it as shared.
1888 This is necessary here because _M_mutate is sometimes called with
1889 all-zero arguments; in all other uses of _M_is_shared, the test comes
1892 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
1894 * src/allocator-inst.cc: Explicitly instantiate.
1895 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
1897 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
1899 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1901 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
1902 * aclocal.m4: Regenerate.
1903 * Makefile.am (SUBDIRS): Remove libio.
1904 * Makefile.in: Regenerate.
1905 * configure.in: Same.
1906 * configure: Regenerate.
1907 * config/io/basic_file_libio.cc: Remove.
1908 * config/io/basic_file_libio.h: Remove.
1909 * config/io/c_io_libio_codecvt.c: Remove.
1910 * config/io/c_io_libio.h: Remove.
1912 * src/Makefile.am: Same.
1913 * src/Makefile.in: Regenerate.
1914 * docs/html/configopts.html: Edits.
1915 * docs/html/explanations.html: Edits.
1917 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1919 * include/bits/stl_alloc.h (__debug_alloc): Move out.
1920 (__malloc_alloc): Same.
1921 (__pool_alloc): Same.
1922 (__new_alloc): Same.
1924 * include/bits/allocator.h: ...this.
1925 * include/bits/stl_deque.h: Modify comment.
1926 * include/bits/stl_tree.h: Modify include.
1927 * include/std/std_memory.h: Same.
1928 * include/ext/rope: Same.
1929 * include/ext/slist: Same.
1930 * include/std/std_vector.h: Same.
1931 * include/std/std_stack.h: Same.
1932 * include/std/std_queue.h: Same.
1933 * include/std/std_list.h: Same.
1934 * include/std/std_deque.h: Same.
1935 * include/backward/alloc.h: Same.
1936 * include/ext/debug_allocator.h: New.
1937 * include/ext/malloc_allocator.h: New.
1938 * include/ext/pool_allocator.h: New.
1939 * include/ext/new_allocator.h: New.
1940 * include/bits/pthread_allocimpl.h: Remove.
1941 * include/bits/stl_pthread_alloc.h: Remove.
1942 * include/Makefile.am (ext_headers): Add.
1943 * include/Makefile.in: Regenerate.
1944 * src/stl-inst.cc: Use __gnu_cxx namespace.
1945 * src/stl-inst.cc: Move to...
1946 * src/allocator-inst.cc: Here.
1947 * src/Makefile.am (sources): Update.
1948 * src/Makefile.in: Regenerate.
1949 * config/linker-map.gnu: Remove __pool_alloc bits.
1950 * testsuite/ext/headers.cc: Add.
1951 * testsuite/ext/allocators.cc: Fixup.
1953 2003-06-11 Stefan Olsson <stefan@snon.net>
1954 Ola Rönnerup <fnolis@home.se>
1956 * include/Makefile.am (ext_headers): Add.
1957 * include/Makefile.in: Regenerate.
1958 * include/ext/mt_allocator.h: New file.
1960 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1962 * include/bits/fstream.tcc (close): Clean up a bit.
1964 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
1966 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
1967 - the saved _M_in_cur, that is - cannot be null.
1968 (sync): Constify a variable.
1970 * include/std/std_streambuf.h: Tweak a comment.
1971 (in_avail): Constify a variable.
1973 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
1975 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
1976 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
1977 correctness of container::iterator typedefs. Fix whitespace.
1978 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
1980 * docs/html/documentation.html: Regenerate.
1982 * include/bits/basic_string.h, include/bits/basic_string.tcc,
1983 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
1984 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1985 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
1986 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
1987 include/bits/stl_vector.h, include/bits/vector.tcc,
1988 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
1989 Change _Iter names to _Iterator, and __pos to __position.
1991 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
1992 include/bits/stl_multiset.h, include/bits/stl_set.h:
1993 Remove emacs markers.
1995 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
1997 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1999 * include/bits/fstream.tcc (overflow): According to
2000 27.5.2.4.5, overflow() returns not_eof(eof()).
2001 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
2002 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
2004 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
2006 * include/bits/fstream.tcc (_M_underflow): Check overflow return
2007 value; tweak slightly.
2009 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
2011 * include/bits/fstream.tcc (_M_underflow): Do not special
2012 case the unbuffered case, which really means simply a one char
2014 (basic_filebuf): Initialize _M_buf_size.
2015 (setbuf): Unbuffered means _M_buf_size == 1, since only
2016 _M_buf_size - 1 == 0 chars are going to be used for the
2017 put area and 1 for the get area.
2018 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
2019 (~basic_streambuf): Tweak.
2020 (basic_streambuf): Do not initialize _M_buf_size.
2021 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
2022 (~basic_filebuf): Tweak.
2023 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
2024 unbuffered situation (i.e., put area pointers NULL).
2025 * include/bits/streambuf.tcc (sbumpc): Clean up.
2026 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
2027 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
2028 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
2029 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
2030 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
2031 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
2032 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
2034 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
2036 * acinclude.m4: Move all AM_CONDITIONAL calls out.
2037 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
2039 * configure.in: Centralize AM_CONDITIONALs so that they are always
2040 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
2041 * aclocal.m4, configure: Regenerated.
2043 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
2045 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
2047 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
2049 * include/bits/stl_iterator.h
2050 (reverse_iterator::reverse_iterator()): Apply DR235: default
2051 constructor default-initializes data member. Instantiated on a
2052 pointer type, the member has to end up equal to zero.
2054 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
2056 * include/bits/stl_alloc.h: Cleanups.
2057 * include/ext/functional: Same.
2058 * include/ext/hash_map: Same.
2059 * include/ext/hash_set: Same.
2060 * include/ext/iterator: Same.
2061 * include/ext/memory: Same.
2062 * include/ext/numeric: Same.
2063 * include/ext/rb_tree: Same.
2064 * include/ext/ropeimpl.h: Same.
2065 * include/ext/slist: Same.
2066 * include/ext/stdio_filebuf.h: Same.
2067 * include/ext/stdio_sync_filebuf.h: Same.
2068 * include/ext/stl_rope.h: Move to...
2069 * include/ext/rope: ...here.
2070 * include/ext/stl_hash_fun.h: Move to...
2071 * include/ext/hash_fun.h: ...here.
2072 * include/ext/stl_hashtable.h: Move to...
2073 * include/ext/hashtable.h: ...here.
2074 * include/backward/hashtable.h: Reflect new names.
2075 * include/Makefile.am: Same.
2076 * include/Makefile.in: Regenerated.
2078 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
2081 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
2082 * include/bits/stl_algobase.h: Tweak.
2083 * include/std/std_fstream.h: Move _M_buf_size to...
2084 * include/std/std_streambuf.h: ...here. Modify.
2085 * include/bits/streambuf.tcc: Same.
2086 * testsuite/testsuite_hooks.h: Tweak.
2087 * testsuite/testsuite_io.h (constraint_filebuf): New.
2088 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
2089 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
2090 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
2091 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
2092 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
2093 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
2094 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
2095 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
2096 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
2097 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
2098 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
2099 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
2100 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
2101 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
2102 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
2103 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
2104 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
2105 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
2106 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
2107 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
2108 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
2109 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
2110 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
2111 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
2112 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
2113 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
2114 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
2115 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
2116 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
2117 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
2118 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
2119 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
2120 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
2121 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
2122 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
2123 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
2124 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
2125 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
2126 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
2127 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
2128 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
2129 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
2130 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
2131 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
2132 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
2133 * testsuite/data/sgetc.txt: New.
2134 * testsuite/data/sgetn.txt: New.
2136 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
2139 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
2140 Deal with width() smaller than zero.
2141 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
2142 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
2143 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
2144 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
2145 operator<<(basic_ostream, const basic_string&)): Likewise.
2147 * testsuite/27_io/basic_istream/extractors_character/char/
2148 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2149 * testsuite/27_io/basic_ostream/inserters_character/char/
2150 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2151 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
2152 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
2154 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2156 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
2157 .gch compilation works.
2158 * aclocal.m4, configure: Regenerate.
2159 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
2160 initialize PCHFLAGS.
2162 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
2164 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
2165 erase(iterator), erase(iterator, iterator), c_str,
2166 compare(const basic_string&)): Constify various variables.
2167 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
2168 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
2169 _S_create, resize, _M_replace, _M_replace_safe,
2170 append(const basic_string&), append(const basic_string&, size_type,
2171 size_type), append(const _CharT*, size_type), append(size_type,
2172 _CharT), operator+(const _CharT*, const basic_string&),
2173 operator+(_CharT, const basic_string&), replace(iterator, iterator,
2174 size_type, _CharT), find(const _CharT*, size_type, size_type),
2175 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
2176 rfind(_CharT, size_type), compare(size_type, size_type,
2177 const basic_string&), compare(size_type, size_type,
2178 const basic_string&, size_type, size_type), compare(const _CharT*),
2179 compare(size_type, size_type, const _CharT*), compare(size_type,
2180 size_type, const _CharT*, size_type)): Likewise.
2182 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
2184 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
2185 'if' branch less obscure.
2187 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
2190 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
2192 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
2193 (__atomic_add): likewise.
2195 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2197 * include/bits/sstream.tcc (pbackfail): Minor clean up and
2198 reformatting, consistent with basic_filebuf::pbackfail.
2200 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
2203 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
2204 __attribute__ ((__unused__)).
2205 * config/os/aix/atomicity.h: Likewise.
2207 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2210 * include/bits/fstream.tcc (pbackfail): If the pback buffer
2211 is already active don't try to store in it a second char.
2212 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
2214 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
2216 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2218 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
2221 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2223 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
2224 instead of unnecessarily taking the address of _M_pback.
2225 (xsgetn): Simplify slightly for a single char pback buffer.
2227 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2229 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
2230 variables and two 'if', clean up.
2232 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2234 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
2235 not _M_out_end, since the former actually points to the string
2236 end (vs buffer end).
2237 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
2239 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
2241 * docs/doxygen/filter: New file.
2242 * docs/doxygen/filter.sed: New file.
2243 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
2244 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
2245 * docs/html/documentation.html: Fix links to doxygen pages.
2247 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
2249 * include/bits/fstream.tcc (_M_convert_to_external): Don't
2250 check for __ilen > 0.
2252 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
2255 * include/bits/stl_iterator.h (class __normal_iterator):
2256 Don't inherit from iterator, add missing typedefs.
2258 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
2260 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
2261 * testsuite/24_iterators/reverse_iterator/1.cc: New.
2262 * testsuite/24_iterators/reverse_iterator/2.cc: New.
2263 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
2266 2003-05-27 Steve Ellcey <sje@cup.hp.com>
2268 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
2270 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
2271 _LIBUNWIND_STD_ABI is set.
2273 2003-05-26 Brendan Kehoe <brendan@zen.org>
2275 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
2276 make sure the number of digits required after the decimal-point
2277 (if any) is exactly the value returned by frac_digits().
2278 * testsuite/22_locale/money_get/get/char/9.cc: New.
2279 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
2281 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
2283 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
2286 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
2289 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
2290 (_M_pback): No array necessary.
2291 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
2292 unbuffered case, coalesec into ...
2293 (basic_filebuf::overflow): ...this.
2294 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
2295 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
2297 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
2299 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
2300 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
2301 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
2302 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
2303 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
2304 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
2305 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
2306 libsupc++/eh_unex_handler.cc, libsupc++/exception,
2307 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
2308 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
2309 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
2310 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
2311 Replace "GNU CC" with "GCC".
2313 * include/backward/new.h: Replace "GNU CC" with "GCC".
2315 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
2318 * configure.in: Switch target to host, don't assume newlib.
2319 (target_alias): Remove.
2320 * configure: Regenerate.
2321 * acinclude.m4: Same.
2322 * aclocal.m4: Regenerate.
2323 * configure.target: Same. Rename to...
2324 * configure.host: This.
2326 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
2328 * include/std/std_fstream.h (_S_pback_size): Remove definition.
2329 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
2331 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
2332 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
2333 of _S_pback_size for systems with no COMDAT or weak support.
2334 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
2335 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
2336 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
2337 * testsuite/27_io/basic_fstream/3.cc: Likewise.
2338 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2339 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
2340 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
2341 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
2342 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
2344 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
2346 * include/bits/fstream.tcc (_M_underflow): Simplify:
2347 !__testout implies _M_filepos == _M_in_end, therefore
2348 the first _M_file.seekoff call is never issued.
2350 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
2352 * configure.in: Sort cross table.
2353 * configure: Regenerate.
2355 2003-05-22 Brad Spencer <spencer@infointeractive.com>
2358 * configure.in: Add Solaris cross bits.
2360 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2362 * libstdc++-v3/config/os/mingw32/os_defines.h
2363 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
2364 (NOMINMAX): Define. Update copyright year.
2366 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
2368 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
2370 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
2372 * docs/html/faq/index.html: Fix typo.
2373 * docs/html/faq/index.txt: Regenerate.
2375 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
2377 * docs/html/test.html: Fix markup.
2379 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2381 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
2383 Update copyright year.
2385 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
2387 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
2389 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
2391 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
2392 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
2394 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2396 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
2397 Cast via void* to avoid -Wcast-align warnings.
2398 (__default_alloc_template::_S_refill): Likewise.
2400 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
2402 * testsuite/README: Move to...
2403 * docs/html/test.html: ...here. Add documentation.
2404 * docs/html/install.html: Move testing bits out..
2405 * docs/html/documentation.html: Add separate testing link.
2406 * testsuite/performance: Add.
2407 * testsuite/performance/allocator.cc: New.
2408 * testsuite/performance/complex_norm.cc: New.
2409 * testsuite/performance/cout_insert_int.cc: New.
2410 * testsuite/performance/fstream_seek_write.cc: New.
2411 * testsuite/performance/ifstream_getline.cc: New.
2412 * testsuite/performance/map_create_fill.cc: New.
2413 * testsuite/performance/ofstream_insert_float.cc: New.
2414 * testsuite/performance/ofstream_insert_int.cc: New.
2415 * testsuite/performance/string_append.cc: New.
2416 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
2419 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
2422 * include/std/std_complex.h (pow): Tidy.
2424 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
2426 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
2427 that upon filebuf::close() 27.8.1.1,3 is enforced.
2429 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
2431 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
2433 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
2434 Nathan Myers <ncm@cantrip.org>
2436 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
2437 _M_convert_to_external only once (_M_buf_size is now the size of
2438 the put area + 1 for the overflow char of a full area); call
2439 _M_set_buffer instead of _M_set_indeterminate.
2440 (setbuf): Don't accept a buffer smaller than 2 chars.
2441 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
2442 instead of _M_set_determinate.
2443 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
2444 (seekoff): Likewise.
2445 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
2446 std::ios_base::openmode, bool, size_t),
2447 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
2449 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
2450 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
2452 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
2453 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
2454 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
2455 the put area is now BUFSIZ - 1.
2456 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
2457 that now the smallest _M_buf_size is 2 (still fails, for the same
2460 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
2462 * testsuite/thread/pthread4.cc: Tweak test.
2464 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
2466 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
2467 excess errors dg marker, use dg-errors instead.
2468 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
2469 * testsuite/20_util/auto_ptr_neg.cc: Same.
2471 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2473 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
2475 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
2476 Initialize _M_codecvt.
2477 (basic_filebuf::imbue): Same.
2478 (basic_filebuf::showmanyc): Use it.
2479 (basic_filebuf::underflow): Use it.
2480 (basic_filebuf::_M_convert_to_external): Use it.
2481 (basic_filebuf::seekoff): Use it.
2482 (basic_filebuf::imbue): Use it, tweaks.
2483 * include/bits/localefwd.h (__check_facet): New.
2484 * include/bits/locale_classes.h: Tweaks.
2485 * include/bits/locale_facets.tcc: Tweaks.
2486 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
2487 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
2488 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
2489 * include/bits/basic_ios.tcc: Same.
2490 * include/bits/istream.tcc: Same.
2491 * include/bits/ostream.tcc: Same.
2492 * include/std/std_streambuf.h: Same.
2493 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
2494 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
2495 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
2496 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
2497 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
2498 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
2500 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
2502 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
2503 unnecessary includes and unused string literals.
2504 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2505 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2506 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2507 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2509 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2511 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
2513 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
2515 * include/std/std_fstream.h (_M_convert_to_external): Change
2516 to return bool, take two less streamsize parameters.
2517 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
2518 consistently definition.
2519 (_M_overflow): Adjust call points.
2521 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2523 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
2525 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
2527 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
2528 * testsuite/Makefile.in: Regenerate.
2530 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
2532 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
2533 * testsuite/Makefile.in: Regenerate.
2535 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2538 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
2539 (acos): Handle integer argument.
2558 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
2559 (__enable_if): Likewise.
2560 * testsuite/26_numerics/cmath/overloads.C: New test.
2562 2003-05-10 Petur Runolfsson <peturr02@ru.is>
2567 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
2568 implementation, based on old wchar_t specialization, add support
2569 for codecvt::in() return value of codecvt_base::noconv, remove
2570 _M_file.sys_ungetc() call.
2571 * include/std/std_fstream.h (basic_file::underflow,
2572 basic_file::uflow, basic_file::_M_underflow): Remove
2573 specialization declarations, call _M_underflow from generic versions
2574 of underflow and uflow.
2575 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
2576 basic_file::_M_underflow): Remove specializations.
2577 * src/Makefile.am (sources): Remove fstream.cc.
2578 * src/Makefile.in: Regenerated.
2579 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
2580 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
2581 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
2582 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
2584 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
2586 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
2588 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
2590 (__basic_file::xsputn): Same.
2591 (__basic_file::seekoff): Same.
2592 (__basic_file::seekpos): Same.
2593 (__basic_file::showmanyc): Same.
2594 * config/io/basic_file_stdio.cc: Same.
2595 * include/std/std_fstream.h: Same.
2596 * include/bits/fstream.tcc: Same.
2597 * src/fstream.cc: Same.
2598 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
2600 2003-05-10 Petur Runolfsson <peturr02@ru.is>
2605 * include/ext/stdio_sync_filebuf.h: New file.
2606 (basic_stdiobuf): New.
2607 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
2608 * include/Makefile.in: Regenerate.
2609 * include/bits/ios_base.h (Init::_S_create_buffers,
2610 Init::_S_destroy_buffers): Remove declarations.
2611 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
2612 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
2613 * src/ios.cc (Init::_S_create_buffers,
2614 Init::_S_destroy_buffers): Remove.
2615 (Init::Init): Create and use syncronized buffers.
2616 (ios_base::sync_with_stdio): Destroy syncronized buffers,
2617 create and install unsyncronized buffers.
2618 * testsuite/27_io/objects/char/10.cc: New test.
2619 * testsuite/27_io/objects/char/9.cc: New test.
2620 * testsuite/27_io/objects/char/9661-1.cc: New test.
2621 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
2622 * testsuite/27_io/objects/char/9661-2_xin.in: New.
2623 * testsuite/27_io/objects/wchar_t/1.cc: New test.
2624 * testsuite/27_io/objects/wchar_t/10.cc: New test.
2625 * testsuite/27_io/objects/wchar_t/2.cc: New test.
2626 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
2627 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
2628 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
2629 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
2630 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
2631 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
2632 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
2633 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
2634 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
2635 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
2636 * testsuite/27_io/objects/wchar_t/5.cc: New test.
2637 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
2638 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
2639 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
2640 * testsuite/27_io/objects/wchar_t/6.cc: New test.
2641 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
2642 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
2643 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
2644 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
2645 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
2646 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
2647 * testsuite/27_io/objects/wchar_t/7.cc: New test.
2648 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
2649 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
2650 * testsuite/27_io/objects/wchar_t/8.cc: New test.
2651 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
2652 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
2653 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
2654 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
2655 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
2656 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
2657 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
2658 * testsuite/ext/stdiobuf_char.cc: New test.
2659 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
2661 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
2663 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
2664 unnecessary includes and unused string literals.
2665 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2667 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
2669 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
2671 2003-05-07 Richard Henderson <rth@redhat.com>
2674 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
2675 (__cxa_end_catch): Likewise.
2676 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
2677 _Unwind_Resume_or_Rethrow.
2678 * libsupc++/eh_personality.cc (empty_exception_spec): New.
2679 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
2680 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
2681 exceptions. Don't push terminate/unexpected to cxa functions.
2682 (__cxa_call_unexpected): Remove foreign exception fixmes.
2684 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
2686 * testsuite/27_io/ios_base/cons: New.
2687 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
2688 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
2690 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
2692 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
2694 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
2695 there is no buffer or __testget == !__testinit.
2698 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
2699 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
2701 * include/std/std_fstream.h (_M_destroy_pback): Don't set
2702 unnecessarily _M_pback_cur_save and _M_pback_end_save.
2704 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
2706 * include/std/std_sstream.h (_M_sync): Minor tweak.
2708 * include/bits/fstream.tcc (close): No need to call
2709 _M_destroy_pback, setting _M_pback_init to false suffices
2712 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
2714 * include/bits/stl_algo.h: Enums as _S_.
2715 * include/bits/stl_tree.h: Same.
2716 * include/bits/stl_bvector.h: Same.
2717 * include/bits/ios_base.h: Same.
2718 * include/bits/stl_alloc.h: Same.
2719 * include/ext/stl_hashtable.h: Same.
2720 * src/ios.cc: And here.
2722 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
2723 * include/bits/sstream.tcc: Same.
2725 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
2727 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
2729 * include/bits/locale_facets.h (__num_base): Remove protected.
2730 Use _S_[io]* names for enumerations.
2731 (_S_format_int): Remove.
2732 * include/bits/locale_facets.tcc: Same.
2733 * src/locale.cc: Same.
2735 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
2737 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
2739 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
2740 * docs/html/faq/index.txt: Regenerated.
2742 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
2743 Matt Kraai <kraai@alumni.cmu.edu>
2745 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
2748 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
2750 * configure.target (mips*): Use the generic atomicity.h by default.
2752 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
2753 (Inspired by an alternate patch from Danny Smith.)
2755 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
2756 (_Swap_lock_struct<>): ...and the horse it rode in on.
2757 * src/globals.cc (_Swap_lock_struct<>): Likewise.
2758 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
2759 member to support...
2760 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
2761 visibility rules related to POSIX threads.
2762 * testsuite/thread/pthread7-rope.cc: New test.
2764 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
2766 * testsuite/21_strings/basic_string/find/char/3.cc: New
2767 file, testing basic_string<char>::find_first_not_of.
2768 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
2769 Likewise for basic_string<wchar_t>.
2771 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
2773 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
2775 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
2777 * include/Makefile.am (CLEANFILES): Remove PCH files in target
2779 * include/Makefile.in: Regenerate.
2781 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
2783 * include/std/std_sstream.h (str()): Tidy.
2785 2003-05-02 Nathan Myers <ncm@cantrip.org>
2786 Paolo Carlini <pcarlini@unitus.it>
2788 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
2790 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
2792 * include/bits/basic_string.h (swap): Remove redundant template
2793 parameters from declaration of non-template member function.
2795 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
2797 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
2798 * configure.in: Move libintl.h header test...
2799 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
2800 the NLS-related test results into one symbol.
2801 * src/functexcept.cc: Use it here.
2802 * aclocal.m4, config.h.in, configure: Regenerated.
2804 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2806 * include/bits/sstream.tcc (overflow): Instead of calling
2807 str(), then _M_string.reserve, thus copying the contents
2808 of the current buffer two times, just copy the latter in
2809 a temporary, then use the 'swap trick'.
2811 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2813 * include/std/std_sstream.h (str()): Revert the best of the
2814 previous 'improvement', incorrect due to the COW nature of
2815 v3 basic_string; simplify.
2817 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2819 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
2820 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
2822 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
2824 * testsuite/abi_check.cc (check_version): Update known versions.
2825 Check added symbols for version_name != base version. Add missing
2826 symbols to incompatible list.
2828 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
2830 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
2831 * aclocal.m4: Regenerated.
2832 * configure: Regenerated.
2834 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2836 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
2837 Const-ify some variables.
2838 (basic_streambuf::xsputn): Likewise; change the type of some
2839 variables to size_t.
2840 (__copy_streambufs): Change some variables to size_t.
2842 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2844 * include/std/std_sstream.h (str()): Avoid constructing
2845 a basic_string temporary not only when it would turn out
2846 to be zero-sized but also when identical to the current
2849 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2851 * include/ext/stdio_filebuf.h
2852 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
2853 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
2854 Shorten a bit (-10 lines) by factoring out some code.
2856 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
2858 * acinclude.m4: Add bit missing from previous patch.
2859 * aclocal.m4, configure: Regenerated.
2861 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
2863 * docs/doxygen/mainpage.html: Bring up to date.
2864 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
2866 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
2867 breaks everything. Don't scan them.
2868 * docs/html/documentation.html: Point to "Write after approval"
2871 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
2873 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
2874 of libc if message translations are being used. Fix info text in
2875 xieee_1003.1-2001 case.
2876 * aclocal.m4, configure: Regenerate.
2878 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
2879 Loren J. Rittle <ljrittle@acm.org>
2880 Martin v. Loewis <martin@v.loewis.de>
2882 * config/cpu/i386/atomicity.h: New file.
2884 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
2886 * include/bits/fstream.tcc (open): Change to single return.
2888 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
2890 * include/std/std_sstream.h (underflow): Change to single return.
2892 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2894 * include/std/std_streambuf.h (_M_buf): is currently
2895 used only for basic_filebuf, therefore move it there.
2896 (basic_streambuf(), ~basic_streambuf()): Adjust.
2897 * include/std/std_fstream.h (_M_buf): Moved here.
2898 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
2899 is actually redundant for basic_stringbuf.
2900 (_M_really_sync): Likewise.
2901 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2902 * include/bits/sstream.tcc (seekoff): Adjust.
2904 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2906 * src/localename.cc: Standardize exception strings.
2907 * src/locale.cc: Same.
2909 * include/bits/basic_string.tcc: Same.
2910 * include/bits/basic_ios.tcc: Same.
2911 * include/std/std_bitset.h: Same.
2912 * include/ext/ropeimpl.h: Same.
2913 * include/bits/stl_vector.h: Same.
2914 * include/bits/stl_deque.h: Same.
2915 * include/bits/stl_bvector.h: Same.
2916 * config/locale/generic/c_locale.cc: Same.
2917 * config/locale/gnu/c_locale.cc: Same.
2918 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
2920 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
2922 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2924 * include/std/std_streambuf.h (_M_buf_size): is currently
2925 used only for basic_filebuf, therefore move it there.
2926 (basic_streambuf(), ~basic_streambuf()): Adjust.
2927 * include/std/std_fstream.h (_M_buf_size): Moved here.
2928 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2930 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2932 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
2933 _M_buf_size (synced input is now correctly dealt with
2934 elsewhere); when the output buffer is full don't fall back
2935 to a snextc-sputc loop, call overflow instead.
2937 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2939 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
2940 the innermost 'if' by factoring out some code.
2942 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
2944 * configure.in: Test for libintl.h.
2945 * include/bits/c++config: Define __N for everybody.
2946 * include/bits/basic_string.h, include/bits/stl_bvector.h,
2947 include/bits/stl_deque.h, include/bits/stl_vector.h,
2948 include/std/std_bitset.h: Wrap all __throw* text with __N.
2949 * po/Makefile.am (pot): New rule, mostly working.
2950 * src/functexcept.cc: Call gettext on all __throw* arguments when
2951 -fexceptions is in effect.
2952 * po/Makefile.in, config.h.in, configure: Regenerate.
2954 2003-04-28 Petur Runolfsson <peturr02@ru.is>
2957 * include/bits/ios_base.h (Init::_S_ios_create,
2958 Init::_S_ios_destroy): Remove declarations.
2959 (Init::_S_create_buffers,
2960 Init::_S_destroy_buffers): Declare
2961 * src/ios.cc (Init::_S_ios_create): Remove
2962 (Init::_S_create_buffers): Create buffers and add to streams.
2963 (Init::_S_ios_destroy): Rename to...
2964 (Init::_S_destroy_buffers): this.
2965 (Init::Init): Only construct streams once.
2966 (Init::~Init): Flush streams, don't destroy them.
2967 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
2968 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
2969 * testsuite/27_io/objects/char/5.cc: New test.
2970 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
2971 * testsuite/27_io/objects/char/6.cc: New test.
2972 * testsuite/27_io/objects/char/7.cc: New test.
2974 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2976 * testsuite/27_io/objects/char/8.cc: New test.
2978 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2980 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
2981 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
2983 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
2985 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
2986 _M_destroy_pback. _M_pback_create to
2987 _M_create_pback. _M_underflow_common to
2988 _M_underflow. _M_really_overflow to _M_overflow.
2989 * include/bits/fstream.tcc: Same.
2990 * src/fstream.cc: Same.
2991 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
2992 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
2993 * include/bits/streambuf.tcc: Same.
2994 * include/bits/fstream.tcc: Same.
2995 * include/bits/sstream.tcc: Same.
2997 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
2999 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
3000 from fixed size array.
3001 (locale): Change _S_categories as well.
3003 * include/bits/locale_facets.tcc: Tweak.
3004 * config/locale/gnu/c_locale.cc: Assign _S_categories.
3005 * config/locale/generic/c_locale.cc: Same.
3006 * src/locale.cc: Tweak.
3007 * src/globals.cc: Change facet_name to name_vec, add names_c.
3008 * src/localename.cc: Use them.
3009 (locale::_Impl::~_Impl): Destroy _M_names.
3010 (locale::_Impl::_Impl): Create _M_names.
3012 2003-04-27 Andreas Schwab <schwab@suse.de>
3014 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3015 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
3017 2003-04-27 Nathan Myers <ncm@cantrip.org>
3019 Move some basic_string members out of line because
3020 they are too big to reasonably be inline.
3021 * include/bits/basic_string.h
3022 (assign(const basic_string&, size_type, size_type),
3023 assign(const _CharT*, size_type),
3024 insert(size_type, const basic_string&, size_type, size_type),
3025 insert(size_type, const _CharT*, size_type),
3026 replace(size_type, size_type, const _CharT*, size_type)):
3027 Move from here to...
3028 * include/bits/basic_string.tcc: ...here.
3030 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
3032 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
3033 the innermost 'if' by factoring out some code.
3035 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
3037 * include/bits/streambuf.tcc (__copy_streambufs): Don't
3038 use in_avail(), simplify.
3040 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
3042 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
3043 in basic_stringbuf it's unused.
3045 * include/std/std_sstream.h (underflow): consistently use
3046 _M_in_cur, not gptr().
3048 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
3049 Phil Edwards <pme@gcc.gnu.org>
3051 * testsuite_flags.in: Guard against the possibility
3052 of having "xgcc" as a part of a folder name in the
3053 path to the GCC build folder.
3054 * testsuite/Makefile.am: Likewise.
3055 * testsuite/Makefile.in: Regenerated.
3057 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
3060 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
3061 exception specifications.
3062 (basic_filebuf::close): Same.
3063 (basic_filebuf::_M_pback_destroy): Same.
3064 (basic_filebuf::_M_destroy_internal_buffer): Same.
3065 (basic_filebuf): Remove __res_type typedef.
3066 * src/fstream.cc: Same.
3067 * include/bits/fstream.tcc
3068 (basic_filebuf::_M_convert_to_external): Simplify.
3069 (basic_filebuf::seekoff): Use has_facet before use_facet.
3070 (basic_filebuf::close): Add exception specification of throw().
3071 * testsuite/27_io/basic_filebuf/cons: New.
3072 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
3073 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
3074 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
3075 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
3077 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
3079 * include/bits/locale_classes.h
3080 (locale::_S_extra_categories_size): Remove.
3081 * src/locale.cc: Remove _S_extra_categories_size.
3082 * src/localename.cc: Same.
3083 * config/locale/gnu/c_locale.cc: Same.
3084 * config/locale/generic/c_locale.cc: Same.
3086 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
3088 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
3090 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
3092 * docs/html/17_intro/howto.html: Update some links.
3093 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
3094 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
3095 * docs/html/ext/howto.html: Link to demangler notes and API.
3096 * docs/html/faq/index.html: Remove trailing whitespace.
3097 (1.4, 2.4, 3.8, 4.1): Bring up to date.
3098 (5.6): Change to a bulleted list.
3100 * docs/html/faq/index.txt, docs/html/documentation.html,
3101 docs/html/17_intro/porting.html: Regenerate.
3103 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
3105 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
3106 belongs to basic_filebuf.
3107 * testsuite/27_io/basic_fstream/3.cc: Likewise.
3108 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3109 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
3110 instantiation (now belongs to basic_filebuf).
3111 * testsuite/27_io/basic_iostream/3.cc: Likewise.
3112 * testsuite/27_io/basic_istream/3.cc: Likewise.
3113 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3114 _S_pback_size now belongs to basic_filebuf.
3115 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
3116 instantiation (now belongs to basic_filebuf).
3117 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
3118 belongs to basic_filebuf.
3119 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
3120 instantiation (now belongs to basic_filebuf).
3121 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
3122 _S_pback_size now belongs to basic_filebuf.
3123 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
3124 instantiation (now belongs to basic_filebuf).
3125 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
3127 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
3128 instantiation (now belongs to basic_filebuf).
3129 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
3131 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
3133 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
3134 * configure: Regenerated.
3136 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
3138 * config/locale/generic/c_locale.h (__convert_from_v): Use
3141 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
3143 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
3144 implementation only.
3145 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
3146 Comment and change to comply with DR 60 and the effect on gcount().
3147 * include/std/std_istream.h: Update comments.
3148 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
3149 comments about reasons for tests. Test sync() against gcount().
3150 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
3151 for effect on gcount().
3152 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
3153 for effect on gcount().
3155 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
3157 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
3160 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
3162 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
3163 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3164 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
3165 (basic_streambuf::basic_streambuf()): Adjust.
3166 * include/std/std_fstream.h (_S_pback_size, _M_pback,
3167 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3168 _M_pback_create(), _M_pback_destroy()): Moved here
3169 from basic_streambuf.
3170 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
3172 (basic_filebuf::_S_pback_size): Add declaration.
3173 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
3176 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3178 Consistently use _M_in_beg instead of eback(), _M_in_cur
3179 instead of gptr(), and so on.
3180 * include/bits/fstream.tcc (pbackfail, imbue): Here.
3181 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
3182 * include/bits/streambuf.tcc (sbumpc, sputbackc,
3183 __copy_streambufs): Ditto.
3184 * include/std/std_streambuf.h (sgetc): Ditto.
3186 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3188 * include/bits/sstream.tcc (pbackfail, overflow):
3191 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3193 * include/std/std_streambuf.h (uflow()): It's used only by
3194 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
3195 therefore do not consider the _M_buf_unified == true case.
3197 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
3199 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
3201 * docs/html/ext/howto.html ('LWG Issues'):
3202 Add issues 19, 90, 171, 231, 271.
3204 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
3206 * include/bits/sstream.tcc (pbackfail): Remove redundant
3207 NULL pointer check from test involving _M_in_*.
3208 (overflow, seekoff, seekpos): Const qualify bool variables.
3209 * include/std/std_sstream.h (underflow): Remove redundant
3210 NULL pointer check from test involving _M_in_*.
3211 (_M_really_sync): Const qualify bool variables.
3212 * src/fstream.cc (_M_underflow_common): Remove redundant
3213 NULL pointer check from test involving _M_in_*, const qualify
3216 * include/std/std_streambuf.h (sgetc): Remove redundant
3219 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
3221 According to 5.9 para 2 (second bullet) for pointers p, q
3222 pointing to the same type, with p == 0 and q == 0, (p < q)
3224 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
3225 seekoff): Remove redundant NULL pointer checks from tests
3226 involving _M_out_* and _M_in_*, const qualify bool variables.
3227 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
3228 qualify bool variables.
3229 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
3230 Remove redundant NULL pointer checks from tests involving
3231 _M_out_* and _M_in_*, const qualify bool variables.
3232 * include/std/std_fstream.h (sync): Likewise.
3233 (_M_is_indeterminate): Const qualify bool variables.
3234 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
3235 NULL pointer checks from tests involving _M_out_* and _M_in_*,
3236 const qualify bool variables.
3237 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
3240 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
3242 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
3243 C99 FP macros, if actually captured.
3245 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
3246 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3247 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3248 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3249 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
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 * include/c_std/std_cstdlib.h: Use new macros.
3255 * include/c_std/std_cstdio.h: Use new macros.
3256 * include/c_std/std_cwchar.h: Use new macros.
3258 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
3261 * include/bits/ostream.tcc: Catch all exceptions for formatted
3262 output, instead of std::exception and derivatives.
3263 * include/bits/istream.tcc: Same.
3264 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
3265 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
3266 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
3267 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
3268 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3269 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
3272 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
3274 * include/bits/c++config: Minor cosmetic tweaks.
3276 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
3278 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
3279 * include/Makefile.am (pch_input): Find in ${target_builddir}.
3280 (pch_output): Rename to...
3281 (pch_output_builddir): ..this. Find in ${target_builddir}.
3282 (pch_source): Tweak.
3283 (pch_build): Key off a built file.
3284 (pch_output rule): Rename to...
3285 (pch_input rule): ...this. Produce ${pch_output_builddir}
3286 instead of ${pch_output}.
3287 (install-pch rule): Install ${pch_output_builddir}.
3288 * include/Makefile.in: Regenerated.
3290 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
3292 * include/std/std_streambuf.h (setp): _M_out_lim, being
3293 the end limit of used put area, is set equal to _M_out_beg.
3295 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
3297 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
3298 * aclocal.m4: Regenerated.
3299 * configure.in: Remove old demangler bits.
3301 * configure: Regenerate.
3302 * config.h.in: Regenerate.
3303 * include/Makefile.am (allstamps): Now allstamped.
3304 (allcreated): Define this.
3305 (all-local): Use 'em.
3306 Conditionally define pch_build, pch_install based on
3308 (${pch_output}): New rule.
3309 (install-pch): New rule.
3310 (install-headers): New rule.
3311 (install-data-local): Install headers and conditionally pch.
3312 * include/Makefile.in: Regenerate.
3313 * testsuite_flags.in (--build-cxx): Use pch file.
3315 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
3317 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
3319 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
3320 Paolo Carlini <pcarlini at unitus dot it>
3323 * docs/html/27_io/howto.html
3324 ('The buffering is screwing up my program!'): Explain that
3325 opening counts as an I/O operation.
3327 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
3329 * testsuite/thread/pthread1.cc: Enable for darwin test.
3330 * testsuite/thread/pthread2.cc: Same.
3331 * testsuite/thread/pthread3.cc: Same.
3332 * testsuite/thread/pthread4.cc: Same.
3333 * testsuite/thread/pthread5.cc: Same.
3334 * testsuite/thread/pthread6.cc: Same.
3336 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
3339 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
3340 Populate it with multiple legal ways to obtain the C99 float
3341 transcendentals. Use them instead of direct global reference.
3342 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
3343 * docs/html/17_intro/porting.texi
3344 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3345 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3346 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
3347 * config/os/bsd/freebsd/os_defines.h
3348 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3349 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3350 * testsuite/26_numerics/c_math_dynamic.cc: New file.
3352 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
3353 Benjamin Kosnik <bkoz@redhat.com>
3355 * config/os/generic/ctype_inline.h: Fix.
3357 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
3359 * testsuite/testsuite_hooks.h
3360 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
3361 Change to try_named_locale.
3362 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
3364 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
3366 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3367 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3368 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
3369 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
3370 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
3371 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
3372 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
3373 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
3374 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
3375 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
3376 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
3377 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
3378 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
3379 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
3380 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
3381 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3382 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3383 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3384 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
3385 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
3386 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
3387 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
3388 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
3389 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
3390 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
3391 * testsuite/22_locale/collate/compare/char/1.cc: Same.
3392 * testsuite/22_locale/collate/compare/char/2.cc: Same.
3393 * testsuite/22_locale/collate/compare/char/3.cc: Same.
3394 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
3395 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
3396 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
3397 * testsuite/22_locale/collate/hash/char/2.cc: Same.
3398 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
3399 * testsuite/22_locale/collate/transform/char/2.cc: Same.
3400 * testsuite/22_locale/collate/transform/char/3.cc: Same.
3401 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
3402 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
3403 * testsuite/22_locale/collate_byname/1.cc: Same.
3404 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3405 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3406 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
3407 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
3408 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
3409 * testsuite/22_locale/facet/2.cc: Same.
3410 * testsuite/22_locale/locale/cons/2.cc: Same.
3411 * testsuite/22_locale/locale/cons/4.cc: Same.
3412 * testsuite/22_locale/locale/cons/5.cc: Same.
3413 * testsuite/22_locale/locale/cons/7.cc: Same.
3414 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
3415 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
3416 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
3417 * testsuite/22_locale/messages/members/char/1.cc: Same.
3418 * testsuite/22_locale/messages/members/char/2.cc: Same.
3419 * testsuite/22_locale/messages/members/char/3.cc: Same.
3420 * testsuite/22_locale/messages_byname/1.cc: Same.
3421 * testsuite/22_locale/money_get/get/char/1.cc: Same.
3422 * testsuite/22_locale/money_get/get/char/2.cc: Same.
3423 * testsuite/22_locale/money_get/get/char/3.cc: Same.
3424 * testsuite/22_locale/money_get/get/char/4.cc: Same.
3425 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
3426 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
3427 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
3428 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
3429 * testsuite/22_locale/money_put/put/char/1.cc: Same.
3430 * testsuite/22_locale/money_put/put/char/2.cc: Same.
3431 * testsuite/22_locale/money_put/put/char/3.cc: Same.
3432 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
3433 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
3434 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
3435 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
3436 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
3437 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
3438 * testsuite/22_locale/num_get/get/char/1.cc: Same.
3439 * testsuite/22_locale/num_get/get/char/2.cc: Same.
3440 * testsuite/22_locale/num_get/get/char/3.cc: Same.
3441 * testsuite/22_locale/num_get/get/char/5.cc: Same.
3442 * testsuite/22_locale/num_get/get/char/6.cc: Same.
3443 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
3444 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
3445 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
3446 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
3447 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
3448 * testsuite/22_locale/num_put/put/char/1.cc: Same.
3449 * testsuite/22_locale/num_put/put/char/2.cc: Same.
3450 * testsuite/22_locale/num_put/put/char/3.cc: Same.
3451 * testsuite/22_locale/num_put/put/char/5.cc: Same.
3452 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
3453 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
3454 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
3455 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
3456 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
3457 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
3458 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
3459 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
3460 * testsuite/22_locale/numpunct_byname/1.cc: Same.
3461 * testsuite/22_locale/numpunct_byname/2.cc: Same.
3462 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
3463 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
3464 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
3465 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
3466 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
3467 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
3468 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
3469 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
3470 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
3471 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
3472 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
3473 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
3474 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
3475 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
3476 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
3477 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
3478 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
3479 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
3480 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
3481 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
3482 * testsuite/22_locale/time_put/put/char/1.cc: Same.
3483 * testsuite/22_locale/time_put/put/char/2.cc: Same.
3484 * testsuite/22_locale/time_put/put/char/3.cc: Same.
3485 * testsuite/22_locale/time_put/put/char/4.cc: Same.
3486 * testsuite/22_locale/time_put/put/char/5.cc: Same.
3487 * testsuite/22_locale/time_put/put/char/6.cc: Same.
3488 * testsuite/22_locale/time_put/put/char/7.cc: Same.
3489 * testsuite/22_locale/time_put/put/char/8.cc: Same.
3490 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
3491 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
3492 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
3493 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
3494 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
3495 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
3496 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
3497 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
3498 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
3499 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
3500 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
3501 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
3502 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
3504 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
3506 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
3507 solaris includes, not generic.
3509 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
3511 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
3513 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
3514 * include/bits/concept_check.h: Fix multi-line comment.
3515 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
3516 when target is *-*-freebsd*.
3518 2003-04-14 Nathan Myers <ncm@cantrip.org>
3519 Paolo Carlini <pcarlini@unitus.it>
3521 PR libstdc++/9701 (in_avail())
3522 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
3523 doesn't care if there is anything in some putback cell.
3524 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
3526 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
3527 unused string literals.
3529 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
3531 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
3532 _M_out_end, _M_set_indeterminate() does it.
3534 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3536 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
3538 2003-04-12 David Edelsohn <edelsohn@gnu.org>
3540 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3541 Change basic_streambuf instantiation to "unsigned char".
3542 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3544 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
3546 Remove _M_buf_size_opt, use directly _M_buf_size instead.
3547 * include/bits/fstream.tcc
3548 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
3549 references to _M_buf_size_opt.
3550 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
3551 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
3552 __bufsize to __in_avail and __size_opt to __buf_size.
3553 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
3554 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
3555 * include/std/std_streambuf.h (~basic_streambuf(),
3556 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
3557 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
3558 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3559 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
3560 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
3561 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
3562 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
3563 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
3564 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
3565 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3566 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3567 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3568 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3570 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
3572 * include/ext/stdio_filebuf.h
3573 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
3574 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
3575 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
3576 since a stack-based buffer is used for small values of the size_t
3578 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
3579 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
3580 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
3582 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
3585 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
3586 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
3588 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3590 * testsuite/22_locale/locale/cons/3.cc: Split.
3591 * testsuite/22_locale/locale/cons/7222-c.cc: New.
3592 * testsuite/22_locale/locale/cons/7222-env.cc: New.
3593 Check before trying to create a locale from the environment.
3594 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
3595 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3598 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3600 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
3601 locale to construct this hybrid locale, not the global locale.
3603 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3605 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
3606 instantiation for AIX.
3607 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3608 * testsuite/25_algorithms/min_max.cc: Same.
3610 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3612 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
3613 twice. Always set _M_cfile to 0 when stream was open.
3615 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3617 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
3618 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
3619 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
3620 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
3621 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
3622 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
3623 ifstream_members.cc, instantiations.cc, ios.cc,
3624 ios_base_callbacks.cc, ios_base_members_static-1.tst,
3625 ios_base_members_static.cc, ios_base_storage.cc,
3626 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
3627 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
3628 iostream.cc, iostream_members.cc, istream.cc,
3629 istream_exception.cc, istream_extractor_char.cc,
3630 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
3631 istream_extractor_other-2.tst, istream_extractor_other.cc,
3632 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
3633 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
3634 istream_sentry.cc, istream_unformatted-1.tst,
3635 istream_unformatted-1.txt, istream_unformatted.cc,
3636 istringstream.cc, istringstream_members.cc,
3637 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
3638 ofstream_members.cc, ostream.cc, ostream_exception.cc,
3639 ostream_fail.cc, ostream_inserter_arith.cc,
3640 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
3641 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
3642 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
3643 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
3644 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
3645 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
3646 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
3647 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
3648 wide_stream_objects.cc, istream_extractor_arith/01.cc,
3649 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
3650 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
3651 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
3652 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
3653 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
3655 * 27_io/basic_filebuf/1.cc: New.
3656 * 27_io/basic_filebuf/2.cc: New.
3657 * 27_io/basic_filebuf/3.cc: New.
3658 * 27_io/basic_filebuf/4.cc: New.
3659 * 27_io/basic_filebuf/close/char/1.cc: New.
3660 * 27_io/basic_filebuf/close/char/2.cc: New.
3661 * 27_io/basic_filebuf/close/char/3.cc: New.
3662 * 27_io/basic_filebuf/close/char/4879.cc: New.
3663 * 27_io/basic_filebuf/close/char/9964.cc: New.
3664 * 27_io/basic_filebuf/imbue/char/1.cc: New.
3665 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
3666 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
3667 * 27_io/basic_filebuf/is_open/char/1.cc: New.
3668 * 27_io/basic_filebuf/open/char/1.cc: New.
3669 * 27_io/basic_filebuf/open/char/2.cc: New.
3670 * 27_io/basic_filebuf/open/char/3.cc: New.
3671 * 27_io/basic_filebuf/open/char/9507.cc: New.
3672 * 27_io/basic_filebuf/overflow/char/1.cc: New.
3673 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
3674 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
3675 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
3676 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
3677 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
3678 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
3679 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
3680 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
3681 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
3682 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
3683 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
3684 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
3685 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
3686 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
3687 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
3688 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
3689 * 27_io/basic_filebuf/snextc/char/1.cc: New.
3690 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
3691 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
3692 * 27_io/basic_filebuf/sputc/char/1.cc: New.
3693 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
3694 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
3695 * 27_io/basic_filebuf/sputn/char/1.cc: New.
3696 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
3697 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
3698 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
3699 * 27_io/basic_filebuf/sync/char/1057.cc: New.
3700 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
3701 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
3702 * 27_io/basic_fstream/1.cc: New.
3703 * 27_io/basic_fstream/2.cc: New.
3704 * 27_io/basic_fstream/3.cc: New.
3705 * 27_io/basic_fstream/4.cc: New.
3706 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
3707 * 27_io/basic_ifstream/1.cc: New.
3708 * 27_io/basic_ifstream/2.cc: New.
3709 * 27_io/basic_ifstream/3.cc: New.
3710 * 27_io/basic_ifstream/4.cc: New.
3711 * 27_io/basic_ifstream/cons/char/1.cc: New.
3712 * 27_io/basic_ifstream/open/char/1.cc: New.
3713 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
3714 * 27_io/basic_ios/1.cc: New.
3715 * 27_io/basic_ios/2.cc: New.
3716 * 27_io/basic_ios/3.cc: New.
3717 * 27_io/basic_ios/4.cc: New.
3718 * 27_io/basic_ios/clear/char/1.cc: New.
3719 * 27_io/basic_ios/cons/char/1.cc: New.
3720 * 27_io/basic_ios/cons/char/2.cc: New.
3721 * 27_io/basic_ios/cons/char/3.cc: New.
3722 * 27_io/basic_ios/copyfmt/char/1.cc: New.
3723 * 27_io/basic_ios/copyfmt/char/2.cc: New.
3724 * 27_io/basic_ios/exceptions/char/1.cc: New.
3725 * 27_io/basic_ios/locales/char/1.cc: New.
3726 * 27_io/basic_iostream/1.cc: New.
3727 * 27_io/basic_iostream/2.cc: New.
3728 * 27_io/basic_iostream/3.cc: New.
3729 * 27_io/basic_iostream/4.cc: New.
3730 * 27_io/basic_istream/1.cc: New.
3731 * 27_io/basic_istream/2.cc: New.
3732 * 27_io/basic_istream/3.cc: New.
3733 * 27_io/basic_istream/4.cc: New.
3734 * 27_io/basic_istream/exceptions/char/9561.cc: New.
3735 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
3736 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
3737 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
3738 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
3739 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
3740 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
3741 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
3742 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
3743 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
3744 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
3745 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
3746 * 27_io/basic_istream/extractors_character/char/1.cc: New.
3747 * 27_io/basic_istream/extractors_character/char/2.cc: New.
3748 * 27_io/basic_istream/extractors_character/char/3.cc: New.
3749 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
3750 * 27_io/basic_istream/extractors_other/char/1.cc: New.
3751 * 27_io/basic_istream/extractors_other/char/2.cc: New.
3752 * 27_io/basic_istream/extractors_other/char/3.cc: New.
3753 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
3754 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
3755 * 27_io/basic_istream/get/char/1.cc: New.
3756 * 27_io/basic_istream/get/char/2.cc: New.
3757 * 27_io/basic_istream/getline/char/1.cc: New.
3758 * 27_io/basic_istream/getline/char/2.cc: New.
3759 * 27_io/basic_istream/getline/char/3.cc: New.
3760 * 27_io/basic_istream/ignore/char/1.cc: New.
3761 * 27_io/basic_istream/ignore/char/6360.cc: New.
3762 * 27_io/basic_istream/ignore/char/7220.cc: New.
3763 * 27_io/basic_istream/peek/char/1.cc: New.
3764 * 27_io/basic_istream/peek/char/6414.cc: New.
3765 * 27_io/basic_istream/putback/char/1.cc: New.
3766 * 27_io/basic_istream/read/char/1.cc: New.
3767 * 27_io/basic_istream/read/char/2.cc: New.
3768 * 27_io/basic_istream/read/char/3.cc: New.
3769 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
3770 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
3771 * 27_io/basic_istream/readsome/char/8258.cc: New.
3772 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
3773 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
3774 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
3775 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
3776 * 27_io/basic_istream/seekg/char/fstream.cc: New.
3777 * 27_io/basic_istream/seekg/char/sstream.cc: New.
3778 * 27_io/basic_istream/sentry/char/1.cc: New.
3779 * 27_io/basic_istream/sentry/char/2.cc: New.
3780 * 27_io/basic_istream/sentry/char/3.cc: New.
3781 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
3782 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
3783 * 27_io/basic_istream/tellg/char/1.cc: New.
3784 * 27_io/basic_istream/tellg/char/8348.cc: New.
3785 * 27_io/basic_istream/tellg/char/fstream.cc: New.
3786 * 27_io/basic_istream/tellg/char/sstream.cc: New.
3787 * 27_io/basic_istream/ws/char/1.cc: New.
3788 * 27_io/basic_istringstream/1.cc: New.
3789 * 27_io/basic_istringstream/2.cc: New.
3790 * 27_io/basic_istringstream/3.cc: New.
3791 * 27_io/basic_istringstream/4.cc: New.
3792 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
3793 * 27_io/basic_istringstream/str/char/1.cc: New.
3794 * 27_io/basic_ofstream/1.cc: New.
3795 * 27_io/basic_ofstream/2.cc: New.
3796 * 27_io/basic_ofstream/3.cc: New.
3797 * 27_io/basic_ofstream/4.cc: New.
3798 * 27_io/basic_ofstream/cons/char/2.cc: New.
3799 * 27_io/basic_ofstream/open/char/1.cc: New.
3800 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
3801 * 27_io/basic_ostream/1.cc: New.
3802 * 27_io/basic_ostream/2.cc: New.
3803 * 27_io/basic_ostream/3.cc: New.
3804 * 27_io/basic_ostream/4.cc: New.
3805 * 27_io/basic_ostream/cons/char/9827.cc: New.
3806 * 27_io/basic_ostream/endl/char/1.cc: New.
3807 * 27_io/basic_ostream/ends/char/1.cc: New.
3808 * 27_io/basic_ostream/ends/char/2.cc: New.
3809 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
3810 * 27_io/basic_ostream/flush/char/1.cc: New.
3811 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
3812 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
3813 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
3814 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
3815 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
3816 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
3817 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
3818 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
3819 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
3820 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
3821 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
3822 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
3823 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
3824 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
3825 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
3826 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
3827 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
3828 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
3829 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
3830 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
3831 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
3832 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
3833 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
3834 * 27_io/basic_ostream/sentry/char/1.cc: New.
3835 * 27_io/basic_ostream/sentry/char/2.cc: New.
3836 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
3837 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
3838 * 27_io/basic_ostream/tellp/char/1.cc: New.
3839 * 27_io/basic_ostream/tellp/char/2.cc: New.
3840 * 27_io/basic_ostringstream/1.cc: New.
3841 * 27_io/basic_ostringstream/2.cc: New.
3842 * 27_io/basic_ostringstream/3.cc: New.
3843 * 27_io/basic_ostringstream/4.cc: New.
3844 * 27_io/basic_ostringstream/cons/char/3.cc: New.
3845 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
3846 * 27_io/basic_ostringstream/str/char/1.cc: New.
3847 * 27_io/basic_ostringstream/str/char/2.cc: New.
3848 * 27_io/basic_streambuf/1.cc: New.
3849 * 27_io/basic_streambuf/2.cc: New.
3850 * 27_io/basic_streambuf/3.cc: New.
3851 * 27_io/basic_streambuf/cons/char/1.cc: New.
3852 * 27_io/basic_streambuf/imbue/char/1.cc: New.
3853 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
3854 * 27_io/basic_streambuf/overflow/char/1.cc: New.
3855 * 27_io/basic_streambuf/overflow/char/2.cc: New.
3856 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
3857 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
3858 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
3859 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
3860 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
3861 * 27_io/basic_streambuf/sputn/char/1.cc: New.
3862 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
3863 * 27_io/basic_streambuf/sync/char/1057.cc: New.
3864 * 27_io/basic_stringbuf/1.cc: New.
3865 * 27_io/basic_stringbuf/2.cc: New.
3866 * 27_io/basic_stringbuf/3.cc: New.
3867 * 27_io/basic_stringbuf/4.cc: New.
3868 * 27_io/basic_stringbuf/5.cc: New.
3869 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
3870 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
3871 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
3872 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
3873 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
3874 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
3875 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
3876 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
3877 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
3878 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
3879 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
3880 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
3881 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
3882 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
3883 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
3884 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
3885 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
3886 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
3887 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
3888 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
3889 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
3890 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
3891 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
3892 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
3893 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
3894 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
3895 * 27_io/basic_stringbuf/str/char/1.cc: New.
3896 * 27_io/basic_stringbuf/str/char/2.cc: New.
3897 * 27_io/basic_stringbuf/str/char/3.cc: New.
3898 * 27_io/basic_stringbuf/str/char/3955.cc: New.
3899 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
3900 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
3901 * 27_io/basic_stringstream/1.cc: New.
3902 * 27_io/basic_stringstream/2.cc: New.
3903 * 27_io/basic_stringstream/3.cc: New.
3904 * 27_io/basic_stringstream/4.cc: New.
3905 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
3906 * 27_io/basic_stringstream/str/char/1.cc: New.
3907 * 27_io/basic_stringstream/str/char/2.cc: New.
3908 * 27_io/basic_stringstream/str/char/3.cc: New.
3909 * 27_io/basic_stringstream/str/char/4.cc: New.
3910 * 27_io/fpos/1.cc: New.
3911 * 27_io/fpos/2.cc: New.
3912 * 27_io/fpos/3.cc: New.
3913 * 27_io/ios_base/callbacks/1.cc: New.
3914 * 27_io/ios_base/state/1.cc: New.
3915 * 27_io/ios_base/storage/1.cc: New.
3916 * 27_io/ios_base/storage/2.cc: New.
3917 * 27_io/ios_base/storage/3.cc: New.
3918 * 27_io/ios_base/sync_with_stdio/1.cc: New.
3919 * 27_io/ios_base/sync_with_stdio/2.cc: New.
3920 * 27_io/manipulators/adjustfield/char/1.cc: New.
3921 * 27_io/manipulators/adjustfield/char/2.cc: New.
3922 * 27_io/manipulators/basefield/char/1.cc: New.
3923 * 27_io/manipulators/standard/char/1.cc: New.
3924 * 27_io/manipulators/standard/char/2.cc: New.
3925 * 27_io/objects/char/1.cc: New.
3926 * 27_io/objects/char/2.cc: New.
3927 * 27_io/objects/char/2523-1_xin.cc: New.
3928 * 27_io/objects/char/2523-1_xin.in: New.
3929 * 27_io/objects/char/2523-2_xin.cc: New.
3930 * 27_io/objects/char/2523-2_xin.in: New.
3931 * 27_io/objects/char/3045.cc: New.
3932 * 27_io/objects/char/3647.cc: New.
3933 * 27_io/objects/char/3_xin.cc: New.
3934 * 27_io/objects/char/3_xin.in: New.
3935 * 27_io/objects/char/4_xin.cc: New.
3936 * 27_io/objects/char/4_xin.in: New.
3937 * 27_io/objects/char/5268.cc: New.
3938 * 27_io/objects/char/5280_xin.cc: New.
3939 * 27_io/objects/char/5280_xin.in: New.
3940 * 27_io/objects/char/6548_xin.cc: New.
3941 * 27_io/objects/char/6548_xin.in: New.
3942 * 27_io/objects/char/6648-1_xin.cc: New.
3943 * 27_io/objects/char/6648-1_xin.in: New.
3944 * 27_io/objects/char/6648-2_xin.cc: New.
3945 * 27_io/objects/char/6648-2_xin.in: New.
3946 * 27_io/objects/char/7744_xin.cc: New.
3947 * 27_io/objects/char/7744_xin.in: New.
3948 * 27_io/objects/wchar_t/1.cc: New.
3949 * 27_io/types/1.cc: New.
3950 * 27_io/types/2.cc: New.
3951 * data/filebuf_members-1.tst: New.
3952 * data/filebuf_members-1.txt: New.
3953 * data/filebuf_virtuals-1.tst: New.
3954 * data/filebuf_virtuals-1.txt: New.
3955 * data/filebuf_virtuals-2.tst: New.
3956 * data/filebuf_virtuals-3.tst: New.
3957 * data/ifstream_members-1.tst: New.
3958 * data/ifstream_members-1.txt: New.
3959 * data/ios_base_members_static-1.tst: New.
3960 * data/istream_extractor_other-1.tst: New.
3961 * data/istream_extractor_other-1.txt: New.
3962 * data/istream_extractor_other-2.tst: New.
3963 * data/istream_seeks-1.tst: New.
3964 * data/istream_seeks-1.txt: New.
3965 * data/istream_seeks-2.tst: New.
3966 * data/istream_seeks-3.tst: New.
3967 * data/istream_unformatted-1.tst: New.
3968 * data/istream_unformatted-1.txt: New.
3969 * data/ofstream_members-1.tst: New.
3970 * data/ostream_inserter_char-1.tst: New.
3971 * data/ostream_inserter_char-1.txt: New.
3972 * data/ostream_inserter_other-1.tst: New.
3973 * data/ostream_inserter_other-2.tst: New.
3974 * data/ostream_seeks-1.tst: New.
3976 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3978 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
3979 requirement that __mode must be strict input or output.
3981 * include/std/std_streambuf.h (basic_streambuf::setp): Set
3984 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
3985 output string shouldn't core.
3986 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
3988 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
3990 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
3993 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3995 * testsuite/data: New directory.
3996 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3997 to copy files from the testsuite data directory.
3998 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
3999 testfiles containing _xin, which now means this is an interactive
4000 test and should be run with the interactive dejagnu hooks.
4001 * testsuite/Makefile.am: Remove testsuite_* files.
4002 * testsuite/Makefile.in: Regenerate.
4004 2003-04-09 Zack Weinberg <zack@codesourcery.com>
4006 * docs/html/install.html: Document complete list of locales
4007 required by test suite. Document procedure for installing
4008 said locales under Debian. Solicit instructions for other
4011 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
4013 * include/bits/sstream.tcc (overflow): Make sure operands of min
4014 and max have the same type.
4016 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
4019 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
4022 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
4024 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
4025 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
4026 Don't set _M_out_end.
4027 (basic_filebuf::overflow): Replace _M_out_buf_size() with
4028 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
4029 * include/bits/sstream.tcc (basic_stringbuf::overflow):
4030 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
4031 * include/bits/streambuf.tcc (basic_streambuf::sputc):
4032 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
4033 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
4034 _M_out_end - _M_out_cur.
4035 (__copy_streambufs): Likewise.
4036 * include/std/std_fstream.h (_M_set_determinate): Set
4039 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
4041 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
4042 _M_convert_to_external, _M_really_overflow, seekoff): Fix
4043 test for synced buffer.
4044 * include/std/std_fstream.h (sync): Likewise.
4045 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
4046 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
4048 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
4050 * include/std/std_sstream.h (basic_istringstream): Adjust
4052 (basic_ostringstream): Same.
4053 (basic_stringstream): Same.
4054 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
4055 (basic_ofstream): Same.
4056 (basic_fstream): Same.
4057 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
4058 that does not call init.
4059 * include/std/std_istream.h (basic_istream): Same.
4060 (basic_iostream): Construct istream, ostream uninitialized, use
4061 init to initialize just once. Add protected ctor that does not
4064 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
4065 Nathan Myers <ncm@cantrip.org>
4068 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
4070 (basic_filebuf<>::showmanyc): Use the information provided
4071 by codecvt and __basic_file<>::showmanyc_helper to implement
4072 a non-trivial showmanyc.
4073 * config/io/basic_file_stdio.h
4074 (__basic_file<>::showmanyc_helper): New, declare.
4075 * config/io/basic_file_stdio.cc
4076 (__basic_file<>::showmanyc_helper): Define.
4077 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
4078 (__basic_file<char>::open): Don't call fcntl().
4079 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
4080 GLIBCPP_CHECK_POLL): New macros.
4081 * configure.in: Call here.
4082 * acconfig.h: Add #undefs for the corresponding symbols.
4083 * aclocal.m4: Regenerate.
4084 * configure: Regenerate.
4085 * config.h.in: Regenerate.
4087 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
4089 * config/linker-map.gnu: Remove string export restrictions.
4091 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
4093 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
4094 find_first_of, find_last_of and find_last_not_of tests.
4095 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
4096 tests here, new file.
4097 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
4098 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
4099 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
4100 wchar_t find_first_of tests here, new file.
4101 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
4103 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
4105 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
4106 wchar_t find_last_of tests here.
4107 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
4108 wchar_t find_last_not_of tests here.
4110 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
4112 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
4113 Correct return value.
4115 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
4118 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
4119 * include/std/std_complex.h (norm): Use faster,
4120 less accurate computation for builtin float types under --fast-math.
4122 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
4124 * testsuite/testsuite_hooks.h: Fix warning nits.
4126 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
4128 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
4129 Only .set mips2 for the o32 ABI.
4131 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
4133 * testsuite/21_strings/char_traits/requirements/char/1.cc:
4134 Test char not wchar_t.
4136 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
4138 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
4139 Correct size, taking into account sizeof(wchar_t).
4141 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
4143 Reshuffle 21_strings testsuite.
4144 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
4145 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
4146 element_access.cc, operations.cc, char_traits_requirements.cc,
4147 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
4148 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
4149 wchar_t tests as follows.
4150 * 21_strings/basic_string/append/char/1.cc: New.
4151 * 21_strings/basic_string/append/wchar_t/1.cc: New.
4152 * 21_strings/basic_string/assign/char/1.cc: New.
4153 * 21_strings/basic_string/assign/char/2.cc: New.
4154 * 21_strings/basic_string/assign/char/3.cc: New.
4155 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
4156 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
4157 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
4158 * 21_strings/basic_string/capacity/1.cc: New.
4159 * 21_strings/basic_string/capacity/char/1.cc: New.
4160 * 21_strings/basic_string/capacity/char/2.cc: New.
4161 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
4162 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
4163 * 21_strings/basic_string/compare/char/1.cc: New.
4164 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
4165 * 21_strings/basic_string/cons/char/1.cc: New.
4166 * 21_strings/basic_string/cons/char/2.cc: New.
4167 * 21_strings/basic_string/cons/char/3.cc: New.
4168 * 21_strings/basic_string/cons/char/4.cc: New.
4169 * 21_strings/basic_string/cons/char/5.cc: New.
4170 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
4171 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
4172 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
4173 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
4174 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
4175 * 21_strings/basic_string/element_access/char/1.cc: New.
4176 * 21_strings/basic_string/element_access/char/2.cc: New.
4177 * 21_strings/basic_string/element_access/char/3.cc: New.
4178 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
4179 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
4180 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
4181 * 21_strings/basic_string/find/char/1.cc: New.
4182 * 21_strings/basic_string/find/wchar_t/1.cc: New.
4183 * 21_strings/basic_string/insert/char/1.cc: New.
4184 * 21_strings/basic_string/insert/char/2.cc: New.
4185 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
4186 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
4187 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
4188 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
4189 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
4190 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
4191 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
4192 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
4193 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
4194 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
4195 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
4196 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
4197 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
4198 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
4199 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
4200 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
4201 * 21_strings/basic_string/operators/char/1.cc: New.
4202 * 21_strings/basic_string/operators/char/2.cc: New.
4203 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
4204 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
4205 * 21_strings/basic_string/replace/char/1.cc: New.
4206 * 21_strings/basic_string/replace/char/2.cc: New.
4207 * 21_strings/basic_string/replace/char/3.cc: New.
4208 * 21_strings/basic_string/replace/char/4.cc: New.
4209 * 21_strings/basic_string/replace/char/5.cc: New.
4210 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
4211 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
4212 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
4213 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
4214 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
4215 * 21_strings/basic_string/rfind/char/1.cc: New.
4216 * 21_strings/basic_string/rfind/char/2.cc: New.
4217 * 21_strings/basic_string/rfind/char/3.cc: New.
4218 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
4219 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
4220 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
4221 * 21_strings/basic_string/substr/char/1.cc: New.
4222 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
4223 * 21_strings/c_strings/char/1.cc: New.
4224 * 21_strings/c_strings/char/2.cc: New.
4225 * 21_strings/c_strings/wchar_t/1.cc: New.
4226 * 21_strings/c_strings/wchar_t/2.cc: New.
4227 * 21_strings/char_traits/requirements/char/1.cc: New.
4228 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
4229 * 21_strings/char_traits/typedefs/char/1.cc: New.
4231 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
4232 Petur Runolfsson <peturr02@ru.is>
4235 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
4236 basic_filebuf<wchar_t>::_M_underflow_common):
4237 if (gptr() < egptr()) return *gptr().
4238 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
4240 * testsuite/27_io/filebuf_members.cc (test_04): Minor
4241 changes: unlink fifo before making it, fix spelling error.
4243 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
4245 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
4246 * testsuite/Makefile.in: Regenerate.
4247 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
4250 2003-03-17 Petur Runolfsson <peturr02@ru.is>
4253 * include/bits/fstream.tcc (basic_filebuf::close):
4254 Always close file, even when write fails.
4255 * testsuite/27_io/filebuf_members.cc (test_07): New test.
4257 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
4259 * libsupc++/Makefile.am (C_COMPILE): Remove.
4260 (LTCOMPILE): Likewise.
4261 * libsupc++/Makefile.in: Regenerate.
4263 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
4265 * testsuite/23_containers/bitset_members.cc: Add test variable.
4266 * testsuite/23_containers/map_insert.cc: Same.
4267 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
4268 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
4269 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
4270 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
4271 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
4272 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
4273 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
4274 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
4275 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
4276 * testsuite/27_io/istream_exception.cc: Same.
4277 * testsuite/27_io/filebuf_virtuals.cc: Same.
4278 * testsuite/27_io/stringbuf_virtuals.cc: Same.
4279 * testsuite/27_io/ostream_inserter_arith.cc: Same.
4280 * testsuite/26_numerics/valarray_operators.cc: Same.
4281 * testsuite/26_numerics/slice.cc: Same.
4282 * testsuite/26_numerics/slice_array_assignment.cc: Same.
4283 * testsuite/24_iterators/istream_iterator.cc: Same.
4284 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
4286 2003-03-14 Petur Runolfsson <peturr02@ru.is>
4290 * config/locale/generic/ctype_members.cc,
4291 * config/locale/gnu/ctype_members.cc
4292 (ctype<wchar_t>::do_widen(char)): Cast argument to
4293 unsigned char before passing to btowc.
4294 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
4295 Convert characters with btowc instead of mbsrtowcs.
4296 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
4298 Convert characters with wctob instead of wcsrtombs.
4299 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
4300 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
4301 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
4303 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
4305 * include/stdc++.h: New.
4306 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
4307 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
4308 * include/Makefile.in: Regenerate.
4309 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
4310 (--cxxflags): Put -g -O2 here.
4311 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
4313 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
4315 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
4316 missing named locale.
4318 2003-03-14 Andreas Schwab <schwab@suse.de>
4320 * configure.in: Only append to makefiles that are newly created to
4321 avoid multiple multi-do/multi-clean rules.
4322 * configure: Rebuilt.
4324 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
4326 * docs/html/configopts.html, docs/html/documentation.html,
4327 docs/html/explanations.html, docs/html/install.html,
4328 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
4329 invalid XHTML and make page header style consistent.
4331 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
4333 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
4334 * docs/html/faq/index.txt: Regenerate.
4335 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
4337 2003-03-12 Andreas Schwab <schwab@suse.de>
4339 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
4340 glibcpp_toolexeclibdir.
4341 * aclocal.m4, configure: Rebuilt.
4343 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
4345 * docs/html/faq/index.html: Update text about location of headers.
4346 * docs/html/faq/index.txt: Regenerate.
4348 2003-03-11 Carlo Wood <carlo@alinoe.com>
4350 * include/bits/demangle.h: Prepend accessors of
4351 class qualifier with 'get_' in order to fix warnings
4352 when compiling with -Wshadow.
4354 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
4356 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
4358 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
4360 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
4361 report lack of setenv().
4363 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4365 * config/io/basic_file_stdio.cc: include <unistd.h>.
4367 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4368 Nathan Myers <ncm@cantrip.org>
4371 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
4372 seekoff, seekpos): Add a boolean parameter __stdio.
4373 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
4374 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
4375 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
4377 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
4378 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
4379 * include/std/std_fstream.h (sync): Likewise.
4380 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
4381 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
4382 libstdc++/8399 commit involving isatty(0).
4383 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
4384 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
4385 * configure.in: Remove call.
4386 * aclocal.m4: Regenerate.
4387 * config.h.in: Regenerate.
4388 * configure: Regenerate.
4389 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
4391 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4394 * include/bits/fstream.tcc (overflow): don't write EOF to file.
4395 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
4397 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4400 * include/bits/basic_ios.h (_M_setstate): New.
4401 * include/bits/ostream.tcc (operator<<): Use it.
4402 * include/bits/istream.tcc (operator>>): Use it.
4403 * include/std/std_ostream.h (operator<<): Make friends.
4404 * include/std/std_istream.h (operator>>): Make friends.
4405 * testsuite/27_io/ostream_exception.cc,
4406 testsuite/27_io/istream_exception.cc: New tests.
4408 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
4410 * include/bits/locale_facets.tcc: Fix typo.
4412 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
4414 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
4416 * config/locale/generic/c_locale.cc
4417 (locale::facet::_S_create_c_locale): Throw runtime exception when
4418 unsupported language is specified.
4419 * testsuite/testsuite_hooks.h
4420 (run_test_wrapped_generic_locale_exception_catcher): New function.
4421 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
4422 Suppress runtime exception thrown by generic implementation.
4423 (run_tests_wrapped_env): Likewise.
4424 (run_test_wrapped_generic_locale_exception_catcher): New function.
4425 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
4426 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
4427 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
4428 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
4429 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
4430 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
4431 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
4432 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
4433 * testsuite/22_locale/facet/2.cc: New test wrap.
4434 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
4435 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
4436 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
4437 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
4438 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
4439 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
4440 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
4441 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
4442 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
4443 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
4444 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
4445 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
4446 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
4447 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
4448 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
4449 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
4450 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
4451 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
4452 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
4453 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
4454 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
4455 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
4456 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
4457 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
4458 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
4459 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
4460 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
4461 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
4462 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
4463 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
4464 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
4465 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
4466 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
4467 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
4468 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
4469 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
4470 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
4471 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
4472 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
4473 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
4474 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
4475 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
4476 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
4477 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
4478 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
4479 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
4480 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
4481 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
4482 * testsuite/27_io/ios_members.cc: New test wrap.
4483 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
4485 * testsuite/27_io/streambuf_members.cc: New test wrap.
4486 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
4488 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
4489 Petur Runolfsson <peturr02@ru.is>
4492 * include/bits/streambuf.tcc (__copy_streambufs): Use
4493 sgetn-sputn only when sputn cannot fail, otherwise fall back
4494 to safe snextc-sputc.
4495 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
4497 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4499 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
4500 locale cache for truename and falsename.
4502 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4504 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
4505 _M_word_size initialization.
4507 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4509 * include/bits/fstream.tcc (_M_convert_to_external):
4510 Set __elen to zero if codecvt::out eventually fails.
4512 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4515 * include/bits/fstream.tcc (_M_really_overflow): Check
4516 for _M_convert_to_external possible failures.
4517 * include/std/std_fstream.h (sync): Check _M_really_overflow
4518 return value and return -1 in case of failure.
4519 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
4521 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4524 * include/bits/istream.tcc (operator>>(_CharT*),
4525 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
4526 * testsuite/27_io/stringstream.cc (test02): Add.
4528 * include/bits/istream.tcc (operator>>(_CharT*)):
4529 Assign a char_type to *__s.
4531 2003-03-07 Petur Runolfsson <peturr02@ru.is>
4534 * include/bits/locale_facets.tcc
4535 (collate::do_compare, collate::do_transform):
4536 Handle nul characters in input.
4537 * testsuite/22_locale/collate/compare/char/3.cc: New test.
4538 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
4539 * testsuite/22_locale/collate/transform/char/3.cc: New test.
4540 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
4542 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
4544 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
4546 * testsuite/27_io/ostream_fail.cc: New test.
4548 2003-03-07 Matthias Klose <doko@debian.org>
4550 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
4551 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
4552 * Makefile.in: Regenerate.
4553 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
4555 AM_MAKEFLAGS: Pass gxx_include_dir.
4556 * libsupc++/Makefile.in: Regenerate.
4558 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
4560 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
4561 mask. Test setting small-numbered pword and iword slots. Test
4562 behavior at limit of numeric_limits::max. Check that values are
4563 still good after failures.
4565 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
4567 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
4568 (ios_base::ios_base): Set _M_word, _M_word_size.
4569 (ios_base::~ios_base): Remove redundant test.
4570 * testsuite/27_io/ios_base_storage.cc (test03): New.
4572 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
4574 * src/strstream.cc, include/bits/basic_string.tcc: Remove
4575 incorrect whitespace added in my previous change.
4577 2003-03-05 Carlo Wood <carlo@alinoe.com>
4579 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
4580 _S_initialized() in order to allow debugging libraries to detect
4581 when the std streams are initialized from an overloaded operator
4584 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
4586 * libsupc++/demangle.h: Move to..
4587 * include/bits/demangle.h: ...here.
4588 * src/demangle.cc: Adjust include.
4589 * include/Makefile.am (bits_headers): Add.
4590 * include/Makefile.in: Regenerate.
4592 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
4594 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
4596 * config/linker-map.gnu: Filter typeinfo and vtable info.
4598 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
4600 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
4601 new failure. Throw exception if badbit and exception mask when ix
4602 >= numeric_limits<int>::max().
4604 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
4606 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
4607 min and max have the same type.
4608 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
4610 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
4612 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
4613 * include/Makefile.in: Regenerate.
4615 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
4617 * testsuite/abi_check.cc (report_symbol_info): Add version info.
4619 * config/linker-map.gnu: Hide more stuff.
4620 * include/Makefile.am: Cleanups.
4621 * include/Makefile.in: Regenerate.
4623 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
4625 * config/locale/generic/messages_members.h (messages::messages):
4626 Remove name from unused parameter.
4628 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
4630 * src/Makefile.am (sources): Add demangle.cc.
4633 * src/Makefile.in: Regenerate.
4634 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
4635 * libsupc++/Makefile.in: Regenerate.
4637 * testsuite/testsuite_hooks.h
4638 (__gnu_cxx_test::verify_demangle): New.
4639 * testsuite/testsuite_hooks.cc: Define.
4641 2003-02-27 Carlo Wood <carlo@alinoe.com>
4643 * src/demangle.cc: New.
4644 * libsupc++/demangle.h: New.
4646 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
4647 Carlo Wood <carlo@alinoe.com>
4649 * testsuite/demangle/abi_examples/01.cc: New.
4650 * testsuite/demangle/abi_examples/02.cc: New.
4651 * testsuite/demangle/abi_examples/03.cc: New.
4652 * testsuite/demangle/abi_examples/04.cc: New.
4653 * testsuite/demangle/abi_examples/05.cc: New.
4654 * testsuite/demangle/abi_examples/06.cc: New.
4655 * testsuite/demangle/abi_examples/07.cc: New.
4656 * testsuite/demangle/abi_examples/08.cc: New.
4657 * testsuite/demangle/abi_examples/09.cc: New.
4658 * testsuite/demangle/abi_examples/10.cc: New.
4659 * testsuite/demangle/abi_examples/11.cc: New.
4660 * testsuite/demangle/abi_examples/12.cc: New.
4661 * testsuite/demangle/abi_examples/13.cc: New.
4662 * testsuite/demangle/abi_examples/14.cc: New.
4663 * testsuite/demangle/abi_examples/15.cc: New.
4664 * testsuite/demangle/abi_examples/16.cc: New.
4665 * testsuite/demangle/abi_examples/17.cc: New.
4666 * testsuite/demangle/abi_examples/18.cc: New.
4667 * testsuite/demangle/abi_examples/19.cc: New.
4668 * testsuite/demangle/abi_examples/20.cc: New.
4669 * testsuite/demangle/abi_examples/21.cc: New.
4670 * testsuite/demangle/abi_examples/22.cc: New.
4671 * testsuite/demangle/abi_examples/23.cc: New.
4672 * testsuite/demangle/abi_examples/24.cc: New.
4673 * testsuite/demangle/abi_examples/25.cc: New.
4674 * testsuite/demangle/abi_examples/26.cc: New.
4675 * testsuite/demangle/abi_text/01.cc: New.
4676 * testsuite/demangle/abi_text/02.cc: New.
4677 * testsuite/demangle/abi_text/03.cc: New.
4678 * testsuite/demangle/abi_text/04.cc: New.
4679 * testsuite/demangle/abi_text/05.cc: New.
4680 * testsuite/demangle/abi_text/06.cc: New.
4681 * testsuite/demangle/abi_text/07.cc: New.
4682 * testsuite/demangle/abi_text/08.cc: New.
4683 * testsuite/demangle/abi_text/09.cc: New.
4684 * testsuite/demangle/abi_text/10.cc: New.
4685 * testsuite/demangle/abi_text/11.cc: New.
4686 * testsuite/demangle/abi_text/12.cc: New.
4687 * testsuite/demangle/abi_text/13.cc: New.
4688 * testsuite/demangle/abi_text/14.cc: New.
4689 * testsuite/demangle/regression/3111-1.cc: New.
4690 * testsuite/demangle/regression/3111-2.cc: New.
4691 * testsuite/demangle/regression/7986-01.cc: New.
4692 * testsuite/demangle/regression/7986-02.cc: New.
4693 * testsuite/demangle/regression/7986-03.cc: New.
4694 * testsuite/demangle/regression/7986-04.cc: New.
4695 * testsuite/demangle/regression/7986-05.cc: New.
4696 * testsuite/demangle/regression/7986-06.cc: New.
4697 * testsuite/demangle/regression/7986-07.cc: New.
4698 * testsuite/demangle/regression/7986-08.cc: New.
4699 * testsuite/demangle/regression/7986-09.cc: New.
4700 * testsuite/demangle/regression/7986-10.cc: New.
4701 * testsuite/demangle/regression/7986-11.cc: New.
4702 * testsuite/demangle/regression/7986-12.cc: New.
4703 * testsuite/demangle/regression/7986.cc: New.
4704 * testsuite/demangle/regression/8897.cc: New.
4705 * testsuite/demangle/regression/cw-01.cc: New.
4706 * testsuite/demangle/regression/cw-02.cc: New.
4707 * testsuite/demangle/regression/cw-03.cc: New.
4708 * testsuite/demangle/regression/cw-04.cc: New.
4709 * testsuite/demangle/regression/cw-05.cc: New.
4710 * testsuite/demangle/regression/cw-06.cc: New.
4711 * testsuite/demangle/regression/cw-07.cc: New.
4712 * testsuite/demangle/regression/cw-08.cc: New.
4713 * testsuite/demangle/regression/cw-09.cc: New.
4714 * testsuite/demangle/regression/cw-10.cc: New.
4715 * testsuite/demangle/regression/cw-11.cc: New.
4716 * testsuite/demangle/regression/cw-12.cc: New.
4717 * testsuite/demangle/regression/cw-13.cc: New.
4718 * testsuite/demangle/regression/cw-14.cc: New.
4719 * testsuite/demangle/regression/old.cc: New.
4721 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
4723 * docs/doxygen/Intro.3: Update with new (proper) names.
4724 * docs/doxygen/TODO: Update.
4725 * docs/doxygen/run_doxygen: More comments, fix up man pages.
4726 Fake entries for standard typedefs.
4727 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
4728 * docs/html/documentation.html: Top-level man page is now called
4730 * include/std/std_limits.h: Doxygenate.
4732 2003-02-25 Scott Snyder <snyder@fnal.gov>
4735 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
4736 Correct documentation.
4737 * include/bits/stl_multimap.h (lower_bound, upper_bound,
4738 equal_range): Likewise.
4740 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
4744 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
4745 __bump is true (uflow), always increment the read pointer
4746 (_M_in_cur) before returning successfully.
4747 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
4749 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
4750 Nathan Myers <ncm@cantrip.org>
4752 PR libstdc++/9404, PR libstdc++/9701 (partial)
4753 (aka pptr == epptr implies overflow)
4754 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
4755 Consistently, _M_out_end points to the end of the buffer just
4757 (overflow): Tweak to use _M_out_buf_size().
4758 (_M_convert_to_external): The role of the old _M_out_end is
4759 now played by _M_out_lim.
4760 (_M_really_overflow): Likewise.
4761 (seekoff): Likewise.
4762 (setbuf): _M_out_end points to the end of the external buffer.
4763 * include/bits/sstream.tcc (overflow): Rewrote, taking into
4764 account the resolution of DR 169 (TC).
4765 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
4766 (seekpos): Use _M_string.capacity(); tweak.
4767 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
4768 * include/std/std_fstream.h (sync): The role of the old
4769 _M_out_end is now played by _M_out_lim.
4770 (_M_set_indeterminate): Use _M_set_determinate.
4771 (_M_set_determinate): _M_out_end is now _M_out_lim.
4772 (_M_is_indeterminate): Likewise.
4773 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
4774 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
4775 which have the information readily available as _M_string.capacity();
4776 for ate and app modes, pass the string size to _M_really_sync.
4777 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
4778 point to the end of the buffer (i.e., epptr) and to the string end,
4780 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
4781 which points to the right limit of the used put area.
4782 (_M_out_cur_move): The role of the old _M_out_end is now played
4784 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
4785 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
4787 (basic_streambuf()): Initialize _M_out_lim too.
4788 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
4789 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
4790 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
4792 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
4794 * testsuite/27_io/ios_base_storage.cc (main): Call
4797 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
4799 * include/bits/locale_facets.tcc (_M_convert_float): Replace
4800 numpunct facet accesses with data from __locale_cache.
4802 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
4804 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
4805 * docs/html/faq/index.txt: Regenerate.
4807 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
4809 * config/linker-map.gnu: Also export locking symbols needed for the
4810 generic atomicity.h case.
4812 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
4814 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
4816 * configure: Rebuilt.
4818 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
4820 * include/bits/sstream.tcc (overflow): According to
4821 27.7.1.3, p5, actual output is performed by sputc(c).
4823 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
4826 * include/bits/stl_alloc.h: Remove all traces of assert().
4828 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
4830 * include/std/std_sstream.h (str()): the size of the
4831 current string may be different from the initial one
4832 whenever _M_out_end > _M_out_beg.
4833 * testsuite/27_io/stringbuf_members.cc (test07): Add.
4835 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
4838 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
4840 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
4842 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
4843 * testsuite/27_io/ios_members.cc (test03): New.
4845 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
4847 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
4848 (basic_ios::_M_cache_facets): Move into above.
4849 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
4851 (basic_ios::imbue): Force locale cache to be built.
4852 (basic_ios::_M_init): Create and initialize locale cache.
4853 * include/bits/ios_base.h (__locale_cache_base): Declare.
4854 (ios_base::_M_locale_cache): New.
4855 (ios_base::_M_cache): Define.
4856 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
4858 (__locale_cache_base,__locale_cache<_CharT>): New classes.
4859 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
4860 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
4861 cache literal string, grouping flag, thousands separator.
4862 (__locale_cache<_CharT>::__locale_cache): New.
4863 (__locale_cache<_CharT>::_M_init): New.
4864 * src/ios.cc: Clear _M_locale_cache in constructor.
4865 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
4868 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4870 * src/locale-inst.cc: Do not include <cassert>.
4871 * src/locale.cc: Likewise.
4873 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4876 * include/std/std_fstream.h: Declare underflow and uflow
4877 specializations, change generic definitions to do nothing.
4878 * src/fstream.cc: Add underflow and uflow specializations.
4880 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4883 * include/bits/fstream.tcc (_M_convert_to_external):
4884 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
4885 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
4887 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
4889 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
4890 * include/bits/basic_ios.tcc: Guard use of extern template.
4891 * include/std/std_iomanip.h: Same.
4892 * include/bits/streambuf.tcc: Same.
4893 * include/bits/stl_alloc.h: Same.
4894 * include/bits/locale_facets.tcc: Same.
4895 * include/bits/ostream.tcc: Same.
4896 * include/bits/istream.tcc: Same.
4897 * include/bits/fstream.tcc: Same.
4898 * include/bits/basic_string.tcc: Same.
4900 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
4902 * include/bits/ostream.tcc (sentry::sentry): Improve
4903 performance-wise the fix for libstdc++/9563.
4905 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
4907 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
4908 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
4909 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
4910 when we don't have static mutex initialization.
4911 (__exchange_and_add): Use _Atomic_add_mutex_once.
4912 * src/misc-inst.cc: Definitions of all the above.
4914 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
4917 * include/bits/ostream.tcc (sentry::sentry): Check
4918 the state of the stream after the preparation.
4919 * testsuite/27_io/ostream_sentry.cc (test02): Add.
4921 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
4923 * include/Makefile.am (stamp-std-precompile): Add rule.
4924 * include/Makefile.in: Regenerated.
4926 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
4927 Benjamin Kosnik <benjamin@redhat.com>
4929 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
4930 Add indexes into this array.
4931 (__num_base::_S_atoms): To _S_atoms_in.
4932 (num_put::_M_insert): Rename to _M_pad.
4933 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
4934 (num_put::_M_widen_int): Rename to _M_group_int.
4935 (num_put::_M_widen_float): Rename to _M_group_float.
4936 * include/bits/locale_facets.tcc (__int_to_char): New inline
4937 function and adapter functions.
4938 (num_put::_M_group_int): Streamline.
4939 (num_put::_M_group_float): Streamline.
4940 (num_put::_M_convert_int): Remove unused parameter names. Choose
4941 large enough buffer for text. Use __int_to_char instead of
4942 __convert_from_v. Formatted text is now at the end of the buffer.
4943 (num_put::_M_convert_float): Preliminary fixups.
4944 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
4945 (__int_to_char<unsigned long long>): Same.
4946 (__int_to_char<char, unsigned long>): New.
4947 (__int_to_char<char, unsigned long long>): New.
4948 (__int_to_char<wchar_t, unsigned long>): New.
4949 (__int_to_char<wchar_t, unsigned long long>): New.
4951 2003-02-11 Scott Snyder <snyder@fnal.gov>
4954 * include/bits/fstream.tcc (seekoff): Avoid operator+
4957 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
4960 * include/ext/stdio_filebuf.h
4961 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
4962 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
4963 Change to take a __size parameter of type size_t, not
4964 of type (template parameter dependent) int_type.
4965 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
4966 size vars to size_t.
4967 * testsuite/ext/stdio_filebuf.cc: Add.
4969 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
4970 Petur Runolfsson <peturr02@ru.is>
4973 * include/bits/streambuf.tcc (__copy_streambufs):
4974 Don't conditionalize the copy to __testput.
4975 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
4977 2002-02-11 DJ Delorie <dj@redhat.com>
4979 * acinclude.m4: Check for native targets that can't link at
4980 this point in the build.
4981 * aclocal.m4: Regenerate.
4982 * configure: Regenerate.
4984 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4986 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
4988 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
4991 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
4993 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
4994 unsigned char platforms.
4996 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
4999 * include/std/std_istream.h
5000 (basic_istream::sentry::operator bool()): Make const.
5001 * include/std/std_ostream.h
5002 (basic_ostream::sentry::operator bool()): Likewise.
5003 * testsuite/27_io/istream_sentry.cc (test03): Add.
5004 * testsuite/27_io/ostream_sentry.cc: Add.
5006 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
5009 Implement resolution of DR 231 (Ready)
5010 * include/bits/locale_facets.h (__num_base::_S_format_float):
5011 Change declaration: return void, remove __prec parameter.
5012 * src/locale.cc (__num_base::_S_format_float): Implement
5013 resolution of DR 231.
5014 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
5015 Tweak uses. Check for negative precision.
5016 * testsuite/22_locale/num_put/put/char/6.cc: Add
5017 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
5019 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
5021 * config/io/basic_file_libio.h: Fixups.
5022 * config/io/c_io_libio.h: Same.
5023 * libio/Makefile.am: Same.
5024 * libio/Makefile.in: Regenerated.
5026 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
5028 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
5029 Explicitly use the "C" locale.
5030 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
5032 2003-02-06 Petur Runolfsson <peturr02@ru.is>
5036 PR libstdc++/9028 (partial)
5042 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
5043 codecvt<wchar_t, char, mbstate_t>::do_length,
5044 codecvt<wchar_t, char, mbstate_t>::do_max_length):
5046 * config/locale/generic/codecvt_members.cc: ...here.
5047 * config/locale/gnu/codecvt_members.cc: ...and here.
5049 * config/locale/generic/codecvt_members.cc,
5050 * config/locale/gnu/codecvt_members.cc
5051 (codecvt<wchar_t, char, mbstate_t>::do_encoding
5052 codecvt<wchar_t, char, mbstate_t>::do_in,
5053 codecvt<wchar_t, char, mbstate_t>::do_length,
5054 codecvt<wchar_t, char, mbstate_t>::do_max_length,
5055 codecvt<wchar_t, char, mbstate_t>::do_out):
5056 New implementation that handles stateless encodings,
5059 * config/locale/generic/codecvt_members.cc,
5060 * config/locale/gnu/codecvt_members.cc,
5061 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
5062 * include/bits/codecvt.h,
5064 (codecvt::length, codecvt::do_length):
5065 Change type of first argument of length and do_length from
5066 'const state_type&' to 'state_type&' according to DR 75.
5068 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
5069 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
5070 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
5071 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
5072 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
5073 Cleanup and check for correct return value from encoding
5075 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
5076 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
5077 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
5078 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
5079 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
5080 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
5081 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
5082 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
5083 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
5084 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
5085 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
5086 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
5087 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
5088 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
5089 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
5090 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
5091 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
5092 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
5093 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
5094 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
5095 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
5096 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
5097 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
5098 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
5099 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
5100 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
5101 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
5102 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
5103 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
5104 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
5105 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
5106 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
5107 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
5108 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
5109 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
5110 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
5111 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
5113 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
5115 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
5116 (money_put::do_put): Same.
5118 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
5120 * include/bits/ios_base.h (ios_base): Document reserved storage.
5122 * include/bits/locale_facets.h: (struct __pad): Comment on
5124 (__verify_grouping): Same.
5125 (__add_grouping): Same.
5126 * include/bits/locale_facets.tcc (__verify_grouping): Move
5127 comments to declaration.
5128 (__add_grouping): Same.
5130 * include/bits/locale_facets.tcc:
5131 (__write<_CharT, _OutIter>): New function.
5132 (__write<_CharT>): New function specialization.
5133 (num_put::_M_insert): Remove explicit loop over iterator. Use
5135 (num_put::_M_widen_float): Remove __basefield.
5136 (num_put::_M_widen_int): Move __basefield to within grouping block.
5138 * include/bits/streambuf_iterator.h: Include <streambuf>.
5139 (ostreambuf_iterator::_M_put): Add.
5141 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
5143 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
5145 2003-02-04 Nathan Myers <ncm@cantrip.org>
5147 * testsuite/25_algorithms/min_max.cc (test02): Add.
5149 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5151 PR libstdc++/9439, PR libstdc++/9425
5152 * config/io/basic_file_stdio.cc
5153 (__basic_file<char>::seekoff, seekpos): Return -1L if
5155 * include/bits/fstream.tcc (basic_filebuf::seekoff):
5156 Check _M_file.seekoff return value; always return
5157 pos_type(off_type(-1)) in case of failure.
5158 (basic_filebuf::pbackfail): Check this->seekoff return
5159 value and return traits_type::eof() in case of failure.
5160 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
5162 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
5164 * include/std/std_ostream.h (ostream::_M_write): Declare.
5165 * ostream.tcc (ostream::_M_write): Define.
5166 (basic_ostream::write): Use it.
5167 (operator<<(basic_ostream, _CharT)): Ditto.
5168 (operator<<(basic_ostream, char)): Ditto.
5169 (operator<<(basic_ostream, _CharT*)): Ditto.
5170 (operator<<(basic_ostream, char*)): Ditto.
5171 (operator<<(basic_ostream, basic_string)): Ditto.
5173 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
5175 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
5177 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5179 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
5180 add HTML comment about updating links if numbering changes.
5182 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5185 * include/bits/streambuf.tcc (sputbackc): Access
5186 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
5187 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
5189 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5192 * include/bits/fstream.tcc (open): If the 'ate' repositioning
5193 operation fails, calls close _and_ returns a null pointer
5194 to indicate failure (27.8.1.3,4).
5195 * testsuite/27_io/filebuf_members.cc (test_06): Add.
5197 2003-02-04 Petur Runolfsson <peturr02@ru.is>
5199 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
5201 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5203 * docs/html/27_io/howto.html: New section on stdio_filebuf.
5204 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
5205 * docs/html/documentation.html: Regenerate.
5207 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
5209 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
5210 * docs/html/17_intro/porting.html: Regenerate.
5212 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5213 Phil Edwards <pme@gcc.gnu.org>
5215 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
5216 numeric_limits for bits-per-word values.
5217 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
5218 Use __builtin_popcountl instead.
5219 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
5220 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
5221 Use __builtin_ctzl instead.
5222 (_S_bit_count, _S_first_one): Remove.
5223 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
5224 * src/Makefile.am (sources): Remove bitset.cc.
5225 * src/bitset.cc: Delete file.
5226 * src/Makefile.in: Regenerate.
5228 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
5230 PR libstdc++/9527, PR libstdc++/8713
5231 * docs/html/install.html: Mention glibc version requirement.
5232 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
5233 with 3.2.1+ (formatting bugfixes).
5234 * docs/html/faq/index.txt: Regenerate.
5236 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5239 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
5242 * include/bits/valarray_before.h (__not_equal_to): Use != instead
5245 * testsuite/26_numerics/valarray_operators.cc: New test.
5247 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
5249 * docs/html/faq/index.html: Correct link to libg++ information.
5250 * docs/html/faq/index.txt: Regenerated.
5252 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
5253 Benjamin Kosnik <bkoz@redhat.com>
5255 Const correctness issue:
5256 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
5257 * include/bits/locale_classes.h
5258 (locale::_Impl::_M_facets): Change type to const facet**.
5259 (locale::_Impl::_M_install_facet): Change declaration to
5261 (locale::facet::_M_references): Make mutable.
5262 (locale::facet::_M_add_reference): Declare const.
5263 (locale::facet::_M_remove_reference): Likewise.
5264 * include/bits/locale_facets.tcc
5265 (use_facet(const locale&)): Tweak for const facet** _M_facets.
5266 (has_facet(const locale&)): Likewise.
5268 (locale::facet::_M_add_reference): Adjust definition.
5269 (locale::facet::_M_remove_reference): Likewise.
5271 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
5272 const facet** _M_facets.
5273 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
5274 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
5275 (locale::_Impl::_M_install_facet): Adjust definition to take
5276 const facet* and for const facet** _M_facets.
5277 * testsuite/22_locale/locale/cons/8.cc: Add.
5279 2003-01-29 Mark Mitchell <mark@codesourcery.com>
5281 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
5282 Use __FLT_HAS_INIFINITY__ to initialize.
5283 (numeric_limits<float>::has_quiet_NaN): Likewise.
5284 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
5286 (numeric_limits<double>::has_quiet_NaN): Likewise.
5287 (numeric_limits<long double>::has_infinity): Use
5288 __LDBL_HAS_INIFINITY__ to initialize.
5289 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
5291 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
5294 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
5295 with bases which are very ambiguous.
5297 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5299 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
5300 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
5301 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
5302 * src/Makefile.in: Regenerate.
5303 * libsupc++/Makefile.in: Regenerate.
5305 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
5307 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
5308 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
5309 version_specific_libs is enabled.
5310 * aclocal.m4, configure: Rebuilt.
5312 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
5314 * include/bits/valarray_meta.h: Remove, split into ...
5315 * include/bits/valarray_before.h: ... this, and ...
5316 * include/bits/valarray_after.h: ... this.
5317 * include/std/std_valarray.h: Adjust.
5318 * include/Makefile.am (bits_headers): Adjust.
5319 * include/Makefile.in: Regenerate.
5321 2003-01-24 Andreas Schwab <schwab@suse.de>
5323 * config/linker-map.gnu: Fix for size_t variance.
5325 2003-01-23 Petur Runolfsson <peturr02@ru.is>
5328 * include/std/std_streambuf.h
5329 (basic_streambuf::basic_streambuf,
5330 basic_streambuf::~basic_streambuf,
5331 basic_streambuf::getloc, basic_streambuf::imbue):
5332 Remove _M_buf_locale_init
5333 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
5334 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
5335 * testsuite/27_io/streambuf_members.cc (test08): Add.
5336 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
5338 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
5340 Revert include ordering.
5341 * config/locale/generic/c_locale.h: Add include guards.
5342 * config/locale/gnu/c_locale.h: Same.
5343 * include/bits/locale_classes.h: Remove cctype include.
5344 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
5345 * include/std/std_fstream.h: Remove streambuf include.
5346 * include/std/std_sstream.h: Remove streambuf include.
5348 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
5350 * configure.in (libtool_VERSION): To 6:0:0.
5351 * configure: Regenerated.
5352 * config/linker-map.gnu: Clean.
5354 * src/misc-inst.cc: Remove instantiations.
5356 * include/bits/stl_alloc.h (__malloc_alloc_template):
5358 (__default_alloc_template): To __pool_alloc.
5359 * src/stl-inst.cc: Same.
5360 * include/backward/alloc.h: Update.
5361 * testsuite/ext/allocators.cc: Update.
5363 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
5364 really try to remove these if possible.
5365 * src/locale.cc (std): Same.
5367 * testsuite/abi_check.cc (check_version): Add.
5369 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
5370 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
5371 Mark Mitchell <mark@codesourcery.com>
5374 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
5375 (basic_filebuf::underflow): Declare.
5378 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
5380 * include/bits/locale_facets.h: Move non-facet classes requiring
5382 * include/bits/locale_classes.h: New.
5383 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
5384 * include/bits/Makefile.in: Regenerate.
5386 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
5387 * config/locale/gnu/c_locale.h: ...here.
5388 * config/locale/generic/c_locale.h: Same.
5390 * include/bits/locale_facets.tcc: Move declarations to...
5391 * include/bits/locale_facets.h: ...here.
5392 * include/bits/basic_ios.h: Tweak includes accordingly.
5393 * include/std/std_sstream.h: Add streambuf include.
5394 * include/std/std_fstream.h: Ditto.
5395 * include/std/std_locale.h: Add locale_classes.h include.
5396 * include/std/std_iosfwd.h: Tweak.
5397 * src/concept-inst.cc: Add iterator include.
5399 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
5400 bits as unexported in the future.
5402 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
5404 Reshuffle 22_locale testsuite.
5405 * 22_locale/(codecvt.cc money_get.cc
5406 codecvt_members_char_char.cc money_get_members_char.cc
5407 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
5408 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
5409 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
5410 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
5411 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
5412 money_put_members_char.cc ctor_copy_dtor.cc
5413 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
5414 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
5415 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
5416 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
5417 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
5418 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
5419 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
5420 operators.cc ctype_widen_char.cc static_members.cc
5421 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
5422 global_templates.cc time_get_members_wchar_t.cc, members.cc,
5423 time_put.cc, messages_byname.cc, time_put_members_char.cc,
5424 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
5425 Split up into individual test cases...
5426 * 22_locale/codecvt/1.cc: New.
5427 * 22_locale/codecvt/2.cc: New.
5428 * 22_locale/codecvt/always_noconv/char/1.cc: New.
5429 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
5430 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
5431 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
5432 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
5433 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
5434 * 22_locale/codecvt/encoding/char/1.cc: New.
5435 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
5436 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
5437 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
5438 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
5439 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
5440 * 22_locale/codecvt/in/char/1.cc: New.
5441 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
5442 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
5443 * 22_locale/codecvt/in/wchar_t/1.cc: New.
5444 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
5445 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
5446 * 22_locale/codecvt/length/char/1.cc: New.
5447 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
5448 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
5449 * 22_locale/codecvt/length/wchar_t/1.cc: New.
5450 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
5451 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
5452 * 22_locale/codecvt/max_length/char/1.cc: New.
5453 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
5454 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
5455 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
5456 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
5457 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
5458 * 22_locale/codecvt/out/char/1.cc: New.
5459 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
5460 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
5461 * 22_locale/codecvt/out/wchar_t/1.cc: New.
5462 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
5463 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
5464 * 22_locale/codecvt/unicode/char.cc: New.
5465 * 22_locale/codecvt/unicode/wchar_t.cc: New.
5466 * 22_locale/codecvt/unshift/char/1.cc: New.
5467 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
5468 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
5469 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
5470 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
5471 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
5472 * 22_locale/collate/1.cc: New.
5473 * 22_locale/collate/2.cc: New.
5474 * 22_locale/collate/compare/char/1.cc: New.
5475 * 22_locale/collate/compare/char/2.cc: New.
5476 * 22_locale/collate/compare/char/wrapped_env.cc: New.
5477 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
5478 * 22_locale/collate/compare/wchar_t/1.cc: New.
5479 * 22_locale/collate/compare/wchar_t/2.cc: New.
5480 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
5481 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
5482 * 22_locale/collate/hash/char/1.cc: New.
5483 * 22_locale/collate/hash/char/2.cc: New.
5484 * 22_locale/collate/hash/char/wrapped_env.cc: New.
5485 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
5486 * 22_locale/collate/hash/wchar_t/1.cc: New.
5487 * 22_locale/collate/hash/wchar_t/2.cc: New.
5488 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
5489 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
5490 * 22_locale/collate/transform/char/2.cc: New.
5491 * 22_locale/collate/transform/char/wrapped_env.cc: New.
5492 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
5493 * 22_locale/collate/transform/wchar_t/2.cc: New.
5494 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
5495 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
5496 * 22_locale/collate_byname/1.cc: New.
5497 * 22_locale/ctype/1.cc: New.
5498 * 22_locale/ctype/2.cc: New.
5499 * 22_locale/ctype/cons/char/1.cc: New.
5500 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
5501 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
5502 * 22_locale/ctype/is/char/1.cc: New.
5503 * 22_locale/ctype/is/char/2.cc: New.
5504 * 22_locale/ctype/is/char/3.cc: New.
5505 * 22_locale/ctype/is/char/wrapped_env.cc: New.
5506 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
5507 * 22_locale/ctype/is/wchar_t/1.cc: New.
5508 * 22_locale/ctype/is/wchar_t/2.cc: New.
5509 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
5510 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
5511 * 22_locale/ctype/narrow/char/1.cc: New.
5512 * 22_locale/ctype/narrow/char/2.cc: New.
5513 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
5514 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
5515 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
5516 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
5517 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
5518 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
5519 * 22_locale/ctype/scan/char/1.cc: New.
5520 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
5521 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
5522 * 22_locale/ctype/scan/wchar_t/1.cc: New.
5523 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
5524 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
5525 * 22_locale/ctype/to/char/1.cc: New.
5526 * 22_locale/ctype/to/char/wrapped_env.cc: New.
5527 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
5528 * 22_locale/ctype/to/wchar_t/1.cc: New.
5529 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
5530 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
5531 * 22_locale/ctype/widen/char/1.cc: New.
5532 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
5533 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
5534 * 22_locale/ctype/widen/wchar_t/1.cc: New.
5535 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
5536 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
5537 * 22_locale/facet/1.cc: New.
5538 * 22_locale/facet/2.cc: New.
5539 * 22_locale/global_templates/1.cc: New.
5540 * 22_locale/locale/cons/1.cc: New.
5541 * 22_locale/locale/cons/2.cc: New.
5542 * 22_locale/locale/cons/3.cc: New.
5543 * 22_locale/locale/cons/4.cc: New.
5544 * 22_locale/locale/cons/5.cc: New.
5545 * 22_locale/locale/cons/6.cc: New.
5546 * 22_locale/locale/cons/7.cc: New.
5547 * 22_locale/locale/global_locale_objects/1.cc: New.
5548 * 22_locale/locale/global_locale_objects/2.cc: New.
5549 * 22_locale/locale/global_locale_objects/3.cc: New.
5550 * 22_locale/locale/operations/1.cc: New.
5551 * 22_locale/locale/operations/2.cc: New.
5552 * 22_locale/messages/1.cc: New.
5553 * 22_locale/messages/2.cc: New.
5554 * 22_locale/messages/members/char/1.cc: New.
5555 * 22_locale/messages/members/char/2.cc: New.
5556 * 22_locale/messages/members/char/3.cc: New.
5557 * 22_locale/messages/members/char/wrapped_env.cc: New.
5558 * 22_locale/messages/members/char/wrapped_locale.cc: New.
5559 * 22_locale/messages_byname/1.cc: New.
5560 * 22_locale/money_get/1.cc: New.
5561 * 22_locale/money_get/2.cc: New.
5562 * 22_locale/money_get/get/char/1.cc: New.
5563 * 22_locale/money_get/get/char/2.cc: New.
5564 * 22_locale/money_get/get/char/3.cc: New.
5565 * 22_locale/money_get/get/char/4.cc: New.
5566 * 22_locale/money_get/get/char/5.cc: New.
5567 * 22_locale/money_get/get/char/6.cc: New.
5568 * 22_locale/money_get/get/char/7.cc: New.
5569 * 22_locale/money_get/get/char/8.cc: New.
5570 * 22_locale/money_get/get/char/wrapped_env.cc: New.
5571 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
5572 * 22_locale/money_get/get/wchar_t/1.cc: New.
5573 * 22_locale/money_get/get/wchar_t/2.cc: New.
5574 * 22_locale/money_get/get/wchar_t/3.cc: New.
5575 * 22_locale/money_get/get/wchar_t/4.cc: New.
5576 * 22_locale/money_get/get/wchar_t/5.cc: New.
5577 * 22_locale/money_get/get/wchar_t/6.cc: New.
5578 * 22_locale/money_get/get/wchar_t/7.cc: New.
5579 * 22_locale/money_get/get/wchar_t/8.cc: New.
5580 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
5581 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
5582 * 22_locale/money_put/1.cc: New.
5583 * 22_locale/money_put/2.cc: New.
5584 * 22_locale/money_put/put/char/1.cc: New.
5585 * 22_locale/money_put/put/char/2.cc: New.
5586 * 22_locale/money_put/put/char/3.cc: New.
5587 * 22_locale/money_put/put/char/4.cc: New.
5588 * 22_locale/money_put/put/char/5.cc: New.
5589 * 22_locale/money_put/put/char/6.cc: New.
5590 * 22_locale/money_put/put/char/wrapped_env.cc: New.
5591 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
5592 * 22_locale/money_put/put/wchar_t/1.cc: New.
5593 * 22_locale/money_put/put/wchar_t/2.cc: New.
5594 * 22_locale/money_put/put/wchar_t/3.cc: New.
5595 * 22_locale/money_put/put/wchar_t/4.cc: New.
5596 * 22_locale/money_put/put/wchar_t/5.cc: New.
5597 * 22_locale/money_put/put/wchar_t/6.cc: New.
5598 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
5599 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
5600 * 22_locale/moneypunct/1.cc: New.
5601 * 22_locale/moneypunct/2.cc: New.
5602 * 22_locale/moneypunct/3.cc: New.
5603 * 22_locale/moneypunct/members/char/1.cc: New.
5604 * 22_locale/moneypunct/members/char/2.cc: New.
5605 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
5606 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
5607 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
5608 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
5609 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
5610 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
5611 * 22_locale/moneypunct_byname/1.cc: New.
5612 * 22_locale/num_get/1.cc: New.
5613 * 22_locale/num_get/2.cc: New.
5614 * 22_locale/num_get/get/char/1.cc: New.
5615 * 22_locale/num_get/get/char/2.cc: New.
5616 * 22_locale/num_get/get/char/3.cc: New.
5617 * 22_locale/num_get/get/char/4.cc: New.
5618 * 22_locale/num_get/get/char/5.cc: New.
5619 * 22_locale/num_get/get/char/6.cc: New.
5620 * 22_locale/num_get/get/char/wrapped_env.cc: New.
5621 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
5622 * 22_locale/num_get/get/wchar_t/1.cc: New.
5623 * 22_locale/num_get/get/wchar_t/2.cc: New.
5624 * 22_locale/num_get/get/wchar_t/3.cc: New.
5625 * 22_locale/num_get/get/wchar_t/4.cc: New.
5626 * 22_locale/num_get/get/wchar_t/5.cc: New.
5627 * 22_locale/num_get/get/wchar_t/6.cc: New.
5628 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
5629 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
5630 * 22_locale/num_put/1.cc: New.
5631 * 22_locale/num_put/2.cc: New.
5632 * 22_locale/num_put/put/char/1.cc: New.
5633 * 22_locale/num_put/put/char/2.cc: New.
5634 * 22_locale/num_put/put/char/3.cc: New.
5635 * 22_locale/num_put/put/char/4.cc: New.
5636 * 22_locale/num_put/put/char/5.cc: New.
5637 * 22_locale/num_put/put/char/wrapped_env.cc: New.
5638 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
5639 * 22_locale/num_put/put/wchar_t/1.cc: New.
5640 * 22_locale/num_put/put/wchar_t/2.cc: New.
5641 * 22_locale/num_put/put/wchar_t/3.cc: New.
5642 * 22_locale/num_put/put/wchar_t/4.cc: New.
5643 * 22_locale/num_put/put/wchar_t/5.cc: New.
5644 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
5645 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
5646 * 22_locale/numpunct/1.cc: New.
5647 * 22_locale/numpunct/2.cc: New.
5648 * 22_locale/numpunct/members/char/1.cc: New.
5649 * 22_locale/numpunct/members/char/2.cc: New.
5650 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
5651 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
5652 * 22_locale/numpunct/members/wchar_t/1.cc: New.
5653 * 22_locale/numpunct/members/wchar_t/2.cc: New.
5654 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
5655 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
5656 * 22_locale/numpunct_byname/1.cc: New.
5657 * 22_locale/numpunct_byname/2.cc: New.
5658 * 22_locale/time_get/1.cc: New.
5659 * 22_locale/time_get/2.cc: New.
5660 * 22_locale/time_get/date_order/char/1.cc: New.
5661 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
5662 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
5663 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
5664 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
5665 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
5666 * 22_locale/time_get/get_date/char/1.cc: New.
5667 * 22_locale/time_get/get_date/char/2.cc: New.
5668 * 22_locale/time_get/get_date/char/3.cc: New.
5669 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
5670 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
5671 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
5672 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
5673 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
5674 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
5675 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
5676 * 22_locale/time_get/get_monthname/char/1.cc: New.
5677 * 22_locale/time_get/get_monthname/char/2.cc: New.
5678 * 22_locale/time_get/get_monthname/char/3.cc: New.
5679 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
5680 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
5681 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
5682 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
5683 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
5684 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
5685 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
5686 * 22_locale/time_get/get_time/char/1.cc: New.
5687 * 22_locale/time_get/get_time/char/2.cc: New.
5688 * 22_locale/time_get/get_time/char/3.cc: New.
5689 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
5690 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
5691 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
5692 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
5693 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
5694 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
5695 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
5696 * 22_locale/time_get/get_weekday/char/1.cc: New.
5697 * 22_locale/time_get/get_weekday/char/2.cc: New.
5698 * 22_locale/time_get/get_weekday/char/3.cc: New.
5699 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
5700 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
5701 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
5702 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
5703 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
5704 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
5705 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
5706 * 22_locale/time_get/get_year/char/1.cc: New.
5707 * 22_locale/time_get/get_year/char/3.cc: New.
5708 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
5709 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
5710 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
5711 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
5712 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
5713 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
5714 * 22_locale/time_put/1.cc: New.
5715 * 22_locale/time_put/2.cc: New.
5716 * 22_locale/time_put/put/char/1.cc: New.
5717 * 22_locale/time_put/put/char/10.cc: New.
5718 * 22_locale/time_put/put/char/2.cc: New.
5719 * 22_locale/time_put/put/char/3.cc: New.
5720 * 22_locale/time_put/put/char/4.cc: New.
5721 * 22_locale/time_put/put/char/5.cc: New.
5722 * 22_locale/time_put/put/char/6.cc: New.
5723 * 22_locale/time_put/put/char/7.cc: New.
5724 * 22_locale/time_put/put/char/8.cc: New.
5725 * 22_locale/time_put/put/char/9.cc: New.
5726 * 22_locale/time_put/put/char/wrapped_env.cc: New.
5727 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
5728 * 22_locale/time_put/put/wchar_t/1.cc: New.
5729 * 22_locale/time_put/put/wchar_t/10.cc: New.
5730 * 22_locale/time_put/put/wchar_t/2.cc: New.
5731 * 22_locale/time_put/put/wchar_t/3.cc: New.
5732 * 22_locale/time_put/put/wchar_t/4.cc: New.
5733 * 22_locale/time_put/put/wchar_t/5.cc: New.
5734 * 22_locale/time_put/put/wchar_t/6.cc: New.
5735 * 22_locale/time_put/put/wchar_t/7.cc: New.
5736 * 22_locale/time_put/put/wchar_t/8.cc: New.
5737 * 22_locale/time_put/put/wchar_t/9.cc: New.
5738 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
5739 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
5741 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
5743 * config/locale/generic/messages_members.h
5744 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
5745 unqualified members of base clasess.
5747 2003-01-16 Mark Mitchell <mark@codesourcery.com>
5748 Jeffrey Oldham <oldham@codesourcery.com>
5750 * config/locale/gnu/messages_members.h: Use this-> to refer to
5751 unqualified members of base clasess.
5752 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
5753 * include/bits/codecvt.h: Likewise.
5754 * include/bits/deque.tcc: Likewise.
5755 * include/bits/fstream.tcc: Likewise.
5756 * include/bits/istream.tcc: Likewise.
5757 * include/bits/list.tcc: Likewise.
5758 * include/bits/locale_facets.h: Likewise.
5759 * include/bits/ostream.tcc: Likewise.
5760 * include/bits/sstream.tcc: Likewise.
5761 * include/bits/stl_bvector.h: Likewise.
5762 * include/bits/stl_deque.h: Likewise.
5763 * include/bits/stl_list.h: Likewise.
5764 * include/bits/stl_tree.h: Likewise.
5765 * include/bits/stl_vector.h: Likewise.
5766 * include/bits/vector.tcc: Likewise.
5767 * include/ext/ropeimpl.h: Likewise.
5768 * include/ext/stdio_filebuf.h: Likewise.
5769 * include/ext/stl_rope.h: Likewise.
5770 * include/std/std_fstream.h: Likewise.
5771 * include/std/std_sstream.h: Likewise.
5773 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
5775 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
5777 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
5779 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
5780 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
5781 * aclocal.m4: Regenerate.
5782 * configure: Regenerate.
5783 * testsuite/Makefile.am (all-local): Add conditional rule to
5784 generate testsuite_wchar_t.
5785 * testsuite/Makefile.in: Regenerate.
5786 * testsuite/lib/libstdc++-v3-dg.exp
5787 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
5788 testsuite_wchar_t is not present in the build directory.
5789 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
5790 Remove setulimit bits.
5791 * testsuite/26_numerics/complex_value.cc: Set to noopts.
5792 * testsuite/Makefile.am (CLEANFILES): Add.
5793 * testsuite/Makefile.in: Regenerate.
5795 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5797 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
5800 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
5802 Further conform g++'s __vmi_class_type_info to the C++ ABI
5804 * libsupc++/cxxabi.h
5805 (__vmi_class_type_info::__flags_masks): Remove enumerations not
5806 required by the specification.
5808 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
5810 Renames, namespaces for testsuite utilities.
5811 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
5812 (gnu_allocator_tracker): Rename to allocation_tracker.
5813 (gnu_new_allocator): Rename to tracker_alloc.
5814 (__set_testsuite_memlimit): Rename to set_memory_limits.
5815 (gnu_assignment_operator): Rename to assignment_operator.
5816 (gnu_destructor): Rename to destructor.
5817 (gnu_copy_tracker): Rename to copy_tracker.
5818 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
5819 (run_tests_wrapped_locale): New.
5820 (run_tests_wrapped_env): New.
5821 * testsuite/testsuite_hooks.cc: Same.
5822 (class locale_data): Add.
5823 (class enviornment_variable): Add.
5824 (class not_found): Add.
5825 * testsuite/testsuite_allocator.h: Same.
5826 * testsuite/testsuite_allocator.cc: Same.
5827 * testsuite/23_containers/deque_ctor.cc
5828 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
5830 Change gnu_new_allocator to tracker_alloc.
5831 Change gnu_counting_struct to counter.
5832 Change gnu_copy_tracker to copy_tracker.
5833 Change gnu_copy_constructor to copy_constructor.
5834 Change gnu_assignment_operator to assignment_operator.
5836 * testsuite/23_containers/vector_capacity.cc: Same.
5837 * testsuite/23_containers/vector_ctor.cc (test01): Same.
5838 * testsuite/23_containers/list_modifiers.cc: Change
5839 gnu_copy_tracker to copy_tracker.
5840 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
5841 __set_testsuite_memlimit to set_memory_limits.
5842 * testsuite/21_strings/insert.cc (main): Same.
5843 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
5844 * testsuite/27_io/stringstream.cc: Same.
5845 * testsuite/27_io/stringbuf.cc: Same.
5846 * testsuite/27_io/streambuf.cc: Same.
5847 * testsuite/27_io/ostream.cc: Same.
5848 * testsuite/27_io/istream.cc: Same.
5849 * testsuite/27_io/fstream.cc: Same.
5850 * testsuite/lib/libstdc++-v3-dg.exp
5851 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
5852 three levels deeper in glob patterns.
5854 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
5856 * docs/doxygen/tables.html: Finished now.
5857 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
5858 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
5861 * include/bits/deque.tcc, include/bits/stl_alloc.h,
5862 include/bits/stl_deque.h, include/bits/stl_list.h,
5863 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
5866 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
5868 * configure.in: Revert.
5869 * configure: Regenerate.
5871 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5873 * include/Makefile.am (install-data-local): Prepend
5874 $(DESTDIR) to destination paths in all (un)installation
5875 commands. Use ${c_base_builddir} and ${std_builddir}
5876 as destination subdirectories to achieve consistency with
5877 preceding mkinstalldirs commands. No effect because both
5878 variables contain "." only.
5879 * include/Makefile.in: Regenerate.
5881 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
5883 * include/Makefile.am (stamp-*): Add checks for existing stamps.
5884 * include/Makefile.in: Regenerate.
5886 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
5887 * aclocal.m4: Regenerate.
5889 * configure.in: Don't add new multi-do rules every time the
5890 directory is reconfigured.
5891 * configure: Regenerate.
5893 2003-01-08 Brad Spencer <spencer@infointeractive.com>
5894 Nathan Myers <ncm@cantrip.org>
5896 * src/Makefile.am (stamp-debug): Clean.
5897 * src/Makefile.in: Regenerate.
5899 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
5902 * Makefile.am (distclean-multi): Fix.
5903 * Makefile.in: Regenerate.
5905 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
5907 * include/bits/locale_facets.h (messages): Move ctor, dtor
5909 (__timepunct): Same.
5910 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
5911 definitions. Conditionalize for GNU systems.
5912 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
5914 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
5915 definitions. Conditionalize for GNU systems.
5916 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
5918 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
5919 * src/locale.cc: Define.
5920 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
5922 * config/locale/gnu/time_members.h: Use it.
5923 * config/locale/gnu/messages_members.h: Use it.
5924 * config/linker-map.gnu: Add locale::facets details.
5925 * include/Makefile.am (target_headers_extra): Add time_members.h.
5926 * include/Makefile.in: Regenerate.
5927 * acinclude.m4: Export CTIME_H.
5928 * aclocal.m4: Regenerate.
5929 * configure: Regnerate.
5931 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
5934 (codecvt<char, char, mbstate_t>::do_in, do_out):
5935 Tweak parameters to avoid unused parameter warnings.
5937 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
5940 * include/bits/locale_facets.cc (num_put::_M_convert_float):
5941 Limit __prec to digits10 + 2, not digits10 + 1, taking into
5942 account the possibility of %{g,G} conversion specifiers
5943 inside _S_format_float.
5944 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
5946 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5948 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
5949 libstdc++-v3-list-sourcefiles): Additionally handle files one
5950 level deeper in glob patterns.
5952 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
5953 * testsuite/27_io/istream_extractor_arith/01.cc,
5954 testsuite/27_io/istream_extractor_arith/02.cc,
5955 testsuite/27_io/istream_extractor_arith/03.cc,
5956 testsuite/27_io/istream_extractor_arith/06.cc,
5957 testsuite/27_io/istream_extractor_arith/07.cc,
5958 testsuite/27_io/istream_extractor_arith/08.cc,
5959 testsuite/27_io/istream_extractor_arith/09.cc,
5960 testsuite/27_io/istream_extractor_arith/10.cc,
5961 testsuite/27_io/istream_extractor_arith/11.cc,
5962 testsuite/27_io/istream_extractor_arith/12.cc,
5963 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
5964 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
5967 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
5971 (codecvt<char, char, mbstate_t>::do_in, do_out):
5972 Implement the resolution of DR19 (TC).
5973 * testsuite/22_locale/codecvt_members_char_char.cc
5976 2003-01-02 Jason Merrill <jason@redhat.com>
5978 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
5979 *__mem is also an output.
5980 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.