1 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
3 * testsuite/data/cin_unget-1.txt: New.
4 * testsuite/27_io/objects/char/12048.cc: New.
6 2003-08-25 Zack Weinberg <zack@codesourcery.com>
8 * config/os/hpux/os_defines.h: Unconditionally define
9 _GLIBCXX_GTHREAD_USE_WEAK to 0.
11 2003-08-19 Geoffrey Keating <geoffk@apple.com>
13 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
14 crosses to Darwin targets.
15 * configure: Regenerate.
17 2003-08-19 Petur Runolfsson <peturr02@ru.is>
19 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
21 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
23 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
24 in the patch from 3 minutes ago. Boy, is my face red.
25 * configure: At least I remembered to regenerate this.
27 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
29 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
30 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
31 things from the top level.
32 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
33 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
34 (currently unused). Strip the fake-VPATH shell fragment from
35 automake-generated rules, if present.
36 * linkage.m4: Add comment.
38 * fragment.am: New file, containing factored-out common settings.
39 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
40 * Makefile.am: Include fragment.am. Remove common variables.
41 * include/Makefile.am: Likewise.
42 * libmath/Makefile.am: Likewise.
43 * libsupc++/Makefile.am: Likewise.
44 * po/Makefile.am: Likewise. Print rules during check.
45 * src/Makefile.am: Likewise.
46 * testsuite/Makefile.am: Likewise.
48 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
49 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
50 src/Makefile.in, testsuite/Makefile.in: Regenerate.
52 2003-08-11 John Levon <levon@movementarian.org>
54 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
55 remaining places for the name change from GLIBCPP_FORCE_NEW
58 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
60 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
62 * include/bits/basic_ios.tcc: Same.
63 * include/bits/istream.tcc: Same.
64 * include/bits/locale_facets.h: Same.
65 * include/bits/ostream.tcc: Same.
66 * include/std/std_istream.h: Same.
67 * include/std/std_ostream.h: Same.
68 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
70 * include/ext/rope: Remove build warning.
72 2003-08-11 Andreas Jaeger <aj@suse.de>
74 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
76 * include/Makefile.in: Regenerated.
78 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
80 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
81 when calling AC_PROG_CC.
82 * aclocal.m4, configure: Regenerate.
84 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
86 * acinclude.m4: Properly quote variable which will be expanded
87 inside makefiles. Use CXX instead of CC to extract compiler info.
88 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
89 correct form in PACKAGE.
90 * aclocal.m4, configure: Regenerate.
92 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
94 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
95 (check-abi-verbose): Same.
96 * testsuite/testsuite_performance.h (report_performance): Same.
98 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
100 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
102 2003-08-07 Doug Gregor <dgregor@apple.com>
104 * include/bits/char_traits.h (char_traits::not_eof): Match operand
107 2003-08-07 Bernardo Innocenti <bernie@develer.com>
110 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
111 Replace variants with new BSET-based version.
113 2003-08-07 Carlo Wood <carlo@alinoe.com>
115 * include/bits/demangle.h: Do not use cctype functions that depend
118 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
120 * configure.in: Rename...
121 * configure.ac: ...to this.
122 * docs/html/17_intro/porting.texi: Update name.
124 * docs/html/17_intro/porting.html: Regenerate.
125 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
126 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
127 testsuite/Makefile.in: Regenerate (picks up new dependancy).
129 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
131 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
132 pipe, open the window to let out the fumes, redo the option-handling
133 logic to properly execute the detection test.
134 * aclocal.m4, configure: Regenerate.
136 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
138 Convert to new autotools.
139 * acconfig.h: Update with correct names.
140 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
141 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
142 * configure.in: Update. Split hardcoded cross-configury settings
144 * crossconfig.m4: ...here. New file. Contents untouched.
145 * acinclude.m4: Reorganize and rewrite as needed. Split large
147 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
149 * scripts/testsuite_flags.in: Update.
151 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
152 variables (already generated by automake).
153 * include/Makefile.am: Ditto.
154 * libmath/Makefile.am: Ditto.
155 * libsupc++/Makefile.am: Ditto.
156 * po/Makefile.am: Ditto.
157 * src/Makefile.am: Ditto.
159 * aclocal.m4: Regenerate using new versions.
160 * config.h.in: Ditto.
162 * Makefile.in: Ditto.
163 * include/Makefile.in: Ditto.
164 * libmath/Makefile.in: Ditto.
165 * libsupc++/Makefile.in: Ditto.
166 * po/Makefile.in: Ditto.
167 * src/Makefile.in: Ditto.
168 * testsuite/Makefile.in: Ditto.
170 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
172 * po/libstdc++.pot: Re-extract/regenerate.
174 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
176 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
177 Remove unneeded variable assignments. Leave them for automake.
178 * testsuite/lib/libstdc++-v3.exp: Rename...
179 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
181 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
182 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
185 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
187 * docs/doxygen/guide.html: run_doxygen uses bash.
188 * docs/doxygen/mainpage.html: We'll be shipping tag files.
189 * docs/doxygen/run_doxygen: Tweaks and improvements.
190 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
191 * docs/html/install.html: Update autoconf/automake requirements.
192 * docs/html/test.html: Add section describing DejaGNU support.
193 * docs/html/17_intro/confdeps.dot: New file, generates...
194 * docs/html/17_intro/confdeps.png: ...this new file.
195 * docs/html/Makefile: Generated here.
196 * docs/html/17_intro/configury.html: New file.
198 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
200 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
201 * testsuite/lib/libstdc++-v3.exp: ...to this.
202 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
204 2003-07-31 Doug Gregor <dgregor@apple.com>
206 Add user specialization tests.
207 * testsuite/23_containers/deque/1.cc: New.
208 * testsuite/23_containers/list/1.cc: New.
209 * testsuite/23_containers/map/1.cc: New.
210 * testsuite/23_containers/multimap/1.cc: New.
211 * testsuite/23_containers/multiset/1.cc: New.
212 * testsuite/23_containers/set/1.cc: New.
213 * testsuite/23_containers/vector/1.cc: New.
215 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
217 Reshuffle 23_containers testsuite.
218 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
219 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
220 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
221 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
222 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
223 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
224 vector_resize.cc: Split into...
225 * 23_containers/bitset/cons/1.cc: New.
226 * 23_containers/bitset/cons/6282.cc: New.
227 * 23_containers/bitset/count/6124.cc: New.
228 * 23_containers/bitset/operations/1.cc: New.
229 * 23_containers/bitset/operations/2.cc: New.
230 * 23_containers/bitset/test/1.cc: New.
231 * 23_containers/bitset/to_ulong/1.cc: New.
232 * 23_containers/deque/cons/1.cc: New.
233 * 23_containers/deque/cons/2.cc: New.
234 * 23_containers/deque/operators/1.cc: New.
235 * 23_containers/list/capacity/1.cc: New.
236 * 23_containers/list/cons/1.cc: New.
237 * 23_containers/list/cons/2.cc: New.
238 * 23_containers/list/cons/3.cc: New.
239 * 23_containers/list/cons/4.cc: New.
240 * 23_containers/list/cons/5.cc: New.
241 * 23_containers/list/cons/6.cc: New.
242 * 23_containers/list/cons/7.cc: New.
243 * 23_containers/list/cons/8.cc: New.
244 * 23_containers/list/cons/9.cc: New.
245 * 23_containers/list/modifiers/1.cc: New.
246 * 23_containers/list/modifiers/2.cc: New.
247 * 23_containers/list/modifiers/3.cc: New.
248 * 23_containers/list/operators/1.cc: New.
249 * 23_containers/list/operators/2.cc: New.
250 * 23_containers/list/operators/3.cc: New.
251 * 23_containers/list/operators/4.cc: New.
252 * 23_containers/map/insert/1.cc: New.
253 * 23_containers/map/operators/1.cc: New.
254 * 23_containers/map/operators/1_neg.cc: New.
255 * 23_containers/multiset/insert/1.cc: New.
256 * 23_containers/priority_queue/members/7161.cc: New.
257 * 23_containers/queue/members/7157.cc: New.
258 * 23_containers/set/operators/1_neg.cc: New.
259 * 23_containers/stack/members/7158.cc: New.
260 * 23_containers/vector/bool/1.cc: New.
261 * 23_containers/vector/bool/6886.cc: New.
262 * 23_containers/vector/capacity/1.cc: New.
263 * 23_containers/vector/capacity/2.cc: New.
264 * 23_containers/vector/capacity/8230.cc: New.
265 * 23_containers/vector/cons/1.cc: New.
266 * 23_containers/vector/cons/2.cc: New.
267 * 23_containers/vector/cons/3.cc: New.
268 * 23_containers/vector/cons/4.cc: New.
269 * 23_containers/vector/cons/6513.cc: New.
270 * 23_containers/vector/element_access/1.cc: New.
271 * 23_containers/vector/modifiers/1.cc: New.
272 * 23_containers/vector/modifiers/2.cc: New.
273 * 23_containers/vector/resize/1.cc: New.
275 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
277 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
279 * testsuite/thread/pthread2.cc: Likewise.
280 * testsuite/thread/pthread3.cc: Likewise.
281 * testsuite/thread/pthread4.cc: Likewise.
282 * testsuite/thread/pthread5.cc: Likewise.
283 * testsuite/thread/pthread6.cc: Likewise.
284 * testsuite/thread/pthread7-rope.cc: Likewise.
286 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
288 * include/bits/c++config: Partial reversion (comment placement) of
291 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
293 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
294 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
295 (_GLIBCXX_AT_AT): Remove.
296 (__USE_MALLOC): Remove.
297 * include/std/std_fstream.h: Modify.
298 * include/bits/basic_ios.h: Same.
299 * include/bits/valarray_array.h: Same.
300 * include/c_std/std_cmath.h: Same.
301 * include/c_std/cmath.tcc: Same.
302 * include/std/std_vector.h: Same.
303 * include/std/std_string.h: Same.
304 * include/std/std_stack.h: Same.
305 * include/std/std_queue.h: Same.
306 * include/std/std_list.h: Same.
307 * include/std/std_deque.h: Same.
308 * include/std/std_streambuf.h: Same.
309 * include/std/std_sstream.h: Same.
310 * include/std/std_ostream.h: Same.
311 * include/std/std_istream.h: Same.
312 * include/bits/valarray_array.tcc: Same, format.
314 * include/c/std_cctype.h: Fix include guards.
315 * include/c/std_cerrno.h: Same.
316 * include/c/std_cfloat.h: Same.
317 * include/c/std_climits.h: Same.
318 * include/c/std_clocale.h: Same.
319 * include/c/std_cmath.h: Same.
320 * include/c/std_csetjmp.h: Same.
321 * include/c/std_csignal.h: Same.
322 * include/c/std_cstdarg.h: Same.
323 * include/c/std_cstddef.h: Same.
324 * include/c/std_cstdio.h: Same.
325 * include/c/std_cstdlib.h: Same.
326 * include/c/std_cstring.h: Same.
327 * include/c/std_ctime.h: Same.
328 * include/c/std_cwchar.h: Same.
329 * include/c/std_cwctype.h: Same.
330 * include/c_std/cmath.tcc: Same.
331 * include/c_std/std_cmath.h: Same.
333 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
336 * include/bits/stl_tree.h: Replace C-style casts with C++-style
337 casts. Changes to avoid casting away constness. Eliminate
338 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
339 initialization lists. Move out implementation of __black_count()
341 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
342 Rename_Rb_tree_base_iterator::_M_increment() to
343 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
345 * config/linker-map.gnu: Add and change symbols here.
347 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
349 * docs/html/22_locale/howto.html: Use locale::classic() instead
352 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
354 * testsuite/testsuite_hooks.h: Remove list include.
355 (func_callback): Define as unique type, not std::list.
356 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
357 * testsuite/libstdc++-v3.dg/dg.exp: Same.
358 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
359 * testsuite/23_containers/bitset_ctor.cc:
360 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
361 * testsuite/18_support/numeric_limits.cc: Same.
362 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
363 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
364 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
365 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
366 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
367 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
368 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
369 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
370 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
371 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
372 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
373 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
374 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
375 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
376 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
377 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
378 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
379 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
380 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
381 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
382 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
383 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
384 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
385 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
386 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
387 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
388 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
389 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
390 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
391 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
392 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
393 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
394 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
395 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
396 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
397 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
398 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
399 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
400 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
401 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
402 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
403 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
404 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
405 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
406 * testsuite/23_containers/bitset_ctor.cc: Same.
407 * testsuite/23_containers/bitset_shift.cc: Same.
408 * testsuite/23_containers/vector_ctor.cc: Same.
409 * testsuite/23_containers/vector_element_access.cc: Same.
410 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
411 * testsuite/24_iterators/iterator.cc: Same.
412 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
413 * testsuite/25_algorithms/lower_bound.cc: Same.
414 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
415 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
416 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
417 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
418 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
419 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
420 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
421 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
422 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
423 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
424 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
427 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
429 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
430 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
431 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
432 GLIBCPP to GLIBCXX (and explain as needed).
434 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
438 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
440 * testsuite/22_locale/messages/members/char/1.cc,
441 testsuite/22_locale/messages/members/char/2.cc,
442 testsuite/22_locale/messages/members/char/3.cc,
443 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
444 the origin of LOCALEDIR.
445 * testsuite/lib/libstdc++-v3.exp: New file.
447 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
449 * include/bits/char_traits.h: Update copyright, tweak.
450 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
453 2003-07-24 Matt Austern <austern@apple.com>
455 * /include/bits/char_traits.h (class char_traits): Put all the
456 real work into the new class template __gnu_cxx::char_traits.
457 Gave generic definitions for member functions. Types are taken
458 from the new class template __gnu_cxx::_Char_types.
459 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
460 file. Test of std::char_traits<short>, which serves as a test of
461 the char_traits primary template.
463 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
465 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
467 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
469 * testsuite/23_containers/map_operators.cc: Conform to
470 container requirement as value must be Assignable.
472 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
474 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
475 tests not only generation of pch files, but also their use.
476 * aclocal.m4, configure: Rebuilt.
478 2003-07-23 Steve Ellcey <sje@cup.hp.com>
480 * config/cpu/hppa/atomicity.h: Change
481 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
482 to match misc-inst.cc
484 2003-07-23 Steve Ellcey <sje@cup.hp.com>
486 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
487 * include/c_std/std_cctype.h: Ditto.
488 * include/c_std/std_cerrno.h: Ditto.
489 * include/c_std/std_cfloat.h: Ditto.
490 * include/c_std/std_climits.h: Ditto.
491 * include/c_std/std_clocale.h: Ditto.
492 * include/c_std/std_cmath.h: Ditto.
493 * include/c_std/std_csetjmp.h: Ditto.
494 * include/c_std/std_csignal.h: Ditto.
495 * include/c_std/std_cstdarg.h: Ditto.
496 * include/c_std/std_cstddef.h: Ditto.
497 * include/c_std/std_cstdio.h: Ditto.
498 * include/c_std/std_cstdlib.h: Ditto.
499 * include/c_std/std_cstring.h: Ditto.
500 * include/c_std/std_ctime.h: Ditto.
501 * include/c_std/std_cwchar.h: Ditto.
502 * include/c_std/std_cwctype.h: Ditto.
503 * include/std/std_algorithm.h: Ditto.
504 * include/std/std_bitset.h: Ditto.
505 * include/std/std_complex.h: Ditto.
506 * include/std/std_deque.h: Ditto.
507 * include/std/std_fstream.h: Ditto.
508 * include/std/std_functional.h: Ditto.
509 * include/std/std_iomanip.h: Ditto.
510 * include/std/std_ios.h: Ditto.
511 * include/std/std_iosfwd.h: Ditto.
512 * include/std/std_iostream.h: Ditto.
513 * include/std/std_istream.h: Ditto.
514 * include/std/std_iterator.h: Ditto.
515 * include/std/std_limits.h: Ditto.
516 * include/std/std_list.h: Ditto.
517 * include/std/std_locale.h: Ditto.
518 * include/std/std_map.h: Ditto.
519 * include/std/std_memory.h: Ditto.
520 * include/std/std_numeric.h: Ditto.
521 * include/std/std_ostream.h: Ditto.
522 * include/std/std_queue.h: Ditto.
523 * include/std/std_set.h: Ditto.
524 * include/std/std_sstream.h: Ditto.
525 * include/std/std_stack.h: Ditto.
526 * include/std/std_stdexcept.h: Ditto.
527 * include/std/std_streambuf.h: Ditto.
528 * include/std/std_string.h: Ditto.
529 * include/std/std_utility.h: Ditto.
530 * include/std/std_valarray.h: Ditto.
531 * include/std/std_vector.h: Ditto.
533 2003-07-22 Doug Gregor <dgregor@apple.com>
535 * include/bits/basic_string.h (basic_string::insert): Deprecate
538 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
540 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
542 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
543 (test03): Include typeinfo for bad_cast.
544 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
545 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
546 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
548 2003-07-21 Doug Gregor <dgregor@apple.com>
550 * include/bits/boost_concept_check.h:
551 (_EqualityComparableConcept::__constraints): Remove != from the
552 list of constraints; it is not listed in Table 28 of the C++98
555 2003-07-18 Andreas Jaeger <aj@suse.de>
557 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
558 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
559 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
560 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
562 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
564 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
565 * config/locale/generic/messages_members.h: Tweaks.
566 * config/locale/generic/monetary_members.cc
567 (moneypunct::_M_initialize_moneypunct): Use cache.
568 (moneypunct::~moneypunct): Delete cache.
569 * config/locale/generic/time_members.cc:
570 (__timepunct::_M_initialize_timepunct): Use cache.
571 * config/locale/generic/time_members.h:
572 (__timepunct::~__timepunct): Delete cache.
573 (__timepunct::__timepunct): Set cache.
574 * config/locale/gnu/messages_members.h: Tweaks.
575 * config/locale/gnu/monetary_members.cc:
576 (moneypunct::_M_initialize_moneypunct): Use cache.
577 (moneypunct::~moneypunct): Delete cache.
578 * config/locale/gnu/time_members.cc:
579 (__timepunct::_M_initialize_timepunct): Use cache.
580 * config/locale/gnu/time_members.h:
581 (__timepunct::~__timepunct): Delete cache.
582 (__timepunct::__timepunct): Set cache.
583 * include/bits/locale_facets.h (__timepunct_cache): New.
584 (__moneypunct_cache): New.
585 * include/bits/locale_facets.tcc: Tweak.
586 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
587 * src/locale-inst.cc: Instantiate caches.
588 * src/globals.cc: Add "C" caches.
589 * src/localename.cc: Use external "C" caches.
591 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
593 * docs/doxygen/guide.html: Fix typo.
595 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
597 * include/ext/pod_char_traits.h: Add state template argument.
599 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
601 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
602 (num_get::_M_convert_int): To _M_insert_int.
603 (num_get::_M_convert_float): To _M_insert_float.
604 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
605 Use caches for ctype, num_get.
606 (num_get::_M_extract_int): Same.
607 (num_get::get(bool)): Same.
608 (__verify_grouping): Use size_t.
609 * src/locale-inst.cc: Update.
610 * src/locale.cc: Adjust _S_atoms_in.
612 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
614 * docs/doxygen/mainpage.html: Move building/writing instructions...
615 * docs/doxygen/guide.html: ...to here. New file.
617 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
619 * docs/html/ext/howto.html: Update URL for SGI STL docs.
620 * docs/html/faq/index.html: Same.
621 * docs/html/faq/index.txt: Regenerate.
623 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
626 * include/bits/locale_facets.tcc (money_get::do_get):
627 Strip only _leading_ zeros.
628 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
629 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
631 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
633 * include/ext/hash_map (class hash_multimap): Remove extra
634 semicolons from __glibcxx_class_requires3 entries.
635 * include/ext/hash_set (class hash_set): Ditto.
636 (class hash_multiset): Ditto.
638 2003-07-15 Petur Runolfsson <peturr02@ru.is>
640 * include/bits/char_traits.h (char_traits<wchar_t>::move):
641 Change last parameter from int_type to size_t.
643 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
645 * include/bits/stl_algo.h (includes, set_union, set_intersection,
646 set_difference, set_symmetric_difference, max_element, min_element,
647 next_permutation, prev_permutation, find_first_of, find_end):
649 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
650 restrictions in docs.
651 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
653 * docs/doxygen/doxygroups.cc (setoperations): New group.
655 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
657 * include/bits/basic_string.h: Document public functions.
658 * docs/doxygen/TODO: Update c21 todo.
660 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
662 * include/bits/stl_list.h: Document more functions.
663 * docs/doxygen/TODO: Update c23 todo.
665 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
667 * config/locale/gnu/c_locale.h (__convert_from_v): One more
670 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
672 * include/bits/stl_tempbuf.h: Qualify free with std::.
673 * src/locale.cc: Include <cstdlib>, qualify getenv.
675 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
677 * config/locale/gnu/c_locale.h (__convert_from_v): Include
678 <cstdio>. Qualify names.
679 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
681 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
682 Nathan C. Myers <ncm-nospam@cantrip.org>
685 * include/std/std_fstream.h (xsputn): Declare only.
686 * include/bits/fstream.tcc (xsputn): Define, optimize for the
687 always_noconv() case: when __n is sufficiently large flush
688 the buffer and issue a direct write, if possible combining the
689 two with writev in __basic_file<>::xsputn_2.
690 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
692 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
694 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
695 the availability of writev in <sys/uio.h>.
696 * configure.in: Call here.
697 * acconfig.h: Add undef for the corresponding symbol.
698 * aclocal.m4: Regenerate.
699 * configure: Regenerate.
700 * config.h.in: Regenerate.
701 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
703 * include/std/std_fstream.h (sync): Constify a variable.
705 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
707 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
708 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
710 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
712 * config/locale/gnu/c_locale.h (__convert_from_v): Include
713 <cstring> and <cstdlib>. Qualify names.
715 2003-07-13 Mark Mitchell <mark@codesourcery.com>
717 * config/locale/generic/c_locale.h: Include <cstdlib> and
719 * include/bits/boost_concept_check.h: Add this-> to unqualified
721 * include/bits/deque.tcc: Likewise.
722 * include/bits/locale_facets.h : Likewise.
723 * include/bits/ostream.tcc: Likewise.
724 * include/bits/stl_algo.h: Likewise.
725 * include/bits/stl_bvector.h: Likewise.
726 * include/bits/stl_deque.h: Likewise.
727 * include/bits/stl_list.h: Likewise.
728 * include/bits/stl_tree.h: Likewise.
729 * include/bits/stl_vector.h: Likewise.
730 * include/bits/vector.tcc: Likewise.
731 * include/ext/rope: Likewise.
732 * include/ext/ropeimpl.h: Likewise.
733 * include/ext/stdio_filebuf.h: Likewise.
735 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
737 * include/bits/basic_ios.h (copyfmt): Document.
738 * include/bits/ios_base.h (event, event_callback, register_callback,
739 xalloc, iword, pword): Document.
740 (imbue, ~ios_base): Update docs on callbacks.
742 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
744 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
745 warning messages if the environment cannot support symbol versioning.
746 (port_specific_symbol_file): It's plural, add an 's' on the end.
747 * configure.host: Likewise.
748 * src/Makefile.am: Likewise.
749 * config/linker-map.gnu: Remove one semicolon, heh.
750 * scripts/extract_symvers: Don't assume useful 'export' syntax.
751 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
752 * aclocal.m4, configure, src/Makefile.in: Regenerated.
754 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
756 * include/bits/locale_facets.tcc: Use function object for
757 __use_cache instead of template function. Partially specialize for
759 * include/bits/locale_classes.h: Update friend declaration for
761 (_M_install_cache): No throw exception specs.
762 * src/locale.cc: Remove __use_cache specializations.
763 * include/ext/pod_char_traits.h (length): Tweak.
764 * include/bits/locale_facets.h (__numpunct_cache): Remove
766 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
768 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
769 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
770 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
771 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
772 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
773 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
775 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
777 * src/ios.cc (_M_grow_words): Fix spelling.
779 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
781 * include/bits/stl_tree.h: Move larger member functions in
782 _Rb_tree_base_iterator and _Rb_tree_node to...
783 * src/stl_tree.cc: Here.
784 * src/Makefile.in: Add stl_tree.cc.
785 * src/Makefile.in: Regenerated.
786 * config/linker-map.gnu: Add symbols here.
788 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
790 * testsuite/ext/pod_char_traits.cc: New.
791 * include/ext/pod_char_traits.h: New.
792 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
793 * include/Makefile.in: Regenerate.
794 * docs/html/21_strings/howto.html: Update.
796 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
798 * testsuite/performance/list_create_fill_sort.cc: New.
800 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
802 * config/locale/generic/numeric_members.cc: Correct type info.
803 * config/locale/gnu/numeric_members.cc: Same.
804 * include/bits/locale_facets.h: Same.
806 * include/bits/char_traits.h: Correct spacing.
808 * src/locale.cc: Wrap to 80 col.
810 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
812 * include/std/std_complex.h: Partially revert last
813 changes: cmath functions must not be qualified.
815 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
817 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
818 2.11 with globbing backport fix.
819 * aclocal.m4, configure: Regenerated.
821 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
823 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
824 if output is at all possible (!_M_reading), cannot be active.
826 * include/std/std_fstream.h: Tweak comments to doxygen style.
828 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
830 * include/bits/locale_classes.h: Fully qualify standard
831 functions with std::, thus avoiding Koenig lookup.
832 * include/bits/locale_facets.tcc: Likewise.
833 * src/locale.cc: Likewise.
834 * src/localename.cc: Likewise.
836 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
838 * include/bits/allocator_traits.h: Fix doxygen markup.
839 * include/ext/mt_allocator.h: Likewise.
841 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
843 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
845 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
847 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
848 requirement. Add port_specific_symbol_file variable.
849 * configure.host: Add docs for port_specific_symbol_file.
850 Clean up try_cpu block for x86.
851 * config/linker-map.gnu: No more "last symbol can't have a
852 semicolon" kaka. Add hook for port-specific symbols.
853 * src/Makefile.am: Remove trailing whitespace.
854 (libstdc++-symbol.ver): Detect the presence of port-specific
855 symbols, and add them accordingly.
857 * docs/html/17_intro/porting.texi: Bring up to date.
859 * src/Makefile.in, aclocal.m4, configure,
860 docs/html/17_intro/porting.html: Regenerated.
862 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
864 * scripts/create_testsuite_files: New file.
865 * testsuite/Makefile.am (all-local, check-performance): Use it.
866 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
867 * testsuite/Makefile.in: Regenerated.
869 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
871 * testsuite/performance/fstream_seek_write.cc: Likewise.
872 * testsuite/performance/ofstream_insert_float.cc: Likewise.
873 * testsuite/performance/ofstream_insert_int.cc: Likewise.
874 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
876 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
878 * include/bits/stl_list.h: Performance and memory usage
879 improvements. In particular, the behaviour of the constructor and
880 destructor as the list header node is no longer dynamically
881 allocated/de-allocated.
882 * include/bits/list.tcc: Likewise.
884 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
886 * include/std/std_complex.h: Fully qualify standard
887 functions with std::, thus avoiding Koenig lookup.
888 * include/std/std_memory.h: Likewise.
889 * include/std/std_valarray.h: Likewise.
891 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
893 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
894 variable for grandparent and use const
896 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
898 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
899 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
900 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
901 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
902 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
903 * testsuite/27_io/objects/char/7.cc: Ditto
904 * testsuite/27_io/objects/char/9661-1.cc: Ditto
906 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
908 * include/std/std_bitset.h: Fully qualify standard
909 functions with std::, thus avoiding Koenig lookup.
911 * include/std/std_fstream.h: Change comment to doxygen style.
913 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
915 * include/std/std_limits.h: More CPP->CXX changes.
916 * scripts/check_survey.in: Likewise.
918 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
920 Move from CPP to CXX.
921 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
922 * testsuite/Makefile.am: Same.
923 * testsuite/Makefile.in: Regenerate.
924 * po/Makefile.am: Same.
925 * po/Makefile.in: Regenerate.
926 * libsupc++/Makefile.am: Same.
927 * libsupc++/Makefile.in: Regenerate.
928 * libmath/Makefile.am: Same.
929 * libmath/Makefile.in: Regenerate.
930 * include/Makefile.am: Same.
931 * include/Makefile.in: Regenerate.
932 * src/Makefile.am: Same.
933 * src/Makefile.in: Regenerate.
935 * configure.host: Same.
936 * configure.in: Same.
937 * configure: Regenerate.
938 * acinclude.m4: Same.
940 * src: Change all files in this directory.
942 * include: Same, standardize include guards.
946 2003-07-04 Zack Weinberg <zack@codesourcery.com>
948 * testsuite/22_locale/collate/compare/wchar_t/2.cc
949 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
950 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
951 * testsuite/22_locale/collate/hash/wchar_t/2.cc
952 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
953 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
954 * testsuite/22_locale/collate/transform/wchar_t/2.cc
955 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
956 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
957 XFAIL on all targets.
959 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
961 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
962 * aclocal.m4: Regenerate.
963 * configure: Regenerate.
965 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
967 * include/bits/locale_facets.tcc (__int_to_char): Move common case
970 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
971 Petur Runolfsson <peturr02@ru.is>
973 * config/io/basic_file_stdio.cc: Revert.
975 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
977 * include/bits/deque.tcc: Fully qualify standard
978 functions with std::, thus avoiding Koenig lookup.
979 * include/bits/gslice_array.h: Likewise.
980 * include/bits/indirect_array.h: Likewise.
981 * include/bits/list.tcc: Likewise.
982 * include/bits/mask_array.h: Likewise.
983 * include/bits/slice_array.h: Likewise.
985 2003-07-04 Gawain Bolton <gbolton@free.fr>
987 * include/bits/stl_tree.h: Performance and memory usage
990 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
992 * Makefile.am: Replace PWD with PWD_COMMAND.
993 * Makefile.in: Regenerated.
994 * docs/html/Makefile: Likewise.
996 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
998 * include/bits/valarray_array.h: Fully qualify standard
999 functions with std::, thus avoiding Koenig lookup.
1000 * include/bits/vector.tcc: Likewise.
1002 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1004 * include/Makefile.am: Update target_ to host_.
1005 * include/Makefile.in: Regenerate.
1006 * src/Makefile.am: Same.
1007 * src/Makefile.in: Regenerate.
1009 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
1011 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1013 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
1014 --enable-libstdcxx-debug-flags.
1015 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
1016 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
1017 * aclocal.m4: Regenerate.
1019 * docs/html/configopts.html: Update.
1021 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1023 Revert the fix for libstdc++/11378.
1025 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1028 * include/std/std_fstream.h (xsputn): In the unbuffered case,
1029 provided always_noconv(), issue directly _M_file.xsputn.
1030 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
1032 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1034 * include/bits/stl_list.h: Fully qualify standard
1035 functions with std::, thus avoiding Koenig lookup.
1036 * include/bits/stl_queue.h: Likewise.
1037 * include/bits/stl_raw_storage_iter.h: Likewise.
1038 * include/bits/stl_tempbuf.h: Likewise.
1039 * include/bits/stl_tree.h: Likewise.
1040 * include/bits/stl_uninitialized.h: Likewise.
1041 * include/bits/stl_vector.h: Likewise.
1042 * include/ext/rope: Change includes order.
1044 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1046 * configure.host (fpos_include_dir): Fix.
1048 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
1050 * include/bits/stl_heap.h: Fully qualify standard
1051 functions with std::, thus avoiding Koenig lookup.
1052 * include/bits/stl_iterator_base_funcs.h: Likewise.
1054 * include/bits/stl_algo.h: Qualify __iterator_category too.
1055 * include/bits/stl_algobase.h: Likewise.
1056 * include/bits/stl_bvector.h: Likewise.
1058 * include/bits/stl_algo.h: Don't qualify the pair type.
1060 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
1062 * include/Makefile.am (target_headers): Add fpos.h
1063 (bits_headers): Remove.
1064 * include/Makefile.in: Regenerate.
1065 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
1066 * configure: Regenerate.
1067 * configure.host: Add fpos_include_dir.
1068 * config/os/gnu-linux/fpos.h: New.
1069 * config/os/generic/fpos.h: Add.
1070 * include/bits/fpos.h: Remove.
1072 * config/io/c_io_stdio.h: Remove fpos_t typedef.
1074 * include/bits/fstream.tcc: Tweaks.
1075 * include/std/std_fstream.h: Same.
1077 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
1078 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
1079 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
1080 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1081 * testsuite/27_io/fpos/1.cc: New.
1083 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
1084 Petur Runolfsson <peturr02@ru.is>
1086 * include/std/std_streambuf.h: Remove _M_pos.
1087 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
1088 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
1089 use fread/fwrite instead of read/write.
1090 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
1091 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
1092 before reading again.
1093 * testsuite/27_io/objects/char/6.cc: Tweak.
1095 2003-07-03 David Edelsohn <edelsohn@gnu.org>
1097 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
1098 _GLIBCPP_USE_WCHAR_T.
1100 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1102 * include/bits/basic_string.tcc (_M_replace_aux): Constify
1105 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1107 * include/bits/stl_bvector.h: Fully qualify standard
1108 functions with std::, thus avoiding Koenig lookup.
1109 * include/bits/stl_construct.h: Likewise.
1110 * include/bits/stl_deque.h: Likewise.
1112 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1114 * testsuite/22_locale/num_put/put/char/7.cc: Include
1115 <testsuite_hooks.h>, tweak.
1116 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
1118 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
1120 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
1121 check* targets, but not libs/programs).
1122 * testsuite/Makefile.in: Regenerate.
1124 2003-07-01 Roger Sayle <roger@eyesopen.com>
1126 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
1127 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
1128 * aclocal.m4: Regenerate.
1129 * configure: Regenerate.
1131 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
1133 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
1134 * aclocal.m4: Regenerated.
1135 * configure: Regenerated.
1137 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
1140 * include/bits/fstream.tcc (underflow): For encoding() == 0
1141 don't read more than __buflen chars.
1142 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
1143 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
1144 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
1145 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
1147 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
1149 * 22_locale/num_put/put/char/7.cc: New.
1150 * 22_locale/num_put/put/wchar_t/7.cc: New.
1152 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
1154 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
1155 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
1157 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1159 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
1160 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
1161 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
1162 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
1163 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
1164 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
1165 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
1166 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
1167 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
1168 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
1169 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
1170 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
1171 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
1172 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
1173 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
1174 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
1175 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
1176 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
1177 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
1178 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
1179 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
1180 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
1181 * data/seekoff-1.tst: Remove.
1182 * data/seekoff-1io.tst: New.
1183 * data/seekoff-1out.tst: New.
1184 * data/seekoff-2.tst: Remove.
1185 * data/seekoff-2io.tst: New.
1186 * data/seekoff-2out.tst: New.
1188 * data/seekpos-1.tst: Remove.
1189 * data/seekpos-1io.tst: New.
1190 * data/seekpos-1out.tst: New.
1191 * data/seekpos-2.tst: Remove.
1192 * data/seekpos-2io.tst: New.
1193 * data/seekpos-2out.tst: New.
1194 * data/seekpos.txt: New.
1196 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
1198 * src/locale.cc (__use_cache<numpunct>): Move from here ...
1199 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
1202 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1204 * include/bits/stl_algobase.h: Fully qualify standard
1205 functions with std::, thus avoiding Koenig lookup.
1207 2003-06-30 Doug Gregor <dgregor@apple.com>
1209 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
1210 subscripting empty string.
1212 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
1214 * testsuite/Makefile.am (check-am): Do not override.
1215 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
1216 * testsuite/Makefile.in: Regenerate.
1218 2003-06-30 Doug Gregor <dgregor@apple.com>
1220 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
1221 Don't initialize an insert_iterator with a singular iterator.
1223 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1225 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
1226 * aclocal.m4: Regenerate.
1227 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
1228 GLIBCPP_ENABLE_PCH, default to yes.
1229 * configure: Regenerate.
1230 * docs/html/configopts.html: Add --enable-pch.
1232 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
1234 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
1235 (libstdc++-v3-init): Also set LD_RUN_PATH.
1237 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1239 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
1240 from here to filebuf and stringbuf.
1241 (~basic_streambuf()): Don't set _M_mode.
1242 (basic_streambuf()): Don't set _M_mode.
1243 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
1244 (~basic_filebuf()): Clean up.
1245 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
1246 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
1247 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
1248 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
1249 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
1250 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
1251 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
1253 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1255 * include/std/std_fstream.h (_M_underflow): Remove.
1256 (uflow): Remove, inherited from streambuf.
1257 (underflow): Only declare.
1258 * include/bits/fstream.tcc (_M_underflow): Rename to
1259 underflow, to which is equivalent for __bump == false,
1261 * include/std/std_sstream.h (_M_underflow): Remove.
1262 (uflow): Remove, inherited from streambuf.
1263 (underflow): Only declare.
1264 * include/bits/sstream.tcc (_M_underflow): Rename to
1265 underflow, to which is equivalent for __bump == false,
1268 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1270 * include/bits/stl_algo.h: Fully qualify standard functions
1271 with std::, thus avoiding Koenig lookup.
1273 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1275 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
1276 Improve type correctness-wise.
1277 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
1279 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
1281 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
1284 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1286 * include/std/std_streambuf.h (uflow): According to
1287 27.5.2.4.3,p16, don't check gptr() < egptr().
1289 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
1292 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
1293 (seekpos): Likewise.
1294 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
1296 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
1299 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
1301 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
1302 output name to libstdc++-v3-performance.sum.
1303 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
1304 * testsuite/Makefile.in: Regenerate.
1306 2003-06-27 Matthias Klose <doko@debian.org>
1308 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
1309 output of abi-check in libstdc++-v3-abi.sum.
1310 * testsuite/Makefile.in: Regenerate.
1312 2003-06-27 Krister Walfridsson <cato@df.lth.se>
1314 * config/os/bsd/netbsd/ctype_noninline.h
1315 (_C_ctype_): Declare.
1316 (ctype<char>::classic_table): Return _C_ctype_ + 1.
1317 (ctype<char>::ctype): Use classic_table.
1319 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
1320 Nathan C. Myers <ncm-nospam@cantrip.org>
1323 * include/bits/fstream.tcc (_M_underflow): Properly estimate
1324 the worst-case number of external bytes for a given get area.
1325 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
1327 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
1328 Petur Runolfsson <peturr02@ru.is>
1331 * include/bits/fstream.tcc (overflow): Properly estimate the
1332 worst-case number of external bytes for a given put area
1333 (by using codecvt::max_length()).
1334 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
1335 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
1336 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
1337 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
1339 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1341 * config/linker-map.gnu: Remove ; after __numpunct_cache.
1343 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1345 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
1346 to the imbued locale.
1347 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
1349 (num_put::_M_convert_float): Use.
1351 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1352 Jerry Quinn <jlquinn@optonline.net>
1354 * config/linker-map.gnu: Add __numpunct_cache.
1355 * config/locale/gnu/numeric_members.cc
1356 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
1357 all elements for "C" locale.
1358 (numpunct::~numpunct): Delete _M_data.
1359 * config/locale/generic/numeric_members.cc: Same.
1360 * include/bits/basic_ios.tcc
1361 (basic_ios::init): Remove __locale_cache bits.
1362 (basic_ios::_M_cache_locale): Same.
1363 * include/bits/ios_base.h: Same. Tweaks.
1364 * include/bits/locale_classes.h: Tweaks. Reorder classes.
1365 (__use_cache): Make friends with _Impl, locale.
1366 (_Impl::_M_caches): Add.
1367 (_Impl::_M_install_cache): Add.
1368 * include/bits/locale_facets.h (__numpunct_cache): New.
1369 (numpunct): Encapsulate data members in __numpunct_cache member,
1370 _M_data. Adjust virtuals.
1371 (numpunct::numpunct): New ctor for the same.
1372 (__locale_cache_base): Remove.
1373 (__locale_cache): Remove.
1374 * include/bits/locale_facets.tcc (__use_cache): New function,
1376 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
1377 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
1378 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
1379 * src/locale-inst.cc: Same. Add __numpunct_cache.
1380 * src/locale.cc: Tweak inlines.
1381 (__use_cache): Define specializations.
1382 * src/localename.cc: Use global bits.
1383 (_Impl::~Impl): Deal with __numpunct_cache destruction.
1384 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
1385 (_Impl::_M_init_facet): Take into account __numpunct_cache.
1386 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
1387 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1389 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
1390 Paolo Carlini <pcarlini@unitus.it>
1392 * testsuite/performance/filebuf_copy.cc: New, testing char
1395 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
1396 Nathan C. Myers <ncm-nospam@cantrip.org>
1398 * include/bits/fstream.tcc (_M_underflow): When the actual
1399 end of file is reached, set 'uncommitted' mode to allow a
1400 next write without an intervening seek (see C++98 27.8.1.1,2
1402 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
1404 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
1406 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1407 sputc): Move inline, from here...
1408 * include/std/std_streambuf.h: ... to here.
1410 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
1411 sputbackc, sungetc, sputc): Use __builtin_expect.
1413 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
1415 * docs/doxygen/mainpage.html: Use a useful title.
1417 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1419 * docs/html/documentation.html: Remove assignment info.
1420 * docs/html/17_intro/contribute.html: Edits.
1421 * docs/html/17_intro/libstdc++-assign.tx: Remove.
1423 * docs/html/test.html: Update.
1427 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1428 Ulrich Drepper <drepper@redhat.com>
1430 * testsuite/testsuite_performance.h: Tweak mallinfo.
1432 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
1433 Nathan C. Myers <ncm-nospam@cantrip.org>
1435 * include/std/std_fstream.h (_M_filepos): Remove.
1436 (_M_reading, _M_writing): New, encode the various I/O modes:
1437 'read', 'write' and 'uncommitted'.
1438 (sync): If there is something to flush, do it, then go to
1440 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
1441 with three different cases: __off > 0 (upon underflow),
1442 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
1444 (_M_underflow): Don't call overflow, set _M_reading to true
1446 (pbackfail): Set _M_reading to true on pback creation, tweak.
1447 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
1448 set _M_writing to true on success, tweak.
1449 (seekoff): Simplify, set _M_reading, _M_writing to false, call
1450 _M_set_buffer(-1) ('uncommitted').
1451 (open, close, setbuf): Set _M_reading, _M_writing to false and
1452 call _M_set_buffer(-1), tweak.
1453 (basic_filebuf): Don't set _M_buf_unified.
1454 (_M_destroy_internal_buffer): Don't call setg and setp.
1455 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
1456 _M_writing and _M_set_buffer(-1).
1457 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
1458 _M_out_lim, _M_buf_unified): Remove.
1459 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
1460 (setp): Don't set _M_out_lim.
1461 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
1462 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
1463 upon open the mode is 'uncommitted' and therefore the put area
1465 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
1466 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
1467 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
1468 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
1469 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
1470 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
1471 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1472 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
1473 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
1474 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
1475 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
1476 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
1477 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
1478 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
1479 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
1480 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
1481 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
1482 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
1483 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
1484 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
1486 * include/bits/fstream.tcc (showmanyc): Use only the
1487 documented derivation interface to basic_streambuf (gptr(),
1488 setg(), etc.) to work right with user specializations.
1489 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1490 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
1491 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
1493 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
1496 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
1498 * configure.host (freebsd*): Set abi_baseline_pair.
1499 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
1500 (at or near first release) to 3.3.
1501 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
1502 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
1503 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
1505 * include/ext/mt_allocator.h: Portability.
1506 * testsuite/testsuite_performance.h: Likewise.
1508 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
1510 * docs/html/17_intro/libstdc++-assign.txt: Update address.
1512 * testsuite/performance/ifstream_getline.cc: Fix.
1514 2003-06-23 Doug Gregor <dgregor@apple.com>
1516 * include/bits/boost_concept_check.h: Don't use _D or _R for type
1519 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
1520 Nathan C. Myers <ncm-nospam@cantrip.org>
1522 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
1523 is now used only for filebuf, when _M_buf_unified is true.
1524 epgtr() plays the role of _M_out_lim but it's only updated
1525 upon overflow, underflow, uflow, seekoff/pos.
1526 * include/bits/sstream.tcc (_M_underflow): New, implements
1527 stringbuf::underflow and uflow.
1528 (seekoff, seekpos): Tweak, use _M_update_egptr.
1529 * include/std/std_sstream.h (str): Rewrote, deal correctly
1530 with the new logic, in particular, when pptr() > egptr().
1531 (_M_sync): When __testout && !__testin set all the get area
1532 pointers to the current string end.
1533 (_M_update_egptr): New, internal function updating egptr()
1534 to the actual string end.
1535 (_M_underflow): New, declare.
1536 (underflow): Dispatch to _M_underflow(false).
1537 (uflow): Dispatch to _M_underflow(true).
1539 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
1540 seekpos): Use only the documented derivation interface to
1541 basic_streambuf (gptr(), setg(), etc.) to work right with
1542 user specializations.
1543 * include/std/std_sstream.h (str, _M_sync): Likewise.
1545 2003-06-20 Doug Gregor <dgregor@apple.com>
1547 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
1548 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
1549 dereference end iterator.
1550 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
1551 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
1552 index equal to the length of a string.
1553 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
1554 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
1555 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
1556 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
1557 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
1558 * testsuite/23_containers/list_modifiers.cc: Don't dereference
1559 singular reverse iterator.
1560 * testsuite/23_containers/vector_bool.cc: Don't increment singular
1562 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
1564 2003-06-20 Doug Gregor <dgregor@apple.com>
1566 * include/bits/basic_string.h (basic_string::replace): Dispatch
1567 _InputIterator version based on _Is_integer.
1568 * include/bits/basic_string.tcc (basic_string::replace):
1569 Renamed replace(iterator, iterator, size_type, _CharT) to
1571 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
1572 Test basic_string::assign(_InputIterator, _InputIterator),
1573 which calls basic_string::replace(iterator, iterator,
1574 _Input_iterator, _InputIterator).
1576 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
1578 * testsuite/testsuite_performance.h (resource_counter): Don't use
1579 mallinfo at the moment.
1581 2003-06-20 Matthias Klose <doko@debian.org>
1583 * configure.host: Set try_cpu to target_cpu for existing
1586 2003-06-19 Andreas Jaeger <aj@suse.de>
1588 * testsuite/Makefile.am (extract_symvers): Revert accidental
1590 * testsuite/Makefile.in: Regenerate.
1592 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
1593 * configure: Regenerated.
1595 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
1597 * include/std/std_sstream.h (_M_sync): Make non virtual.
1599 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
1601 * testsuite/testsuite_performance.h (time_counter): New.
1602 (resource_counter): New.
1603 (report_performance): New.
1604 (start_counters): New.
1605 (stop_counters): New.
1606 (clear_counters): New.
1607 * testsuite/performance/allocator.cc: Instrument.
1608 * testsuite/performance/cout_insert_int.cc: Same.
1609 * testsuite/performance/complex_norm.cc: Same.
1610 * testsuite/performance/filebuf_sputc.cc: New.
1611 * testsuite/performance/fstream_seek_write.cc: Same.
1612 * testsuite/performance/ifstream_getline.cc: Same.
1613 * testsuite/performance/map_create_fill.cc: Same.
1614 * testsuite/performance/ofstream_insert_float.cc: Same.
1615 * testsuite/performance/ofstream_insert_int.cc: Same.
1616 * testsuite/performance/string_append.cc: Convert.
1617 * scripts/check_performance: New.
1618 * testsuite/Makefile.am (check-performance): New.
1621 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
1622 Benjamin Kosnik <bkoz@redhat.com>
1624 * include/std/std_sstream.h (setbuf): Check __n >= 0.
1625 * include/bits/fstream.tcc (setbuf): Tweak.
1627 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
1629 * include/bits/sstream.tcc (seekoff): We can't seek beyond
1630 _M_out_lim, therefore _M_move_out_cur boils down to simply
1631 updating _M_out_cur.
1632 (seekpos): Likewise, clean up.
1634 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
1635 Paolo Carlini <pcarlini@unitus.it>
1637 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
1638 simply equivalent to the unbuffered case (0, 0) as far as
1639 _M_buf_size is concerned.
1641 2003-06-18 Andreas Jaeger <aj@suse.de>
1643 * testsuite/Makefile.am (new-abi-baseline): Create baseline
1645 (baseline_file): Use baseline_dir.
1646 (baseline_dir): New.
1647 (mkinstalldirs): New.
1649 * acinclude.m4: Rename baseline_file to baseline_dir, strip
1650 filename from baseline_dir.
1652 * testsuite/Makefile.in: Regenerated.
1653 * Makefile.in: Regenerated.
1654 * aclocal.m4: Regenerated.
1655 * configure: Regenerated.
1657 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1659 * configure.in: Missed check_survey bit.
1660 * configure: Regenerated.
1662 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1665 * config/abi/extract_symvers: Move to...
1666 * scripts/extract_symvers: ...here.
1667 * mkcheck.in: Move to..
1668 * scripts/check_survey.in: ...here.
1669 * testsuite_flags.in: Move to..
1670 * scripts/testsuite_flags.in: ...here.
1671 * configure.in: Change check and testsuite_flags locations.
1672 * configure: Regenerate.
1673 * testsuite/Makefile.am (current_symbols.txt): Change location.
1674 * testsuite/Makefile.in: Regenerate.
1675 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1676 location of testsuite_flags.
1677 * Makefile.am (check-script): Move..
1678 (check-script-install): Move...
1679 * testsuite/Makefile.am: ... here.
1680 * testsuite/Makefile.in: Regenerate.
1681 * Makefile.in: Regenerate.
1683 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1685 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
1687 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1689 * Makefile.am (check-abi): Move...
1690 (new-abi-baseline): Move...
1691 * testsuite/Makefile.am: ...here.
1692 (new-abi-baseline): Conditionalize.
1693 (check-abi): Conditionalize.
1694 (check-abi-verbose): New.
1695 * Makefile.in: Regenerate.
1696 * testsuite/Makefile.in: Regenerate.
1697 * configure.in: Consolidate testsuite configure bits.
1698 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
1699 * configure: Regenerate.
1700 * aclocal.m4: Regenerate.
1701 * testsuite/abi_check.cc: Add --check-verbose.
1702 Only output detailed information if --check-verbose.
1704 2003-06-16 Andreas Jaeger <aj@suse.de>
1706 * testsuite/abi_check.cc: Create summary report.
1708 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
1710 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
1711 for systems with BUFSIZ != 8192.
1712 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1713 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
1716 2003-06-16 Andreas Jaeger <aj@suse.de>
1718 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
1719 check-abi multilib aware.
1720 * aclocal.m4: Regenerate.
1721 * configure: Regenerate.
1723 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1724 Andreas Jaeger <aj@suse.de>
1726 * configure.host: Set x86_64 abi_baseline pair correctly.
1728 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
1730 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
1731 fix for missing seeks between gets and puts into...
1732 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
1733 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
1734 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
1735 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
1736 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
1737 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
1739 2003-06-15 Richard Henderson <rth@redhat.com>
1741 * config/linker-map.gnu: Export virtual function thunks for
1744 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
1746 * config/abi/i686-pc-linux-gnu: To..
1747 * config/abi/i486-linux-gnu: ...this.
1748 * config/abi/alphaev67-unknown-linux-gnu: To..
1749 * config/abi/alpha-linux-gnu: ...this.
1750 * config/abi/ia64-unknown-linux-gnu: To...
1751 * config/abi/ia64-linux-gnu: ...this.
1752 * config/abi/x86_64-unknown-linux-gnu: To...
1753 * config/abi/x86_64-linux-gnu: ...this.
1754 * config/abi/i386-unknown-freebsd4: To...
1755 * config/abi/i386-freebsd4: ...this.
1756 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
1758 * configure.host: abi_baseline_triplet to abi_baseline_pair.
1759 Simplify cpu bits so that abi_baseline_pair can use the same
1761 * acinclude.m4: Same.
1762 * aclocal.m4: Regenerate.
1763 * configure.in: Can't get enable_abi_check to yes unless native.
1764 * configure: Regenerate.
1766 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
1768 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
1769 fix for missing seeks between gets and puts into...
1770 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
1771 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
1772 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
1773 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
1774 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
1775 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
1776 for missing seeks between gets and puts.
1777 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
1778 * testsuite/data/seekoff-1.tst: New.
1779 * testsuite/data/seekoff-2.tst: New.
1780 * testsuite/data/seekpos-1.tst: New.
1781 * testsuite/data/seekpos-2.tst: New.
1783 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
1785 Avoid multi-processor bus contention on increment/decrement-and-
1786 test of the reference count in the empty-string object, by comparing
1787 addresses first, and never touching the reference count of the empty-
1789 * include/bits/basic_string.h:
1790 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
1792 (_Rep::_S_empty_rep()): New accessor.
1793 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
1794 a base class _Rep_base.
1795 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
1796 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
1797 since no longer must increment its refcount.
1798 * include/bits/basic_string.tcc:
1799 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
1800 return immediately. The former might be unnecessary. The latter
1801 prevents begin() and end() from cloning it unnecessarily.
1802 (_S_construct(_InIterator, _InIterator, const _Alloc&,
1803 input_iterator_tag), _S_construct(_InIterator, _InIterator,
1804 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
1805 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
1806 (_M_mutate): Check for the empty string and treat it as shared.
1807 This is necessary here because _M_mutate is sometimes called with
1808 all-zero arguments; in all other uses of _M_is_shared, the test comes
1811 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
1813 * src/allocator-inst.cc: Explicitly instantiate.
1814 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
1816 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
1818 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1820 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
1821 * aclocal.m4: Regenerate.
1822 * Makefile.am (SUBDIRS): Remove libio.
1823 * Makefile.in: Regenerate.
1824 * configure.in: Same.
1825 * configure: Regenerate.
1826 * config/io/basic_file_libio.cc: Remove.
1827 * config/io/basic_file_libio.h: Remove.
1828 * config/io/c_io_libio_codecvt.c: Remove.
1829 * config/io/c_io_libio.h: Remove.
1831 * src/Makefile.am: Same.
1832 * src/Makefile.in: Regenerate.
1833 * docs/html/configopts.html: Edits.
1834 * docs/html/explanations.html: Edits.
1836 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1838 * include/bits/stl_alloc.h (__debug_alloc): Move out.
1839 (__malloc_alloc): Same.
1840 (__pool_alloc): Same.
1841 (__new_alloc): Same.
1843 * include/bits/allocator.h: ...this.
1844 * include/bits/stl_deque.h: Modify comment.
1845 * include/bits/stl_tree.h: Modify include.
1846 * include/std/std_memory.h: Same.
1847 * include/ext/rope: Same.
1848 * include/ext/slist: Same.
1849 * include/std/std_vector.h: Same.
1850 * include/std/std_stack.h: Same.
1851 * include/std/std_queue.h: Same.
1852 * include/std/std_list.h: Same.
1853 * include/std/std_deque.h: Same.
1854 * include/backward/alloc.h: Same.
1855 * include/ext/debug_allocator.h: New.
1856 * include/ext/malloc_allocator.h: New.
1857 * include/ext/pool_allocator.h: New.
1858 * include/ext/new_allocator.h: New.
1859 * include/bits/pthread_allocimpl.h: Remove.
1860 * include/bits/stl_pthread_alloc.h: Remove.
1861 * include/Makefile.am (ext_headers): Add.
1862 * include/Makefile.in: Regenerate.
1863 * src/stl-inst.cc: Use __gnu_cxx namespace.
1864 * src/stl-inst.cc: Move to...
1865 * src/allocator-inst.cc: Here.
1866 * src/Makefile.am (sources): Update.
1867 * src/Makefile.in: Regenerate.
1868 * config/linker-map.gnu: Remove __pool_alloc bits.
1869 * testsuite/ext/headers.cc: Add.
1870 * testsuite/ext/allocators.cc: Fixup.
1872 2003-06-11 Stefan Olsson <stefan@snon.net>
1873 Ola Rönnerup <fnolis@home.se>
1875 * include/Makefile.am (ext_headers): Add.
1876 * include/Makefile.in: Regenerate.
1877 * include/ext/mt_allocator.h: New file.
1879 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1881 * include/bits/fstream.tcc (close): Clean up a bit.
1883 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
1885 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
1886 - the saved _M_in_cur, that is - cannot be null.
1887 (sync): Constify a variable.
1889 * include/std/std_streambuf.h: Tweak a comment.
1890 (in_avail): Constify a variable.
1892 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
1894 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
1895 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
1896 correctness of container::iterator typedefs. Fix whitespace.
1897 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
1899 * docs/html/documentation.html: Regenerate.
1901 * include/bits/basic_string.h, include/bits/basic_string.tcc,
1902 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
1903 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1904 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
1905 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
1906 include/bits/stl_vector.h, include/bits/vector.tcc,
1907 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
1908 Change _Iter names to _Iterator, and __pos to __position.
1910 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
1911 include/bits/stl_multiset.h, include/bits/stl_set.h:
1912 Remove emacs markers.
1914 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
1916 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1918 * include/bits/fstream.tcc (overflow): According to
1919 27.5.2.4.5, overflow() returns not_eof(eof()).
1920 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
1921 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
1923 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1925 * include/bits/fstream.tcc (_M_underflow): Check overflow return
1926 value; tweak slightly.
1928 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
1930 * include/bits/fstream.tcc (_M_underflow): Do not special
1931 case the unbuffered case, which really means simply a one char
1933 (basic_filebuf): Initialize _M_buf_size.
1934 (setbuf): Unbuffered means _M_buf_size == 1, since only
1935 _M_buf_size - 1 == 0 chars are going to be used for the
1936 put area and 1 for the get area.
1937 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
1938 (~basic_streambuf): Tweak.
1939 (basic_streambuf): Do not initialize _M_buf_size.
1940 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
1941 (~basic_filebuf): Tweak.
1942 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
1943 unbuffered situation (i.e., put area pointers NULL).
1944 * include/bits/streambuf.tcc (sbumpc): Clean up.
1945 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
1946 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
1947 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
1948 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
1949 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
1950 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
1951 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
1953 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
1955 * acinclude.m4: Move all AM_CONDITIONAL calls out.
1956 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
1958 * configure.in: Centralize AM_CONDITIONALs so that they are always
1959 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
1960 * aclocal.m4, configure: Regenerated.
1962 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
1964 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
1966 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
1968 * include/bits/stl_iterator.h
1969 (reverse_iterator::reverse_iterator()): Apply DR235: default
1970 constructor default-initializes data member. Instantiated on a
1971 pointer type, the member has to end up equal to zero.
1973 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
1975 * include/bits/stl_alloc.h: Cleanups.
1976 * include/ext/functional: Same.
1977 * include/ext/hash_map: Same.
1978 * include/ext/hash_set: Same.
1979 * include/ext/iterator: Same.
1980 * include/ext/memory: Same.
1981 * include/ext/numeric: Same.
1982 * include/ext/rb_tree: Same.
1983 * include/ext/ropeimpl.h: Same.
1984 * include/ext/slist: Same.
1985 * include/ext/stdio_filebuf.h: Same.
1986 * include/ext/stdio_sync_filebuf.h: Same.
1987 * include/ext/stl_rope.h: Move to...
1988 * include/ext/rope: ...here.
1989 * include/ext/stl_hash_fun.h: Move to...
1990 * include/ext/hash_fun.h: ...here.
1991 * include/ext/stl_hashtable.h: Move to...
1992 * include/ext/hashtable.h: ...here.
1993 * include/backward/hashtable.h: Reflect new names.
1994 * include/Makefile.am: Same.
1995 * include/Makefile.in: Regenerated.
1997 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
2000 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
2001 * include/bits/stl_algobase.h: Tweak.
2002 * include/std/std_fstream.h: Move _M_buf_size to...
2003 * include/std/std_streambuf.h: ...here. Modify.
2004 * include/bits/streambuf.tcc: Same.
2005 * testsuite/testsuite_hooks.h: Tweak.
2006 * testsuite/testsuite_io.h (constraint_filebuf): New.
2007 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
2008 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
2009 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
2010 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
2011 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
2012 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
2013 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
2014 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
2015 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
2016 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
2017 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
2018 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
2019 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
2020 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
2021 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
2022 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
2023 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
2024 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
2025 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
2026 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
2027 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
2028 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
2029 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
2030 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
2031 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
2032 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
2033 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
2034 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
2035 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
2036 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
2037 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
2038 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
2039 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
2040 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
2041 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
2042 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
2043 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
2044 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
2045 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
2046 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
2047 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
2048 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
2049 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
2050 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
2051 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
2052 * testsuite/data/sgetc.txt: New.
2053 * testsuite/data/sgetn.txt: New.
2055 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
2058 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
2059 Deal with width() smaller than zero.
2060 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
2061 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
2062 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
2063 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
2064 operator<<(basic_ostream, const basic_string&)): Likewise.
2066 * testsuite/27_io/basic_istream/extractors_character/char/
2067 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2068 * testsuite/27_io/basic_ostream/inserters_character/char/
2069 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
2070 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
2071 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
2073 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2075 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
2076 .gch compilation works.
2077 * aclocal.m4, configure: Regenerate.
2078 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
2079 initialize PCHFLAGS.
2081 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
2083 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
2084 erase(iterator), erase(iterator, iterator), c_str,
2085 compare(const basic_string&)): Constify various variables.
2086 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
2087 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
2088 _S_create, resize, _M_replace, _M_replace_safe,
2089 append(const basic_string&), append(const basic_string&, size_type,
2090 size_type), append(const _CharT*, size_type), append(size_type,
2091 _CharT), operator+(const _CharT*, const basic_string&),
2092 operator+(_CharT, const basic_string&), replace(iterator, iterator,
2093 size_type, _CharT), find(const _CharT*, size_type, size_type),
2094 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
2095 rfind(_CharT, size_type), compare(size_type, size_type,
2096 const basic_string&), compare(size_type, size_type,
2097 const basic_string&, size_type, size_type), compare(const _CharT*),
2098 compare(size_type, size_type, const _CharT*), compare(size_type,
2099 size_type, const _CharT*, size_type)): Likewise.
2101 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
2103 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
2104 'if' branch less obscure.
2106 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
2109 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
2111 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
2112 (__atomic_add): likewise.
2114 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2116 * include/bits/sstream.tcc (pbackfail): Minor clean up and
2117 reformatting, consistent with basic_filebuf::pbackfail.
2119 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
2122 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
2123 __attribute__ ((__unused__)).
2124 * config/os/aix/atomicity.h: Likewise.
2126 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2129 * include/bits/fstream.tcc (pbackfail): If the pback buffer
2130 is already active don't try to store in it a second char.
2131 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
2133 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
2135 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2137 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
2140 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2142 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
2143 instead of unnecessarily taking the address of _M_pback.
2144 (xsgetn): Simplify slightly for a single char pback buffer.
2146 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2148 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
2149 variables and two 'if', clean up.
2151 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2153 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
2154 not _M_out_end, since the former actually points to the string
2155 end (vs buffer end).
2156 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
2158 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
2160 * docs/doxygen/filter: New file.
2161 * docs/doxygen/filter.sed: New file.
2162 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
2163 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
2164 * docs/html/documentation.html: Fix links to doxygen pages.
2166 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
2168 * include/bits/fstream.tcc (_M_convert_to_external): Don't
2169 check for __ilen > 0.
2171 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
2174 * include/bits/stl_iterator.h (class __normal_iterator):
2175 Don't inherit from iterator, add missing typedefs.
2177 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
2179 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
2180 * testsuite/24_iterators/reverse_iterator/1.cc: New.
2181 * testsuite/24_iterators/reverse_iterator/2.cc: New.
2182 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
2185 2003-05-27 Steve Ellcey <sje@cup.hp.com>
2187 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
2189 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
2190 _LIBUNWIND_STD_ABI is set.
2192 2003-05-26 Brendan Kehoe <brendan@zen.org>
2194 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
2195 make sure the number of digits required after the decimal-point
2196 (if any) is exactly the value returned by frac_digits().
2197 * testsuite/22_locale/money_get/get/char/9.cc: New.
2198 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
2200 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
2202 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
2205 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
2208 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
2209 (_M_pback): No array necessary.
2210 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
2211 unbuffered case, coalesec into ...
2212 (basic_filebuf::overflow): ...this.
2213 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
2214 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
2216 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
2218 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
2219 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
2220 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
2221 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
2222 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
2223 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
2224 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
2225 libsupc++/eh_unex_handler.cc, libsupc++/exception,
2226 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
2227 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
2228 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
2229 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
2230 Replace "GNU CC" with "GCC".
2232 * include/backward/new.h: Replace "GNU CC" with "GCC".
2234 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
2237 * configure.in: Switch target to host, don't assume newlib.
2238 (target_alias): Remove.
2239 * configure: Regenerate.
2240 * acinclude.m4: Same.
2241 * aclocal.m4: Regenerate.
2242 * configure.target: Same. Rename to...
2243 * configure.host: This.
2245 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
2247 * include/std/std_fstream.h (_S_pback_size): Remove definition.
2248 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
2250 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
2251 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
2252 of _S_pback_size for systems with no COMDAT or weak support.
2253 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
2254 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
2255 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
2256 * testsuite/27_io/basic_fstream/3.cc: Likewise.
2257 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2258 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
2259 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
2260 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
2261 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
2263 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
2265 * include/bits/fstream.tcc (_M_underflow): Simplify:
2266 !__testout implies _M_filepos == _M_in_end, therefore
2267 the first _M_file.seekoff call is never issued.
2269 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
2271 * configure.in: Sort cross table.
2272 * configure: Regenerate.
2274 2003-05-22 Brad Spencer <spencer@infointeractive.com>
2277 * configure.in: Add Solaris cross bits.
2279 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2281 * libstdc++-v3/config/os/mingw32/os_defines.h
2282 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
2283 (NOMINMAX): Define. Update copyright year.
2285 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
2287 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
2289 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
2291 * docs/html/faq/index.html: Fix typo.
2292 * docs/html/faq/index.txt: Regenerate.
2294 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
2296 * docs/html/test.html: Fix markup.
2298 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2300 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
2302 Update copyright year.
2304 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
2306 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
2308 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
2310 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
2311 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
2313 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2315 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
2316 Cast via void* to avoid -Wcast-align warnings.
2317 (__default_alloc_template::_S_refill): Likewise.
2319 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
2321 * testsuite/README: Move to...
2322 * docs/html/test.html: ...here. Add documentation.
2323 * docs/html/install.html: Move testing bits out..
2324 * docs/html/documentation.html: Add separate testing link.
2325 * testsuite/performance: Add.
2326 * testsuite/performance/allocator.cc: New.
2327 * testsuite/performance/complex_norm.cc: New.
2328 * testsuite/performance/cout_insert_int.cc: New.
2329 * testsuite/performance/fstream_seek_write.cc: New.
2330 * testsuite/performance/ifstream_getline.cc: New.
2331 * testsuite/performance/map_create_fill.cc: New.
2332 * testsuite/performance/ofstream_insert_float.cc: New.
2333 * testsuite/performance/ofstream_insert_int.cc: New.
2334 * testsuite/performance/string_append.cc: New.
2335 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
2338 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
2341 * include/std/std_complex.h (pow): Tidy.
2343 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
2345 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
2346 that upon filebuf::close() 27.8.1.1,3 is enforced.
2348 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
2350 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
2352 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
2353 Nathan Myers <ncm@cantrip.org>
2355 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
2356 _M_convert_to_external only once (_M_buf_size is now the size of
2357 the put area + 1 for the overflow char of a full area); call
2358 _M_set_buffer instead of _M_set_indeterminate.
2359 (setbuf): Don't accept a buffer smaller than 2 chars.
2360 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
2361 instead of _M_set_determinate.
2362 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
2363 (seekoff): Likewise.
2364 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
2365 std::ios_base::openmode, bool, size_t),
2366 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
2368 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
2369 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
2371 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
2372 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
2373 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
2374 the put area is now BUFSIZ - 1.
2375 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
2376 that now the smallest _M_buf_size is 2 (still fails, for the same
2379 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
2381 * testsuite/thread/pthread4.cc: Tweak test.
2383 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
2385 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
2386 excess errors dg marker, use dg-errors instead.
2387 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
2388 * testsuite/20_util/auto_ptr_neg.cc: Same.
2390 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2392 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
2394 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
2395 Initialize _M_codecvt.
2396 (basic_filebuf::imbue): Same.
2397 (basic_filebuf::showmanyc): Use it.
2398 (basic_filebuf::underflow): Use it.
2399 (basic_filebuf::_M_convert_to_external): Use it.
2400 (basic_filebuf::seekoff): Use it.
2401 (basic_filebuf::imbue): Use it, tweaks.
2402 * include/bits/localefwd.h (__check_facet): New.
2403 * include/bits/locale_classes.h: Tweaks.
2404 * include/bits/locale_facets.tcc: Tweaks.
2405 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
2406 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
2407 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
2408 * include/bits/basic_ios.tcc: Same.
2409 * include/bits/istream.tcc: Same.
2410 * include/bits/ostream.tcc: Same.
2411 * include/std/std_streambuf.h: Same.
2412 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
2413 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
2414 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
2415 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
2416 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
2417 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
2419 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
2421 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
2422 unnecessary includes and unused string literals.
2423 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2424 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2425 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2426 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2428 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2430 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
2432 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
2434 * include/std/std_fstream.h (_M_convert_to_external): Change
2435 to return bool, take two less streamsize parameters.
2436 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
2437 consistently definition.
2438 (_M_overflow): Adjust call points.
2440 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2442 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
2444 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
2446 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
2447 * testsuite/Makefile.in: Regenerate.
2449 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
2451 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
2452 * testsuite/Makefile.in: Regenerate.
2454 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2457 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
2458 (acos): Handle integer argument.
2477 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
2478 (__enable_if): Likewise.
2479 * testsuite/26_numerics/cmath/overloads.C: New test.
2481 2003-05-10 Petur Runolfsson <peturr02@ru.is>
2486 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
2487 implementation, based on old wchar_t specialization, add support
2488 for codecvt::in() return value of codecvt_base::noconv, remove
2489 _M_file.sys_ungetc() call.
2490 * include/std/std_fstream.h (basic_file::underflow,
2491 basic_file::uflow, basic_file::_M_underflow): Remove
2492 specialization declarations, call _M_underflow from generic versions
2493 of underflow and uflow.
2494 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
2495 basic_file::_M_underflow): Remove specializations.
2496 * src/Makefile.am (sources): Remove fstream.cc.
2497 * src/Makefile.in: Regenerated.
2498 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
2499 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
2500 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
2501 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
2503 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
2505 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
2507 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
2509 (__basic_file::xsputn): Same.
2510 (__basic_file::seekoff): Same.
2511 (__basic_file::seekpos): Same.
2512 (__basic_file::showmanyc): Same.
2513 * config/io/basic_file_stdio.cc: Same.
2514 * include/std/std_fstream.h: Same.
2515 * include/bits/fstream.tcc: Same.
2516 * src/fstream.cc: Same.
2517 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
2519 2003-05-10 Petur Runolfsson <peturr02@ru.is>
2524 * include/ext/stdio_sync_filebuf.h: New file.
2525 (basic_stdiobuf): New.
2526 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
2527 * include/Makefile.in: Regenerate.
2528 * include/bits/ios_base.h (Init::_S_create_buffers,
2529 Init::_S_destroy_buffers): Remove declarations.
2530 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
2531 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
2532 * src/ios.cc (Init::_S_create_buffers,
2533 Init::_S_destroy_buffers): Remove.
2534 (Init::Init): Create and use syncronized buffers.
2535 (ios_base::sync_with_stdio): Destroy syncronized buffers,
2536 create and install unsyncronized buffers.
2537 * testsuite/27_io/objects/char/10.cc: New test.
2538 * testsuite/27_io/objects/char/9.cc: New test.
2539 * testsuite/27_io/objects/char/9661-1.cc: New test.
2540 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
2541 * testsuite/27_io/objects/char/9661-2_xin.in: New.
2542 * testsuite/27_io/objects/wchar_t/1.cc: New test.
2543 * testsuite/27_io/objects/wchar_t/10.cc: New test.
2544 * testsuite/27_io/objects/wchar_t/2.cc: New test.
2545 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
2546 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
2547 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
2548 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
2549 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
2550 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
2551 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
2552 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
2553 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
2554 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
2555 * testsuite/27_io/objects/wchar_t/5.cc: New test.
2556 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
2557 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
2558 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
2559 * testsuite/27_io/objects/wchar_t/6.cc: New test.
2560 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
2561 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
2562 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
2563 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
2564 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
2565 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
2566 * testsuite/27_io/objects/wchar_t/7.cc: New test.
2567 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
2568 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
2569 * testsuite/27_io/objects/wchar_t/8.cc: New test.
2570 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
2571 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
2572 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
2573 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
2574 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
2575 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
2576 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
2577 * testsuite/ext/stdiobuf_char.cc: New test.
2578 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
2580 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
2582 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
2583 unnecessary includes and unused string literals.
2584 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2586 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
2588 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
2590 2003-05-07 Richard Henderson <rth@redhat.com>
2593 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
2594 (__cxa_end_catch): Likewise.
2595 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
2596 _Unwind_Resume_or_Rethrow.
2597 * libsupc++/eh_personality.cc (empty_exception_spec): New.
2598 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
2599 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
2600 exceptions. Don't push terminate/unexpected to cxa functions.
2601 (__cxa_call_unexpected): Remove foreign exception fixmes.
2603 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
2605 * testsuite/27_io/ios_base/cons: New.
2606 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
2607 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
2609 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
2611 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
2613 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
2614 there is no buffer or __testget == !__testinit.
2617 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
2618 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
2620 * include/std/std_fstream.h (_M_destroy_pback): Don't set
2621 unnecessarily _M_pback_cur_save and _M_pback_end_save.
2623 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
2625 * include/std/std_sstream.h (_M_sync): Minor tweak.
2627 * include/bits/fstream.tcc (close): No need to call
2628 _M_destroy_pback, setting _M_pback_init to false suffices
2631 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
2633 * include/bits/stl_algo.h: Enums as _S_.
2634 * include/bits/stl_tree.h: Same.
2635 * include/bits/stl_bvector.h: Same.
2636 * include/bits/ios_base.h: Same.
2637 * include/bits/stl_alloc.h: Same.
2638 * include/ext/stl_hashtable.h: Same.
2639 * src/ios.cc: And here.
2641 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
2642 * include/bits/sstream.tcc: Same.
2644 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
2646 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
2648 * include/bits/locale_facets.h (__num_base): Remove protected.
2649 Use _S_[io]* names for enumerations.
2650 (_S_format_int): Remove.
2651 * include/bits/locale_facets.tcc: Same.
2652 * src/locale.cc: Same.
2654 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
2656 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
2658 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
2659 * docs/html/faq/index.txt: Regenerated.
2661 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
2662 Matt Kraai <kraai@alumni.cmu.edu>
2664 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
2667 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
2669 * configure.target (mips*): Use the generic atomicity.h by default.
2671 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
2672 (Inspired by an alternate patch from Danny Smith.)
2674 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
2675 (_Swap_lock_struct<>): ...and the horse it rode in on.
2676 * src/globals.cc (_Swap_lock_struct<>): Likewise.
2677 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
2678 member to support...
2679 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
2680 visibility rules related to POSIX threads.
2681 * testsuite/thread/pthread7-rope.cc: New test.
2683 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
2685 * testsuite/21_strings/basic_string/find/char/3.cc: New
2686 file, testing basic_string<char>::find_first_not_of.
2687 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
2688 Likewise for basic_string<wchar_t>.
2690 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
2692 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
2694 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
2696 * include/Makefile.am (CLEANFILES): Remove PCH files in target
2698 * include/Makefile.in: Regenerate.
2700 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
2702 * include/std/std_sstream.h (str()): Tidy.
2704 2003-05-02 Nathan Myers <ncm@cantrip.org>
2705 Paolo Carlini <pcarlini@unitus.it>
2707 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
2709 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
2711 * include/bits/basic_string.h (swap): Remove redundant template
2712 parameters from declaration of non-template member function.
2714 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
2716 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
2717 * configure.in: Move libintl.h header test...
2718 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
2719 the NLS-related test results into one symbol.
2720 * src/functexcept.cc: Use it here.
2721 * aclocal.m4, config.h.in, configure: Regenerated.
2723 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2725 * include/bits/sstream.tcc (overflow): Instead of calling
2726 str(), then _M_string.reserve, thus copying the contents
2727 of the current buffer two times, just copy the latter in
2728 a temporary, then use the 'swap trick'.
2730 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2732 * include/std/std_sstream.h (str()): Revert the best of the
2733 previous 'improvement', incorrect due to the COW nature of
2734 v3 basic_string; simplify.
2736 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2738 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
2739 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
2741 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
2743 * testsuite/abi_check.cc (check_version): Update known versions.
2744 Check added symbols for version_name != base version. Add missing
2745 symbols to incompatible list.
2747 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
2749 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
2750 * aclocal.m4: Regenerated.
2751 * configure: Regenerated.
2753 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2755 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
2756 Const-ify some variables.
2757 (basic_streambuf::xsputn): Likewise; change the type of some
2758 variables to size_t.
2759 (__copy_streambufs): Change some variables to size_t.
2761 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2763 * include/std/std_sstream.h (str()): Avoid constructing
2764 a basic_string temporary not only when it would turn out
2765 to be zero-sized but also when identical to the current
2768 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2770 * include/ext/stdio_filebuf.h
2771 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
2772 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
2773 Shorten a bit (-10 lines) by factoring out some code.
2775 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
2777 * acinclude.m4: Add bit missing from previous patch.
2778 * aclocal.m4, configure: Regenerated.
2780 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
2782 * docs/doxygen/mainpage.html: Bring up to date.
2783 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
2785 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
2786 breaks everything. Don't scan them.
2787 * docs/html/documentation.html: Point to "Write after approval"
2790 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
2792 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
2793 of libc if message translations are being used. Fix info text in
2794 xieee_1003.1-2001 case.
2795 * aclocal.m4, configure: Regenerate.
2797 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
2798 Loren J. Rittle <ljrittle@acm.org>
2799 Martin v. Loewis <martin@v.loewis.de>
2801 * config/cpu/i386/atomicity.h: New file.
2803 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
2805 * include/bits/fstream.tcc (open): Change to single return.
2807 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
2809 * include/std/std_sstream.h (underflow): Change to single return.
2811 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2813 * include/std/std_streambuf.h (_M_buf): is currently
2814 used only for basic_filebuf, therefore move it there.
2815 (basic_streambuf(), ~basic_streambuf()): Adjust.
2816 * include/std/std_fstream.h (_M_buf): Moved here.
2817 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
2818 is actually redundant for basic_stringbuf.
2819 (_M_really_sync): Likewise.
2820 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2821 * include/bits/sstream.tcc (seekoff): Adjust.
2823 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2825 * src/localename.cc: Standardize exception strings.
2826 * src/locale.cc: Same.
2828 * include/bits/basic_string.tcc: Same.
2829 * include/bits/basic_ios.tcc: Same.
2830 * include/std/std_bitset.h: Same.
2831 * include/ext/ropeimpl.h: Same.
2832 * include/bits/stl_vector.h: Same.
2833 * include/bits/stl_deque.h: Same.
2834 * include/bits/stl_bvector.h: Same.
2835 * config/locale/generic/c_locale.cc: Same.
2836 * config/locale/gnu/c_locale.cc: Same.
2837 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
2839 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
2841 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2843 * include/std/std_streambuf.h (_M_buf_size): is currently
2844 used only for basic_filebuf, therefore move it there.
2845 (basic_streambuf(), ~basic_streambuf()): Adjust.
2846 * include/std/std_fstream.h (_M_buf_size): Moved here.
2847 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2849 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2851 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
2852 _M_buf_size (synced input is now correctly dealt with
2853 elsewhere); when the output buffer is full don't fall back
2854 to a snextc-sputc loop, call overflow instead.
2856 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2858 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
2859 the innermost 'if' by factoring out some code.
2861 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
2863 * configure.in: Test for libintl.h.
2864 * include/bits/c++config: Define __N for everybody.
2865 * include/bits/basic_string.h, include/bits/stl_bvector.h,
2866 include/bits/stl_deque.h, include/bits/stl_vector.h,
2867 include/std/std_bitset.h: Wrap all __throw* text with __N.
2868 * po/Makefile.am (pot): New rule, mostly working.
2869 * src/functexcept.cc: Call gettext on all __throw* arguments when
2870 -fexceptions is in effect.
2871 * po/Makefile.in, config.h.in, configure: Regenerate.
2873 2003-04-28 Petur Runolfsson <peturr02@ru.is>
2876 * include/bits/ios_base.h (Init::_S_ios_create,
2877 Init::_S_ios_destroy): Remove declarations.
2878 (Init::_S_create_buffers,
2879 Init::_S_destroy_buffers): Declare
2880 * src/ios.cc (Init::_S_ios_create): Remove
2881 (Init::_S_create_buffers): Create buffers and add to streams.
2882 (Init::_S_ios_destroy): Rename to...
2883 (Init::_S_destroy_buffers): this.
2884 (Init::Init): Only construct streams once.
2885 (Init::~Init): Flush streams, don't destroy them.
2886 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
2887 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
2888 * testsuite/27_io/objects/char/5.cc: New test.
2889 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
2890 * testsuite/27_io/objects/char/6.cc: New test.
2891 * testsuite/27_io/objects/char/7.cc: New test.
2893 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2895 * testsuite/27_io/objects/char/8.cc: New test.
2897 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2899 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
2900 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
2902 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
2904 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
2905 _M_destroy_pback. _M_pback_create to
2906 _M_create_pback. _M_underflow_common to
2907 _M_underflow. _M_really_overflow to _M_overflow.
2908 * include/bits/fstream.tcc: Same.
2909 * src/fstream.cc: Same.
2910 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
2911 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
2912 * include/bits/streambuf.tcc: Same.
2913 * include/bits/fstream.tcc: Same.
2914 * include/bits/sstream.tcc: Same.
2916 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
2918 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
2919 from fixed size array.
2920 (locale): Change _S_categories as well.
2922 * include/bits/locale_facets.tcc: Tweak.
2923 * config/locale/gnu/c_locale.cc: Assign _S_categories.
2924 * config/locale/generic/c_locale.cc: Same.
2925 * src/locale.cc: Tweak.
2926 * src/globals.cc: Change facet_name to name_vec, add names_c.
2927 * src/localename.cc: Use them.
2928 (locale::_Impl::~_Impl): Destroy _M_names.
2929 (locale::_Impl::_Impl): Create _M_names.
2931 2003-04-27 Andreas Schwab <schwab@suse.de>
2933 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2934 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
2936 2003-04-27 Nathan Myers <ncm@cantrip.org>
2938 Move some basic_string members out of line because
2939 they are too big to reasonably be inline.
2940 * include/bits/basic_string.h
2941 (assign(const basic_string&, size_type, size_type),
2942 assign(const _CharT*, size_type),
2943 insert(size_type, const basic_string&, size_type, size_type),
2944 insert(size_type, const _CharT*, size_type),
2945 replace(size_type, size_type, const _CharT*, size_type)):
2946 Move from here to...
2947 * include/bits/basic_string.tcc: ...here.
2949 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
2951 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
2952 the innermost 'if' by factoring out some code.
2954 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
2956 * include/bits/streambuf.tcc (__copy_streambufs): Don't
2957 use in_avail(), simplify.
2959 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
2961 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
2962 in basic_stringbuf it's unused.
2964 * include/std/std_sstream.h (underflow): consistently use
2965 _M_in_cur, not gptr().
2967 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
2968 Phil Edwards <pme@gcc.gnu.org>
2970 * testsuite_flags.in: Guard against the possibility
2971 of having "xgcc" as a part of a folder name in the
2972 path to the GCC build folder.
2973 * testsuite/Makefile.am: Likewise.
2974 * testsuite/Makefile.in: Regenerated.
2976 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
2979 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
2980 exception specifications.
2981 (basic_filebuf::close): Same.
2982 (basic_filebuf::_M_pback_destroy): Same.
2983 (basic_filebuf::_M_destroy_internal_buffer): Same.
2984 (basic_filebuf): Remove __res_type typedef.
2985 * src/fstream.cc: Same.
2986 * include/bits/fstream.tcc
2987 (basic_filebuf::_M_convert_to_external): Simplify.
2988 (basic_filebuf::seekoff): Use has_facet before use_facet.
2989 (basic_filebuf::close): Add exception specification of throw().
2990 * testsuite/27_io/basic_filebuf/cons: New.
2991 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
2992 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
2993 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
2994 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
2996 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
2998 * include/bits/locale_classes.h
2999 (locale::_S_extra_categories_size): Remove.
3000 * src/locale.cc: Remove _S_extra_categories_size.
3001 * src/localename.cc: Same.
3002 * config/locale/gnu/c_locale.cc: Same.
3003 * config/locale/generic/c_locale.cc: Same.
3005 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
3007 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
3009 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
3011 * docs/html/17_intro/howto.html: Update some links.
3012 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
3013 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
3014 * docs/html/ext/howto.html: Link to demangler notes and API.
3015 * docs/html/faq/index.html: Remove trailing whitespace.
3016 (1.4, 2.4, 3.8, 4.1): Bring up to date.
3017 (5.6): Change to a bulleted list.
3019 * docs/html/faq/index.txt, docs/html/documentation.html,
3020 docs/html/17_intro/porting.html: Regenerate.
3022 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
3024 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
3025 belongs to basic_filebuf.
3026 * testsuite/27_io/basic_fstream/3.cc: Likewise.
3027 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3028 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
3029 instantiation (now belongs to basic_filebuf).
3030 * testsuite/27_io/basic_iostream/3.cc: Likewise.
3031 * testsuite/27_io/basic_istream/3.cc: Likewise.
3032 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3033 _S_pback_size now belongs to basic_filebuf.
3034 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
3035 instantiation (now belongs to basic_filebuf).
3036 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
3037 belongs to basic_filebuf.
3038 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
3039 instantiation (now belongs to basic_filebuf).
3040 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
3041 _S_pback_size now belongs to basic_filebuf.
3042 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
3043 instantiation (now belongs to basic_filebuf).
3044 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
3046 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
3047 instantiation (now belongs to basic_filebuf).
3048 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
3050 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
3052 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
3053 * configure: Regenerated.
3055 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
3057 * config/locale/generic/c_locale.h (__convert_from_v): Use
3060 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
3062 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
3063 implementation only.
3064 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
3065 Comment and change to comply with DR 60 and the effect on gcount().
3066 * include/std/std_istream.h: Update comments.
3067 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
3068 comments about reasons for tests. Test sync() against gcount().
3069 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
3070 for effect on gcount().
3071 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
3072 for effect on gcount().
3074 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
3076 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
3079 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
3081 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
3082 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3083 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
3084 (basic_streambuf::basic_streambuf()): Adjust.
3085 * include/std/std_fstream.h (_S_pback_size, _M_pback,
3086 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3087 _M_pback_create(), _M_pback_destroy()): Moved here
3088 from basic_streambuf.
3089 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
3091 (basic_filebuf::_S_pback_size): Add declaration.
3092 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
3095 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3097 Consistently use _M_in_beg instead of eback(), _M_in_cur
3098 instead of gptr(), and so on.
3099 * include/bits/fstream.tcc (pbackfail, imbue): Here.
3100 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
3101 * include/bits/streambuf.tcc (sbumpc, sputbackc,
3102 __copy_streambufs): Ditto.
3103 * include/std/std_streambuf.h (sgetc): Ditto.
3105 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3107 * include/bits/sstream.tcc (pbackfail, overflow):
3110 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3112 * include/std/std_streambuf.h (uflow()): It's used only by
3113 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
3114 therefore do not consider the _M_buf_unified == true case.
3116 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
3118 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
3120 * docs/html/ext/howto.html ('LWG Issues'):
3121 Add issues 19, 90, 171, 231, 271.
3123 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
3125 * include/bits/sstream.tcc (pbackfail): Remove redundant
3126 NULL pointer check from test involving _M_in_*.
3127 (overflow, seekoff, seekpos): Const qualify bool variables.
3128 * include/std/std_sstream.h (underflow): Remove redundant
3129 NULL pointer check from test involving _M_in_*.
3130 (_M_really_sync): Const qualify bool variables.
3131 * src/fstream.cc (_M_underflow_common): Remove redundant
3132 NULL pointer check from test involving _M_in_*, const qualify
3135 * include/std/std_streambuf.h (sgetc): Remove redundant
3138 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
3140 According to 5.9 para 2 (second bullet) for pointers p, q
3141 pointing to the same type, with p == 0 and q == 0, (p < q)
3143 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
3144 seekoff): Remove redundant NULL pointer checks from tests
3145 involving _M_out_* and _M_in_*, const qualify bool variables.
3146 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
3147 qualify bool variables.
3148 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
3149 Remove redundant NULL pointer checks from tests involving
3150 _M_out_* and _M_in_*, const qualify bool variables.
3151 * include/std/std_fstream.h (sync): Likewise.
3152 (_M_is_indeterminate): Const qualify bool variables.
3153 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
3154 NULL pointer checks from tests involving _M_out_* and _M_in_*,
3155 const qualify bool variables.
3156 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
3159 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
3161 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
3162 C99 FP macros, if actually captured.
3164 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
3165 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3166 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3167 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3168 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
3170 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3171 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3172 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3173 * include/c_std/std_cstdlib.h: Use new macros.
3174 * include/c_std/std_cstdio.h: Use new macros.
3175 * include/c_std/std_cwchar.h: Use new macros.
3177 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
3180 * include/bits/ostream.tcc: Catch all exceptions for formatted
3181 output, instead of std::exception and derivatives.
3182 * include/bits/istream.tcc: Same.
3183 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
3184 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
3185 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
3186 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
3187 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3188 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
3191 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
3193 * include/bits/c++config: Minor cosmetic tweaks.
3195 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
3197 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
3198 * include/Makefile.am (pch_input): Find in ${target_builddir}.
3199 (pch_output): Rename to...
3200 (pch_output_builddir): ..this. Find in ${target_builddir}.
3201 (pch_source): Tweak.
3202 (pch_build): Key off a built file.
3203 (pch_output rule): Rename to...
3204 (pch_input rule): ...this. Produce ${pch_output_builddir}
3205 instead of ${pch_output}.
3206 (install-pch rule): Install ${pch_output_builddir}.
3207 * include/Makefile.in: Regenerated.
3209 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
3211 * include/std/std_streambuf.h (setp): _M_out_lim, being
3212 the end limit of used put area, is set equal to _M_out_beg.
3214 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
3216 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
3217 * aclocal.m4: Regenerated.
3218 * configure.in: Remove old demangler bits.
3220 * configure: Regenerate.
3221 * config.h.in: Regenerate.
3222 * include/Makefile.am (allstamps): Now allstamped.
3223 (allcreated): Define this.
3224 (all-local): Use 'em.
3225 Conditionally define pch_build, pch_install based on
3227 (${pch_output}): New rule.
3228 (install-pch): New rule.
3229 (install-headers): New rule.
3230 (install-data-local): Install headers and conditionally pch.
3231 * include/Makefile.in: Regenerate.
3232 * testsuite_flags.in (--build-cxx): Use pch file.
3234 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
3236 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
3238 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
3239 Paolo Carlini <pcarlini at unitus dot it>
3242 * docs/html/27_io/howto.html
3243 ('The buffering is screwing up my program!'): Explain that
3244 opening counts as an I/O operation.
3246 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
3248 * testsuite/thread/pthread1.cc: Enable for darwin test.
3249 * testsuite/thread/pthread2.cc: Same.
3250 * testsuite/thread/pthread3.cc: Same.
3251 * testsuite/thread/pthread4.cc: Same.
3252 * testsuite/thread/pthread5.cc: Same.
3253 * testsuite/thread/pthread6.cc: Same.
3255 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
3258 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
3259 Populate it with multiple legal ways to obtain the C99 float
3260 transcendentals. Use them instead of direct global reference.
3261 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
3262 * docs/html/17_intro/porting.texi
3263 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3264 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3265 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
3266 * config/os/bsd/freebsd/os_defines.h
3267 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3268 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3269 * testsuite/26_numerics/c_math_dynamic.cc: New file.
3271 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
3272 Benjamin Kosnik <bkoz@redhat.com>
3274 * config/os/generic/ctype_inline.h: Fix.
3276 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
3278 * testsuite/testsuite_hooks.h
3279 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
3280 Change to try_named_locale.
3281 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
3283 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
3285 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3286 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3287 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
3288 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
3289 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
3290 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
3291 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
3292 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
3293 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
3294 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
3295 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
3296 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
3297 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
3298 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
3299 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
3300 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3301 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3302 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3303 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
3304 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.