1 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
3 * acinclude.m4: Properly quote variable which will be expanded
4 inside makefiles. Use CXX instead of CC to extract compiler info.
5 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
6 correct form in PACKAGE.
7 * aclocal.m4, configure: Regenerate.
9 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
11 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
12 (check-abi-verbose): Same.
13 * testsuite/testsuite_performance.h (report_performance): Same.
15 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
17 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
19 2003-08-07 Doug Gregor <dgregor@apple.com>
21 * include/bits/char_traits.h (char_traits::not_eof): Match operand
24 2003-08-07 Bernardo Innocenti <bernie@develer.com>
27 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
28 Replace variants with new BSET-based version.
30 2003-08-07 Carlo Wood <carlo@alinoe.com>
32 * include/bits/demangle.h: Do not use cctype functions that depend
35 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
37 * configure.in: Rename...
38 * configure.ac: ...to this.
39 * docs/html/17_intro/porting.texi: Update name.
41 * docs/html/17_intro/porting.html: Regenerate.
42 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
43 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
44 testsuite/Makefile.in: Regenerate (picks up new dependancy).
46 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
48 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
49 pipe, open the window to let out the fumes, redo the option-handling
50 logic to properly execute the detection test.
51 * aclocal.m4, configure: Regenerate.
53 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
55 Convert to new autotools.
56 * acconfig.h: Update with correct names.
57 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
58 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
59 * configure.in: Update. Split hardcoded cross-configury settings
61 * crossconfig.m4: ...here. New file. Contents untouched.
62 * acinclude.m4: Reorganize and rewrite as needed. Split large
64 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
66 * scripts/testsuite_flags.in: Update.
68 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
69 variables (already generated by automake).
70 * include/Makefile.am: Ditto.
71 * libmath/Makefile.am: Ditto.
72 * libsupc++/Makefile.am: Ditto.
73 * po/Makefile.am: Ditto.
74 * src/Makefile.am: Ditto.
76 * aclocal.m4: Regenerate using new versions.
80 * include/Makefile.in: Ditto.
81 * libmath/Makefile.in: Ditto.
82 * libsupc++/Makefile.in: Ditto.
83 * po/Makefile.in: Ditto.
84 * src/Makefile.in: Ditto.
85 * testsuite/Makefile.in: Ditto.
87 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
89 * po/libstdc++.pot: Re-extract/regenerate.
91 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
93 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
94 Remove unneeded variable assignments. Leave them for automake.
95 * testsuite/lib/libstdc++-v3.exp: Rename...
96 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
98 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
99 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
102 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
104 * docs/doxygen/guide.html: run_doxygen uses bash.
105 * docs/doxygen/mainpage.html: We'll be shipping tag files.
106 * docs/doxygen/run_doxygen: Tweaks and improvements.
107 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
108 * docs/html/install.html: Update autoconf/automake requirements.
109 * docs/html/test.html: Add section describing DejaGNU support.
110 * docs/html/17_intro/confdeps.dot: New file, generates...
111 * docs/html/17_intro/confdeps.png: ...this new file.
112 * docs/html/Makefile: Generated here.
113 * docs/html/17_intro/configury.html: New file.
115 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
117 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
118 * testsuite/lib/libstdc++-v3.exp: ...to this.
119 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
121 2003-07-31 Doug Gregor <dgregor@apple.com>
123 Add user specialization tests.
124 * testsuite/23_containers/deque/1.cc: New.
125 * testsuite/23_containers/list/1.cc: New.
126 * testsuite/23_containers/map/1.cc: New.
127 * testsuite/23_containers/multimap/1.cc: New.
128 * testsuite/23_containers/multiset/1.cc: New.
129 * testsuite/23_containers/set/1.cc: New.
130 * testsuite/23_containers/vector/1.cc: New.
132 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
134 Reshuffle 23_containers testsuite.
135 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
136 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
137 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
138 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
139 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
140 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
141 vector_resize.cc: Split into...
142 * 23_containers/bitset/cons/1.cc: New.
143 * 23_containers/bitset/cons/6282.cc: New.
144 * 23_containers/bitset/count/6124.cc: New.
145 * 23_containers/bitset/operations/1.cc: New.
146 * 23_containers/bitset/operations/2.cc: New.
147 * 23_containers/bitset/test/1.cc: New.
148 * 23_containers/bitset/to_ulong/1.cc: New.
149 * 23_containers/deque/cons/1.cc: New.
150 * 23_containers/deque/cons/2.cc: New.
151 * 23_containers/deque/operators/1.cc: New.
152 * 23_containers/list/capacity/1.cc: New.
153 * 23_containers/list/cons/1.cc: New.
154 * 23_containers/list/cons/2.cc: New.
155 * 23_containers/list/cons/3.cc: New.
156 * 23_containers/list/cons/4.cc: New.
157 * 23_containers/list/cons/5.cc: New.
158 * 23_containers/list/cons/6.cc: New.
159 * 23_containers/list/cons/7.cc: New.
160 * 23_containers/list/cons/8.cc: New.
161 * 23_containers/list/cons/9.cc: New.
162 * 23_containers/list/modifiers/1.cc: New.
163 * 23_containers/list/modifiers/2.cc: New.
164 * 23_containers/list/modifiers/3.cc: New.
165 * 23_containers/list/operators/1.cc: New.
166 * 23_containers/list/operators/2.cc: New.
167 * 23_containers/list/operators/3.cc: New.
168 * 23_containers/list/operators/4.cc: New.
169 * 23_containers/map/insert/1.cc: New.
170 * 23_containers/map/operators/1.cc: New.
171 * 23_containers/map/operators/1_neg.cc: New.
172 * 23_containers/multiset/insert/1.cc: New.
173 * 23_containers/priority_queue/members/7161.cc: New.
174 * 23_containers/queue/members/7157.cc: New.
175 * 23_containers/set/operators/1_neg.cc: New.
176 * 23_containers/stack/members/7158.cc: New.
177 * 23_containers/vector/bool/1.cc: New.
178 * 23_containers/vector/bool/6886.cc: New.
179 * 23_containers/vector/capacity/1.cc: New.
180 * 23_containers/vector/capacity/2.cc: New.
181 * 23_containers/vector/capacity/8230.cc: New.
182 * 23_containers/vector/cons/1.cc: New.
183 * 23_containers/vector/cons/2.cc: New.
184 * 23_containers/vector/cons/3.cc: New.
185 * 23_containers/vector/cons/4.cc: New.
186 * 23_containers/vector/cons/6513.cc: New.
187 * 23_containers/vector/element_access/1.cc: New.
188 * 23_containers/vector/modifiers/1.cc: New.
189 * 23_containers/vector/modifiers/2.cc: New.
190 * 23_containers/vector/resize/1.cc: New.
192 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
194 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
196 * testsuite/thread/pthread2.cc: Likewise.
197 * testsuite/thread/pthread3.cc: Likewise.
198 * testsuite/thread/pthread4.cc: Likewise.
199 * testsuite/thread/pthread5.cc: Likewise.
200 * testsuite/thread/pthread6.cc: Likewise.
201 * testsuite/thread/pthread7-rope.cc: Likewise.
203 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
205 * include/bits/c++config: Partial reversion (comment placement) of
208 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
210 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
211 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
212 (_GLIBCXX_AT_AT): Remove.
213 (__USE_MALLOC): Remove.
214 * include/std/std_fstream.h: Modify.
215 * include/bits/basic_ios.h: Same.
216 * include/bits/valarray_array.h: Same.
217 * include/c_std/std_cmath.h: Same.
218 * include/c_std/cmath.tcc: Same.
219 * include/std/std_vector.h: Same.
220 * include/std/std_string.h: Same.
221 * include/std/std_stack.h: Same.
222 * include/std/std_queue.h: Same.
223 * include/std/std_list.h: Same.
224 * include/std/std_deque.h: Same.
225 * include/std/std_streambuf.h: Same.
226 * include/std/std_sstream.h: Same.
227 * include/std/std_ostream.h: Same.
228 * include/std/std_istream.h: Same.
229 * include/bits/valarray_array.tcc: Same, format.
231 * include/c/std_cctype.h: Fix include guards.
232 * include/c/std_cerrno.h: Same.
233 * include/c/std_cfloat.h: Same.
234 * include/c/std_climits.h: Same.
235 * include/c/std_clocale.h: Same.
236 * include/c/std_cmath.h: Same.
237 * include/c/std_csetjmp.h: Same.
238 * include/c/std_csignal.h: Same.
239 * include/c/std_cstdarg.h: Same.
240 * include/c/std_cstddef.h: Same.
241 * include/c/std_cstdio.h: Same.
242 * include/c/std_cstdlib.h: Same.
243 * include/c/std_cstring.h: Same.
244 * include/c/std_ctime.h: Same.
245 * include/c/std_cwchar.h: Same.
246 * include/c/std_cwctype.h: Same.
247 * include/c_std/cmath.tcc: Same.
248 * include/c_std/std_cmath.h: Same.
250 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
253 * include/bits/stl_tree.h: Replace C-style casts with C++-style
254 casts. Changes to avoid casting away constness. Eliminate
255 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
256 initialization lists. Move out implementation of __black_count()
258 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
259 Rename_Rb_tree_base_iterator::_M_increment() to
260 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
262 * config/linker-map.gnu: Add and change symbols here.
264 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
266 * docs/html/22_locale/howto.html: Use locale::classic() instead
269 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
271 * testsuite/testsuite_hooks.h: Remove list include.
272 (func_callback): Define as unique type, not std::list.
273 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
274 * testsuite/libstdc++-v3.dg/dg.exp: Same.
275 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
276 * testsuite/23_containers/bitset_ctor.cc:
277 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
278 * testsuite/18_support/numeric_limits.cc: Same.
279 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
280 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
281 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
282 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
283 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
284 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
285 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
286 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
287 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
288 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
289 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
290 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
291 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
292 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
293 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
294 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
295 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
296 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
297 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
298 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
299 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
300 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
301 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
302 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
303 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
304 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
305 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
306 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
307 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
308 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
309 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
310 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
311 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
312 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
313 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
314 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
315 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
316 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
317 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
318 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
319 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
320 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
321 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
322 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
323 * testsuite/23_containers/bitset_ctor.cc: Same.
324 * testsuite/23_containers/bitset_shift.cc: Same.
325 * testsuite/23_containers/vector_ctor.cc: Same.
326 * testsuite/23_containers/vector_element_access.cc: Same.
327 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
328 * testsuite/24_iterators/iterator.cc: Same.
329 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
330 * testsuite/25_algorithms/lower_bound.cc: Same.
331 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
332 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
333 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
334 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
335 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
336 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
337 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
338 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
339 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
340 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
341 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
344 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
346 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
347 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
348 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
349 GLIBCPP to GLIBCXX (and explain as needed).
351 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
355 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
357 * testsuite/22_locale/messages/members/char/1.cc,
358 testsuite/22_locale/messages/members/char/2.cc,
359 testsuite/22_locale/messages/members/char/3.cc,
360 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
361 the origin of LOCALEDIR.
362 * testsuite/lib/libstdc++-v3.exp: New file.
364 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
366 * include/bits/char_traits.h: Update copyright, tweak.
367 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
370 2003-07-24 Matt Austern <austern@apple.com>
372 * /include/bits/char_traits.h (class char_traits): Put all the
373 real work into the new class template __gnu_cxx::char_traits.
374 Gave generic definitions for member functions. Types are taken
375 from the new class template __gnu_cxx::_Char_types.
376 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
377 file. Test of std::char_traits<short>, which serves as a test of
378 the char_traits primary template.
380 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
382 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
384 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
386 * testsuite/23_containers/map_operators.cc: Conform to
387 container requirement as value must be Assignable.
389 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
391 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
392 tests not only generation of pch files, but also their use.
393 * aclocal.m4, configure: Rebuilt.
395 2003-07-23 Steve Ellcey <sje@cup.hp.com>
397 * config/cpu/hppa/atomicity.h: Change
398 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
399 to match misc-inst.cc
401 2003-07-23 Steve Ellcey <sje@cup.hp.com>
403 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
404 * include/c_std/std_cctype.h: Ditto.
405 * include/c_std/std_cerrno.h: Ditto.
406 * include/c_std/std_cfloat.h: Ditto.
407 * include/c_std/std_climits.h: Ditto.
408 * include/c_std/std_clocale.h: Ditto.
409 * include/c_std/std_cmath.h: Ditto.
410 * include/c_std/std_csetjmp.h: Ditto.
411 * include/c_std/std_csignal.h: Ditto.
412 * include/c_std/std_cstdarg.h: Ditto.
413 * include/c_std/std_cstddef.h: Ditto.
414 * include/c_std/std_cstdio.h: Ditto.
415 * include/c_std/std_cstdlib.h: Ditto.
416 * include/c_std/std_cstring.h: Ditto.
417 * include/c_std/std_ctime.h: Ditto.
418 * include/c_std/std_cwchar.h: Ditto.
419 * include/c_std/std_cwctype.h: Ditto.
420 * include/std/std_algorithm.h: Ditto.
421 * include/std/std_bitset.h: Ditto.
422 * include/std/std_complex.h: Ditto.
423 * include/std/std_deque.h: Ditto.
424 * include/std/std_fstream.h: Ditto.
425 * include/std/std_functional.h: Ditto.
426 * include/std/std_iomanip.h: Ditto.
427 * include/std/std_ios.h: Ditto.
428 * include/std/std_iosfwd.h: Ditto.
429 * include/std/std_iostream.h: Ditto.
430 * include/std/std_istream.h: Ditto.
431 * include/std/std_iterator.h: Ditto.
432 * include/std/std_limits.h: Ditto.
433 * include/std/std_list.h: Ditto.
434 * include/std/std_locale.h: Ditto.
435 * include/std/std_map.h: Ditto.
436 * include/std/std_memory.h: Ditto.
437 * include/std/std_numeric.h: Ditto.
438 * include/std/std_ostream.h: Ditto.
439 * include/std/std_queue.h: Ditto.
440 * include/std/std_set.h: Ditto.
441 * include/std/std_sstream.h: Ditto.
442 * include/std/std_stack.h: Ditto.
443 * include/std/std_stdexcept.h: Ditto.
444 * include/std/std_streambuf.h: Ditto.
445 * include/std/std_string.h: Ditto.
446 * include/std/std_utility.h: Ditto.
447 * include/std/std_valarray.h: Ditto.
448 * include/std/std_vector.h: Ditto.
450 2003-07-22 Doug Gregor <dgregor@apple.com>
452 * include/bits/basic_string.h (basic_string::insert): Deprecate
455 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
457 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
459 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
460 (test03): Include typeinfo for bad_cast.
461 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
462 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
463 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
465 2003-07-21 Doug Gregor <dgregor@apple.com>
467 * include/bits/boost_concept_check.h:
468 (_EqualityComparableConcept::__constraints): Remove != from the
469 list of constraints; it is not listed in Table 28 of the C++98
472 2003-07-18 Andreas Jaeger <aj@suse.de>
474 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
475 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
476 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
477 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
479 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
481 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
482 * config/locale/generic/messages_members.h: Tweaks.
483 * config/locale/generic/monetary_members.cc
484 (moneypunct::_M_initialize_moneypunct): Use cache.
485 (moneypunct::~moneypunct): Delete cache.
486 * config/locale/generic/time_members.cc:
487 (__timepunct::_M_initialize_timepunct): Use cache.
488 * config/locale/generic/time_members.h:
489 (__timepunct::~__timepunct): Delete cache.
490 (__timepunct::__timepunct): Set cache.
491 * config/locale/gnu/messages_members.h: Tweaks.
492 * config/locale/gnu/monetary_members.cc:
493 (moneypunct::_M_initialize_moneypunct): Use cache.
494 (moneypunct::~moneypunct): Delete cache.
495 * config/locale/gnu/time_members.cc:
496 (__timepunct::_M_initialize_timepunct): Use cache.
497 * config/locale/gnu/time_members.h:
498 (__timepunct::~__timepunct): Delete cache.
499 (__timepunct::__timepunct): Set cache.
500 * include/bits/locale_facets.h (__timepunct_cache): New.
501 (__moneypunct_cache): New.
502 * include/bits/locale_facets.tcc: Tweak.
503 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
504 * src/locale-inst.cc: Instantiate caches.
505 * src/globals.cc: Add "C" caches.
506 * src/localename.cc: Use external "C" caches.
508 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
510 * docs/doxygen/guide.html: Fix typo.
512 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
514 * include/ext/pod_char_traits.h: Add state template argument.
516 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
518 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
519 (num_get::_M_convert_int): To _M_insert_int.
520 (num_get::_M_convert_float): To _M_insert_float.
521 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
522 Use caches for ctype, num_get.
523 (num_get::_M_extract_int): Same.
524 (num_get::get(bool)): Same.
525 (__verify_grouping): Use size_t.
526 * src/locale-inst.cc: Update.
527 * src/locale.cc: Adjust _S_atoms_in.
529 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
531 * docs/doxygen/mainpage.html: Move building/writing instructions...
532 * docs/doxygen/guide.html: ...to here. New file.
534 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
536 * docs/html/ext/howto.html: Update URL for SGI STL docs.
537 * docs/html/faq/index.html: Same.
538 * docs/html/faq/index.txt: Regenerate.
540 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
543 * include/bits/locale_facets.tcc (money_get::do_get):
544 Strip only _leading_ zeros.
545 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
546 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
548 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
550 * include/ext/hash_map (class hash_multimap): Remove extra
551 semicolons from __glibcxx_class_requires3 entries.
552 * include/ext/hash_set (class hash_set): Ditto.
553 (class hash_multiset): Ditto.
555 2003-07-15 Petur Runolfsson <peturr02@ru.is>
557 * include/bits/char_traits.h (char_traits<wchar_t>::move):
558 Change last parameter from int_type to size_t.
560 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
562 * include/bits/stl_algo.h (includes, set_union, set_intersection,
563 set_difference, set_symmetric_difference, max_element, min_element,
564 next_permutation, prev_permutation, find_first_of, find_end):
566 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
567 restrictions in docs.
568 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
570 * docs/doxygen/doxygroups.cc (setoperations): New group.
572 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
574 * include/bits/basic_string.h: Document public functions.
575 * docs/doxygen/TODO: Update c21 todo.
577 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
579 * include/bits/stl_list.h: Document more functions.
580 * docs/doxygen/TODO: Update c23 todo.
582 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
584 * config/locale/gnu/c_locale.h (__convert_from_v): One more
587 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
589 * include/bits/stl_tempbuf.h: Qualify free with std::.
590 * src/locale.cc: Include <cstdlib>, qualify getenv.
592 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
594 * config/locale/gnu/c_locale.h (__convert_from_v): Include
595 <cstdio>. Qualify names.
596 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
598 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
599 Nathan C. Myers <ncm-nospam@cantrip.org>
602 * include/std/std_fstream.h (xsputn): Declare only.
603 * include/bits/fstream.tcc (xsputn): Define, optimize for the
604 always_noconv() case: when __n is sufficiently large flush
605 the buffer and issue a direct write, if possible combining the
606 two with writev in __basic_file<>::xsputn_2.
607 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
609 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
611 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
612 the availability of writev in <sys/uio.h>.
613 * configure.in: Call here.
614 * acconfig.h: Add undef for the corresponding symbol.
615 * aclocal.m4: Regenerate.
616 * configure: Regenerate.
617 * config.h.in: Regenerate.
618 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
620 * include/std/std_fstream.h (sync): Constify a variable.
622 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
624 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
625 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
627 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
629 * config/locale/gnu/c_locale.h (__convert_from_v): Include
630 <cstring> and <cstdlib>. Qualify names.
632 2003-07-13 Mark Mitchell <mark@codesourcery.com>
634 * config/locale/generic/c_locale.h: Include <cstdlib> and
636 * include/bits/boost_concept_check.h: Add this-> to unqualified
638 * include/bits/deque.tcc: Likewise.
639 * include/bits/locale_facets.h : Likewise.
640 * include/bits/ostream.tcc: Likewise.
641 * include/bits/stl_algo.h: Likewise.
642 * include/bits/stl_bvector.h: Likewise.
643 * include/bits/stl_deque.h: Likewise.
644 * include/bits/stl_list.h: Likewise.
645 * include/bits/stl_tree.h: Likewise.
646 * include/bits/stl_vector.h: Likewise.
647 * include/bits/vector.tcc: Likewise.
648 * include/ext/rope: Likewise.
649 * include/ext/ropeimpl.h: Likewise.
650 * include/ext/stdio_filebuf.h: Likewise.
652 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
654 * include/bits/basic_ios.h (copyfmt): Document.
655 * include/bits/ios_base.h (event, event_callback, register_callback,
656 xalloc, iword, pword): Document.
657 (imbue, ~ios_base): Update docs on callbacks.
659 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
661 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
662 warning messages if the environment cannot support symbol versioning.
663 (port_specific_symbol_file): It's plural, add an 's' on the end.
664 * configure.host: Likewise.
665 * src/Makefile.am: Likewise.
666 * config/linker-map.gnu: Remove one semicolon, heh.
667 * scripts/extract_symvers: Don't assume useful 'export' syntax.
668 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
669 * aclocal.m4, configure, src/Makefile.in: Regenerated.
671 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
673 * include/bits/locale_facets.tcc: Use function object for
674 __use_cache instead of template function. Partially specialize for
676 * include/bits/locale_classes.h: Update friend declaration for
678 (_M_install_cache): No throw exception specs.
679 * src/locale.cc: Remove __use_cache specializations.
680 * include/ext/pod_char_traits.h (length): Tweak.
681 * include/bits/locale_facets.h (__numpunct_cache): Remove
683 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
685 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
686 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
687 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
688 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
689 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
690 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
692 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
694 * src/ios.cc (_M_grow_words): Fix spelling.
696 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
698 * include/bits/stl_tree.h: Move larger member functions in
699 _Rb_tree_base_iterator and _Rb_tree_node to...
700 * src/stl_tree.cc: Here.
701 * src/Makefile.in: Add stl_tree.cc.
702 * src/Makefile.in: Regenerated.
703 * config/linker-map.gnu: Add symbols here.
705 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
707 * testsuite/ext/pod_char_traits.cc: New.
708 * include/ext/pod_char_traits.h: New.
709 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
710 * include/Makefile.in: Regenerate.
711 * docs/html/21_strings/howto.html: Update.
713 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
715 * testsuite/performance/list_create_fill_sort.cc: New.
717 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
719 * config/locale/generic/numeric_members.cc: Correct type info.
720 * config/locale/gnu/numeric_members.cc: Same.
721 * include/bits/locale_facets.h: Same.
723 * include/bits/char_traits.h: Correct spacing.
725 * src/locale.cc: Wrap to 80 col.
727 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
729 * include/std/std_complex.h: Partially revert last
730 changes: cmath functions must not be qualified.
732 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
734 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
735 2.11 with globbing backport fix.
736 * aclocal.m4, configure: Regenerated.
738 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
740 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
741 if output is at all possible (!_M_reading), cannot be active.
743 * include/std/std_fstream.h: Tweak comments to doxygen style.
745 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
747 * include/bits/locale_classes.h: Fully qualify standard
748 functions with std::, thus avoiding Koenig lookup.
749 * include/bits/locale_facets.tcc: Likewise.
750 * src/locale.cc: Likewise.
751 * src/localename.cc: Likewise.
753 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
755 * include/bits/allocator_traits.h: Fix doxygen markup.
756 * include/ext/mt_allocator.h: Likewise.
758 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
760 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
762 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
764 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
765 requirement. Add port_specific_symbol_file variable.
766 * configure.host: Add docs for port_specific_symbol_file.
767 Clean up try_cpu block for x86.
768 * config/linker-map.gnu: No more "last symbol can't have a
769 semicolon" kaka. Add hook for port-specific symbols.
770 * src/Makefile.am: Remove trailing whitespace.
771 (libstdc++-symbol.ver): Detect the presence of port-specific
772 symbols, and add them accordingly.
774 * docs/html/17_intro/porting.texi: Bring up to date.
776 * src/Makefile.in, aclocal.m4, configure,
777 docs/html/17_intro/porting.html: Regenerated.
779 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
781 * scripts/create_testsuite_files: New file.
782 * testsuite/Makefile.am (all-local, check-performance): Use it.
783 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
784 * testsuite/Makefile.in: Regenerated.
786 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
788 * testsuite/performance/fstream_seek_write.cc: Likewise.
789 * testsuite/performance/ofstream_insert_float.cc: Likewise.
790 * testsuite/performance/ofstream_insert_int.cc: Likewise.
791 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
793 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
795 * include/bits/stl_list.h: Performance and memory usage
796 improvements. In particular, the behaviour of the constructor and
797 destructor as the list header node is no longer dynamically
798 allocated/de-allocated.
799 * include/bits/list.tcc: Likewise.
801 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
803 * include/std/std_complex.h: Fully qualify standard
804 functions with std::, thus avoiding Koenig lookup.
805 * include/std/std_memory.h: Likewise.
806 * include/std/std_valarray.h: Likewise.
808 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
810 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
811 variable for grandparent and use const
813 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
815 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
816 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
817 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
818 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
819 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
820 * testsuite/27_io/objects/char/7.cc: Ditto
821 * testsuite/27_io/objects/char/9661-1.cc: Ditto
823 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
825 * include/std/std_bitset.h: Fully qualify standard
826 functions with std::, thus avoiding Koenig lookup.
828 * include/std/std_fstream.h: Change comment to doxygen style.
830 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
832 * include/std/std_limits.h: More CPP->CXX changes.
833 * scripts/check_survey.in: Likewise.
835 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
837 Move from CPP to CXX.
838 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
839 * testsuite/Makefile.am: Same.
840 * testsuite/Makefile.in: Regenerate.
841 * po/Makefile.am: Same.
842 * po/Makefile.in: Regenerate.
843 * libsupc++/Makefile.am: Same.
844 * libsupc++/Makefile.in: Regenerate.
845 * libmath/Makefile.am: Same.
846 * libmath/Makefile.in: Regenerate.
847 * include/Makefile.am: Same.
848 * include/Makefile.in: Regenerate.
849 * src/Makefile.am: Same.
850 * src/Makefile.in: Regenerate.
852 * configure.host: Same.
853 * configure.in: Same.
854 * configure: Regenerate.
855 * acinclude.m4: Same.
857 * src: Change all files in this directory.
859 * include: Same, standardize include guards.
863 2003-07-04 Zack Weinberg <zack@codesourcery.com>
865 * testsuite/22_locale/collate/compare/wchar_t/2.cc
866 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
867 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
868 * testsuite/22_locale/collate/hash/wchar_t/2.cc
869 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
870 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
871 * testsuite/22_locale/collate/transform/wchar_t/2.cc
872 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
873 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
874 XFAIL on all targets.
876 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
878 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
879 * aclocal.m4: Regenerate.
880 * configure: Regenerate.
882 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
884 * include/bits/locale_facets.tcc (__int_to_char): Move common case
887 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
888 Petur Runolfsson <peturr02@ru.is>
890 * config/io/basic_file_stdio.cc: Revert.
892 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
894 * include/bits/deque.tcc: Fully qualify standard
895 functions with std::, thus avoiding Koenig lookup.
896 * include/bits/gslice_array.h: Likewise.
897 * include/bits/indirect_array.h: Likewise.
898 * include/bits/list.tcc: Likewise.
899 * include/bits/mask_array.h: Likewise.
900 * include/bits/slice_array.h: Likewise.
902 2003-07-04 Gawain Bolton <gbolton@free.fr>
904 * include/bits/stl_tree.h: Performance and memory usage
907 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
909 * Makefile.am: Replace PWD with PWD_COMMAND.
910 * Makefile.in: Regenerated.
911 * docs/html/Makefile: Likewise.
913 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
915 * include/bits/valarray_array.h: Fully qualify standard
916 functions with std::, thus avoiding Koenig lookup.
917 * include/bits/vector.tcc: Likewise.
919 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
921 * include/Makefile.am: Update target_ to host_.
922 * include/Makefile.in: Regenerate.
923 * src/Makefile.am: Same.
924 * src/Makefile.in: Regenerate.
926 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
928 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
930 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
931 --enable-libstdcxx-debug-flags.
932 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
933 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
934 * aclocal.m4: Regenerate.
936 * docs/html/configopts.html: Update.
938 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
940 Revert the fix for libstdc++/11378.
942 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
945 * include/std/std_fstream.h (xsputn): In the unbuffered case,
946 provided always_noconv(), issue directly _M_file.xsputn.
947 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
949 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
951 * include/bits/stl_list.h: Fully qualify standard
952 functions with std::, thus avoiding Koenig lookup.
953 * include/bits/stl_queue.h: Likewise.
954 * include/bits/stl_raw_storage_iter.h: Likewise.
955 * include/bits/stl_tempbuf.h: Likewise.
956 * include/bits/stl_tree.h: Likewise.
957 * include/bits/stl_uninitialized.h: Likewise.
958 * include/bits/stl_vector.h: Likewise.
959 * include/ext/rope: Change includes order.
961 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
963 * configure.host (fpos_include_dir): Fix.
965 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
967 * include/bits/stl_heap.h: Fully qualify standard
968 functions with std::, thus avoiding Koenig lookup.
969 * include/bits/stl_iterator_base_funcs.h: Likewise.
971 * include/bits/stl_algo.h: Qualify __iterator_category too.
972 * include/bits/stl_algobase.h: Likewise.
973 * include/bits/stl_bvector.h: Likewise.
975 * include/bits/stl_algo.h: Don't qualify the pair type.
977 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
979 * include/Makefile.am (target_headers): Add fpos.h
980 (bits_headers): Remove.
981 * include/Makefile.in: Regenerate.
982 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
983 * configure: Regenerate.
984 * configure.host: Add fpos_include_dir.
985 * config/os/gnu-linux/fpos.h: New.
986 * config/os/generic/fpos.h: Add.
987 * include/bits/fpos.h: Remove.
989 * config/io/c_io_stdio.h: Remove fpos_t typedef.
991 * include/bits/fstream.tcc: Tweaks.
992 * include/std/std_fstream.h: Same.
994 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
995 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
996 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
997 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
998 * testsuite/27_io/fpos/1.cc: New.
1000 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
1001 Petur Runolfsson <peturr02@ru.is>
1003 * include/std/std_streambuf.h: Remove _M_pos.
1004 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
1005 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
1006 use fread/fwrite instead of read/write.
1007 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
1008 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
1009 before reading again.
1010 * testsuite/27_io/objects/char/6.cc: Tweak.
1012 2003-07-03 David Edelsohn <edelsohn@gnu.org>
1014 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
1015 _GLIBCPP_USE_WCHAR_T.
1017 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1019 * include/bits/basic_string.tcc (_M_replace_aux): Constify
1022 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1024 * include/bits/stl_bvector.h: Fully qualify standard
1025 functions with std::, thus avoiding Koenig lookup.
1026 * include/bits/stl_construct.h: Likewise.
1027 * include/bits/stl_deque.h: Likewise.
1029 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1031 * testsuite/22_locale/num_put/put/char/7.cc: Include
1032 <testsuite_hooks.h>, tweak.
1033 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
1035 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
1037 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
1038 check* targets, but not libs/programs).
1039 * testsuite/Makefile.in: Regenerate.
1041 2003-07-01 Roger Sayle <roger@eyesopen.com>
1043 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
1044 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
1045 * aclocal.m4: Regenerate.
1046 * configure: Regenerate.
1048 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
1050 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
1051 * aclocal.m4: Regenerated.
1052 * configure: Regenerated.
1054 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
1057 * include/bits/fstream.tcc (underflow): For encoding() == 0
1058 don't read more than __buflen chars.
1059 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
1060 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
1061 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
1062 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
1064 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
1066 * 22_locale/num_put/put/char/7.cc: New.
1067 * 22_locale/num_put/put/wchar_t/7.cc: New.
1069 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
1071 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
1072 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
1074 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1076 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
1077 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
1078 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
1079 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
1080 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
1081 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
1082 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
1083 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
1084 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
1085 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
1086 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
1087 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
1088 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
1089 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
1090 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
1091 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
1092 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
1093 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
1094 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
1095 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
1096 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
1097 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
1098 * data/seekoff-1.tst: Remove.
1099 * data/seekoff-1io.tst: New.
1100 * data/seekoff-1out.tst: New.
1101 * data/seekoff-2.tst: Remove.
1102 * data/seekoff-2io.tst: New.
1103 * data/seekoff-2out.tst: New.
1105 * data/seekpos-1.tst: Remove.
1106 * data/seekpos-1io.tst: New.
1107 * data/seekpos-1out.tst: New.
1108 * data/seekpos-2.tst: Remove.
1109 * data/seekpos-2io.tst: New.
1110 * data/seekpos-2out.tst: New.
1111 * data/seekpos.txt: New.
1113 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
1115 * src/locale.cc (__use_cache<numpunct>): Move from here ...
1116 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
1119 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1121 * include/bits/stl_algobase.h: Fully qualify standard
1122 functions with std::, thus avoiding Koenig lookup.
1124 2003-06-30 Doug Gregor <dgregor@apple.com>
1126 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
1127 subscripting empty string.
1129 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
1131 * testsuite/Makefile.am (check-am): Do not override.
1132 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
1133 * testsuite/Makefile.in: Regenerate.
1135 2003-06-30 Doug Gregor <dgregor@apple.com>
1137 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
1138 Don't initialize an insert_iterator with a singular iterator.
1140 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1142 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
1143 * aclocal.m4: Regenerate.
1144 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
1145 GLIBCPP_ENABLE_PCH, default to yes.
1146 * configure: Regenerate.
1147 * docs/html/configopts.html: Add --enable-pch.
1149 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
1151 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
1152 (libstdc++-v3-init): Also set LD_RUN_PATH.
1154 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1156 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
1157 from here to filebuf and stringbuf.
1158 (~basic_streambuf()): Don't set _M_mode.
1159 (basic_streambuf()): Don't set _M_mode.
1160 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
1161 (~basic_filebuf()): Clean up.
1162 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
1163 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
1164 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
1165 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
1166 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
1167 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
1168 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
1170 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1172 * include/std/std_fstream.h (_M_underflow): Remove.
1173 (uflow): Remove, inherited from streambuf.
1174 (underflow): Only declare.
1175 * include/bits/fstream.tcc (_M_underflow): Rename to
1176 underflow, to which is equivalent for __bump == false,
1178 * include/std/std_sstream.h (_M_underflow): Remove.
1179 (uflow): Remove, inherited from streambuf.
1180 (underflow): Only declare.
1181 * include/bits/sstream.tcc (_M_underflow): Rename to
1182 underflow, to which is equivalent for __bump == false,
1185 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1187 * include/bits/stl_algo.h: Fully qualify standard functions
1188 with std::, thus avoiding Koenig lookup.
1190 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1192 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
1193 Improve type correctness-wise.
1194 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
1196 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
1198 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
1201 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1203 * include/std/std_streambuf.h (uflow): According to
1204 27.5.2.4.3,p16, don't check gptr() < egptr().
1206 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
1209 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
1210 (seekpos): Likewise.
1211 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
1213 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
1216 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
1218 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
1219 output name to libstdc++-v3-performance.sum.
1220 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
1221 * testsuite/Makefile.in: Regenerate.
1223 2003-06-27 Matthias Klose <doko@debian.org>
1225 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
1226 output of abi-check in libstdc++-v3-abi.sum.
1227 * testsuite/Makefile.in: Regenerate.
1229 2003-06-27 Krister Walfridsson <cato@df.lth.se>
1231 * config/os/bsd/netbsd/ctype_noninline.h
1232 (_C_ctype_): Declare.
1233 (ctype<char>::classic_table): Return _C_ctype_ + 1.
1234 (ctype<char>::ctype): Use classic_table.
1236 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
1237 Nathan C. Myers <ncm-nospam@cantrip.org>
1240 * include/bits/fstream.tcc (_M_underflow): Properly estimate
1241 the worst-case number of external bytes for a given get area.
1242 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
1244 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
1245 Petur Runolfsson <peturr02@ru.is>
1248 * include/bits/fstream.tcc (overflow): Properly estimate the
1249 worst-case number of external bytes for a given put area
1250 (by using codecvt::max_length()).
1251 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
1252 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
1253 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
1254 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
1256 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1258 * config/linker-map.gnu: Remove ; after __numpunct_cache.
1260 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1262 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
1263 to the imbued locale.
1264 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
1266 (num_put::_M_convert_float): Use.
1268 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1269 Jerry Quinn <jlquinn@optonline.net>
1271 * config/linker-map.gnu: Add __numpunct_cache.
1272 * config/locale/gnu/numeric_members.cc
1273 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
1274 all elements for "C" locale.
1275 (numpunct::~numpunct): Delete _M_data.
1276 * config/locale/generic/numeric_members.cc: Same.
1277 * include/bits/basic_ios.tcc
1278 (basic_ios::init): Remove __locale_cache bits.
1279 (basic_ios::_M_cache_locale): Same.
1280 * include/bits/ios_base.h: Same. Tweaks.
1281 * include/bits/locale_classes.h: Tweaks. Reorder classes.
1282 (__use_cache): Make friends with _Impl, locale.
1283 (_Impl::_M_caches): Add.
1284 (_Impl::_M_install_cache): Add.
1285 * include/bits/locale_facets.h (__numpunct_cache): New.
1286 (numpunct): Encapsulate data members in __numpunct_cache member,
1287 _M_data. Adjust virtuals.
1288 (numpunct::numpunct): New ctor for the same.
1289 (__locale_cache_base): Remove.
1290 (__locale_cache): Remove.
1291 * include/bits/locale_facets.tcc (__use_cache): New function,
1293 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
1294 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
1295 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
1296 * src/locale-inst.cc: Same. Add __numpunct_cache.
1297 * src/locale.cc: Tweak inlines.
1298 (__use_cache): Define specializations.
1299 * src/localename.cc: Use global bits.
1300 (_Impl::~Impl): Deal with __numpunct_cache destruction.
1301 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
1302 (_Impl::_M_init_facet): Take into account __numpunct_cache.
1303 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
1304 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1306 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
1307 Paolo Carlini <pcarlini@unitus.it>
1309 * testsuite/performance/filebuf_copy.cc: New, testing char
1312 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
1313 Nathan C. Myers <ncm-nospam@cantrip.org>
1315 * include/bits/fstream.tcc (_M_underflow): When the actual
1316 end of file is reached, set 'uncommitted' mode to allow a
1317 next write without an intervening seek (see C++98 27.8.1.1,2
1319 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
1321 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
1323 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1324 sputc): Move inline, from here...
1325 * include/std/std_streambuf.h: ... to here.
1327 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
1328 sputbackc, sungetc, sputc): Use __builtin_expect.
1330 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
1332 * docs/doxygen/mainpage.html: Use a useful title.
1334 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1336 * docs/html/documentation.html: Remove assignment info.
1337 * docs/html/17_intro/contribute.html: Edits.
1338 * docs/html/17_intro/libstdc++-assign.tx: Remove.
1340 * docs/html/test.html: Update.
1344 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1345 Ulrich Drepper <drepper@redhat.com>
1347 * testsuite/testsuite_performance.h: Tweak mallinfo.
1349 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
1350 Nathan C. Myers <ncm-nospam@cantrip.org>
1352 * include/std/std_fstream.h (_M_filepos): Remove.
1353 (_M_reading, _M_writing): New, encode the various I/O modes:
1354 'read', 'write' and 'uncommitted'.
1355 (sync): If there is something to flush, do it, then go to
1357 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
1358 with three different cases: __off > 0 (upon underflow),
1359 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
1361 (_M_underflow): Don't call overflow, set _M_reading to true
1363 (pbackfail): Set _M_reading to true on pback creation, tweak.
1364 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
1365 set _M_writing to true on success, tweak.
1366 (seekoff): Simplify, set _M_reading, _M_writing to false, call
1367 _M_set_buffer(-1) ('uncommitted').
1368 (open, close, setbuf): Set _M_reading, _M_writing to false and
1369 call _M_set_buffer(-1), tweak.
1370 (basic_filebuf): Don't set _M_buf_unified.
1371 (_M_destroy_internal_buffer): Don't call setg and setp.
1372 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
1373 _M_writing and _M_set_buffer(-1).
1374 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
1375 _M_out_lim, _M_buf_unified): Remove.
1376 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
1377 (setp): Don't set _M_out_lim.
1378 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
1379 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
1380 upon open the mode is 'uncommitted' and therefore the put area
1382 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
1383 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
1384 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
1385 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
1386 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
1387 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
1388 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1389 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
1390 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
1391 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
1392 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
1393 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
1394 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
1395 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
1396 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
1397 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
1398 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
1399 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
1400 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
1401 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
1403 * include/bits/fstream.tcc (showmanyc): Use only the
1404 documented derivation interface to basic_streambuf (gptr(),
1405 setg(), etc.) to work right with user specializations.
1406 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1407 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
1408 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
1410 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
1413 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
1415 * configure.host (freebsd*): Set abi_baseline_pair.
1416 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
1417 (at or near first release) to 3.3.
1418 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
1419 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
1420 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
1422 * include/ext/mt_allocator.h: Portability.
1423 * testsuite/testsuite_performance.h: Likewise.
1425 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
1427 * docs/html/17_intro/libstdc++-assign.txt: Update address.
1429 * testsuite/performance/ifstream_getline.cc: Fix.
1431 2003-06-23 Doug Gregor <dgregor@apple.com>
1433 * include/bits/boost_concept_check.h: Don't use _D or _R for type
1436 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
1437 Nathan C. Myers <ncm-nospam@cantrip.org>
1439 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
1440 is now used only for filebuf, when _M_buf_unified is true.
1441 epgtr() plays the role of _M_out_lim but it's only updated
1442 upon overflow, underflow, uflow, seekoff/pos.
1443 * include/bits/sstream.tcc (_M_underflow): New, implements
1444 stringbuf::underflow and uflow.
1445 (seekoff, seekpos): Tweak, use _M_update_egptr.
1446 * include/std/std_sstream.h (str): Rewrote, deal correctly
1447 with the new logic, in particular, when pptr() > egptr().
1448 (_M_sync): When __testout && !__testin set all the get area
1449 pointers to the current string end.
1450 (_M_update_egptr): New, internal function updating egptr()
1451 to the actual string end.
1452 (_M_underflow): New, declare.
1453 (underflow): Dispatch to _M_underflow(false).
1454 (uflow): Dispatch to _M_underflow(true).
1456 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
1457 seekpos): Use only the documented derivation interface to
1458 basic_streambuf (gptr(), setg(), etc.) to work right with
1459 user specializations.
1460 * include/std/std_sstream.h (str, _M_sync): Likewise.
1462 2003-06-20 Doug Gregor <dgregor@apple.com>
1464 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
1465 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
1466 dereference end iterator.
1467 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
1468 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
1469 index equal to the length of a string.
1470 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
1471 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
1472 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
1473 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
1474 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
1475 * testsuite/23_containers/list_modifiers.cc: Don't dereference
1476 singular reverse iterator.
1477 * testsuite/23_containers/vector_bool.cc: Don't increment singular
1479 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
1481 2003-06-20 Doug Gregor <dgregor@apple.com>
1483 * include/bits/basic_string.h (basic_string::replace): Dispatch
1484 _InputIterator version based on _Is_integer.
1485 * include/bits/basic_string.tcc (basic_string::replace):
1486 Renamed replace(iterator, iterator, size_type, _CharT) to
1488 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
1489 Test basic_string::assign(_InputIterator, _InputIterator),
1490 which calls basic_string::replace(iterator, iterator,
1491 _Input_iterator, _InputIterator).
1493 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
1495 * testsuite/testsuite_performance.h (resource_counter): Don't use
1496 mallinfo at the moment.
1498 2003-06-20 Matthias Klose <doko@debian.org>
1500 * configure.host: Set try_cpu to target_cpu for existing
1503 2003-06-19 Andreas Jaeger <aj@suse.de>
1505 * testsuite/Makefile.am (extract_symvers): Revert accidental
1507 * testsuite/Makefile.in: Regenerate.
1509 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
1510 * configure: Regenerated.
1512 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
1514 * include/std/std_sstream.h (_M_sync): Make non virtual.
1516 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
1518 * testsuite/testsuite_performance.h (time_counter): New.
1519 (resource_counter): New.
1520 (report_performance): New.
1521 (start_counters): New.
1522 (stop_counters): New.
1523 (clear_counters): New.
1524 * testsuite/performance/allocator.cc: Instrument.
1525 * testsuite/performance/cout_insert_int.cc: Same.
1526 * testsuite/performance/complex_norm.cc: Same.
1527 * testsuite/performance/filebuf_sputc.cc: New.
1528 * testsuite/performance/fstream_seek_write.cc: Same.
1529 * testsuite/performance/ifstream_getline.cc: Same.
1530 * testsuite/performance/map_create_fill.cc: Same.
1531 * testsuite/performance/ofstream_insert_float.cc: Same.
1532 * testsuite/performance/ofstream_insert_int.cc: Same.
1533 * testsuite/performance/string_append.cc: Convert.
1534 * scripts/check_performance: New.
1535 * testsuite/Makefile.am (check-performance): New.
1538 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
1539 Benjamin Kosnik <bkoz@redhat.com>
1541 * include/std/std_sstream.h (setbuf): Check __n >= 0.
1542 * include/bits/fstream.tcc (setbuf): Tweak.
1544 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
1546 * include/bits/sstream.tcc (seekoff): We can't seek beyond
1547 _M_out_lim, therefore _M_move_out_cur boils down to simply
1548 updating _M_out_cur.
1549 (seekpos): Likewise, clean up.
1551 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
1552 Paolo Carlini <pcarlini@unitus.it>
1554 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
1555 simply equivalent to the unbuffered case (0, 0) as far as
1556 _M_buf_size is concerned.
1558 2003-06-18 Andreas Jaeger <aj@suse.de>
1560 * testsuite/Makefile.am (new-abi-baseline): Create baseline
1562 (baseline_file): Use baseline_dir.
1563 (baseline_dir): New.
1564 (mkinstalldirs): New.
1566 * acinclude.m4: Rename baseline_file to baseline_dir, strip
1567 filename from baseline_dir.
1569 * testsuite/Makefile.in: Regenerated.
1570 * Makefile.in: Regenerated.
1571 * aclocal.m4: Regenerated.
1572 * configure: Regenerated.
1574 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1576 * configure.in: Missed check_survey bit.
1577 * configure: Regenerated.
1579 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1582 * config/abi/extract_symvers: Move to...
1583 * scripts/extract_symvers: ...here.
1584 * mkcheck.in: Move to..
1585 * scripts/check_survey.in: ...here.
1586 * testsuite_flags.in: Move to..
1587 * scripts/testsuite_flags.in: ...here.
1588 * configure.in: Change check and testsuite_flags locations.
1589 * configure: Regenerate.
1590 * testsuite/Makefile.am (current_symbols.txt): Change location.
1591 * testsuite/Makefile.in: Regenerate.
1592 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1593 location of testsuite_flags.
1594 * Makefile.am (check-script): Move..
1595 (check-script-install): Move...
1596 * testsuite/Makefile.am: ... here.
1597 * testsuite/Makefile.in: Regenerate.
1598 * Makefile.in: Regenerate.
1600 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1602 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
1604 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1606 * Makefile.am (check-abi): Move...
1607 (new-abi-baseline): Move...
1608 * testsuite/Makefile.am: ...here.
1609 (new-abi-baseline): Conditionalize.
1610 (check-abi): Conditionalize.
1611 (check-abi-verbose): New.
1612 * Makefile.in: Regenerate.
1613 * testsuite/Makefile.in: Regenerate.
1614 * configure.in: Consolidate testsuite configure bits.
1615 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
1616 * configure: Regenerate.
1617 * aclocal.m4: Regenerate.
1618 * testsuite/abi_check.cc: Add --check-verbose.
1619 Only output detailed information if --check-verbose.
1621 2003-06-16 Andreas Jaeger <aj@suse.de>
1623 * testsuite/abi_check.cc: Create summary report.
1625 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
1627 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
1628 for systems with BUFSIZ != 8192.
1629 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1630 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
1633 2003-06-16 Andreas Jaeger <aj@suse.de>
1635 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
1636 check-abi multilib aware.
1637 * aclocal.m4: Regenerate.
1638 * configure: Regenerate.
1640 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1641 Andreas Jaeger <aj@suse.de>
1643 * configure.host: Set x86_64 abi_baseline pair correctly.
1645 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
1647 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
1648 fix for missing seeks between gets and puts into...
1649 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
1650 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
1651 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
1652 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
1653 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
1654 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
1656 2003-06-15 Richard Henderson <rth@redhat.com>
1658 * config/linker-map.gnu: Export virtual function thunks for
1661 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
1663 * config/abi/i686-pc-linux-gnu: To..
1664 * config/abi/i486-linux-gnu: ...this.
1665 * config/abi/alphaev67-unknown-linux-gnu: To..
1666 * config/abi/alpha-linux-gnu: ...this.
1667 * config/abi/ia64-unknown-linux-gnu: To...
1668 * config/abi/ia64-linux-gnu: ...this.
1669 * config/abi/x86_64-unknown-linux-gnu: To...
1670 * config/abi/x86_64-linux-gnu: ...this.
1671 * config/abi/i386-unknown-freebsd4: To...
1672 * config/abi/i386-freebsd4: ...this.
1673 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
1675 * configure.host: abi_baseline_triplet to abi_baseline_pair.
1676 Simplify cpu bits so that abi_baseline_pair can use the same
1678 * acinclude.m4: Same.
1679 * aclocal.m4: Regenerate.
1680 * configure.in: Can't get enable_abi_check to yes unless native.
1681 * configure: Regenerate.
1683 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
1685 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
1686 fix for missing seeks between gets and puts into...
1687 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
1688 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
1689 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
1690 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
1691 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
1692 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
1693 for missing seeks between gets and puts.
1694 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
1695 * testsuite/data/seekoff-1.tst: New.
1696 * testsuite/data/seekoff-2.tst: New.
1697 * testsuite/data/seekpos-1.tst: New.
1698 * testsuite/data/seekpos-2.tst: New.
1700 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
1702 Avoid multi-processor bus contention on increment/decrement-and-
1703 test of the reference count in the empty-string object, by comparing
1704 addresses first, and never touching the reference count of the empty-
1706 * include/bits/basic_string.h:
1707 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
1709 (_Rep::_S_empty_rep()): New accessor.
1710 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
1711 a base class _Rep_base.
1712 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
1713 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
1714 since no longer must increment its refcount.
1715 * include/bits/basic_string.tcc:
1716 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
1717 return immediately. The former might be unnecessary. The latter
1718 prevents begin() and end() from cloning it unnecessarily.
1719 (_S_construct(_InIterator, _InIterator, const _Alloc&,
1720 input_iterator_tag), _S_construct(_InIterator, _InIterator,
1721 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
1722 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
1723 (_M_mutate): Check for the empty string and treat it as shared.
1724 This is necessary here because _M_mutate is sometimes called with
1725 all-zero arguments; in all other uses of _M_is_shared, the test comes
1728 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
1730 * src/allocator-inst.cc: Explicitly instantiate.
1731 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
1733 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
1735 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1737 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
1738 * aclocal.m4: Regenerate.
1739 * Makefile.am (SUBDIRS): Remove libio.
1740 * Makefile.in: Regenerate.
1741 * configure.in: Same.
1742 * configure: Regenerate.
1743 * config/io/basic_file_libio.cc: Remove.
1744 * config/io/basic_file_libio.h: Remove.
1745 * config/io/c_io_libio_codecvt.c: Remove.
1746 * config/io/c_io_libio.h: Remove.
1748 * src/Makefile.am: Same.
1749 * src/Makefile.in: Regenerate.
1750 * docs/html/configopts.html: Edits.
1751 * docs/html/explanations.html: Edits.
1753 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1755 * include/bits/stl_alloc.h (__debug_alloc): Move out.
1756 (__malloc_alloc): Same.
1757 (__pool_alloc): Same.
1758 (__new_alloc): Same.
1760 * include/bits/allocator.h: ...this.
1761 * include/bits/stl_deque.h: Modify comment.
1762 * include/bits/stl_tree.h: Modify include.
1763 * include/std/std_memory.h: Same.
1764 * include/ext/rope: Same.
1765 * include/ext/slist: Same.
1766 * include/std/std_vector.h: Same.
1767 * include/std/std_stack.h: Same.
1768 * include/std/std_queue.h: Same.
1769 * include/std/std_list.h: Same.
1770 * include/std/std_deque.h: Same.
1771 * include/backward/alloc.h: Same.
1772 * include/ext/debug_allocator.h: New.
1773 * include/ext/malloc_allocator.h: New.
1774 * include/ext/pool_allocator.h: New.
1775 * include/ext/new_allocator.h: New.
1776 * include/bits/pthread_allocimpl.h: Remove.
1777 * include/bits/stl_pthread_alloc.h: Remove.
1778 * include/Makefile.am (ext_headers): Add.
1779 * include/Makefile.in: Regenerate.
1780 * src/stl-inst.cc: Use __gnu_cxx namespace.
1781 * src/stl-inst.cc: Move to...
1782 * src/allocator-inst.cc: Here.
1783 * src/Makefile.am (sources): Update.
1784 * src/Makefile.in: Regenerate.
1785 * config/linker-map.gnu: Remove __pool_alloc bits.
1786 * testsuite/ext/headers.cc: Add.
1787 * testsuite/ext/allocators.cc: Fixup.
1789 2003-06-11 Stefan Olsson <stefan@snon.net>
1790 Ola Rönnerup <fnolis@home.se>
1792 * include/Makefile.am (ext_headers): Add.
1793 * include/Makefile.in: Regenerate.
1794 * include/ext/mt_allocator.h: New file.
1796 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1798 * include/bits/fstream.tcc (close): Clean up a bit.
1800 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
1802 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
1803 - the saved _M_in_cur, that is - cannot be null.
1804 (sync): Constify a variable.
1806 * include/std/std_streambuf.h: Tweak a comment.
1807 (in_avail): Constify a variable.
1809 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
1811 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
1812 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
1813 correctness of container::iterator typedefs. Fix whitespace.
1814 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
1816 * docs/html/documentation.html: Regenerate.
1818 * include/bits/basic_string.h, include/bits/basic_string.tcc,
1819 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
1820 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1821 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
1822 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
1823 include/bits/stl_vector.h, include/bits/vector.tcc,
1824 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
1825 Change _Iter names to _Iterator, and __pos to __position.
1827 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
1828 include/bits/stl_multiset.h, include/bits/stl_set.h:
1829 Remove emacs markers.
1831 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
1833 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1835 * include/bits/fstream.tcc (overflow): According to
1836 27.5.2.4.5, overflow() returns not_eof(eof()).
1837 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
1838 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
1840 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1842 * include/bits/fstream.tcc (_M_underflow): Check overflow return
1843 value; tweak slightly.
1845 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
1847 * include/bits/fstream.tcc (_M_underflow): Do not special
1848 case the unbuffered case, which really means simply a one char
1850 (basic_filebuf): Initialize _M_buf_size.
1851 (setbuf): Unbuffered means _M_buf_size == 1, since only
1852 _M_buf_size - 1 == 0 chars are going to be used for the
1853 put area and 1 for the get area.
1854 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
1855 (~basic_streambuf): Tweak.
1856 (basic_streambuf): Do not initialize _M_buf_size.
1857 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
1858 (~basic_filebuf): Tweak.
1859 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
1860 unbuffered situation (i.e., put area pointers NULL).
1861 * include/bits/streambuf.tcc (sbumpc): Clean up.
1862 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
1863 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
1864 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
1865 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
1866 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
1867 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
1868 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
1870 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
1872 * acinclude.m4: Move all AM_CONDITIONAL calls out.
1873 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
1875 * configure.in: Centralize AM_CONDITIONALs so that they are always
1876 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
1877 * aclocal.m4, configure: Regenerated.
1879 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
1881 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
1883 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
1885 * include/bits/stl_iterator.h
1886 (reverse_iterator::reverse_iterator()): Apply DR235: default
1887 constructor default-initializes data member. Instantiated on a
1888 pointer type, the member has to end up equal to zero.
1890 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
1892 * include/bits/stl_alloc.h: Cleanups.
1893 * include/ext/functional: Same.
1894 * include/ext/hash_map: Same.
1895 * include/ext/hash_set: Same.
1896 * include/ext/iterator: Same.
1897 * include/ext/memory: Same.
1898 * include/ext/numeric: Same.
1899 * include/ext/rb_tree: Same.
1900 * include/ext/ropeimpl.h: Same.
1901 * include/ext/slist: Same.
1902 * include/ext/stdio_filebuf.h: Same.
1903 * include/ext/stdio_sync_filebuf.h: Same.
1904 * include/ext/stl_rope.h: Move to...
1905 * include/ext/rope: ...here.
1906 * include/ext/stl_hash_fun.h: Move to...
1907 * include/ext/hash_fun.h: ...here.
1908 * include/ext/stl_hashtable.h: Move to...
1909 * include/ext/hashtable.h: ...here.
1910 * include/backward/hashtable.h: Reflect new names.
1911 * include/Makefile.am: Same.
1912 * include/Makefile.in: Regenerated.
1914 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
1917 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
1918 * include/bits/stl_algobase.h: Tweak.
1919 * include/std/std_fstream.h: Move _M_buf_size to...
1920 * include/std/std_streambuf.h: ...here. Modify.
1921 * include/bits/streambuf.tcc: Same.
1922 * testsuite/testsuite_hooks.h: Tweak.
1923 * testsuite/testsuite_io.h (constraint_filebuf): New.
1924 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
1925 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
1926 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
1927 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
1928 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
1929 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
1930 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
1931 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
1932 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
1933 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
1934 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
1935 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
1936 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
1937 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
1938 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
1939 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
1940 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
1941 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
1942 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
1943 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
1944 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
1945 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
1946 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
1947 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
1948 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
1949 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
1950 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
1951 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
1952 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
1953 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
1954 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
1955 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
1956 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
1957 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
1958 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
1959 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
1960 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
1961 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
1962 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
1963 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
1964 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
1965 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
1966 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
1967 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
1968 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
1969 * testsuite/data/sgetc.txt: New.
1970 * testsuite/data/sgetn.txt: New.
1972 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
1975 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
1976 Deal with width() smaller than zero.
1977 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
1978 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
1979 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
1980 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
1981 operator<<(basic_ostream, const basic_string&)): Likewise.
1983 * testsuite/27_io/basic_istream/extractors_character/char/
1984 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
1985 * testsuite/27_io/basic_ostream/inserters_character/char/
1986 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
1987 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
1988 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
1990 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1992 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
1993 .gch compilation works.
1994 * aclocal.m4, configure: Regenerate.
1995 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
1996 initialize PCHFLAGS.
1998 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
2000 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
2001 erase(iterator), erase(iterator, iterator), c_str,
2002 compare(const basic_string&)): Constify various variables.
2003 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
2004 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
2005 _S_create, resize, _M_replace, _M_replace_safe,
2006 append(const basic_string&), append(const basic_string&, size_type,
2007 size_type), append(const _CharT*, size_type), append(size_type,
2008 _CharT), operator+(const _CharT*, const basic_string&),
2009 operator+(_CharT, const basic_string&), replace(iterator, iterator,
2010 size_type, _CharT), find(const _CharT*, size_type, size_type),
2011 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
2012 rfind(_CharT, size_type), compare(size_type, size_type,
2013 const basic_string&), compare(size_type, size_type,
2014 const basic_string&, size_type, size_type), compare(const _CharT*),
2015 compare(size_type, size_type, const _CharT*), compare(size_type,
2016 size_type, const _CharT*, size_type)): Likewise.
2018 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
2020 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
2021 'if' branch less obscure.
2023 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
2026 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
2028 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
2029 (__atomic_add): likewise.
2031 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2033 * include/bits/sstream.tcc (pbackfail): Minor clean up and
2034 reformatting, consistent with basic_filebuf::pbackfail.
2036 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
2039 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
2040 __attribute__ ((__unused__)).
2041 * config/os/aix/atomicity.h: Likewise.
2043 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2046 * include/bits/fstream.tcc (pbackfail): If the pback buffer
2047 is already active don't try to store in it a second char.
2048 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
2050 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
2052 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2054 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
2057 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2059 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
2060 instead of unnecessarily taking the address of _M_pback.
2061 (xsgetn): Simplify slightly for a single char pback buffer.
2063 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2065 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
2066 variables and two 'if', clean up.
2068 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2070 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
2071 not _M_out_end, since the former actually points to the string
2072 end (vs buffer end).
2073 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
2075 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
2077 * docs/doxygen/filter: New file.
2078 * docs/doxygen/filter.sed: New file.
2079 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
2080 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
2081 * docs/html/documentation.html: Fix links to doxygen pages.
2083 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
2085 * include/bits/fstream.tcc (_M_convert_to_external): Don't
2086 check for __ilen > 0.
2088 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
2091 * include/bits/stl_iterator.h (class __normal_iterator):
2092 Don't inherit from iterator, add missing typedefs.
2094 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
2096 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
2097 * testsuite/24_iterators/reverse_iterator/1.cc: New.
2098 * testsuite/24_iterators/reverse_iterator/2.cc: New.
2099 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
2102 2003-05-27 Steve Ellcey <sje@cup.hp.com>
2104 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
2106 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
2107 _LIBUNWIND_STD_ABI is set.
2109 2003-05-26 Brendan Kehoe <brendan@zen.org>
2111 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
2112 make sure the number of digits required after the decimal-point
2113 (if any) is exactly the value returned by frac_digits().
2114 * testsuite/22_locale/money_get/get/char/9.cc: New.
2115 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
2117 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
2119 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
2122 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
2125 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
2126 (_M_pback): No array necessary.
2127 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
2128 unbuffered case, coalesec into ...
2129 (basic_filebuf::overflow): ...this.
2130 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
2131 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
2133 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
2135 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
2136 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
2137 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
2138 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
2139 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
2140 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
2141 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
2142 libsupc++/eh_unex_handler.cc, libsupc++/exception,
2143 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
2144 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
2145 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
2146 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
2147 Replace "GNU CC" with "GCC".
2149 * include/backward/new.h: Replace "GNU CC" with "GCC".
2151 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
2154 * configure.in: Switch target to host, don't assume newlib.
2155 (target_alias): Remove.
2156 * configure: Regenerate.
2157 * acinclude.m4: Same.
2158 * aclocal.m4: Regenerate.
2159 * configure.target: Same. Rename to...
2160 * configure.host: This.
2162 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
2164 * include/std/std_fstream.h (_S_pback_size): Remove definition.
2165 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
2167 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
2168 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
2169 of _S_pback_size for systems with no COMDAT or weak support.
2170 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
2171 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
2172 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
2173 * testsuite/27_io/basic_fstream/3.cc: Likewise.
2174 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2175 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
2176 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
2177 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
2178 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
2180 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
2182 * include/bits/fstream.tcc (_M_underflow): Simplify:
2183 !__testout implies _M_filepos == _M_in_end, therefore
2184 the first _M_file.seekoff call is never issued.
2186 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
2188 * configure.in: Sort cross table.
2189 * configure: Regenerate.
2191 2003-05-22 Brad Spencer <spencer@infointeractive.com>
2194 * configure.in: Add Solaris cross bits.
2196 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2198 * libstdc++-v3/config/os/mingw32/os_defines.h
2199 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
2200 (NOMINMAX): Define. Update copyright year.
2202 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
2204 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
2206 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
2208 * docs/html/faq/index.html: Fix typo.
2209 * docs/html/faq/index.txt: Regenerate.
2211 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
2213 * docs/html/test.html: Fix markup.
2215 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2217 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
2219 Update copyright year.
2221 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
2223 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
2225 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
2227 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
2228 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
2230 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2232 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
2233 Cast via void* to avoid -Wcast-align warnings.
2234 (__default_alloc_template::_S_refill): Likewise.
2236 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
2238 * testsuite/README: Move to...
2239 * docs/html/test.html: ...here. Add documentation.
2240 * docs/html/install.html: Move testing bits out..
2241 * docs/html/documentation.html: Add separate testing link.
2242 * testsuite/performance: Add.
2243 * testsuite/performance/allocator.cc: New.
2244 * testsuite/performance/complex_norm.cc: New.
2245 * testsuite/performance/cout_insert_int.cc: New.
2246 * testsuite/performance/fstream_seek_write.cc: New.
2247 * testsuite/performance/ifstream_getline.cc: New.
2248 * testsuite/performance/map_create_fill.cc: New.
2249 * testsuite/performance/ofstream_insert_float.cc: New.
2250 * testsuite/performance/ofstream_insert_int.cc: New.
2251 * testsuite/performance/string_append.cc: New.
2252 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
2255 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
2258 * include/std/std_complex.h (pow): Tidy.
2260 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
2262 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
2263 that upon filebuf::close() 27.8.1.1,3 is enforced.
2265 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
2267 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
2269 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
2270 Nathan Myers <ncm@cantrip.org>
2272 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
2273 _M_convert_to_external only once (_M_buf_size is now the size of
2274 the put area + 1 for the overflow char of a full area); call
2275 _M_set_buffer instead of _M_set_indeterminate.
2276 (setbuf): Don't accept a buffer smaller than 2 chars.
2277 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
2278 instead of _M_set_determinate.
2279 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
2280 (seekoff): Likewise.
2281 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
2282 std::ios_base::openmode, bool, size_t),
2283 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
2285 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
2286 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
2288 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
2289 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
2290 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
2291 the put area is now BUFSIZ - 1.
2292 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
2293 that now the smallest _M_buf_size is 2 (still fails, for the same
2296 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
2298 * testsuite/thread/pthread4.cc: Tweak test.
2300 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
2302 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
2303 excess errors dg marker, use dg-errors instead.
2304 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
2305 * testsuite/20_util/auto_ptr_neg.cc: Same.
2307 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2309 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
2311 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
2312 Initialize _M_codecvt.
2313 (basic_filebuf::imbue): Same.
2314 (basic_filebuf::showmanyc): Use it.
2315 (basic_filebuf::underflow): Use it.
2316 (basic_filebuf::_M_convert_to_external): Use it.
2317 (basic_filebuf::seekoff): Use it.
2318 (basic_filebuf::imbue): Use it, tweaks.
2319 * include/bits/localefwd.h (__check_facet): New.
2320 * include/bits/locale_classes.h: Tweaks.
2321 * include/bits/locale_facets.tcc: Tweaks.
2322 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
2323 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
2324 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
2325 * include/bits/basic_ios.tcc: Same.
2326 * include/bits/istream.tcc: Same.
2327 * include/bits/ostream.tcc: Same.
2328 * include/std/std_streambuf.h: Same.
2329 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
2330 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
2331 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
2332 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
2333 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
2334 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
2336 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
2338 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
2339 unnecessary includes and unused string literals.
2340 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2341 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2342 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2343 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2345 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2347 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
2349 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
2351 * include/std/std_fstream.h (_M_convert_to_external): Change
2352 to return bool, take two less streamsize parameters.
2353 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
2354 consistently definition.
2355 (_M_overflow): Adjust call points.
2357 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2359 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
2361 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
2363 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
2364 * testsuite/Makefile.in: Regenerate.
2366 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
2368 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
2369 * testsuite/Makefile.in: Regenerate.
2371 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2374 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
2375 (acos): Handle integer argument.
2394 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
2395 (__enable_if): Likewise.
2396 * testsuite/26_numerics/cmath/overloads.C: New test.
2398 2003-05-10 Petur Runolfsson <peturr02@ru.is>
2403 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
2404 implementation, based on old wchar_t specialization, add support
2405 for codecvt::in() return value of codecvt_base::noconv, remove
2406 _M_file.sys_ungetc() call.
2407 * include/std/std_fstream.h (basic_file::underflow,
2408 basic_file::uflow, basic_file::_M_underflow): Remove
2409 specialization declarations, call _M_underflow from generic versions
2410 of underflow and uflow.
2411 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
2412 basic_file::_M_underflow): Remove specializations.
2413 * src/Makefile.am (sources): Remove fstream.cc.
2414 * src/Makefile.in: Regenerated.
2415 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
2416 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
2417 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
2418 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
2420 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
2422 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
2424 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
2426 (__basic_file::xsputn): Same.
2427 (__basic_file::seekoff): Same.
2428 (__basic_file::seekpos): Same.
2429 (__basic_file::showmanyc): Same.
2430 * config/io/basic_file_stdio.cc: Same.
2431 * include/std/std_fstream.h: Same.
2432 * include/bits/fstream.tcc: Same.
2433 * src/fstream.cc: Same.
2434 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
2436 2003-05-10 Petur Runolfsson <peturr02@ru.is>
2441 * include/ext/stdio_sync_filebuf.h: New file.
2442 (basic_stdiobuf): New.
2443 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
2444 * include/Makefile.in: Regenerate.
2445 * include/bits/ios_base.h (Init::_S_create_buffers,
2446 Init::_S_destroy_buffers): Remove declarations.
2447 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
2448 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
2449 * src/ios.cc (Init::_S_create_buffers,
2450 Init::_S_destroy_buffers): Remove.
2451 (Init::Init): Create and use syncronized buffers.
2452 (ios_base::sync_with_stdio): Destroy syncronized buffers,
2453 create and install unsyncronized buffers.
2454 * testsuite/27_io/objects/char/10.cc: New test.
2455 * testsuite/27_io/objects/char/9.cc: New test.
2456 * testsuite/27_io/objects/char/9661-1.cc: New test.
2457 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
2458 * testsuite/27_io/objects/char/9661-2_xin.in: New.
2459 * testsuite/27_io/objects/wchar_t/1.cc: New test.
2460 * testsuite/27_io/objects/wchar_t/10.cc: New test.
2461 * testsuite/27_io/objects/wchar_t/2.cc: New test.
2462 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
2463 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
2464 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
2465 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
2466 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
2467 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
2468 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
2469 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
2470 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
2471 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
2472 * testsuite/27_io/objects/wchar_t/5.cc: New test.
2473 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
2474 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
2475 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
2476 * testsuite/27_io/objects/wchar_t/6.cc: New test.
2477 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
2478 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
2479 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
2480 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
2481 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
2482 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
2483 * testsuite/27_io/objects/wchar_t/7.cc: New test.
2484 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
2485 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
2486 * testsuite/27_io/objects/wchar_t/8.cc: New test.
2487 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
2488 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
2489 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
2490 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
2491 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
2492 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
2493 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
2494 * testsuite/ext/stdiobuf_char.cc: New test.
2495 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
2497 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
2499 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
2500 unnecessary includes and unused string literals.
2501 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2503 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
2505 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
2507 2003-05-07 Richard Henderson <rth@redhat.com>
2510 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
2511 (__cxa_end_catch): Likewise.
2512 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
2513 _Unwind_Resume_or_Rethrow.
2514 * libsupc++/eh_personality.cc (empty_exception_spec): New.
2515 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
2516 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
2517 exceptions. Don't push terminate/unexpected to cxa functions.
2518 (__cxa_call_unexpected): Remove foreign exception fixmes.
2520 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
2522 * testsuite/27_io/ios_base/cons: New.
2523 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
2524 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
2526 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
2528 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
2530 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
2531 there is no buffer or __testget == !__testinit.
2534 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
2535 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
2537 * include/std/std_fstream.h (_M_destroy_pback): Don't set
2538 unnecessarily _M_pback_cur_save and _M_pback_end_save.
2540 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
2542 * include/std/std_sstream.h (_M_sync): Minor tweak.
2544 * include/bits/fstream.tcc (close): No need to call
2545 _M_destroy_pback, setting _M_pback_init to false suffices
2548 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
2550 * include/bits/stl_algo.h: Enums as _S_.
2551 * include/bits/stl_tree.h: Same.
2552 * include/bits/stl_bvector.h: Same.
2553 * include/bits/ios_base.h: Same.
2554 * include/bits/stl_alloc.h: Same.
2555 * include/ext/stl_hashtable.h: Same.
2556 * src/ios.cc: And here.
2558 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
2559 * include/bits/sstream.tcc: Same.
2561 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
2563 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
2565 * include/bits/locale_facets.h (__num_base): Remove protected.
2566 Use _S_[io]* names for enumerations.
2567 (_S_format_int): Remove.
2568 * include/bits/locale_facets.tcc: Same.
2569 * src/locale.cc: Same.
2571 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
2573 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
2575 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
2576 * docs/html/faq/index.txt: Regenerated.
2578 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
2579 Matt Kraai <kraai@alumni.cmu.edu>
2581 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
2584 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
2586 * configure.target (mips*): Use the generic atomicity.h by default.
2588 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
2589 (Inspired by an alternate patch from Danny Smith.)
2591 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
2592 (_Swap_lock_struct<>): ...and the horse it rode in on.
2593 * src/globals.cc (_Swap_lock_struct<>): Likewise.
2594 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
2595 member to support...
2596 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
2597 visibility rules related to POSIX threads.
2598 * testsuite/thread/pthread7-rope.cc: New test.
2600 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
2602 * testsuite/21_strings/basic_string/find/char/3.cc: New
2603 file, testing basic_string<char>::find_first_not_of.
2604 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
2605 Likewise for basic_string<wchar_t>.
2607 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
2609 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
2611 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
2613 * include/Makefile.am (CLEANFILES): Remove PCH files in target
2615 * include/Makefile.in: Regenerate.
2617 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
2619 * include/std/std_sstream.h (str()): Tidy.
2621 2003-05-02 Nathan Myers <ncm@cantrip.org>
2622 Paolo Carlini <pcarlini@unitus.it>
2624 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
2626 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
2628 * include/bits/basic_string.h (swap): Remove redundant template
2629 parameters from declaration of non-template member function.
2631 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
2633 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
2634 * configure.in: Move libintl.h header test...
2635 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
2636 the NLS-related test results into one symbol.
2637 * src/functexcept.cc: Use it here.
2638 * aclocal.m4, config.h.in, configure: Regenerated.
2640 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2642 * include/bits/sstream.tcc (overflow): Instead of calling
2643 str(), then _M_string.reserve, thus copying the contents
2644 of the current buffer two times, just copy the latter in
2645 a temporary, then use the 'swap trick'.
2647 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2649 * include/std/std_sstream.h (str()): Revert the best of the
2650 previous 'improvement', incorrect due to the COW nature of
2651 v3 basic_string; simplify.
2653 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2655 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
2656 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
2658 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
2660 * testsuite/abi_check.cc (check_version): Update known versions.
2661 Check added symbols for version_name != base version. Add missing
2662 symbols to incompatible list.
2664 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
2666 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
2667 * aclocal.m4: Regenerated.
2668 * configure: Regenerated.
2670 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2672 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
2673 Const-ify some variables.
2674 (basic_streambuf::xsputn): Likewise; change the type of some
2675 variables to size_t.
2676 (__copy_streambufs): Change some variables to size_t.
2678 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2680 * include/std/std_sstream.h (str()): Avoid constructing
2681 a basic_string temporary not only when it would turn out
2682 to be zero-sized but also when identical to the current
2685 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2687 * include/ext/stdio_filebuf.h
2688 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
2689 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
2690 Shorten a bit (-10 lines) by factoring out some code.
2692 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
2694 * acinclude.m4: Add bit missing from previous patch.
2695 * aclocal.m4, configure: Regenerated.
2697 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
2699 * docs/doxygen/mainpage.html: Bring up to date.
2700 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
2702 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
2703 breaks everything. Don't scan them.
2704 * docs/html/documentation.html: Point to "Write after approval"
2707 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
2709 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
2710 of libc if message translations are being used. Fix info text in
2711 xieee_1003.1-2001 case.
2712 * aclocal.m4, configure: Regenerate.
2714 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
2715 Loren J. Rittle <ljrittle@acm.org>
2716 Martin v. Loewis <martin@v.loewis.de>
2718 * config/cpu/i386/atomicity.h: New file.
2720 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
2722 * include/bits/fstream.tcc (open): Change to single return.
2724 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
2726 * include/std/std_sstream.h (underflow): Change to single return.
2728 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2730 * include/std/std_streambuf.h (_M_buf): is currently
2731 used only for basic_filebuf, therefore move it there.
2732 (basic_streambuf(), ~basic_streambuf()): Adjust.
2733 * include/std/std_fstream.h (_M_buf): Moved here.
2734 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
2735 is actually redundant for basic_stringbuf.
2736 (_M_really_sync): Likewise.
2737 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2738 * include/bits/sstream.tcc (seekoff): Adjust.
2740 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2742 * src/localename.cc: Standardize exception strings.
2743 * src/locale.cc: Same.
2745 * include/bits/basic_string.tcc: Same.
2746 * include/bits/basic_ios.tcc: Same.
2747 * include/std/std_bitset.h: Same.
2748 * include/ext/ropeimpl.h: Same.
2749 * include/bits/stl_vector.h: Same.
2750 * include/bits/stl_deque.h: Same.
2751 * include/bits/stl_bvector.h: Same.
2752 * config/locale/generic/c_locale.cc: Same.
2753 * config/locale/gnu/c_locale.cc: Same.
2754 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
2756 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
2758 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2760 * include/std/std_streambuf.h (_M_buf_size): is currently
2761 used only for basic_filebuf, therefore move it there.
2762 (basic_streambuf(), ~basic_streambuf()): Adjust.
2763 * include/std/std_fstream.h (_M_buf_size): Moved here.
2764 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2766 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2768 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
2769 _M_buf_size (synced input is now correctly dealt with
2770 elsewhere); when the output buffer is full don't fall back
2771 to a snextc-sputc loop, call overflow instead.
2773 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2775 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
2776 the innermost 'if' by factoring out some code.
2778 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
2780 * configure.in: Test for libintl.h.
2781 * include/bits/c++config: Define __N for everybody.
2782 * include/bits/basic_string.h, include/bits/stl_bvector.h,
2783 include/bits/stl_deque.h, include/bits/stl_vector.h,
2784 include/std/std_bitset.h: Wrap all __throw* text with __N.
2785 * po/Makefile.am (pot): New rule, mostly working.
2786 * src/functexcept.cc: Call gettext on all __throw* arguments when
2787 -fexceptions is in effect.
2788 * po/Makefile.in, config.h.in, configure: Regenerate.
2790 2003-04-28 Petur Runolfsson <peturr02@ru.is>
2793 * include/bits/ios_base.h (Init::_S_ios_create,
2794 Init::_S_ios_destroy): Remove declarations.
2795 (Init::_S_create_buffers,
2796 Init::_S_destroy_buffers): Declare
2797 * src/ios.cc (Init::_S_ios_create): Remove
2798 (Init::_S_create_buffers): Create buffers and add to streams.
2799 (Init::_S_ios_destroy): Rename to...
2800 (Init::_S_destroy_buffers): this.
2801 (Init::Init): Only construct streams once.
2802 (Init::~Init): Flush streams, don't destroy them.
2803 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
2804 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
2805 * testsuite/27_io/objects/char/5.cc: New test.
2806 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
2807 * testsuite/27_io/objects/char/6.cc: New test.
2808 * testsuite/27_io/objects/char/7.cc: New test.
2810 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2812 * testsuite/27_io/objects/char/8.cc: New test.
2814 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2816 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
2817 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
2819 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
2821 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
2822 _M_destroy_pback. _M_pback_create to
2823 _M_create_pback. _M_underflow_common to
2824 _M_underflow. _M_really_overflow to _M_overflow.
2825 * include/bits/fstream.tcc: Same.
2826 * src/fstream.cc: Same.
2827 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
2828 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
2829 * include/bits/streambuf.tcc: Same.
2830 * include/bits/fstream.tcc: Same.
2831 * include/bits/sstream.tcc: Same.
2833 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
2835 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
2836 from fixed size array.
2837 (locale): Change _S_categories as well.
2839 * include/bits/locale_facets.tcc: Tweak.
2840 * config/locale/gnu/c_locale.cc: Assign _S_categories.
2841 * config/locale/generic/c_locale.cc: Same.
2842 * src/locale.cc: Tweak.
2843 * src/globals.cc: Change facet_name to name_vec, add names_c.
2844 * src/localename.cc: Use them.
2845 (locale::_Impl::~_Impl): Destroy _M_names.
2846 (locale::_Impl::_Impl): Create _M_names.
2848 2003-04-27 Andreas Schwab <schwab@suse.de>
2850 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2851 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
2853 2003-04-27 Nathan Myers <ncm@cantrip.org>
2855 Move some basic_string members out of line because
2856 they are too big to reasonably be inline.
2857 * include/bits/basic_string.h
2858 (assign(const basic_string&, size_type, size_type),
2859 assign(const _CharT*, size_type),
2860 insert(size_type, const basic_string&, size_type, size_type),
2861 insert(size_type, const _CharT*, size_type),
2862 replace(size_type, size_type, const _CharT*, size_type)):
2863 Move from here to...
2864 * include/bits/basic_string.tcc: ...here.
2866 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
2868 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
2869 the innermost 'if' by factoring out some code.
2871 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
2873 * include/bits/streambuf.tcc (__copy_streambufs): Don't
2874 use in_avail(), simplify.
2876 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
2878 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
2879 in basic_stringbuf it's unused.
2881 * include/std/std_sstream.h (underflow): consistently use
2882 _M_in_cur, not gptr().
2884 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
2885 Phil Edwards <pme@gcc.gnu.org>
2887 * testsuite_flags.in: Guard against the possibility
2888 of having "xgcc" as a part of a folder name in the
2889 path to the GCC build folder.
2890 * testsuite/Makefile.am: Likewise.
2891 * testsuite/Makefile.in: Regenerated.
2893 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
2896 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
2897 exception specifications.
2898 (basic_filebuf::close): Same.
2899 (basic_filebuf::_M_pback_destroy): Same.
2900 (basic_filebuf::_M_destroy_internal_buffer): Same.
2901 (basic_filebuf): Remove __res_type typedef.
2902 * src/fstream.cc: Same.
2903 * include/bits/fstream.tcc
2904 (basic_filebuf::_M_convert_to_external): Simplify.
2905 (basic_filebuf::seekoff): Use has_facet before use_facet.
2906 (basic_filebuf::close): Add exception specification of throw().
2907 * testsuite/27_io/basic_filebuf/cons: New.
2908 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
2909 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
2910 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
2911 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
2913 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
2915 * include/bits/locale_classes.h
2916 (locale::_S_extra_categories_size): Remove.
2917 * src/locale.cc: Remove _S_extra_categories_size.
2918 * src/localename.cc: Same.
2919 * config/locale/gnu/c_locale.cc: Same.
2920 * config/locale/generic/c_locale.cc: Same.
2922 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
2924 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
2926 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
2928 * docs/html/17_intro/howto.html: Update some links.
2929 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
2930 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
2931 * docs/html/ext/howto.html: Link to demangler notes and API.
2932 * docs/html/faq/index.html: Remove trailing whitespace.
2933 (1.4, 2.4, 3.8, 4.1): Bring up to date.
2934 (5.6): Change to a bulleted list.
2936 * docs/html/faq/index.txt, docs/html/documentation.html,
2937 docs/html/17_intro/porting.html: Regenerate.
2939 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
2941 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
2942 belongs to basic_filebuf.
2943 * testsuite/27_io/basic_fstream/3.cc: Likewise.
2944 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2945 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
2946 instantiation (now belongs to basic_filebuf).
2947 * testsuite/27_io/basic_iostream/3.cc: Likewise.
2948 * testsuite/27_io/basic_istream/3.cc: Likewise.
2949 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
2950 _S_pback_size now belongs to basic_filebuf.
2951 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
2952 instantiation (now belongs to basic_filebuf).
2953 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
2954 belongs to basic_filebuf.
2955 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
2956 instantiation (now belongs to basic_filebuf).
2957 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
2958 _S_pback_size now belongs to basic_filebuf.
2959 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
2960 instantiation (now belongs to basic_filebuf).
2961 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
2963 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
2964 instantiation (now belongs to basic_filebuf).
2965 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
2967 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
2969 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
2970 * configure: Regenerated.
2972 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
2974 * config/locale/generic/c_locale.h (__convert_from_v): Use
2977 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
2979 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
2980 implementation only.
2981 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
2982 Comment and change to comply with DR 60 and the effect on gcount().
2983 * include/std/std_istream.h: Update comments.
2984 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
2985 comments about reasons for tests. Test sync() against gcount().
2986 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
2987 for effect on gcount().
2988 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
2989 for effect on gcount().
2991 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
2993 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
2996 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
2998 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
2999 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3000 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
3001 (basic_streambuf::basic_streambuf()): Adjust.
3002 * include/std/std_fstream.h (_S_pback_size, _M_pback,
3003 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3004 _M_pback_create(), _M_pback_destroy()): Moved here
3005 from basic_streambuf.
3006 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
3008 (basic_filebuf::_S_pback_size): Add declaration.
3009 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
3012 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3014 Consistently use _M_in_beg instead of eback(), _M_in_cur
3015 instead of gptr(), and so on.
3016 * include/bits/fstream.tcc (pbackfail, imbue): Here.
3017 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
3018 * include/bits/streambuf.tcc (sbumpc, sputbackc,
3019 __copy_streambufs): Ditto.
3020 * include/std/std_streambuf.h (sgetc): Ditto.
3022 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3024 * include/bits/sstream.tcc (pbackfail, overflow):
3027 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3029 * include/std/std_streambuf.h (uflow()): It's used only by
3030 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
3031 therefore do not consider the _M_buf_unified == true case.
3033 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
3035 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
3037 * docs/html/ext/howto.html ('LWG Issues'):
3038 Add issues 19, 90, 171, 231, 271.
3040 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
3042 * include/bits/sstream.tcc (pbackfail): Remove redundant
3043 NULL pointer check from test involving _M_in_*.
3044 (overflow, seekoff, seekpos): Const qualify bool variables.
3045 * include/std/std_sstream.h (underflow): Remove redundant
3046 NULL pointer check from test involving _M_in_*.
3047 (_M_really_sync): Const qualify bool variables.
3048 * src/fstream.cc (_M_underflow_common): Remove redundant
3049 NULL pointer check from test involving _M_in_*, const qualify
3052 * include/std/std_streambuf.h (sgetc): Remove redundant
3055 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
3057 According to 5.9 para 2 (second bullet) for pointers p, q
3058 pointing to the same type, with p == 0 and q == 0, (p < q)
3060 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
3061 seekoff): Remove redundant NULL pointer checks from tests
3062 involving _M_out_* and _M_in_*, const qualify bool variables.
3063 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
3064 qualify bool variables.
3065 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
3066 Remove redundant NULL pointer checks from tests involving
3067 _M_out_* and _M_in_*, const qualify bool variables.
3068 * include/std/std_fstream.h (sync): Likewise.
3069 (_M_is_indeterminate): Const qualify bool variables.
3070 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
3071 NULL pointer checks from tests involving _M_out_* and _M_in_*,
3072 const qualify bool variables.
3073 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
3076 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
3078 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
3079 C99 FP macros, if actually captured.
3081 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
3082 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3083 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3084 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3085 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
3087 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3088 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3089 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3090 * include/c_std/std_cstdlib.h: Use new macros.
3091 * include/c_std/std_cstdio.h: Use new macros.
3092 * include/c_std/std_cwchar.h: Use new macros.
3094 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
3097 * include/bits/ostream.tcc: Catch all exceptions for formatted
3098 output, instead of std::exception and derivatives.
3099 * include/bits/istream.tcc: Same.
3100 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
3101 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
3102 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
3103 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
3104 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3105 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
3108 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
3110 * include/bits/c++config: Minor cosmetic tweaks.
3112 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
3114 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
3115 * include/Makefile.am (pch_input): Find in ${target_builddir}.
3116 (pch_output): Rename to...
3117 (pch_output_builddir): ..this. Find in ${target_builddir}.
3118 (pch_source): Tweak.
3119 (pch_build): Key off a built file.
3120 (pch_output rule): Rename to...
3121 (pch_input rule): ...this. Produce ${pch_output_builddir}
3122 instead of ${pch_output}.
3123 (install-pch rule): Install ${pch_output_builddir}.
3124 * include/Makefile.in: Regenerated.
3126 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
3128 * include/std/std_streambuf.h (setp): _M_out_lim, being
3129 the end limit of used put area, is set equal to _M_out_beg.
3131 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
3133 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
3134 * aclocal.m4: Regenerated.
3135 * configure.in: Remove old demangler bits.
3137 * configure: Regenerate.
3138 * config.h.in: Regenerate.
3139 * include/Makefile.am (allstamps): Now allstamped.
3140 (allcreated): Define this.
3141 (all-local): Use 'em.
3142 Conditionally define pch_build, pch_install based on
3144 (${pch_output}): New rule.
3145 (install-pch): New rule.
3146 (install-headers): New rule.
3147 (install-data-local): Install headers and conditionally pch.
3148 * include/Makefile.in: Regenerate.
3149 * testsuite_flags.in (--build-cxx): Use pch file.
3151 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
3153 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
3155 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
3156 Paolo Carlini <pcarlini at unitus dot it>
3159 * docs/html/27_io/howto.html
3160 ('The buffering is screwing up my program!'): Explain that
3161 opening counts as an I/O operation.
3163 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
3165 * testsuite/thread/pthread1.cc: Enable for darwin test.
3166 * testsuite/thread/pthread2.cc: Same.
3167 * testsuite/thread/pthread3.cc: Same.
3168 * testsuite/thread/pthread4.cc: Same.
3169 * testsuite/thread/pthread5.cc: Same.
3170 * testsuite/thread/pthread6.cc: Same.
3172 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
3175 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
3176 Populate it with multiple legal ways to obtain the C99 float
3177 transcendentals. Use them instead of direct global reference.
3178 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
3179 * docs/html/17_intro/porting.texi
3180 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3181 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3182 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
3183 * config/os/bsd/freebsd/os_defines.h
3184 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3185 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3186 * testsuite/26_numerics/c_math_dynamic.cc: New file.
3188 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
3189 Benjamin Kosnik <bkoz@redhat.com>
3191 * config/os/generic/ctype_inline.h: Fix.
3193 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
3195 * testsuite/testsuite_hooks.h
3196 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
3197 Change to try_named_locale.
3198 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
3200 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
3202 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3203 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3204 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
3205 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
3206 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
3207 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
3208 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
3209 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
3210 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
3211 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
3212 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
3213 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
3214 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
3215 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
3216 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
3217 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3218 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3219 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3220 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
3221 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
3222 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
3223 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
3224 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
3225 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
3226 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
3227 * testsuite/22_locale/collate/compare/char/1.cc: Same.
3228 * testsuite/22_locale/collate/compare/char/2.cc: Same.
3229 * testsuite/22_locale/collate/compare/char/3.cc: Same.
3230 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
3231 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
3232 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
3233 * testsuite/22_locale/collate/hash/char/2.cc: Same.
3234 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
3235 * testsuite/22_locale/collate/transform/char/2.cc: Same.
3236 * testsuite/22_locale/collate/transform/char/3.cc: Same.
3237 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
3238 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
3239 * testsuite/22_locale/collate_byname/1.cc: Same.
3240 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3241 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3242 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
3243 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
3244 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
3245 * testsuite/22_locale/facet/2.cc: Same.
3246 * testsuite/22_locale/locale/cons/2.cc: Same.
3247 * testsuite/22_locale/locale/cons/4.cc: Same.
3248 * testsuite/22_locale/locale/cons/5.cc: Same.
3249 * testsuite/22_locale/locale/cons/7.cc: Same.
3250 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
3251 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
3252 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
3253 * testsuite/22_locale/messages/members/char/1.cc: Same.
3254 * testsuite/22_locale/messages/members/char/2.cc: Same.
3255 * testsuite/22_locale/messages/members/char/3.cc: Same.
3256 * testsuite/22_locale/messages_byname/1.cc: Same.
3257 * testsuite/22_locale/money_get/get/char/1.cc: Same.
3258 * testsuite/22_locale/money_get/get/char/2.cc: Same.
3259 * testsuite/22_locale/money_get/get/char/3.cc: Same.
3260 * testsuite/22_locale/money_get/get/char/4.cc: Same.
3261 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
3262 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
3263 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
3264 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
3265 * testsuite/22_locale/money_put/put/char/1.cc: Same.
3266 * testsuite/22_locale/money_put/put/char/2.cc: Same.
3267 * testsuite/22_locale/money_put/put/char/3.cc: Same.
3268 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
3269 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
3270 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
3271 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
3272 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
3273 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
3274 * testsuite/22_locale/num_get/get/char/1.cc: Same.
3275 * testsuite/22_locale/num_get/get/char/2.cc: Same.
3276 * testsuite/22_locale/num_get/get/char/3.cc: Same.
3277 * testsuite/22_locale/num_get/get/char/5.cc: Same.
3278 * testsuite/22_locale/num_get/get/char/6.cc: Same.
3279 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
3280 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
3281 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
3282 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
3283 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
3284 * testsuite/22_locale/num_put/put/char/1.cc: Same.
3285 * testsuite/22_locale/num_put/put/char/2.cc: Same.
3286 * testsuite/22_locale/num_put/put/char/3.cc: Same.
3287 * testsuite/22_locale/num_put/put/char/5.cc: Same.
3288 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
3289 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
3290 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
3291 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
3292 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
3293 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
3294 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
3295 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
3296 * testsuite/22_locale/numpunct_byname/1.cc: Same.
3297 * testsuite/22_locale/numpunct_byname/2.cc: Same.
3298 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
3299 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
3300 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
3301 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
3302 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
3303 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
3304 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
3305 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
3306 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
3307 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
3308 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
3309 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
3310 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
3311 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
3312 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
3313 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
3314 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
3315 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
3316 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
3317 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
3318 * testsuite/22_locale/time_put/put/char/1.cc: Same.
3319 * testsuite/22_locale/time_put/put/char/2.cc: Same.
3320 * testsuite/22_locale/time_put/put/char/3.cc: Same.
3321 * testsuite/22_locale/time_put/put/char/4.cc: Same.
3322 * testsuite/22_locale/time_put/put/char/5.cc: Same.
3323 * testsuite/22_locale/time_put/put/char/6.cc: Same.
3324 * testsuite/22_locale/time_put/put/char/7.cc: Same.
3325 * testsuite/22_locale/time_put/put/char/8.cc: Same.
3326 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
3327 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
3328 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
3329 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
3330 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
3331 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
3332 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
3333 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
3334 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
3335 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
3336 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
3337 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
3338 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
3340 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
3342 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
3343 solaris includes, not generic.
3345 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
3347 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
3349 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
3350 * include/bits/concept_check.h: Fix multi-line comment.
3351 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
3352 when target is *-*-freebsd*.
3354 2003-04-14 Nathan Myers <ncm@cantrip.org>
3355 Paolo Carlini <pcarlini@unitus.it>
3357 PR libstdc++/9701 (in_avail())
3358 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
3359 doesn't care if there is anything in some putback cell.
3360 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
3362 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
3363 unused string literals.
3365 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
3367 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
3368 _M_out_end, _M_set_indeterminate() does it.
3370 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3372 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
3374 2003-04-12 David Edelsohn <edelsohn@gnu.org>
3376 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3377 Change basic_streambuf instantiation to "unsigned char".
3378 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3380 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
3382 Remove _M_buf_size_opt, use directly _M_buf_size instead.
3383 * include/bits/fstream.tcc
3384 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
3385 references to _M_buf_size_opt.
3386 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
3387 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
3388 __bufsize to __in_avail and __size_opt to __buf_size.
3389 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
3390 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
3391 * include/std/std_streambuf.h (~basic_streambuf(),
3392 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
3393 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
3394 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3395 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
3396 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
3397 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
3398 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
3399 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
3400 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
3401 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3402 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3403 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3404 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3406 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
3408 * include/ext/stdio_filebuf.h
3409 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
3410 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
3411 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
3412 since a stack-based buffer is used for small values of the size_t
3414 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
3415 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
3416 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
3418 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
3421 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
3422 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
3424 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3426 * testsuite/22_locale/locale/cons/3.cc: Split.
3427 * testsuite/22_locale/locale/cons/7222-c.cc: New.
3428 * testsuite/22_locale/locale/cons/7222-env.cc: New.
3429 Check before trying to create a locale from the environment.
3430 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
3431 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3434 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3436 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
3437 locale to construct this hybrid locale, not the global locale.
3439 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3441 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
3442 instantiation for AIX.
3443 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3444 * testsuite/25_algorithms/min_max.cc: Same.
3446 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3448 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
3449 twice. Always set _M_cfile to 0 when stream was open.
3451 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3453 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
3454 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
3455 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
3456 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
3457 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
3458 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
3459 ifstream_members.cc, instantiations.cc, ios.cc,
3460 ios_base_callbacks.cc, ios_base_members_static-1.tst,
3461 ios_base_members_static.cc, ios_base_storage.cc,
3462 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
3463 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
3464 iostream.cc, iostream_members.cc, istream.cc,
3465 istream_exception.cc, istream_extractor_char.cc,
3466 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
3467 istream_extractor_other-2.tst, istream_extractor_other.cc,
3468 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
3469 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
3470 istream_sentry.cc, istream_unformatted-1.tst,
3471 istream_unformatted-1.txt, istream_unformatted.cc,
3472 istringstream.cc, istringstream_members.cc,
3473 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
3474 ofstream_members.cc, ostream.cc, ostream_exception.cc,
3475 ostream_fail.cc, ostream_inserter_arith.cc,
3476 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
3477 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
3478 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
3479 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
3480 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
3481 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
3482 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
3483 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
3484 wide_stream_objects.cc, istream_extractor_arith/01.cc,
3485 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
3486 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
3487 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
3488 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
3489 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
3491 * 27_io/basic_filebuf/1.cc: New.
3492 * 27_io/basic_filebuf/2.cc: New.
3493 * 27_io/basic_filebuf/3.cc: New.
3494 * 27_io/basic_filebuf/4.cc: New.
3495 * 27_io/basic_filebuf/close/char/1.cc: New.
3496 * 27_io/basic_filebuf/close/char/2.cc: New.
3497 * 27_io/basic_filebuf/close/char/3.cc: New.
3498 * 27_io/basic_filebuf/close/char/4879.cc: New.
3499 * 27_io/basic_filebuf/close/char/9964.cc: New.
3500 * 27_io/basic_filebuf/imbue/char/1.cc: New.
3501 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
3502 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
3503 * 27_io/basic_filebuf/is_open/char/1.cc: New.
3504 * 27_io/basic_filebuf/open/char/1.cc: New.
3505 * 27_io/basic_filebuf/open/char/2.cc: New.
3506 * 27_io/basic_filebuf/open/char/3.cc: New.
3507 * 27_io/basic_filebuf/open/char/9507.cc: New.
3508 * 27_io/basic_filebuf/overflow/char/1.cc: New.
3509 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
3510 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
3511 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
3512 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
3513 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
3514 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
3515 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
3516 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
3517 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
3518 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
3519 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
3520 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
3521 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
3522 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
3523 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
3524 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
3525 * 27_io/basic_filebuf/snextc/char/1.cc: New.
3526 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
3527 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
3528 * 27_io/basic_filebuf/sputc/char/1.cc: New.
3529 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
3530 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
3531 * 27_io/basic_filebuf/sputn/char/1.cc: New.
3532 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
3533 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
3534 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
3535 * 27_io/basic_filebuf/sync/char/1057.cc: New.
3536 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
3537 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
3538 * 27_io/basic_fstream/1.cc: New.
3539 * 27_io/basic_fstream/2.cc: New.
3540 * 27_io/basic_fstream/3.cc: New.
3541 * 27_io/basic_fstream/4.cc: New.
3542 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
3543 * 27_io/basic_ifstream/1.cc: New.
3544 * 27_io/basic_ifstream/2.cc: New.
3545 * 27_io/basic_ifstream/3.cc: New.
3546 * 27_io/basic_ifstream/4.cc: New.
3547 * 27_io/basic_ifstream/cons/char/1.cc: New.
3548 * 27_io/basic_ifstream/open/char/1.cc: New.
3549 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
3550 * 27_io/basic_ios/1.cc: New.
3551 * 27_io/basic_ios/2.cc: New.
3552 * 27_io/basic_ios/3.cc: New.
3553 * 27_io/basic_ios/4.cc: New.
3554 * 27_io/basic_ios/clear/char/1.cc: New.
3555 * 27_io/basic_ios/cons/char/1.cc: New.
3556 * 27_io/basic_ios/cons/char/2.cc: New.
3557 * 27_io/basic_ios/cons/char/3.cc: New.
3558 * 27_io/basic_ios/copyfmt/char/1.cc: New.
3559 * 27_io/basic_ios/copyfmt/char/2.cc: New.
3560 * 27_io/basic_ios/exceptions/char/1.cc: New.
3561 * 27_io/basic_ios/locales/char/1.cc: New.
3562 * 27_io/basic_iostream/1.cc: New.
3563 * 27_io/basic_iostream/2.cc: New.
3564 * 27_io/basic_iostream/3.cc: New.
3565 * 27_io/basic_iostream/4.cc: New.
3566 * 27_io/basic_istream/1.cc: New.
3567 * 27_io/basic_istream/2.cc: New.
3568 * 27_io/basic_istream/3.cc: New.
3569 * 27_io/basic_istream/4.cc: New.
3570 * 27_io/basic_istream/exceptions/char/9561.cc: New.
3571 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
3572 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
3573 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
3574 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
3575 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
3576 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
3577 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
3578 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
3579 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
3580 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
3581 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
3582 * 27_io/basic_istream/extractors_character/char/1.cc: New.
3583 * 27_io/basic_istream/extractors_character/char/2.cc: New.
3584 * 27_io/basic_istream/extractors_character/char/3.cc: New.
3585 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
3586 * 27_io/basic_istream/extractors_other/char/1.cc: New.
3587 * 27_io/basic_istream/extractors_other/char/2.cc: New.
3588 * 27_io/basic_istream/extractors_other/char/3.cc: New.
3589 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
3590 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
3591 * 27_io/basic_istream/get/char/1.cc: New.
3592 * 27_io/basic_istream/get/char/2.cc: New.
3593 * 27_io/basic_istream/getline/char/1.cc: New.
3594 * 27_io/basic_istream/getline/char/2.cc: New.
3595 * 27_io/basic_istream/getline/char/3.cc: New.
3596 * 27_io/basic_istream/ignore/char/1.cc: New.
3597 * 27_io/basic_istream/ignore/char/6360.cc: New.
3598 * 27_io/basic_istream/ignore/char/7220.cc: New.
3599 * 27_io/basic_istream/peek/char/1.cc: New.
3600 * 27_io/basic_istream/peek/char/6414.cc: New.
3601 * 27_io/basic_istream/putback/char/1.cc: New.
3602 * 27_io/basic_istream/read/char/1.cc: New.
3603 * 27_io/basic_istream/read/char/2.cc: New.
3604 * 27_io/basic_istream/read/char/3.cc: New.
3605 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
3606 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
3607 * 27_io/basic_istream/readsome/char/8258.cc: New.
3608 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
3609 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
3610 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
3611 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
3612 * 27_io/basic_istream/seekg/char/fstream.cc: New.
3613 * 27_io/basic_istream/seekg/char/sstream.cc: New.
3614 * 27_io/basic_istream/sentry/char/1.cc: New.
3615 * 27_io/basic_istream/sentry/char/2.cc: New.
3616 * 27_io/basic_istream/sentry/char/3.cc: New.
3617 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
3618 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
3619 * 27_io/basic_istream/tellg/char/1.cc: New.
3620 * 27_io/basic_istream/tellg/char/8348.cc: New.
3621 * 27_io/basic_istream/tellg/char/fstream.cc: New.
3622 * 27_io/basic_istream/tellg/char/sstream.cc: New.
3623 * 27_io/basic_istream/ws/char/1.cc: New.
3624 * 27_io/basic_istringstream/1.cc: New.
3625 * 27_io/basic_istringstream/2.cc: New.
3626 * 27_io/basic_istringstream/3.cc: New.
3627 * 27_io/basic_istringstream/4.cc: New.
3628 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
3629 * 27_io/basic_istringstream/str/char/1.cc: New.
3630 * 27_io/basic_ofstream/1.cc: New.
3631 * 27_io/basic_ofstream/2.cc: New.
3632 * 27_io/basic_ofstream/3.cc: New.
3633 * 27_io/basic_ofstream/4.cc: New.
3634 * 27_io/basic_ofstream/cons/char/2.cc: New.
3635 * 27_io/basic_ofstream/open/char/1.cc: New.
3636 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
3637 * 27_io/basic_ostream/1.cc: New.
3638 * 27_io/basic_ostream/2.cc: New.
3639 * 27_io/basic_ostream/3.cc: New.
3640 * 27_io/basic_ostream/4.cc: New.
3641 * 27_io/basic_ostream/cons/char/9827.cc: New.
3642 * 27_io/basic_ostream/endl/char/1.cc: New.
3643 * 27_io/basic_ostream/ends/char/1.cc: New.
3644 * 27_io/basic_ostream/ends/char/2.cc: New.
3645 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
3646 * 27_io/basic_ostream/flush/char/1.cc: New.
3647 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
3648 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
3649 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
3650 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
3651 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
3652 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
3653 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
3654 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
3655 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
3656 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
3657 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
3658 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
3659 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
3660 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
3661 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
3662 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
3663 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
3664 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
3665 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
3666 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
3667 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
3668 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
3669 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
3670 * 27_io/basic_ostream/sentry/char/1.cc: New.
3671 * 27_io/basic_ostream/sentry/char/2.cc: New.
3672 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
3673 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
3674 * 27_io/basic_ostream/tellp/char/1.cc: New.
3675 * 27_io/basic_ostream/tellp/char/2.cc: New.
3676 * 27_io/basic_ostringstream/1.cc: New.
3677 * 27_io/basic_ostringstream/2.cc: New.
3678 * 27_io/basic_ostringstream/3.cc: New.
3679 * 27_io/basic_ostringstream/4.cc: New.
3680 * 27_io/basic_ostringstream/cons/char/3.cc: New.
3681 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
3682 * 27_io/basic_ostringstream/str/char/1.cc: New.
3683 * 27_io/basic_ostringstream/str/char/2.cc: New.
3684 * 27_io/basic_streambuf/1.cc: New.
3685 * 27_io/basic_streambuf/2.cc: New.
3686 * 27_io/basic_streambuf/3.cc: New.
3687 * 27_io/basic_streambuf/cons/char/1.cc: New.
3688 * 27_io/basic_streambuf/imbue/char/1.cc: New.
3689 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
3690 * 27_io/basic_streambuf/overflow/char/1.cc: New.
3691 * 27_io/basic_streambuf/overflow/char/2.cc: New.
3692 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
3693 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
3694 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
3695 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
3696 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
3697 * 27_io/basic_streambuf/sputn/char/1.cc: New.
3698 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
3699 * 27_io/basic_streambuf/sync/char/1057.cc: New.
3700 * 27_io/basic_stringbuf/1.cc: New.
3701 * 27_io/basic_stringbuf/2.cc: New.
3702 * 27_io/basic_stringbuf/3.cc: New.
3703 * 27_io/basic_stringbuf/4.cc: New.
3704 * 27_io/basic_stringbuf/5.cc: New.
3705 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
3706 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
3707 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
3708 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
3709 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
3710 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
3711 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
3712 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
3713 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
3714 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
3715 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
3716 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
3717 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
3718 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
3719 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
3720 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
3721 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
3722 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
3723 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
3724 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
3725 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
3726 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
3727 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
3728 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
3729 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
3730 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
3731 * 27_io/basic_stringbuf/str/char/1.cc: New.
3732 * 27_io/basic_stringbuf/str/char/2.cc: New.
3733 * 27_io/basic_stringbuf/str/char/3.cc: New.
3734 * 27_io/basic_stringbuf/str/char/3955.cc: New.
3735 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
3736 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
3737 * 27_io/basic_stringstream/1.cc: New.
3738 * 27_io/basic_stringstream/2.cc: New.
3739 * 27_io/basic_stringstream/3.cc: New.
3740 * 27_io/basic_stringstream/4.cc: New.
3741 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
3742 * 27_io/basic_stringstream/str/char/1.cc: New.
3743 * 27_io/basic_stringstream/str/char/2.cc: New.
3744 * 27_io/basic_stringstream/str/char/3.cc: New.
3745 * 27_io/basic_stringstream/str/char/4.cc: New.
3746 * 27_io/fpos/1.cc: New.
3747 * 27_io/fpos/2.cc: New.
3748 * 27_io/fpos/3.cc: New.
3749 * 27_io/ios_base/callbacks/1.cc: New.
3750 * 27_io/ios_base/state/1.cc: New.
3751 * 27_io/ios_base/storage/1.cc: New.
3752 * 27_io/ios_base/storage/2.cc: New.
3753 * 27_io/ios_base/storage/3.cc: New.
3754 * 27_io/ios_base/sync_with_stdio/1.cc: New.
3755 * 27_io/ios_base/sync_with_stdio/2.cc: New.
3756 * 27_io/manipulators/adjustfield/char/1.cc: New.
3757 * 27_io/manipulators/adjustfield/char/2.cc: New.
3758 * 27_io/manipulators/basefield/char/1.cc: New.
3759 * 27_io/manipulators/standard/char/1.cc: New.
3760 * 27_io/manipulators/standard/char/2.cc: New.
3761 * 27_io/objects/char/1.cc: New.
3762 * 27_io/objects/char/2.cc: New.
3763 * 27_io/objects/char/2523-1_xin.cc: New.
3764 * 27_io/objects/char/2523-1_xin.in: New.
3765 * 27_io/objects/char/2523-2_xin.cc: New.
3766 * 27_io/objects/char/2523-2_xin.in: New.
3767 * 27_io/objects/char/3045.cc: New.
3768 * 27_io/objects/char/3647.cc: New.
3769 * 27_io/objects/char/3_xin.cc: New.
3770 * 27_io/objects/char/3_xin.in: New.
3771 * 27_io/objects/char/4_xin.cc: New.
3772 * 27_io/objects/char/4_xin.in: New.
3773 * 27_io/objects/char/5268.cc: New.
3774 * 27_io/objects/char/5280_xin.cc: New.
3775 * 27_io/objects/char/5280_xin.in: New.
3776 * 27_io/objects/char/6548_xin.cc: New.
3777 * 27_io/objects/char/6548_xin.in: New.
3778 * 27_io/objects/char/6648-1_xin.cc: New.
3779 * 27_io/objects/char/6648-1_xin.in: New.
3780 * 27_io/objects/char/6648-2_xin.cc: New.
3781 * 27_io/objects/char/6648-2_xin.in: New.
3782 * 27_io/objects/char/7744_xin.cc: New.
3783 * 27_io/objects/char/7744_xin.in: New.
3784 * 27_io/objects/wchar_t/1.cc: New.
3785 * 27_io/types/1.cc: New.
3786 * 27_io/types/2.cc: New.
3787 * data/filebuf_members-1.tst: New.
3788 * data/filebuf_members-1.txt: New.
3789 * data/filebuf_virtuals-1.tst: New.
3790 * data/filebuf_virtuals-1.txt: New.
3791 * data/filebuf_virtuals-2.tst: New.
3792 * data/filebuf_virtuals-3.tst: New.
3793 * data/ifstream_members-1.tst: New.
3794 * data/ifstream_members-1.txt: New.
3795 * data/ios_base_members_static-1.tst: New.
3796 * data/istream_extractor_other-1.tst: New.
3797 * data/istream_extractor_other-1.txt: New.
3798 * data/istream_extractor_other-2.tst: New.
3799 * data/istream_seeks-1.tst: New.
3800 * data/istream_seeks-1.txt: New.
3801 * data/istream_seeks-2.tst: New.
3802 * data/istream_seeks-3.tst: New.
3803 * data/istream_unformatted-1.tst: New.
3804 * data/istream_unformatted-1.txt: New.
3805 * data/ofstream_members-1.tst: New.
3806 * data/ostream_inserter_char-1.tst: New.
3807 * data/ostream_inserter_char-1.txt: New.
3808 * data/ostream_inserter_other-1.tst: New.
3809 * data/ostream_inserter_other-2.tst: New.
3810 * data/ostream_seeks-1.tst: New.
3812 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3814 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
3815 requirement that __mode must be strict input or output.
3817 * include/std/std_streambuf.h (basic_streambuf::setp): Set
3820 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
3821 output string shouldn't core.
3822 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
3824 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
3826 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
3829 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3831 * testsuite/data: New directory.
3832 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3833 to copy files from the testsuite data directory.
3834 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
3835 testfiles containing _xin, which now means this is an interactive
3836 test and should be run with the interactive dejagnu hooks.
3837 * testsuite/Makefile.am: Remove testsuite_* files.
3838 * testsuite/Makefile.in: Regenerate.
3840 2003-04-09 Zack Weinberg <zack@codesourcery.com>
3842 * docs/html/install.html: Document complete list of locales
3843 required by test suite. Document procedure for installing
3844 said locales under Debian. Solicit instructions for other
3847 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
3849 * include/bits/sstream.tcc (overflow): Make sure operands of min
3850 and max have the same type.
3852 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
3855 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
3858 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
3860 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
3861 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
3862 Don't set _M_out_end.
3863 (basic_filebuf::overflow): Replace _M_out_buf_size() with
3864 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
3865 * include/bits/sstream.tcc (basic_stringbuf::overflow):
3866 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
3867 * include/bits/streambuf.tcc (basic_streambuf::sputc):
3868 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
3869 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
3870 _M_out_end - _M_out_cur.
3871 (__copy_streambufs): Likewise.
3872 * include/std/std_fstream.h (_M_set_determinate): Set
3875 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
3877 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
3878 _M_convert_to_external, _M_really_overflow, seekoff): Fix
3879 test for synced buffer.
3880 * include/std/std_fstream.h (sync): Likewise.
3881 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
3882 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
3884 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
3886 * include/std/std_sstream.h (basic_istringstream): Adjust
3888 (basic_ostringstream): Same.
3889 (basic_stringstream): Same.
3890 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
3891 (basic_ofstream): Same.
3892 (basic_fstream): Same.
3893 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
3894 that does not call init.
3895 * include/std/std_istream.h (basic_istream): Same.
3896 (basic_iostream): Construct istream, ostream uninitialized, use
3897 init to initialize just once. Add protected ctor that does not
3900 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
3901 Nathan Myers <ncm@cantrip.org>
3904 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
3906 (basic_filebuf<>::showmanyc): Use the information provided
3907 by codecvt and __basic_file<>::showmanyc_helper to implement
3908 a non-trivial showmanyc.
3909 * config/io/basic_file_stdio.h
3910 (__basic_file<>::showmanyc_helper): New, declare.
3911 * config/io/basic_file_stdio.cc
3912 (__basic_file<>::showmanyc_helper): Define.
3913 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
3914 (__basic_file<char>::open): Don't call fcntl().
3915 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
3916 GLIBCPP_CHECK_POLL): New macros.
3917 * configure.in: Call here.
3918 * acconfig.h: Add #undefs for the corresponding symbols.
3919 * aclocal.m4: Regenerate.
3920 * configure: Regenerate.
3921 * config.h.in: Regenerate.
3923 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
3925 * config/linker-map.gnu: Remove string export restrictions.
3927 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
3929 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
3930 find_first_of, find_last_of and find_last_not_of tests.
3931 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
3932 tests here, new file.
3933 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
3934 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
3935 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
3936 wchar_t find_first_of tests here, new file.
3937 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
3939 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
3941 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
3942 wchar_t find_last_of tests here.
3943 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
3944 wchar_t find_last_not_of tests here.
3946 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
3948 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
3949 Correct return value.
3951 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
3954 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
3955 * include/std/std_complex.h (norm): Use faster,
3956 less accurate computation for builtin float types under --fast-math.
3958 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
3960 * testsuite/testsuite_hooks.h: Fix warning nits.
3962 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
3964 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
3965 Only .set mips2 for the o32 ABI.
3967 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
3969 * testsuite/21_strings/char_traits/requirements/char/1.cc:
3970 Test char not wchar_t.
3972 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
3974 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
3975 Correct size, taking into account sizeof(wchar_t).
3977 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
3979 Reshuffle 21_strings testsuite.
3980 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
3981 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
3982 element_access.cc, operations.cc, char_traits_requirements.cc,
3983 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
3984 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
3985 wchar_t tests as follows.
3986 * 21_strings/basic_string/append/char/1.cc: New.
3987 * 21_strings/basic_string/append/wchar_t/1.cc: New.
3988 * 21_strings/basic_string/assign/char/1.cc: New.
3989 * 21_strings/basic_string/assign/char/2.cc: New.
3990 * 21_strings/basic_string/assign/char/3.cc: New.
3991 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
3992 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
3993 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
3994 * 21_strings/basic_string/capacity/1.cc: New.
3995 * 21_strings/basic_string/capacity/char/1.cc: New.
3996 * 21_strings/basic_string/capacity/char/2.cc: New.
3997 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
3998 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
3999 * 21_strings/basic_string/compare/char/1.cc: New.
4000 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
4001 * 21_strings/basic_string/cons/char/1.cc: New.
4002 * 21_strings/basic_string/cons/char/2.cc: New.
4003 * 21_strings/basic_string/cons/char/3.cc: New.
4004 * 21_strings/basic_string/cons/char/4.cc: New.
4005 * 21_strings/basic_string/cons/char/5.cc: New.
4006 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
4007 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
4008 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
4009 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
4010 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
4011 * 21_strings/basic_string/element_access/char/1.cc: New.
4012 * 21_strings/basic_string/element_access/char/2.cc: New.
4013 * 21_strings/basic_string/element_access/char/3.cc: New.
4014 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
4015 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
4016 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
4017 * 21_strings/basic_string/find/char/1.cc: New.
4018 * 21_strings/basic_string/find/wchar_t/1.cc: New.
4019 * 21_strings/basic_string/insert/char/1.cc: New.
4020 * 21_strings/basic_string/insert/char/2.cc: New.
4021 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
4022 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
4023 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
4024 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
4025 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
4026 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
4027 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
4028 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
4029 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
4030 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
4031 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
4032 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
4033 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
4034 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
4035 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
4036 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
4037 * 21_strings/basic_string/operators/char/1.cc: New.
4038 * 21_strings/basic_string/operators/char/2.cc: New.
4039 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
4040 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
4041 * 21_strings/basic_string/replace/char/1.cc: New.
4042 * 21_strings/basic_string/replace/char/2.cc: New.
4043 * 21_strings/basic_string/replace/char/3.cc: New.
4044 * 21_strings/basic_string/replace/char/4.cc: New.
4045 * 21_strings/basic_string/replace/char/5.cc: New.
4046 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
4047 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
4048 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
4049 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
4050 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
4051 * 21_strings/basic_string/rfind/char/1.cc: New.
4052 * 21_strings/basic_string/rfind/char/2.cc: New.
4053 * 21_strings/basic_string/rfind/char/3.cc: New.
4054 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
4055 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
4056 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
4057 * 21_strings/basic_string/substr/char/1.cc: New.
4058 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
4059 * 21_strings/c_strings/char/1.cc: New.
4060 * 21_strings/c_strings/char/2.cc: New.
4061 * 21_strings/c_strings/wchar_t/1.cc: New.
4062 * 21_strings/c_strings/wchar_t/2.cc: New.
4063 * 21_strings/char_traits/requirements/char/1.cc: New.
4064 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
4065 * 21_strings/char_traits/typedefs/char/1.cc: New.
4067 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
4068 Petur Runolfsson <peturr02@ru.is>
4071 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
4072 basic_filebuf<wchar_t>::_M_underflow_common):
4073 if (gptr() < egptr()) return *gptr().
4074 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
4076 * testsuite/27_io/filebuf_members.cc (test_04): Minor
4077 changes: unlink fifo before making it, fix spelling error.
4079 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
4081 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
4082 * testsuite/Makefile.in: Regenerate.
4083 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
4086 2003-03-17 Petur Runolfsson <peturr02@ru.is>
4089 * include/bits/fstream.tcc (basic_filebuf::close):
4090 Always close file, even when write fails.
4091 * testsuite/27_io/filebuf_members.cc (test_07): New test.
4093 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
4095 * libsupc++/Makefile.am (C_COMPILE): Remove.
4096 (LTCOMPILE): Likewise.
4097 * libsupc++/Makefile.in: Regenerate.
4099 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
4101 * testsuite/23_containers/bitset_members.cc: Add test variable.
4102 * testsuite/23_containers/map_insert.cc: Same.
4103 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
4104 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
4105 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
4106 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
4107 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
4108 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
4109 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
4110 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
4111 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
4112 * testsuite/27_io/istream_exception.cc: Same.
4113 * testsuite/27_io/filebuf_virtuals.cc: Same.
4114 * testsuite/27_io/stringbuf_virtuals.cc: Same.
4115 * testsuite/27_io/ostream_inserter_arith.cc: Same.
4116 * testsuite/26_numerics/valarray_operators.cc: Same.
4117 * testsuite/26_numerics/slice.cc: Same.
4118 * testsuite/26_numerics/slice_array_assignment.cc: Same.
4119 * testsuite/24_iterators/istream_iterator.cc: Same.
4120 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
4122 2003-03-14 Petur Runolfsson <peturr02@ru.is>
4126 * config/locale/generic/ctype_members.cc,
4127 * config/locale/gnu/ctype_members.cc
4128 (ctype<wchar_t>::do_widen(char)): Cast argument to
4129 unsigned char before passing to btowc.
4130 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
4131 Convert characters with btowc instead of mbsrtowcs.
4132 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
4134 Convert characters with wctob instead of wcsrtombs.
4135 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
4136 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
4137 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
4139 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
4141 * include/stdc++.h: New.
4142 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
4143 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
4144 * include/Makefile.in: Regenerate.
4145 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
4146 (--cxxflags): Put -g -O2 here.
4147 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
4149 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
4151 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
4152 missing named locale.
4154 2003-03-14 Andreas Schwab <schwab@suse.de>
4156 * configure.in: Only append to makefiles that are newly created to
4157 avoid multiple multi-do/multi-clean rules.
4158 * configure: Rebuilt.
4160 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
4162 * docs/html/configopts.html, docs/html/documentation.html,
4163 docs/html/explanations.html, docs/html/install.html,
4164 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
4165 invalid XHTML and make page header style consistent.
4167 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
4169 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
4170 * docs/html/faq/index.txt: Regenerate.
4171 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
4173 2003-03-12 Andreas Schwab <schwab@suse.de>
4175 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
4176 glibcpp_toolexeclibdir.
4177 * aclocal.m4, configure: Rebuilt.
4179 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
4181 * docs/html/faq/index.html: Update text about location of headers.
4182 * docs/html/faq/index.txt: Regenerate.
4184 2003-03-11 Carlo Wood <carlo@alinoe.com>
4186 * include/bits/demangle.h: Prepend accessors of
4187 class qualifier with 'get_' in order to fix warnings
4188 when compiling with -Wshadow.
4190 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
4192 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
4194 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
4196 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
4197 report lack of setenv().
4199 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4201 * config/io/basic_file_stdio.cc: include <unistd.h>.
4203 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4204 Nathan Myers <ncm@cantrip.org>
4207 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
4208 seekoff, seekpos): Add a boolean parameter __stdio.
4209 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
4210 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
4211 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
4213 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
4214 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
4215 * include/std/std_fstream.h (sync): Likewise.
4216 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
4217 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
4218 libstdc++/8399 commit involving isatty(0).
4219 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
4220 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
4221 * configure.in: Remove call.
4222 * aclocal.m4: Regenerate.
4223 * config.h.in: Regenerate.
4224 * configure: Regenerate.
4225 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
4227 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4230 * include/bits/fstream.tcc (overflow): don't write EOF to file.
4231 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
4233 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4236 * include/bits/basic_ios.h (_M_setstate): New.
4237 * include/bits/ostream.tcc (operator<<): Use it.
4238 * include/bits/istream.tcc (operator>>): Use it.
4239 * include/std/std_ostream.h (operator<<): Make friends.
4240 * include/std/std_istream.h (operator>>): Make friends.
4241 * testsuite/27_io/ostream_exception.cc,
4242 testsuite/27_io/istream_exception.cc: New tests.
4244 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
4246 * include/bits/locale_facets.tcc: Fix typo.
4248 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
4250 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
4252 * config/locale/generic/c_locale.cc
4253 (locale::facet::_S_create_c_locale): Throw runtime exception when
4254 unsupported language is specified.
4255 * testsuite/testsuite_hooks.h
4256 (run_test_wrapped_generic_locale_exception_catcher): New function.
4257 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
4258 Suppress runtime exception thrown by generic implementation.
4259 (run_tests_wrapped_env): Likewise.
4260 (run_test_wrapped_generic_locale_exception_catcher): New function.
4261 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
4262 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
4263 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
4264 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
4265 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
4266 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
4267 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
4268 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
4269 * testsuite/22_locale/facet/2.cc: New test wrap.
4270 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
4271 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
4272 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
4273 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
4274 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
4275 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
4276 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
4277 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
4278 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
4279 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
4280 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
4281 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
4282 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
4283 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
4284 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
4285 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
4286 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
4287 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
4288 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
4289 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
4290 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
4291 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
4292 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
4293 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
4294 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
4295 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
4296 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
4297 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
4298 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
4299 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
4300 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
4301 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
4302 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
4303 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
4304 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
4305 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
4306 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
4307 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
4308 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
4309 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
4310 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
4311 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
4312 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
4313 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
4314 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
4315 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
4316 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
4317 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
4318 * testsuite/27_io/ios_members.cc: New test wrap.
4319 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
4321 * testsuite/27_io/streambuf_members.cc: New test wrap.
4322 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
4324 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
4325 Petur Runolfsson <peturr02@ru.is>
4328 * include/bits/streambuf.tcc (__copy_streambufs): Use
4329 sgetn-sputn only when sputn cannot fail, otherwise fall back
4330 to safe snextc-sputc.
4331 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
4333 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4335 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
4336 locale cache for truename and falsename.
4338 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4340 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
4341 _M_word_size initialization.
4343 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4345 * include/bits/fstream.tcc (_M_convert_to_external):
4346 Set __elen to zero if codecvt::out eventually fails.
4348 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4351 * include/bits/fstream.tcc (_M_really_overflow): Check
4352 for _M_convert_to_external possible failures.
4353 * include/std/std_fstream.h (sync): Check _M_really_overflow
4354 return value and return -1 in case of failure.
4355 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
4357 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4360 * include/bits/istream.tcc (operator>>(_CharT*),
4361 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
4362 * testsuite/27_io/stringstream.cc (test02): Add.
4364 * include/bits/istream.tcc (operator>>(_CharT*)):
4365 Assign a char_type to *__s.
4367 2003-03-07 Petur Runolfsson <peturr02@ru.is>
4370 * include/bits/locale_facets.tcc
4371 (collate::do_compare, collate::do_transform):
4372 Handle nul characters in input.
4373 * testsuite/22_locale/collate/compare/char/3.cc: New test.
4374 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
4375 * testsuite/22_locale/collate/transform/char/3.cc: New test.
4376 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
4378 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
4380 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
4382 * testsuite/27_io/ostream_fail.cc: New test.
4384 2003-03-07 Matthias Klose <doko@debian.org>
4386 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
4387 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
4388 * Makefile.in: Regenerate.
4389 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
4391 AM_MAKEFLAGS: Pass gxx_include_dir.
4392 * libsupc++/Makefile.in: Regenerate.
4394 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
4396 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
4397 mask. Test setting small-numbered pword and iword slots. Test
4398 behavior at limit of numeric_limits::max. Check that values are
4399 still good after failures.
4401 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
4403 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
4404 (ios_base::ios_base): Set _M_word, _M_word_size.
4405 (ios_base::~ios_base): Remove redundant test.
4406 * testsuite/27_io/ios_base_storage.cc (test03): New.
4408 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
4410 * src/strstream.cc, include/bits/basic_string.tcc: Remove
4411 incorrect whitespace added in my previous change.
4413 2003-03-05 Carlo Wood <carlo@alinoe.com>
4415 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
4416 _S_initialized() in order to allow debugging libraries to detect
4417 when the std streams are initialized from an overloaded operator
4420 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
4422 * libsupc++/demangle.h: Move to..
4423 * include/bits/demangle.h: ...here.
4424 * src/demangle.cc: Adjust include.
4425 * include/Makefile.am (bits_headers): Add.
4426 * include/Makefile.in: Regenerate.
4428 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
4430 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
4432 * config/linker-map.gnu: Filter typeinfo and vtable info.
4434 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
4436 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
4437 new failure. Throw exception if badbit and exception mask when ix
4438 >= numeric_limits<int>::max().
4440 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
4442 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
4443 min and max have the same type.
4444 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
4446 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
4448 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
4449 * include/Makefile.in: Regenerate.
4451 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
4453 * testsuite/abi_check.cc (report_symbol_info): Add version info.
4455 * config/linker-map.gnu: Hide more stuff.
4456 * include/Makefile.am: Cleanups.
4457 * include/Makefile.in: Regenerate.
4459 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
4461 * config/locale/generic/messages_members.h (messages::messages):
4462 Remove name from unused parameter.
4464 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
4466 * src/Makefile.am (sources): Add demangle.cc.
4469 * src/Makefile.in: Regenerate.
4470 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
4471 * libsupc++/Makefile.in: Regenerate.
4473 * testsuite/testsuite_hooks.h
4474 (__gnu_cxx_test::verify_demangle): New.
4475 * testsuite/testsuite_hooks.cc: Define.
4477 2003-02-27 Carlo Wood <carlo@alinoe.com>
4479 * src/demangle.cc: New.
4480 * libsupc++/demangle.h: New.
4482 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
4483 Carlo Wood <carlo@alinoe.com>
4485 * testsuite/demangle/abi_examples/01.cc: New.
4486 * testsuite/demangle/abi_examples/02.cc: New.
4487 * testsuite/demangle/abi_examples/03.cc: New.
4488 * testsuite/demangle/abi_examples/04.cc: New.
4489 * testsuite/demangle/abi_examples/05.cc: New.
4490 * testsuite/demangle/abi_examples/06.cc: New.
4491 * testsuite/demangle/abi_examples/07.cc: New.
4492 * testsuite/demangle/abi_examples/08.cc: New.
4493 * testsuite/demangle/abi_examples/09.cc: New.
4494 * testsuite/demangle/abi_examples/10.cc: New.
4495 * testsuite/demangle/abi_examples/11.cc: New.
4496 * testsuite/demangle/abi_examples/12.cc: New.
4497 * testsuite/demangle/abi_examples/13.cc: New.
4498 * testsuite/demangle/abi_examples/14.cc: New.
4499 * testsuite/demangle/abi_examples/15.cc: New.
4500 * testsuite/demangle/abi_examples/16.cc: New.
4501 * testsuite/demangle/abi_examples/17.cc: New.
4502 * testsuite/demangle/abi_examples/18.cc: New.
4503 * testsuite/demangle/abi_examples/19.cc: New.
4504 * testsuite/demangle/abi_examples/20.cc: New.
4505 * testsuite/demangle/abi_examples/21.cc: New.
4506 * testsuite/demangle/abi_examples/22.cc: New.
4507 * testsuite/demangle/abi_examples/23.cc: New.
4508 * testsuite/demangle/abi_examples/24.cc: New.
4509 * testsuite/demangle/abi_examples/25.cc: New.
4510 * testsuite/demangle/abi_examples/26.cc: New.
4511 * testsuite/demangle/abi_text/01.cc: New.
4512 * testsuite/demangle/abi_text/02.cc: New.
4513 * testsuite/demangle/abi_text/03.cc: New.
4514 * testsuite/demangle/abi_text/04.cc: New.
4515 * testsuite/demangle/abi_text/05.cc: New.
4516 * testsuite/demangle/abi_text/06.cc: New.
4517 * testsuite/demangle/abi_text/07.cc: New.
4518 * testsuite/demangle/abi_text/08.cc: New.
4519 * testsuite/demangle/abi_text/09.cc: New.
4520 * testsuite/demangle/abi_text/10.cc: New.
4521 * testsuite/demangle/abi_text/11.cc: New.
4522 * testsuite/demangle/abi_text/12.cc: New.
4523 * testsuite/demangle/abi_text/13.cc: New.
4524 * testsuite/demangle/abi_text/14.cc: New.
4525 * testsuite/demangle/regression/3111-1.cc: New.
4526 * testsuite/demangle/regression/3111-2.cc: New.
4527 * testsuite/demangle/regression/7986-01.cc: New.
4528 * testsuite/demangle/regression/7986-02.cc: New.
4529 * testsuite/demangle/regression/7986-03.cc: New.
4530 * testsuite/demangle/regression/7986-04.cc: New.
4531 * testsuite/demangle/regression/7986-05.cc: New.
4532 * testsuite/demangle/regression/7986-06.cc: New.
4533 * testsuite/demangle/regression/7986-07.cc: New.
4534 * testsuite/demangle/regression/7986-08.cc: New.
4535 * testsuite/demangle/regression/7986-09.cc: New.
4536 * testsuite/demangle/regression/7986-10.cc: New.
4537 * testsuite/demangle/regression/7986-11.cc: New.
4538 * testsuite/demangle/regression/7986-12.cc: New.
4539 * testsuite/demangle/regression/7986.cc: New.
4540 * testsuite/demangle/regression/8897.cc: New.
4541 * testsuite/demangle/regression/cw-01.cc: New.
4542 * testsuite/demangle/regression/cw-02.cc: New.
4543 * testsuite/demangle/regression/cw-03.cc: New.
4544 * testsuite/demangle/regression/cw-04.cc: New.
4545 * testsuite/demangle/regression/cw-05.cc: New.
4546 * testsuite/demangle/regression/cw-06.cc: New.
4547 * testsuite/demangle/regression/cw-07.cc: New.
4548 * testsuite/demangle/regression/cw-08.cc: New.
4549 * testsuite/demangle/regression/cw-09.cc: New.
4550 * testsuite/demangle/regression/cw-10.cc: New.
4551 * testsuite/demangle/regression/cw-11.cc: New.
4552 * testsuite/demangle/regression/cw-12.cc: New.
4553 * testsuite/demangle/regression/cw-13.cc: New.
4554 * testsuite/demangle/regression/cw-14.cc: New.
4555 * testsuite/demangle/regression/old.cc: New.
4557 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
4559 * docs/doxygen/Intro.3: Update with new (proper) names.
4560 * docs/doxygen/TODO: Update.
4561 * docs/doxygen/run_doxygen: More comments, fix up man pages.
4562 Fake entries for standard typedefs.
4563 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
4564 * docs/html/documentation.html: Top-level man page is now called
4566 * include/std/std_limits.h: Doxygenate.
4568 2003-02-25 Scott Snyder <snyder@fnal.gov>
4571 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
4572 Correct documentation.
4573 * include/bits/stl_multimap.h (lower_bound, upper_bound,
4574 equal_range): Likewise.
4576 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
4580 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
4581 __bump is true (uflow), always increment the read pointer
4582 (_M_in_cur) before returning successfully.
4583 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
4585 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
4586 Nathan Myers <ncm@cantrip.org>
4588 PR libstdc++/9404, PR libstdc++/9701 (partial)
4589 (aka pptr == epptr implies overflow)
4590 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
4591 Consistently, _M_out_end points to the end of the buffer just
4593 (overflow): Tweak to use _M_out_buf_size().
4594 (_M_convert_to_external): The role of the old _M_out_end is
4595 now played by _M_out_lim.
4596 (_M_really_overflow): Likewise.
4597 (seekoff): Likewise.
4598 (setbuf): _M_out_end points to the end of the external buffer.
4599 * include/bits/sstream.tcc (overflow): Rewrote, taking into
4600 account the resolution of DR 169 (TC).
4601 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
4602 (seekpos): Use _M_string.capacity(); tweak.
4603 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
4604 * include/std/std_fstream.h (sync): The role of the old
4605 _M_out_end is now played by _M_out_lim.
4606 (_M_set_indeterminate): Use _M_set_determinate.
4607 (_M_set_determinate): _M_out_end is now _M_out_lim.
4608 (_M_is_indeterminate): Likewise.
4609 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
4610 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
4611 which have the information readily available as _M_string.capacity();
4612 for ate and app modes, pass the string size to _M_really_sync.
4613 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
4614 point to the end of the buffer (i.e., epptr) and to the string end,
4616 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
4617 which points to the right limit of the used put area.
4618 (_M_out_cur_move): The role of the old _M_out_end is now played
4620 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
4621 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
4623 (basic_streambuf()): Initialize _M_out_lim too.
4624 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
4625 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
4626 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
4628 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
4630 * testsuite/27_io/ios_base_storage.cc (main): Call
4633 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
4635 * include/bits/locale_facets.tcc (_M_convert_float): Replace
4636 numpunct facet accesses with data from __locale_cache.
4638 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
4640 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
4641 * docs/html/faq/index.txt: Regenerate.
4643 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
4645 * config/linker-map.gnu: Also export locking symbols needed for the
4646 generic atomicity.h case.
4648 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
4650 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
4652 * configure: Rebuilt.
4654 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
4656 * include/bits/sstream.tcc (overflow): According to
4657 27.7.1.3, p5, actual output is performed by sputc(c).
4659 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
4662 * include/bits/stl_alloc.h: Remove all traces of assert().
4664 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
4666 * include/std/std_sstream.h (str()): the size of the
4667 current string may be different from the initial one
4668 whenever _M_out_end > _M_out_beg.
4669 * testsuite/27_io/stringbuf_members.cc (test07): Add.
4671 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
4674 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
4676 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
4678 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
4679 * testsuite/27_io/ios_members.cc (test03): New.
4681 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
4683 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
4684 (basic_ios::_M_cache_facets): Move into above.
4685 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
4687 (basic_ios::imbue): Force locale cache to be built.
4688 (basic_ios::_M_init): Create and initialize locale cache.
4689 * include/bits/ios_base.h (__locale_cache_base): Declare.
4690 (ios_base::_M_locale_cache): New.
4691 (ios_base::_M_cache): Define.
4692 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
4694 (__locale_cache_base,__locale_cache<_CharT>): New classes.
4695 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
4696 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
4697 cache literal string, grouping flag, thousands separator.
4698 (__locale_cache<_CharT>::__locale_cache): New.
4699 (__locale_cache<_CharT>::_M_init): New.
4700 * src/ios.cc: Clear _M_locale_cache in constructor.
4701 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
4704 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4706 * src/locale-inst.cc: Do not include <cassert>.
4707 * src/locale.cc: Likewise.
4709 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4712 * include/std/std_fstream.h: Declare underflow and uflow
4713 specializations, change generic definitions to do nothing.
4714 * src/fstream.cc: Add underflow and uflow specializations.
4716 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4719 * include/bits/fstream.tcc (_M_convert_to_external):
4720 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
4721 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
4723 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
4725 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
4726 * include/bits/basic_ios.tcc: Guard use of extern template.
4727 * include/std/std_iomanip.h: Same.
4728 * include/bits/streambuf.tcc: Same.
4729 * include/bits/stl_alloc.h: Same.
4730 * include/bits/locale_facets.tcc: Same.
4731 * include/bits/ostream.tcc: Same.
4732 * include/bits/istream.tcc: Same.
4733 * include/bits/fstream.tcc: Same.
4734 * include/bits/basic_string.tcc: Same.
4736 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
4738 * include/bits/ostream.tcc (sentry::sentry): Improve
4739 performance-wise the fix for libstdc++/9563.
4741 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
4743 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
4744 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
4745 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
4746 when we don't have static mutex initialization.
4747 (__exchange_and_add): Use _Atomic_add_mutex_once.
4748 * src/misc-inst.cc: Definitions of all the above.
4750 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
4753 * include/bits/ostream.tcc (sentry::sentry): Check
4754 the state of the stream after the preparation.
4755 * testsuite/27_io/ostream_sentry.cc (test02): Add.
4757 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
4759 * include/Makefile.am (stamp-std-precompile): Add rule.
4760 * include/Makefile.in: Regenerated.
4762 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
4763 Benjamin Kosnik <benjamin@redhat.com>
4765 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
4766 Add indexes into this array.
4767 (__num_base::_S_atoms): To _S_atoms_in.
4768 (num_put::_M_insert): Rename to _M_pad.
4769 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
4770 (num_put::_M_widen_int): Rename to _M_group_int.
4771 (num_put::_M_widen_float): Rename to _M_group_float.
4772 * include/bits/locale_facets.tcc (__int_to_char): New inline
4773 function and adapter functions.
4774 (num_put::_M_group_int): Streamline.
4775 (num_put::_M_group_float): Streamline.
4776 (num_put::_M_convert_int): Remove unused parameter names. Choose
4777 large enough buffer for text. Use __int_to_char instead of
4778 __convert_from_v. Formatted text is now at the end of the buffer.
4779 (num_put::_M_convert_float): Preliminary fixups.
4780 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
4781 (__int_to_char<unsigned long long>): Same.
4782 (__int_to_char<char, unsigned long>): New.
4783 (__int_to_char<char, unsigned long long>): New.
4784 (__int_to_char<wchar_t, unsigned long>): New.
4785 (__int_to_char<wchar_t, unsigned long long>): New.
4787 2003-02-11 Scott Snyder <snyder@fnal.gov>
4790 * include/bits/fstream.tcc (seekoff): Avoid operator+
4793 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
4796 * include/ext/stdio_filebuf.h
4797 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
4798 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
4799 Change to take a __size parameter of type size_t, not
4800 of type (template parameter dependent) int_type.
4801 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
4802 size vars to size_t.
4803 * testsuite/ext/stdio_filebuf.cc: Add.
4805 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
4806 Petur Runolfsson <peturr02@ru.is>
4809 * include/bits/streambuf.tcc (__copy_streambufs):
4810 Don't conditionalize the copy to __testput.
4811 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
4813 2002-02-11 DJ Delorie <dj@redhat.com>
4815 * acinclude.m4: Check for native targets that can't link at
4816 this point in the build.
4817 * aclocal.m4: Regenerate.
4818 * configure: Regenerate.
4820 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4822 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
4824 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
4827 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
4829 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
4830 unsigned char platforms.
4832 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
4835 * include/std/std_istream.h
4836 (basic_istream::sentry::operator bool()): Make const.
4837 * include/std/std_ostream.h
4838 (basic_ostream::sentry::operator bool()): Likewise.
4839 * testsuite/27_io/istream_sentry.cc (test03): Add.
4840 * testsuite/27_io/ostream_sentry.cc: Add.
4842 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
4845 Implement resolution of DR 231 (Ready)
4846 * include/bits/locale_facets.h (__num_base::_S_format_float):
4847 Change declaration: return void, remove __prec parameter.
4848 * src/locale.cc (__num_base::_S_format_float): Implement
4849 resolution of DR 231.
4850 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
4851 Tweak uses. Check for negative precision.
4852 * testsuite/22_locale/num_put/put/char/6.cc: Add
4853 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
4855 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
4857 * config/io/basic_file_libio.h: Fixups.
4858 * config/io/c_io_libio.h: Same.
4859 * libio/Makefile.am: Same.
4860 * libio/Makefile.in: Regenerated.
4862 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
4864 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
4865 Explicitly use the "C" locale.
4866 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
4868 2003-02-06 Petur Runolfsson <peturr02@ru.is>
4872 PR libstdc++/9028 (partial)
4878 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
4879 codecvt<wchar_t, char, mbstate_t>::do_length,
4880 codecvt<wchar_t, char, mbstate_t>::do_max_length):
4882 * config/locale/generic/codecvt_members.cc: ...here.
4883 * config/locale/gnu/codecvt_members.cc: ...and here.
4885 * config/locale/generic/codecvt_members.cc,
4886 * config/locale/gnu/codecvt_members.cc
4887 (codecvt<wchar_t, char, mbstate_t>::do_encoding
4888 codecvt<wchar_t, char, mbstate_t>::do_in,
4889 codecvt<wchar_t, char, mbstate_t>::do_length,
4890 codecvt<wchar_t, char, mbstate_t>::do_max_length,
4891 codecvt<wchar_t, char, mbstate_t>::do_out):
4892 New implementation that handles stateless encodings,
4895 * config/locale/generic/codecvt_members.cc,
4896 * config/locale/gnu/codecvt_members.cc,
4897 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
4898 * include/bits/codecvt.h,
4900 (codecvt::length, codecvt::do_length):
4901 Change type of first argument of length and do_length from
4902 'const state_type&' to 'state_type&' according to DR 75.
4904 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
4905 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
4906 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
4907 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
4908 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
4909 Cleanup and check for correct return value from encoding
4911 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
4912 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
4913 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
4914 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
4915 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
4916 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
4917 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
4918 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
4919 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
4920 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
4921 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
4922 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
4923 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
4924 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
4925 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
4926 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
4927 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
4928 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
4929 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
4930 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
4931 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
4932 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
4933 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
4934 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
4935 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
4936 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
4937 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
4938 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
4939 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
4940 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
4941 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
4942 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
4943 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
4944 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
4945 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
4946 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
4947 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
4949 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
4951 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
4952 (money_put::do_put): Same.
4954 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
4956 * include/bits/ios_base.h (ios_base): Document reserved storage.
4958 * include/bits/locale_facets.h: (struct __pad): Comment on
4960 (__verify_grouping): Same.
4961 (__add_grouping): Same.
4962 * include/bits/locale_facets.tcc (__verify_grouping): Move
4963 comments to declaration.
4964 (__add_grouping): Same.
4966 * include/bits/locale_facets.tcc:
4967 (__write<_CharT, _OutIter>): New function.
4968 (__write<_CharT>): New function specialization.
4969 (num_put::_M_insert): Remove explicit loop over iterator. Use
4971 (num_put::_M_widen_float): Remove __basefield.
4972 (num_put::_M_widen_int): Move __basefield to within grouping block.
4974 * include/bits/streambuf_iterator.h: Include <streambuf>.
4975 (ostreambuf_iterator::_M_put): Add.
4977 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
4979 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
4981 2003-02-04 Nathan Myers <ncm@cantrip.org>
4983 * testsuite/25_algorithms/min_max.cc (test02): Add.
4985 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
4987 PR libstdc++/9439, PR libstdc++/9425
4988 * config/io/basic_file_stdio.cc
4989 (__basic_file<char>::seekoff, seekpos): Return -1L if
4991 * include/bits/fstream.tcc (basic_filebuf::seekoff):
4992 Check _M_file.seekoff return value; always return
4993 pos_type(off_type(-1)) in case of failure.
4994 (basic_filebuf::pbackfail): Check this->seekoff return
4995 value and return traits_type::eof() in case of failure.
4996 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
4998 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
5000 * include/std/std_ostream.h (ostream::_M_write): Declare.
5001 * ostream.tcc (ostream::_M_write): Define.
5002 (basic_ostream::write): Use it.
5003 (operator<<(basic_ostream, _CharT)): Ditto.
5004 (operator<<(basic_ostream, char)): Ditto.
5005 (operator<<(basic_ostream, _CharT*)): Ditto.
5006 (operator<<(basic_ostream, char*)): Ditto.
5007 (operator<<(basic_ostream, basic_string)): Ditto.
5009 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
5011 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
5013 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5015 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
5016 add HTML comment about updating links if numbering changes.
5018 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5021 * include/bits/streambuf.tcc (sputbackc): Access
5022 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
5023 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
5025 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5028 * include/bits/fstream.tcc (open): If the 'ate' repositioning
5029 operation fails, calls close _and_ returns a null pointer
5030 to indicate failure (27.8.1.3,4).
5031 * testsuite/27_io/filebuf_members.cc (test_06): Add.
5033 2003-02-04 Petur Runolfsson <peturr02@ru.is>
5035 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
5037 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5039 * docs/html/27_io/howto.html: New section on stdio_filebuf.
5040 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
5041 * docs/html/documentation.html: Regenerate.
5043 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
5045 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
5046 * docs/html/17_intro/porting.html: Regenerate.
5048 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5049 Phil Edwards <pme@gcc.gnu.org>
5051 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
5052 numeric_limits for bits-per-word values.
5053 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
5054 Use __builtin_popcountl instead.
5055 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
5056 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
5057 Use __builtin_ctzl instead.
5058 (_S_bit_count, _S_first_one): Remove.
5059 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
5060 * src/Makefile.am (sources): Remove bitset.cc.
5061 * src/bitset.cc: Delete file.
5062 * src/Makefile.in: Regenerate.
5064 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
5066 PR libstdc++/9527, PR libstdc++/8713
5067 * docs/html/install.html: Mention glibc version requirement.
5068 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
5069 with 3.2.1+ (formatting bugfixes).
5070 * docs/html/faq/index.txt: Regenerate.
5072 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5075 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
5078 * include/bits/valarray_before.h (__not_equal_to): Use != instead
5081 * testsuite/26_numerics/valarray_operators.cc: New test.
5083 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
5085 * docs/html/faq/index.html: Correct link to libg++ information.
5086 * docs/html/faq/index.txt: Regenerated.
5088 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
5089 Benjamin Kosnik <bkoz@redhat.com>
5091 Const correctness issue:
5092 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
5093 * include/bits/locale_classes.h
5094 (locale::_Impl::_M_facets): Change type to const facet**.
5095 (locale::_Impl::_M_install_facet): Change declaration to
5097 (locale::facet::_M_references): Make mutable.
5098 (locale::facet::_M_add_reference): Declare const.
5099 (locale::facet::_M_remove_reference): Likewise.
5100 * include/bits/locale_facets.tcc
5101 (use_facet(const locale&)): Tweak for const facet** _M_facets.
5102 (has_facet(const locale&)): Likewise.
5104 (locale::facet::_M_add_reference): Adjust definition.
5105 (locale::facet::_M_remove_reference): Likewise.
5107 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
5108 const facet** _M_facets.
5109 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
5110 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
5111 (locale::_Impl::_M_install_facet): Adjust definition to take
5112 const facet* and for const facet** _M_facets.
5113 * testsuite/22_locale/locale/cons/8.cc: Add.
5115 2003-01-29 Mark Mitchell <mark@codesourcery.com>
5117 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
5118 Use __FLT_HAS_INIFINITY__ to initialize.
5119 (numeric_limits<float>::has_quiet_NaN): Likewise.
5120 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
5122 (numeric_limits<double>::has_quiet_NaN): Likewise.
5123 (numeric_limits<long double>::has_infinity): Use
5124 __LDBL_HAS_INIFINITY__ to initialize.
5125 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
5127 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
5130 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
5131 with bases which are very ambiguous.
5133 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5135 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
5136 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
5137 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
5138 * src/Makefile.in: Regenerate.
5139 * libsupc++/Makefile.in: Regenerate.
5141 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
5143 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
5144 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
5145 version_specific_libs is enabled.
5146 * aclocal.m4, configure: Rebuilt.
5148 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
5150 * include/bits/valarray_meta.h: Remove, split into ...
5151 * include/bits/valarray_before.h: ... this, and ...
5152 * include/bits/valarray_after.h: ... this.
5153 * include/std/std_valarray.h: Adjust.
5154 * include/Makefile.am (bits_headers): Adjust.
5155 * include/Makefile.in: Regenerate.
5157 2003-01-24 Andreas Schwab <schwab@suse.de>
5159 * config/linker-map.gnu: Fix for size_t variance.
5161 2003-01-23 Petur Runolfsson <peturr02@ru.is>
5164 * include/std/std_streambuf.h
5165 (basic_streambuf::basic_streambuf,
5166 basic_streambuf::~basic_streambuf,
5167 basic_streambuf::getloc, basic_streambuf::imbue):
5168 Remove _M_buf_locale_init
5169 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
5170 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
5171 * testsuite/27_io/streambuf_members.cc (test08): Add.
5172 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
5174 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
5176 Revert include ordering.
5177 * config/locale/generic/c_locale.h: Add include guards.
5178 * config/locale/gnu/c_locale.h: Same.
5179 * include/bits/locale_classes.h: Remove cctype include.
5180 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
5181 * include/std/std_fstream.h: Remove streambuf include.
5182 * include/std/std_sstream.h: Remove streambuf include.
5184 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
5186 * configure.in (libtool_VERSION): To 6:0:0.
5187 * configure: Regenerated.
5188 * config/linker-map.gnu: Clean.
5190 * src/misc-inst.cc: Remove instantiations.
5192 * include/bits/stl_alloc.h (__malloc_alloc_template):
5194 (__default_alloc_template): To __pool_alloc.
5195 * src/stl-inst.cc: Same.
5196 * include/backward/alloc.h: Update.
5197 * testsuite/ext/allocators.cc: Update.
5199 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
5200 really try to remove these if possible.
5201 * src/locale.cc (std): Same.
5203 * testsuite/abi_check.cc (check_version): Add.
5205 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
5206 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
5207 Mark Mitchell <mark@codesourcery.com>
5210 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
5211 (basic_filebuf::underflow): Declare.
5214 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
5216 * include/bits/locale_facets.h: Move non-facet classes requiring
5218 * include/bits/locale_classes.h: New.
5219 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
5220 * include/bits/Makefile.in: Regenerate.
5222 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
5223 * config/locale/gnu/c_locale.h: ...here.
5224 * config/locale/generic/c_locale.h: Same.
5226 * include/bits/locale_facets.tcc: Move declarations to...
5227 * include/bits/locale_facets.h: ...here.
5228 * include/bits/basic_ios.h: Tweak includes accordingly.
5229 * include/std/std_sstream.h: Add streambuf include.
5230 * include/std/std_fstream.h: Ditto.
5231 * include/std/std_locale.h: Add locale_classes.h include.
5232 * include/std/std_iosfwd.h: Tweak.
5233 * src/concept-inst.cc: Add iterator include.
5235 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
5236 bits as unexported in the future.
5238 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
5240 Reshuffle 22_locale testsuite.
5241 * 22_locale/(codecvt.cc money_get.cc
5242 codecvt_members_char_char.cc money_get_members_char.cc
5243 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
5244 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
5245 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
5246 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
5247 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
5248 money_put_members_char.cc ctor_copy_dtor.cc
5249 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
5250 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
5251 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
5252 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
5253 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
5254 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
5255 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
5256 operators.cc ctype_widen_char.cc static_members.cc
5257 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
5258 global_templates.cc time_get_members_wchar_t.cc, members.cc,
5259 time_put.cc, messages_byname.cc, time_put_members_char.cc,
5260 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
5261 Split up into individual test cases...
5262 * 22_locale/codecvt/1.cc: New.
5263 * 22_locale/codecvt/2.cc: New.
5264 * 22_locale/codecvt/always_noconv/char/1.cc: New.
5265 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
5266 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
5267 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
5268 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
5269 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
5270 * 22_locale/codecvt/encoding/char/1.cc: New.
5271 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
5272 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
5273 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
5274 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
5275 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
5276 * 22_locale/codecvt/in/char/1.cc: New.
5277 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
5278 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
5279 * 22_locale/codecvt/in/wchar_t/1.cc: New.
5280 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
5281 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
5282 * 22_locale/codecvt/length/char/1.cc: New.
5283 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
5284 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
5285 * 22_locale/codecvt/length/wchar_t/1.cc: New.
5286 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
5287 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
5288 * 22_locale/codecvt/max_length/char/1.cc: New.
5289 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
5290 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
5291 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
5292 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
5293 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
5294 * 22_locale/codecvt/out/char/1.cc: New.
5295 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
5296 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
5297 * 22_locale/codecvt/out/wchar_t/1.cc: New.
5298 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
5299 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
5300 * 22_locale/codecvt/unicode/char.cc: New.
5301 * 22_locale/codecvt/unicode/wchar_t.cc: New.
5302 * 22_locale/codecvt/unshift/char/1.cc: New.
5303 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
5304 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
5305 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
5306 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
5307 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
5308 * 22_locale/collate/1.cc: New.
5309 * 22_locale/collate/2.cc: New.
5310 * 22_locale/collate/compare/char/1.cc: New.
5311 * 22_locale/collate/compare/char/2.cc: New.
5312 * 22_locale/collate/compare/char/wrapped_env.cc: New.
5313 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
5314 * 22_locale/collate/compare/wchar_t/1.cc: New.
5315 * 22_locale/collate/compare/wchar_t/2.cc: New.
5316 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
5317 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
5318 * 22_locale/collate/hash/char/1.cc: New.
5319 * 22_locale/collate/hash/char/2.cc: New.
5320 * 22_locale/collate/hash/char/wrapped_env.cc: New.
5321 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
5322 * 22_locale/collate/hash/wchar_t/1.cc: New.
5323 * 22_locale/collate/hash/wchar_t/2.cc: New.
5324 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
5325 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
5326 * 22_locale/collate/transform/char/2.cc: New.
5327 * 22_locale/collate/transform/char/wrapped_env.cc: New.
5328 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
5329 * 22_locale/collate/transform/wchar_t/2.cc: New.
5330 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
5331 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
5332 * 22_locale/collate_byname/1.cc: New.
5333 * 22_locale/ctype/1.cc: New.
5334 * 22_locale/ctype/2.cc: New.
5335 * 22_locale/ctype/cons/char/1.cc: New.
5336 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
5337 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
5338 * 22_locale/ctype/is/char/1.cc: New.
5339 * 22_locale/ctype/is/char/2.cc: New.
5340 * 22_locale/ctype/is/char/3.cc: New.
5341 * 22_locale/ctype/is/char/wrapped_env.cc: New.
5342 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
5343 * 22_locale/ctype/is/wchar_t/1.cc: New.
5344 * 22_locale/ctype/is/wchar_t/2.cc: New.
5345 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
5346 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
5347 * 22_locale/ctype/narrow/char/1.cc: New.
5348 * 22_locale/ctype/narrow/char/2.cc: New.
5349 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
5350 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
5351 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
5352 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
5353 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
5354 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
5355 * 22_locale/ctype/scan/char/1.cc: New.
5356 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
5357 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
5358 * 22_locale/ctype/scan/wchar_t/1.cc: New.
5359 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
5360 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
5361 * 22_locale/ctype/to/char/1.cc: New.
5362 * 22_locale/ctype/to/char/wrapped_env.cc: New.
5363 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
5364 * 22_locale/ctype/to/wchar_t/1.cc: New.
5365 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
5366 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
5367 * 22_locale/ctype/widen/char/1.cc: New.
5368 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
5369 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
5370 * 22_locale/ctype/widen/wchar_t/1.cc: New.
5371 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
5372 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
5373 * 22_locale/facet/1.cc: New.
5374 * 22_locale/facet/2.cc: New.
5375 * 22_locale/global_templates/1.cc: New.
5376 * 22_locale/locale/cons/1.cc: New.
5377 * 22_locale/locale/cons/2.cc: New.
5378 * 22_locale/locale/cons/3.cc: New.
5379 * 22_locale/locale/cons/4.cc: New.
5380 * 22_locale/locale/cons/5.cc: New.
5381 * 22_locale/locale/cons/6.cc: New.
5382 * 22_locale/locale/cons/7.cc: New.
5383 * 22_locale/locale/global_locale_objects/1.cc: New.
5384 * 22_locale/locale/global_locale_objects/2.cc: New.
5385 * 22_locale/locale/global_locale_objects/3.cc: New.
5386 * 22_locale/locale/operations/1.cc: New.
5387 * 22_locale/locale/operations/2.cc: New.
5388 * 22_locale/messages/1.cc: New.
5389 * 22_locale/messages/2.cc: New.
5390 * 22_locale/messages/members/char/1.cc: New.
5391 * 22_locale/messages/members/char/2.cc: New.
5392 * 22_locale/messages/members/char/3.cc: New.
5393 * 22_locale/messages/members/char/wrapped_env.cc: New.
5394 * 22_locale/messages/members/char/wrapped_locale.cc: New.
5395 * 22_locale/messages_byname/1.cc: New.
5396 * 22_locale/money_get/1.cc: New.
5397 * 22_locale/money_get/2.cc: New.
5398 * 22_locale/money_get/get/char/1.cc: New.
5399 * 22_locale/money_get/get/char/2.cc: New.
5400 * 22_locale/money_get/get/char/3.cc: New.
5401 * 22_locale/money_get/get/char/4.cc: New.
5402 * 22_locale/money_get/get/char/5.cc: New.
5403 * 22_locale/money_get/get/char/6.cc: New.
5404 * 22_locale/money_get/get/char/7.cc: New.
5405 * 22_locale/money_get/get/char/8.cc: New.
5406 * 22_locale/money_get/get/char/wrapped_env.cc: New.
5407 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
5408 * 22_locale/money_get/get/wchar_t/1.cc: New.
5409 * 22_locale/money_get/get/wchar_t/2.cc: New.
5410 * 22_locale/money_get/get/wchar_t/3.cc: New.
5411 * 22_locale/money_get/get/wchar_t/4.cc: New.
5412 * 22_locale/money_get/get/wchar_t/5.cc: New.
5413 * 22_locale/money_get/get/wchar_t/6.cc: New.
5414 * 22_locale/money_get/get/wchar_t/7.cc: New.
5415 * 22_locale/money_get/get/wchar_t/8.cc: New.
5416 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
5417 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
5418 * 22_locale/money_put/1.cc: New.
5419 * 22_locale/money_put/2.cc: New.
5420 * 22_locale/money_put/put/char/1.cc: New.
5421 * 22_locale/money_put/put/char/2.cc: New.
5422 * 22_locale/money_put/put/char/3.cc: New.
5423 * 22_locale/money_put/put/char/4.cc: New.
5424 * 22_locale/money_put/put/char/5.cc: New.
5425 * 22_locale/money_put/put/char/6.cc: New.
5426 * 22_locale/money_put/put/char/wrapped_env.cc: New.
5427 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
5428 * 22_locale/money_put/put/wchar_t/1.cc: New.
5429 * 22_locale/money_put/put/wchar_t/2.cc: New.
5430 * 22_locale/money_put/put/wchar_t/3.cc: New.
5431 * 22_locale/money_put/put/wchar_t/4.cc: New.
5432 * 22_locale/money_put/put/wchar_t/5.cc: New.
5433 * 22_locale/money_put/put/wchar_t/6.cc: New.
5434 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
5435 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
5436 * 22_locale/moneypunct/1.cc: New.
5437 * 22_locale/moneypunct/2.cc: New.
5438 * 22_locale/moneypunct/3.cc: New.
5439 * 22_locale/moneypunct/members/char/1.cc: New.
5440 * 22_locale/moneypunct/members/char/2.cc: New.
5441 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
5442 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
5443 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
5444 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
5445 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
5446 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
5447 * 22_locale/moneypunct_byname/1.cc: New.
5448 * 22_locale/num_get/1.cc: New.
5449 * 22_locale/num_get/2.cc: New.
5450 * 22_locale/num_get/get/char/1.cc: New.
5451 * 22_locale/num_get/get/char/2.cc: New.
5452 * 22_locale/num_get/get/char/3.cc: New.
5453 * 22_locale/num_get/get/char/4.cc: New.
5454 * 22_locale/num_get/get/char/5.cc: New.
5455 * 22_locale/num_get/get/char/6.cc: New.
5456 * 22_locale/num_get/get/char/wrapped_env.cc: New.
5457 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
5458 * 22_locale/num_get/get/wchar_t/1.cc: New.
5459 * 22_locale/num_get/get/wchar_t/2.cc: New.
5460 * 22_locale/num_get/get/wchar_t/3.cc: New.
5461 * 22_locale/num_get/get/wchar_t/4.cc: New.
5462 * 22_locale/num_get/get/wchar_t/5.cc: New.
5463 * 22_locale/num_get/get/wchar_t/6.cc: New.
5464 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
5465 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
5466 * 22_locale/num_put/1.cc: New.
5467 * 22_locale/num_put/2.cc: New.
5468 * 22_locale/num_put/put/char/1.cc: New.
5469 * 22_locale/num_put/put/char/2.cc: New.
5470 * 22_locale/num_put/put/char/3.cc: New.
5471 * 22_locale/num_put/put/char/4.cc: New.
5472 * 22_locale/num_put/put/char/5.cc: New.
5473 * 22_locale/num_put/put/char/wrapped_env.cc: New.
5474 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
5475 * 22_locale/num_put/put/wchar_t/1.cc: New.
5476 * 22_locale/num_put/put/wchar_t/2.cc: New.
5477 * 22_locale/num_put/put/wchar_t/3.cc: New.
5478 * 22_locale/num_put/put/wchar_t/4.cc: New.
5479 * 22_locale/num_put/put/wchar_t/5.cc: New.
5480 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
5481 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
5482 * 22_locale/numpunct/1.cc: New.
5483 * 22_locale/numpunct/2.cc: New.
5484 * 22_locale/numpunct/members/char/1.cc: New.
5485 * 22_locale/numpunct/members/char/2.cc: New.
5486 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
5487 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
5488 * 22_locale/numpunct/members/wchar_t/1.cc: New.
5489 * 22_locale/numpunct/members/wchar_t/2.cc: New.
5490 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
5491 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
5492 * 22_locale/numpunct_byname/1.cc: New.
5493 * 22_locale/numpunct_byname/2.cc: New.
5494 * 22_locale/time_get/1.cc: New.
5495 * 22_locale/time_get/2.cc: New.
5496 * 22_locale/time_get/date_order/char/1.cc: New.
5497 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
5498 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
5499 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
5500 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
5501 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
5502 * 22_locale/time_get/get_date/char/1.cc: New.
5503 * 22_locale/time_get/get_date/char/2.cc: New.
5504 * 22_locale/time_get/get_date/char/3.cc: New.
5505 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
5506 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
5507 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
5508 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
5509 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
5510 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
5511 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
5512 * 22_locale/time_get/get_monthname/char/1.cc: New.
5513 * 22_locale/time_get/get_monthname/char/2.cc: New.
5514 * 22_locale/time_get/get_monthname/char/3.cc: New.
5515 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
5516 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
5517 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
5518 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
5519 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
5520 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
5521 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
5522 * 22_locale/time_get/get_time/char/1.cc: New.
5523 * 22_locale/time_get/get_time/char/2.cc: New.
5524 * 22_locale/time_get/get_time/char/3.cc: New.
5525 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
5526 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
5527 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
5528 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
5529 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
5530 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
5531 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
5532 * 22_locale/time_get/get_weekday/char/1.cc: New.
5533 * 22_locale/time_get/get_weekday/char/2.cc: New.
5534 * 22_locale/time_get/get_weekday/char/3.cc: New.
5535 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
5536 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
5537 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
5538 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
5539 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
5540 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
5541 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
5542 * 22_locale/time_get/get_year/char/1.cc: New.
5543 * 22_locale/time_get/get_year/char/3.cc: New.
5544 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
5545 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
5546 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
5547 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
5548 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
5549 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
5550 * 22_locale/time_put/1.cc: New.
5551 * 22_locale/time_put/2.cc: New.
5552 * 22_locale/time_put/put/char/1.cc: New.
5553 * 22_locale/time_put/put/char/10.cc: New.
5554 * 22_locale/time_put/put/char/2.cc: New.
5555 * 22_locale/time_put/put/char/3.cc: New.
5556 * 22_locale/time_put/put/char/4.cc: New.
5557 * 22_locale/time_put/put/char/5.cc: New.
5558 * 22_locale/time_put/put/char/6.cc: New.
5559 * 22_locale/time_put/put/char/7.cc: New.
5560 * 22_locale/time_put/put/char/8.cc: New.
5561 * 22_locale/time_put/put/char/9.cc: New.
5562 * 22_locale/time_put/put/char/wrapped_env.cc: New.
5563 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
5564 * 22_locale/time_put/put/wchar_t/1.cc: New.
5565 * 22_locale/time_put/put/wchar_t/10.cc: New.
5566 * 22_locale/time_put/put/wchar_t/2.cc: New.
5567 * 22_locale/time_put/put/wchar_t/3.cc: New.
5568 * 22_locale/time_put/put/wchar_t/4.cc: New.
5569 * 22_locale/time_put/put/wchar_t/5.cc: New.
5570 * 22_locale/time_put/put/wchar_t/6.cc: New.
5571 * 22_locale/time_put/put/wchar_t/7.cc: New.
5572 * 22_locale/time_put/put/wchar_t/8.cc: New.
5573 * 22_locale/time_put/put/wchar_t/9.cc: New.
5574 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
5575 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
5577 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
5579 * config/locale/generic/messages_members.h
5580 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
5581 unqualified members of base clasess.
5583 2003-01-16 Mark Mitchell <mark@codesourcery.com>
5584 Jeffrey Oldham <oldham@codesourcery.com>
5586 * config/locale/gnu/messages_members.h: Use this-> to refer to
5587 unqualified members of base clasess.
5588 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
5589 * include/bits/codecvt.h: Likewise.
5590 * include/bits/deque.tcc: Likewise.
5591 * include/bits/fstream.tcc: Likewise.
5592 * include/bits/istream.tcc: Likewise.
5593 * include/bits/list.tcc: Likewise.
5594 * include/bits/locale_facets.h: Likewise.
5595 * include/bits/ostream.tcc: Likewise.
5596 * include/bits/sstream.tcc: Likewise.
5597 * include/bits/stl_bvector.h: Likewise.
5598 * include/bits/stl_deque.h: Likewise.
5599 * include/bits/stl_list.h: Likewise.
5600 * include/bits/stl_tree.h: Likewise.
5601 * include/bits/stl_vector.h: Likewise.
5602 * include/bits/vector.tcc: Likewise.
5603 * include/ext/ropeimpl.h: Likewise.
5604 * include/ext/stdio_filebuf.h: Likewise.
5605 * include/ext/stl_rope.h: Likewise.
5606 * include/std/std_fstream.h: Likewise.
5607 * include/std/std_sstream.h: Likewise.
5609 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
5611 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
5613 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
5615 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
5616 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
5617 * aclocal.m4: Regenerate.
5618 * configure: Regenerate.
5619 * testsuite/Makefile.am (all-local): Add conditional rule to
5620 generate testsuite_wchar_t.
5621 * testsuite/Makefile.in: Regenerate.
5622 * testsuite/lib/libstdc++-v3-dg.exp
5623 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
5624 testsuite_wchar_t is not present in the build directory.
5625 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
5626 Remove setulimit bits.
5627 * testsuite/26_numerics/complex_value.cc: Set to noopts.
5628 * testsuite/Makefile.am (CLEANFILES): Add.
5629 * testsuite/Makefile.in: Regenerate.
5631 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5633 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
5636 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
5638 Further conform g++'s __vmi_class_type_info to the C++ ABI
5640 * libsupc++/cxxabi.h
5641 (__vmi_class_type_info::__flags_masks): Remove enumerations not
5642 required by the specification.
5644 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
5646 Renames, namespaces for testsuite utilities.
5647 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
5648 (gnu_allocator_tracker): Rename to allocation_tracker.
5649 (gnu_new_allocator): Rename to tracker_alloc.
5650 (__set_testsuite_memlimit): Rename to set_memory_limits.
5651 (gnu_assignment_operator): Rename to assignment_operator.
5652 (gnu_destructor): Rename to destructor.
5653 (gnu_copy_tracker): Rename to copy_tracker.
5654 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
5655 (run_tests_wrapped_locale): New.
5656 (run_tests_wrapped_env): New.
5657 * testsuite/testsuite_hooks.cc: Same.
5658 (class locale_data): Add.
5659 (class enviornment_variable): Add.
5660 (class not_found): Add.
5661 * testsuite/testsuite_allocator.h: Same.
5662 * testsuite/testsuite_allocator.cc: Same.
5663 * testsuite/23_containers/deque_ctor.cc
5664 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
5666 Change gnu_new_allocator to tracker_alloc.
5667 Change gnu_counting_struct to counter.
5668 Change gnu_copy_tracker to copy_tracker.
5669 Change gnu_copy_constructor to copy_constructor.
5670 Change gnu_assignment_operator to assignment_operator.
5672 * testsuite/23_containers/vector_capacity.cc: Same.
5673 * testsuite/23_containers/vector_ctor.cc (test01): Same.
5674 * testsuite/23_containers/list_modifiers.cc: Change
5675 gnu_copy_tracker to copy_tracker.
5676 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
5677 __set_testsuite_memlimit to set_memory_limits.
5678 * testsuite/21_strings/insert.cc (main): Same.
5679 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
5680 * testsuite/27_io/stringstream.cc: Same.
5681 * testsuite/27_io/stringbuf.cc: Same.
5682 * testsuite/27_io/streambuf.cc: Same.
5683 * testsuite/27_io/ostream.cc: Same.
5684 * testsuite/27_io/istream.cc: Same.
5685 * testsuite/27_io/fstream.cc: Same.
5686 * testsuite/lib/libstdc++-v3-dg.exp
5687 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
5688 three levels deeper in glob patterns.
5690 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
5692 * docs/doxygen/tables.html: Finished now.
5693 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
5694 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
5697 * include/bits/deque.tcc, include/bits/stl_alloc.h,
5698 include/bits/stl_deque.h, include/bits/stl_list.h,
5699 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
5702 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
5704 * configure.in: Revert.
5705 * configure: Regenerate.
5707 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5709 * include/Makefile.am (install-data-local): Prepend
5710 $(DESTDIR) to destination paths in all (un)installation
5711 commands. Use ${c_base_builddir} and ${std_builddir}
5712 as destination subdirectories to achieve consistency with
5713 preceding mkinstalldirs commands. No effect because both
5714 variables contain "." only.
5715 * include/Makefile.in: Regenerate.
5717 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
5719 * include/Makefile.am (stamp-*): Add checks for existing stamps.
5720 * include/Makefile.in: Regenerate.
5722 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
5723 * aclocal.m4: Regenerate.
5725 * configure.in: Don't add new multi-do rules every time the
5726 directory is reconfigured.
5727 * configure: Regenerate.
5729 2003-01-08 Brad Spencer <spencer@infointeractive.com>
5730 Nathan Myers <ncm@cantrip.org>
5732 * src/Makefile.am (stamp-debug): Clean.
5733 * src/Makefile.in: Regenerate.
5735 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
5738 * Makefile.am (distclean-multi): Fix.
5739 * Makefile.in: Regenerate.
5741 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
5743 * include/bits/locale_facets.h (messages): Move ctor, dtor
5745 (__timepunct): Same.
5746 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
5747 definitions. Conditionalize for GNU systems.
5748 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
5750 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
5751 definitions. Conditionalize for GNU systems.
5752 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
5754 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
5755 * src/locale.cc: Define.
5756 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
5758 * config/locale/gnu/time_members.h: Use it.
5759 * config/locale/gnu/messages_members.h: Use it.
5760 * config/linker-map.gnu: Add locale::facets details.
5761 * include/Makefile.am (target_headers_extra): Add time_members.h.
5762 * include/Makefile.in: Regenerate.
5763 * acinclude.m4: Export CTIME_H.
5764 * aclocal.m4: Regenerate.
5765 * configure: Regnerate.
5767 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
5770 (codecvt<char, char, mbstate_t>::do_in, do_out):
5771 Tweak parameters to avoid unused parameter warnings.
5773 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
5776 * include/bits/locale_facets.cc (num_put::_M_convert_float):
5777 Limit __prec to digits10 + 2, not digits10 + 1, taking into
5778 account the possibility of %{g,G} conversion specifiers
5779 inside _S_format_float.
5780 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
5782 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5784 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
5785 libstdc++-v3-list-sourcefiles): Additionally handle files one
5786 level deeper in glob patterns.
5788 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
5789 * testsuite/27_io/istream_extractor_arith/01.cc,
5790 testsuite/27_io/istream_extractor_arith/02.cc,
5791 testsuite/27_io/istream_extractor_arith/03.cc,
5792 testsuite/27_io/istream_extractor_arith/06.cc,
5793 testsuite/27_io/istream_extractor_arith/07.cc,
5794 testsuite/27_io/istream_extractor_arith/08.cc,
5795 testsuite/27_io/istream_extractor_arith/09.cc,
5796 testsuite/27_io/istream_extractor_arith/10.cc,
5797 testsuite/27_io/istream_extractor_arith/11.cc,
5798 testsuite/27_io/istream_extractor_arith/12.cc,
5799 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
5800 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
5803 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
5807 (codecvt<char, char, mbstate_t>::do_in, do_out):
5808 Implement the resolution of DR19 (TC).
5809 * testsuite/22_locale/codecvt_members_char_char.cc
5812 2003-01-02 Jason Merrill <jason@redhat.com>
5814 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
5815 *__mem is also an output.
5816 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.