1 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
3 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
4 when calling AC_PROG_CC.
5 * aclocal.m4, configure: Regenerate.
7 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
9 * acinclude.m4: Properly quote variable which will be expanded
10 inside makefiles. Use CXX instead of CC to extract compiler info.
11 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
12 correct form in PACKAGE.
13 * aclocal.m4, configure: Regenerate.
15 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
17 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
18 (check-abi-verbose): Same.
19 * testsuite/testsuite_performance.h (report_performance): Same.
21 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
23 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
25 2003-08-07 Doug Gregor <dgregor@apple.com>
27 * include/bits/char_traits.h (char_traits::not_eof): Match operand
30 2003-08-07 Bernardo Innocenti <bernie@develer.com>
33 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
34 Replace variants with new BSET-based version.
36 2003-08-07 Carlo Wood <carlo@alinoe.com>
38 * include/bits/demangle.h: Do not use cctype functions that depend
41 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
43 * configure.in: Rename...
44 * configure.ac: ...to this.
45 * docs/html/17_intro/porting.texi: Update name.
47 * docs/html/17_intro/porting.html: Regenerate.
48 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
49 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
50 testsuite/Makefile.in: Regenerate (picks up new dependancy).
52 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
54 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
55 pipe, open the window to let out the fumes, redo the option-handling
56 logic to properly execute the detection test.
57 * aclocal.m4, configure: Regenerate.
59 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
61 Convert to new autotools.
62 * acconfig.h: Update with correct names.
63 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
64 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
65 * configure.in: Update. Split hardcoded cross-configury settings
67 * crossconfig.m4: ...here. New file. Contents untouched.
68 * acinclude.m4: Reorganize and rewrite as needed. Split large
70 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
72 * scripts/testsuite_flags.in: Update.
74 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
75 variables (already generated by automake).
76 * include/Makefile.am: Ditto.
77 * libmath/Makefile.am: Ditto.
78 * libsupc++/Makefile.am: Ditto.
79 * po/Makefile.am: Ditto.
80 * src/Makefile.am: Ditto.
82 * aclocal.m4: Regenerate using new versions.
86 * include/Makefile.in: Ditto.
87 * libmath/Makefile.in: Ditto.
88 * libsupc++/Makefile.in: Ditto.
89 * po/Makefile.in: Ditto.
90 * src/Makefile.in: Ditto.
91 * testsuite/Makefile.in: Ditto.
93 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
95 * po/libstdc++.pot: Re-extract/regenerate.
97 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
99 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
100 Remove unneeded variable assignments. Leave them for automake.
101 * testsuite/lib/libstdc++-v3.exp: Rename...
102 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
104 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
105 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
108 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
110 * docs/doxygen/guide.html: run_doxygen uses bash.
111 * docs/doxygen/mainpage.html: We'll be shipping tag files.
112 * docs/doxygen/run_doxygen: Tweaks and improvements.
113 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
114 * docs/html/install.html: Update autoconf/automake requirements.
115 * docs/html/test.html: Add section describing DejaGNU support.
116 * docs/html/17_intro/confdeps.dot: New file, generates...
117 * docs/html/17_intro/confdeps.png: ...this new file.
118 * docs/html/Makefile: Generated here.
119 * docs/html/17_intro/configury.html: New file.
121 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
123 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
124 * testsuite/lib/libstdc++-v3.exp: ...to this.
125 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
127 2003-07-31 Doug Gregor <dgregor@apple.com>
129 Add user specialization tests.
130 * testsuite/23_containers/deque/1.cc: New.
131 * testsuite/23_containers/list/1.cc: New.
132 * testsuite/23_containers/map/1.cc: New.
133 * testsuite/23_containers/multimap/1.cc: New.
134 * testsuite/23_containers/multiset/1.cc: New.
135 * testsuite/23_containers/set/1.cc: New.
136 * testsuite/23_containers/vector/1.cc: New.
138 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
140 Reshuffle 23_containers testsuite.
141 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
142 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
143 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
144 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
145 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
146 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
147 vector_resize.cc: Split into...
148 * 23_containers/bitset/cons/1.cc: New.
149 * 23_containers/bitset/cons/6282.cc: New.
150 * 23_containers/bitset/count/6124.cc: New.
151 * 23_containers/bitset/operations/1.cc: New.
152 * 23_containers/bitset/operations/2.cc: New.
153 * 23_containers/bitset/test/1.cc: New.
154 * 23_containers/bitset/to_ulong/1.cc: New.
155 * 23_containers/deque/cons/1.cc: New.
156 * 23_containers/deque/cons/2.cc: New.
157 * 23_containers/deque/operators/1.cc: New.
158 * 23_containers/list/capacity/1.cc: New.
159 * 23_containers/list/cons/1.cc: New.
160 * 23_containers/list/cons/2.cc: New.
161 * 23_containers/list/cons/3.cc: New.
162 * 23_containers/list/cons/4.cc: New.
163 * 23_containers/list/cons/5.cc: New.
164 * 23_containers/list/cons/6.cc: New.
165 * 23_containers/list/cons/7.cc: New.
166 * 23_containers/list/cons/8.cc: New.
167 * 23_containers/list/cons/9.cc: New.
168 * 23_containers/list/modifiers/1.cc: New.
169 * 23_containers/list/modifiers/2.cc: New.
170 * 23_containers/list/modifiers/3.cc: New.
171 * 23_containers/list/operators/1.cc: New.
172 * 23_containers/list/operators/2.cc: New.
173 * 23_containers/list/operators/3.cc: New.
174 * 23_containers/list/operators/4.cc: New.
175 * 23_containers/map/insert/1.cc: New.
176 * 23_containers/map/operators/1.cc: New.
177 * 23_containers/map/operators/1_neg.cc: New.
178 * 23_containers/multiset/insert/1.cc: New.
179 * 23_containers/priority_queue/members/7161.cc: New.
180 * 23_containers/queue/members/7157.cc: New.
181 * 23_containers/set/operators/1_neg.cc: New.
182 * 23_containers/stack/members/7158.cc: New.
183 * 23_containers/vector/bool/1.cc: New.
184 * 23_containers/vector/bool/6886.cc: New.
185 * 23_containers/vector/capacity/1.cc: New.
186 * 23_containers/vector/capacity/2.cc: New.
187 * 23_containers/vector/capacity/8230.cc: New.
188 * 23_containers/vector/cons/1.cc: New.
189 * 23_containers/vector/cons/2.cc: New.
190 * 23_containers/vector/cons/3.cc: New.
191 * 23_containers/vector/cons/4.cc: New.
192 * 23_containers/vector/cons/6513.cc: New.
193 * 23_containers/vector/element_access/1.cc: New.
194 * 23_containers/vector/modifiers/1.cc: New.
195 * 23_containers/vector/modifiers/2.cc: New.
196 * 23_containers/vector/resize/1.cc: New.
198 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
200 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
202 * testsuite/thread/pthread2.cc: Likewise.
203 * testsuite/thread/pthread3.cc: Likewise.
204 * testsuite/thread/pthread4.cc: Likewise.
205 * testsuite/thread/pthread5.cc: Likewise.
206 * testsuite/thread/pthread6.cc: Likewise.
207 * testsuite/thread/pthread7-rope.cc: Likewise.
209 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
211 * include/bits/c++config: Partial reversion (comment placement) of
214 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
216 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
217 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
218 (_GLIBCXX_AT_AT): Remove.
219 (__USE_MALLOC): Remove.
220 * include/std/std_fstream.h: Modify.
221 * include/bits/basic_ios.h: Same.
222 * include/bits/valarray_array.h: Same.
223 * include/c_std/std_cmath.h: Same.
224 * include/c_std/cmath.tcc: Same.
225 * include/std/std_vector.h: Same.
226 * include/std/std_string.h: Same.
227 * include/std/std_stack.h: Same.
228 * include/std/std_queue.h: Same.
229 * include/std/std_list.h: Same.
230 * include/std/std_deque.h: Same.
231 * include/std/std_streambuf.h: Same.
232 * include/std/std_sstream.h: Same.
233 * include/std/std_ostream.h: Same.
234 * include/std/std_istream.h: Same.
235 * include/bits/valarray_array.tcc: Same, format.
237 * include/c/std_cctype.h: Fix include guards.
238 * include/c/std_cerrno.h: Same.
239 * include/c/std_cfloat.h: Same.
240 * include/c/std_climits.h: Same.
241 * include/c/std_clocale.h: Same.
242 * include/c/std_cmath.h: Same.
243 * include/c/std_csetjmp.h: Same.
244 * include/c/std_csignal.h: Same.
245 * include/c/std_cstdarg.h: Same.
246 * include/c/std_cstddef.h: Same.
247 * include/c/std_cstdio.h: Same.
248 * include/c/std_cstdlib.h: Same.
249 * include/c/std_cstring.h: Same.
250 * include/c/std_ctime.h: Same.
251 * include/c/std_cwchar.h: Same.
252 * include/c/std_cwctype.h: Same.
253 * include/c_std/cmath.tcc: Same.
254 * include/c_std/std_cmath.h: Same.
256 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
259 * include/bits/stl_tree.h: Replace C-style casts with C++-style
260 casts. Changes to avoid casting away constness. Eliminate
261 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
262 initialization lists. Move out implementation of __black_count()
264 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
265 Rename_Rb_tree_base_iterator::_M_increment() to
266 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
268 * config/linker-map.gnu: Add and change symbols here.
270 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
272 * docs/html/22_locale/howto.html: Use locale::classic() instead
275 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
277 * testsuite/testsuite_hooks.h: Remove list include.
278 (func_callback): Define as unique type, not std::list.
279 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
280 * testsuite/libstdc++-v3.dg/dg.exp: Same.
281 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
282 * testsuite/23_containers/bitset_ctor.cc:
283 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
284 * testsuite/18_support/numeric_limits.cc: Same.
285 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
286 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
287 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
288 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
289 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
290 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
291 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
292 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
293 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
294 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
295 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
296 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
297 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
298 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
299 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
300 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
301 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
302 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
303 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
304 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
305 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
306 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
307 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
308 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
309 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
310 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
311 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
312 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
313 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
314 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
315 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
316 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
317 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
318 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
319 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
320 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
321 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
322 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
323 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
324 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
325 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
326 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
327 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
328 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
329 * testsuite/23_containers/bitset_ctor.cc: Same.
330 * testsuite/23_containers/bitset_shift.cc: Same.
331 * testsuite/23_containers/vector_ctor.cc: Same.
332 * testsuite/23_containers/vector_element_access.cc: Same.
333 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
334 * testsuite/24_iterators/iterator.cc: Same.
335 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
336 * testsuite/25_algorithms/lower_bound.cc: Same.
337 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
338 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
339 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
340 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
341 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
342 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
343 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
344 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
345 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
346 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
347 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
350 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
352 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
353 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
354 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
355 GLIBCPP to GLIBCXX (and explain as needed).
357 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
361 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
363 * testsuite/22_locale/messages/members/char/1.cc,
364 testsuite/22_locale/messages/members/char/2.cc,
365 testsuite/22_locale/messages/members/char/3.cc,
366 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
367 the origin of LOCALEDIR.
368 * testsuite/lib/libstdc++-v3.exp: New file.
370 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
372 * include/bits/char_traits.h: Update copyright, tweak.
373 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
376 2003-07-24 Matt Austern <austern@apple.com>
378 * /include/bits/char_traits.h (class char_traits): Put all the
379 real work into the new class template __gnu_cxx::char_traits.
380 Gave generic definitions for member functions. Types are taken
381 from the new class template __gnu_cxx::_Char_types.
382 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
383 file. Test of std::char_traits<short>, which serves as a test of
384 the char_traits primary template.
386 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
388 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
390 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
392 * testsuite/23_containers/map_operators.cc: Conform to
393 container requirement as value must be Assignable.
395 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
397 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
398 tests not only generation of pch files, but also their use.
399 * aclocal.m4, configure: Rebuilt.
401 2003-07-23 Steve Ellcey <sje@cup.hp.com>
403 * config/cpu/hppa/atomicity.h: Change
404 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
405 to match misc-inst.cc
407 2003-07-23 Steve Ellcey <sje@cup.hp.com>
409 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
410 * include/c_std/std_cctype.h: Ditto.
411 * include/c_std/std_cerrno.h: Ditto.
412 * include/c_std/std_cfloat.h: Ditto.
413 * include/c_std/std_climits.h: Ditto.
414 * include/c_std/std_clocale.h: Ditto.
415 * include/c_std/std_cmath.h: Ditto.
416 * include/c_std/std_csetjmp.h: Ditto.
417 * include/c_std/std_csignal.h: Ditto.
418 * include/c_std/std_cstdarg.h: Ditto.
419 * include/c_std/std_cstddef.h: Ditto.
420 * include/c_std/std_cstdio.h: Ditto.
421 * include/c_std/std_cstdlib.h: Ditto.
422 * include/c_std/std_cstring.h: Ditto.
423 * include/c_std/std_ctime.h: Ditto.
424 * include/c_std/std_cwchar.h: Ditto.
425 * include/c_std/std_cwctype.h: Ditto.
426 * include/std/std_algorithm.h: Ditto.
427 * include/std/std_bitset.h: Ditto.
428 * include/std/std_complex.h: Ditto.
429 * include/std/std_deque.h: Ditto.
430 * include/std/std_fstream.h: Ditto.
431 * include/std/std_functional.h: Ditto.
432 * include/std/std_iomanip.h: Ditto.
433 * include/std/std_ios.h: Ditto.
434 * include/std/std_iosfwd.h: Ditto.
435 * include/std/std_iostream.h: Ditto.
436 * include/std/std_istream.h: Ditto.
437 * include/std/std_iterator.h: Ditto.
438 * include/std/std_limits.h: Ditto.
439 * include/std/std_list.h: Ditto.
440 * include/std/std_locale.h: Ditto.
441 * include/std/std_map.h: Ditto.
442 * include/std/std_memory.h: Ditto.
443 * include/std/std_numeric.h: Ditto.
444 * include/std/std_ostream.h: Ditto.
445 * include/std/std_queue.h: Ditto.
446 * include/std/std_set.h: Ditto.
447 * include/std/std_sstream.h: Ditto.
448 * include/std/std_stack.h: Ditto.
449 * include/std/std_stdexcept.h: Ditto.
450 * include/std/std_streambuf.h: Ditto.
451 * include/std/std_string.h: Ditto.
452 * include/std/std_utility.h: Ditto.
453 * include/std/std_valarray.h: Ditto.
454 * include/std/std_vector.h: Ditto.
456 2003-07-22 Doug Gregor <dgregor@apple.com>
458 * include/bits/basic_string.h (basic_string::insert): Deprecate
461 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
463 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
465 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
466 (test03): Include typeinfo for bad_cast.
467 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
468 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
469 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
471 2003-07-21 Doug Gregor <dgregor@apple.com>
473 * include/bits/boost_concept_check.h:
474 (_EqualityComparableConcept::__constraints): Remove != from the
475 list of constraints; it is not listed in Table 28 of the C++98
478 2003-07-18 Andreas Jaeger <aj@suse.de>
480 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
481 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
482 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
483 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
485 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
487 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
488 * config/locale/generic/messages_members.h: Tweaks.
489 * config/locale/generic/monetary_members.cc
490 (moneypunct::_M_initialize_moneypunct): Use cache.
491 (moneypunct::~moneypunct): Delete cache.
492 * config/locale/generic/time_members.cc:
493 (__timepunct::_M_initialize_timepunct): Use cache.
494 * config/locale/generic/time_members.h:
495 (__timepunct::~__timepunct): Delete cache.
496 (__timepunct::__timepunct): Set cache.
497 * config/locale/gnu/messages_members.h: Tweaks.
498 * config/locale/gnu/monetary_members.cc:
499 (moneypunct::_M_initialize_moneypunct): Use cache.
500 (moneypunct::~moneypunct): Delete cache.
501 * config/locale/gnu/time_members.cc:
502 (__timepunct::_M_initialize_timepunct): Use cache.
503 * config/locale/gnu/time_members.h:
504 (__timepunct::~__timepunct): Delete cache.
505 (__timepunct::__timepunct): Set cache.
506 * include/bits/locale_facets.h (__timepunct_cache): New.
507 (__moneypunct_cache): New.
508 * include/bits/locale_facets.tcc: Tweak.
509 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
510 * src/locale-inst.cc: Instantiate caches.
511 * src/globals.cc: Add "C" caches.
512 * src/localename.cc: Use external "C" caches.
514 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
516 * docs/doxygen/guide.html: Fix typo.
518 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
520 * include/ext/pod_char_traits.h: Add state template argument.
522 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
524 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
525 (num_get::_M_convert_int): To _M_insert_int.
526 (num_get::_M_convert_float): To _M_insert_float.
527 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
528 Use caches for ctype, num_get.
529 (num_get::_M_extract_int): Same.
530 (num_get::get(bool)): Same.
531 (__verify_grouping): Use size_t.
532 * src/locale-inst.cc: Update.
533 * src/locale.cc: Adjust _S_atoms_in.
535 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
537 * docs/doxygen/mainpage.html: Move building/writing instructions...
538 * docs/doxygen/guide.html: ...to here. New file.
540 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
542 * docs/html/ext/howto.html: Update URL for SGI STL docs.
543 * docs/html/faq/index.html: Same.
544 * docs/html/faq/index.txt: Regenerate.
546 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
549 * include/bits/locale_facets.tcc (money_get::do_get):
550 Strip only _leading_ zeros.
551 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
552 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
554 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
556 * include/ext/hash_map (class hash_multimap): Remove extra
557 semicolons from __glibcxx_class_requires3 entries.
558 * include/ext/hash_set (class hash_set): Ditto.
559 (class hash_multiset): Ditto.
561 2003-07-15 Petur Runolfsson <peturr02@ru.is>
563 * include/bits/char_traits.h (char_traits<wchar_t>::move):
564 Change last parameter from int_type to size_t.
566 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
568 * include/bits/stl_algo.h (includes, set_union, set_intersection,
569 set_difference, set_symmetric_difference, max_element, min_element,
570 next_permutation, prev_permutation, find_first_of, find_end):
572 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
573 restrictions in docs.
574 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
576 * docs/doxygen/doxygroups.cc (setoperations): New group.
578 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
580 * include/bits/basic_string.h: Document public functions.
581 * docs/doxygen/TODO: Update c21 todo.
583 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
585 * include/bits/stl_list.h: Document more functions.
586 * docs/doxygen/TODO: Update c23 todo.
588 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
590 * config/locale/gnu/c_locale.h (__convert_from_v): One more
593 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
595 * include/bits/stl_tempbuf.h: Qualify free with std::.
596 * src/locale.cc: Include <cstdlib>, qualify getenv.
598 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
600 * config/locale/gnu/c_locale.h (__convert_from_v): Include
601 <cstdio>. Qualify names.
602 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
604 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
605 Nathan C. Myers <ncm-nospam@cantrip.org>
608 * include/std/std_fstream.h (xsputn): Declare only.
609 * include/bits/fstream.tcc (xsputn): Define, optimize for the
610 always_noconv() case: when __n is sufficiently large flush
611 the buffer and issue a direct write, if possible combining the
612 two with writev in __basic_file<>::xsputn_2.
613 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
615 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
617 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
618 the availability of writev in <sys/uio.h>.
619 * configure.in: Call here.
620 * acconfig.h: Add undef for the corresponding symbol.
621 * aclocal.m4: Regenerate.
622 * configure: Regenerate.
623 * config.h.in: Regenerate.
624 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
626 * include/std/std_fstream.h (sync): Constify a variable.
628 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
630 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
631 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
633 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
635 * config/locale/gnu/c_locale.h (__convert_from_v): Include
636 <cstring> and <cstdlib>. Qualify names.
638 2003-07-13 Mark Mitchell <mark@codesourcery.com>
640 * config/locale/generic/c_locale.h: Include <cstdlib> and
642 * include/bits/boost_concept_check.h: Add this-> to unqualified
644 * include/bits/deque.tcc: Likewise.
645 * include/bits/locale_facets.h : Likewise.
646 * include/bits/ostream.tcc: Likewise.
647 * include/bits/stl_algo.h: Likewise.
648 * include/bits/stl_bvector.h: Likewise.
649 * include/bits/stl_deque.h: Likewise.
650 * include/bits/stl_list.h: Likewise.
651 * include/bits/stl_tree.h: Likewise.
652 * include/bits/stl_vector.h: Likewise.
653 * include/bits/vector.tcc: Likewise.
654 * include/ext/rope: Likewise.
655 * include/ext/ropeimpl.h: Likewise.
656 * include/ext/stdio_filebuf.h: Likewise.
658 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
660 * include/bits/basic_ios.h (copyfmt): Document.
661 * include/bits/ios_base.h (event, event_callback, register_callback,
662 xalloc, iword, pword): Document.
663 (imbue, ~ios_base): Update docs on callbacks.
665 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
667 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
668 warning messages if the environment cannot support symbol versioning.
669 (port_specific_symbol_file): It's plural, add an 's' on the end.
670 * configure.host: Likewise.
671 * src/Makefile.am: Likewise.
672 * config/linker-map.gnu: Remove one semicolon, heh.
673 * scripts/extract_symvers: Don't assume useful 'export' syntax.
674 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
675 * aclocal.m4, configure, src/Makefile.in: Regenerated.
677 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
679 * include/bits/locale_facets.tcc: Use function object for
680 __use_cache instead of template function. Partially specialize for
682 * include/bits/locale_classes.h: Update friend declaration for
684 (_M_install_cache): No throw exception specs.
685 * src/locale.cc: Remove __use_cache specializations.
686 * include/ext/pod_char_traits.h (length): Tweak.
687 * include/bits/locale_facets.h (__numpunct_cache): Remove
689 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
691 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
692 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
693 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
694 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
695 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
696 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
698 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
700 * src/ios.cc (_M_grow_words): Fix spelling.
702 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
704 * include/bits/stl_tree.h: Move larger member functions in
705 _Rb_tree_base_iterator and _Rb_tree_node to...
706 * src/stl_tree.cc: Here.
707 * src/Makefile.in: Add stl_tree.cc.
708 * src/Makefile.in: Regenerated.
709 * config/linker-map.gnu: Add symbols here.
711 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
713 * testsuite/ext/pod_char_traits.cc: New.
714 * include/ext/pod_char_traits.h: New.
715 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
716 * include/Makefile.in: Regenerate.
717 * docs/html/21_strings/howto.html: Update.
719 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
721 * testsuite/performance/list_create_fill_sort.cc: New.
723 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
725 * config/locale/generic/numeric_members.cc: Correct type info.
726 * config/locale/gnu/numeric_members.cc: Same.
727 * include/bits/locale_facets.h: Same.
729 * include/bits/char_traits.h: Correct spacing.
731 * src/locale.cc: Wrap to 80 col.
733 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
735 * include/std/std_complex.h: Partially revert last
736 changes: cmath functions must not be qualified.
738 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
740 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
741 2.11 with globbing backport fix.
742 * aclocal.m4, configure: Regenerated.
744 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
746 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
747 if output is at all possible (!_M_reading), cannot be active.
749 * include/std/std_fstream.h: Tweak comments to doxygen style.
751 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
753 * include/bits/locale_classes.h: Fully qualify standard
754 functions with std::, thus avoiding Koenig lookup.
755 * include/bits/locale_facets.tcc: Likewise.
756 * src/locale.cc: Likewise.
757 * src/localename.cc: Likewise.
759 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
761 * include/bits/allocator_traits.h: Fix doxygen markup.
762 * include/ext/mt_allocator.h: Likewise.
764 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
766 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
768 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
770 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
771 requirement. Add port_specific_symbol_file variable.
772 * configure.host: Add docs for port_specific_symbol_file.
773 Clean up try_cpu block for x86.
774 * config/linker-map.gnu: No more "last symbol can't have a
775 semicolon" kaka. Add hook for port-specific symbols.
776 * src/Makefile.am: Remove trailing whitespace.
777 (libstdc++-symbol.ver): Detect the presence of port-specific
778 symbols, and add them accordingly.
780 * docs/html/17_intro/porting.texi: Bring up to date.
782 * src/Makefile.in, aclocal.m4, configure,
783 docs/html/17_intro/porting.html: Regenerated.
785 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
787 * scripts/create_testsuite_files: New file.
788 * testsuite/Makefile.am (all-local, check-performance): Use it.
789 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
790 * testsuite/Makefile.in: Regenerated.
792 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
794 * testsuite/performance/fstream_seek_write.cc: Likewise.
795 * testsuite/performance/ofstream_insert_float.cc: Likewise.
796 * testsuite/performance/ofstream_insert_int.cc: Likewise.
797 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
799 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
801 * include/bits/stl_list.h: Performance and memory usage
802 improvements. In particular, the behaviour of the constructor and
803 destructor as the list header node is no longer dynamically
804 allocated/de-allocated.
805 * include/bits/list.tcc: Likewise.
807 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
809 * include/std/std_complex.h: Fully qualify standard
810 functions with std::, thus avoiding Koenig lookup.
811 * include/std/std_memory.h: Likewise.
812 * include/std/std_valarray.h: Likewise.
814 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
816 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
817 variable for grandparent and use const
819 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
821 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
822 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
823 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
824 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
825 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
826 * testsuite/27_io/objects/char/7.cc: Ditto
827 * testsuite/27_io/objects/char/9661-1.cc: Ditto
829 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
831 * include/std/std_bitset.h: Fully qualify standard
832 functions with std::, thus avoiding Koenig lookup.
834 * include/std/std_fstream.h: Change comment to doxygen style.
836 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
838 * include/std/std_limits.h: More CPP->CXX changes.
839 * scripts/check_survey.in: Likewise.
841 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
843 Move from CPP to CXX.
844 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
845 * testsuite/Makefile.am: Same.
846 * testsuite/Makefile.in: Regenerate.
847 * po/Makefile.am: Same.
848 * po/Makefile.in: Regenerate.
849 * libsupc++/Makefile.am: Same.
850 * libsupc++/Makefile.in: Regenerate.
851 * libmath/Makefile.am: Same.
852 * libmath/Makefile.in: Regenerate.
853 * include/Makefile.am: Same.
854 * include/Makefile.in: Regenerate.
855 * src/Makefile.am: Same.
856 * src/Makefile.in: Regenerate.
858 * configure.host: Same.
859 * configure.in: Same.
860 * configure: Regenerate.
861 * acinclude.m4: Same.
863 * src: Change all files in this directory.
865 * include: Same, standardize include guards.
869 2003-07-04 Zack Weinberg <zack@codesourcery.com>
871 * testsuite/22_locale/collate/compare/wchar_t/2.cc
872 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
873 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
874 * testsuite/22_locale/collate/hash/wchar_t/2.cc
875 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
876 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
877 * testsuite/22_locale/collate/transform/wchar_t/2.cc
878 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
879 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
880 XFAIL on all targets.
882 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
884 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
885 * aclocal.m4: Regenerate.
886 * configure: Regenerate.
888 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
890 * include/bits/locale_facets.tcc (__int_to_char): Move common case
893 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
894 Petur Runolfsson <peturr02@ru.is>
896 * config/io/basic_file_stdio.cc: Revert.
898 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
900 * include/bits/deque.tcc: Fully qualify standard
901 functions with std::, thus avoiding Koenig lookup.
902 * include/bits/gslice_array.h: Likewise.
903 * include/bits/indirect_array.h: Likewise.
904 * include/bits/list.tcc: Likewise.
905 * include/bits/mask_array.h: Likewise.
906 * include/bits/slice_array.h: Likewise.
908 2003-07-04 Gawain Bolton <gbolton@free.fr>
910 * include/bits/stl_tree.h: Performance and memory usage
913 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
915 * Makefile.am: Replace PWD with PWD_COMMAND.
916 * Makefile.in: Regenerated.
917 * docs/html/Makefile: Likewise.
919 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
921 * include/bits/valarray_array.h: Fully qualify standard
922 functions with std::, thus avoiding Koenig lookup.
923 * include/bits/vector.tcc: Likewise.
925 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
927 * include/Makefile.am: Update target_ to host_.
928 * include/Makefile.in: Regenerate.
929 * src/Makefile.am: Same.
930 * src/Makefile.in: Regenerate.
932 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
934 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
936 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
937 --enable-libstdcxx-debug-flags.
938 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
939 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
940 * aclocal.m4: Regenerate.
942 * docs/html/configopts.html: Update.
944 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
946 Revert the fix for libstdc++/11378.
948 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
951 * include/std/std_fstream.h (xsputn): In the unbuffered case,
952 provided always_noconv(), issue directly _M_file.xsputn.
953 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
955 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
957 * include/bits/stl_list.h: Fully qualify standard
958 functions with std::, thus avoiding Koenig lookup.
959 * include/bits/stl_queue.h: Likewise.
960 * include/bits/stl_raw_storage_iter.h: Likewise.
961 * include/bits/stl_tempbuf.h: Likewise.
962 * include/bits/stl_tree.h: Likewise.
963 * include/bits/stl_uninitialized.h: Likewise.
964 * include/bits/stl_vector.h: Likewise.
965 * include/ext/rope: Change includes order.
967 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
969 * configure.host (fpos_include_dir): Fix.
971 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
973 * include/bits/stl_heap.h: Fully qualify standard
974 functions with std::, thus avoiding Koenig lookup.
975 * include/bits/stl_iterator_base_funcs.h: Likewise.
977 * include/bits/stl_algo.h: Qualify __iterator_category too.
978 * include/bits/stl_algobase.h: Likewise.
979 * include/bits/stl_bvector.h: Likewise.
981 * include/bits/stl_algo.h: Don't qualify the pair type.
983 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
985 * include/Makefile.am (target_headers): Add fpos.h
986 (bits_headers): Remove.
987 * include/Makefile.in: Regenerate.
988 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
989 * configure: Regenerate.
990 * configure.host: Add fpos_include_dir.
991 * config/os/gnu-linux/fpos.h: New.
992 * config/os/generic/fpos.h: Add.
993 * include/bits/fpos.h: Remove.
995 * config/io/c_io_stdio.h: Remove fpos_t typedef.
997 * include/bits/fstream.tcc: Tweaks.
998 * include/std/std_fstream.h: Same.
1000 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
1001 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
1002 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
1003 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1004 * testsuite/27_io/fpos/1.cc: New.
1006 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
1007 Petur Runolfsson <peturr02@ru.is>
1009 * include/std/std_streambuf.h: Remove _M_pos.
1010 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
1011 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
1012 use fread/fwrite instead of read/write.
1013 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
1014 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
1015 before reading again.
1016 * testsuite/27_io/objects/char/6.cc: Tweak.
1018 2003-07-03 David Edelsohn <edelsohn@gnu.org>
1020 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
1021 _GLIBCPP_USE_WCHAR_T.
1023 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1025 * include/bits/basic_string.tcc (_M_replace_aux): Constify
1028 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1030 * include/bits/stl_bvector.h: Fully qualify standard
1031 functions with std::, thus avoiding Koenig lookup.
1032 * include/bits/stl_construct.h: Likewise.
1033 * include/bits/stl_deque.h: Likewise.
1035 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
1037 * testsuite/22_locale/num_put/put/char/7.cc: Include
1038 <testsuite_hooks.h>, tweak.
1039 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
1041 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
1043 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
1044 check* targets, but not libs/programs).
1045 * testsuite/Makefile.in: Regenerate.
1047 2003-07-01 Roger Sayle <roger@eyesopen.com>
1049 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
1050 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
1051 * aclocal.m4: Regenerate.
1052 * configure: Regenerate.
1054 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
1056 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
1057 * aclocal.m4: Regenerated.
1058 * configure: Regenerated.
1060 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
1063 * include/bits/fstream.tcc (underflow): For encoding() == 0
1064 don't read more than __buflen chars.
1065 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
1066 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
1067 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
1068 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
1070 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
1072 * 22_locale/num_put/put/char/7.cc: New.
1073 * 22_locale/num_put/put/wchar_t/7.cc: New.
1075 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
1077 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
1078 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
1080 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1082 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
1083 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
1084 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
1085 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
1086 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
1087 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
1088 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
1089 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
1090 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
1091 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
1092 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
1093 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
1094 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
1095 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
1096 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
1097 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
1098 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
1099 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
1100 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
1101 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
1102 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
1103 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
1104 * data/seekoff-1.tst: Remove.
1105 * data/seekoff-1io.tst: New.
1106 * data/seekoff-1out.tst: New.
1107 * data/seekoff-2.tst: Remove.
1108 * data/seekoff-2io.tst: New.
1109 * data/seekoff-2out.tst: New.
1111 * data/seekpos-1.tst: Remove.
1112 * data/seekpos-1io.tst: New.
1113 * data/seekpos-1out.tst: New.
1114 * data/seekpos-2.tst: Remove.
1115 * data/seekpos-2io.tst: New.
1116 * data/seekpos-2out.tst: New.
1117 * data/seekpos.txt: New.
1119 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
1121 * src/locale.cc (__use_cache<numpunct>): Move from here ...
1122 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
1125 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1127 * include/bits/stl_algobase.h: Fully qualify standard
1128 functions with std::, thus avoiding Koenig lookup.
1130 2003-06-30 Doug Gregor <dgregor@apple.com>
1132 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
1133 subscripting empty string.
1135 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
1137 * testsuite/Makefile.am (check-am): Do not override.
1138 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
1139 * testsuite/Makefile.in: Regenerate.
1141 2003-06-30 Doug Gregor <dgregor@apple.com>
1143 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
1144 Don't initialize an insert_iterator with a singular iterator.
1146 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1148 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
1149 * aclocal.m4: Regenerate.
1150 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
1151 GLIBCPP_ENABLE_PCH, default to yes.
1152 * configure: Regenerate.
1153 * docs/html/configopts.html: Add --enable-pch.
1155 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
1157 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
1158 (libstdc++-v3-init): Also set LD_RUN_PATH.
1160 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1162 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
1163 from here to filebuf and stringbuf.
1164 (~basic_streambuf()): Don't set _M_mode.
1165 (basic_streambuf()): Don't set _M_mode.
1166 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
1167 (~basic_filebuf()): Clean up.
1168 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
1169 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
1170 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
1171 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
1172 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
1173 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
1174 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
1176 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
1178 * include/std/std_fstream.h (_M_underflow): Remove.
1179 (uflow): Remove, inherited from streambuf.
1180 (underflow): Only declare.
1181 * include/bits/fstream.tcc (_M_underflow): Rename to
1182 underflow, to which is equivalent for __bump == false,
1184 * include/std/std_sstream.h (_M_underflow): Remove.
1185 (uflow): Remove, inherited from streambuf.
1186 (underflow): Only declare.
1187 * include/bits/sstream.tcc (_M_underflow): Rename to
1188 underflow, to which is equivalent for __bump == false,
1191 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1193 * include/bits/stl_algo.h: Fully qualify standard functions
1194 with std::, thus avoiding Koenig lookup.
1196 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1198 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
1199 Improve type correctness-wise.
1200 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
1202 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
1204 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
1207 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
1209 * include/std/std_streambuf.h (uflow): According to
1210 27.5.2.4.3,p16, don't check gptr() < egptr().
1212 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
1215 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
1216 (seekpos): Likewise.
1217 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
1219 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
1222 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
1224 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
1225 output name to libstdc++-v3-performance.sum.
1226 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
1227 * testsuite/Makefile.in: Regenerate.
1229 2003-06-27 Matthias Klose <doko@debian.org>
1231 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
1232 output of abi-check in libstdc++-v3-abi.sum.
1233 * testsuite/Makefile.in: Regenerate.
1235 2003-06-27 Krister Walfridsson <cato@df.lth.se>
1237 * config/os/bsd/netbsd/ctype_noninline.h
1238 (_C_ctype_): Declare.
1239 (ctype<char>::classic_table): Return _C_ctype_ + 1.
1240 (ctype<char>::ctype): Use classic_table.
1242 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
1243 Nathan C. Myers <ncm-nospam@cantrip.org>
1246 * include/bits/fstream.tcc (_M_underflow): Properly estimate
1247 the worst-case number of external bytes for a given get area.
1248 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
1250 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
1251 Petur Runolfsson <peturr02@ru.is>
1254 * include/bits/fstream.tcc (overflow): Properly estimate the
1255 worst-case number of external bytes for a given put area
1256 (by using codecvt::max_length()).
1257 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
1258 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
1259 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
1260 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
1262 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1264 * config/linker-map.gnu: Remove ; after __numpunct_cache.
1266 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1268 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
1269 to the imbued locale.
1270 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
1272 (num_put::_M_convert_float): Use.
1274 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1275 Jerry Quinn <jlquinn@optonline.net>
1277 * config/linker-map.gnu: Add __numpunct_cache.
1278 * config/locale/gnu/numeric_members.cc
1279 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
1280 all elements for "C" locale.
1281 (numpunct::~numpunct): Delete _M_data.
1282 * config/locale/generic/numeric_members.cc: Same.
1283 * include/bits/basic_ios.tcc
1284 (basic_ios::init): Remove __locale_cache bits.
1285 (basic_ios::_M_cache_locale): Same.
1286 * include/bits/ios_base.h: Same. Tweaks.
1287 * include/bits/locale_classes.h: Tweaks. Reorder classes.
1288 (__use_cache): Make friends with _Impl, locale.
1289 (_Impl::_M_caches): Add.
1290 (_Impl::_M_install_cache): Add.
1291 * include/bits/locale_facets.h (__numpunct_cache): New.
1292 (numpunct): Encapsulate data members in __numpunct_cache member,
1293 _M_data. Adjust virtuals.
1294 (numpunct::numpunct): New ctor for the same.
1295 (__locale_cache_base): Remove.
1296 (__locale_cache): Remove.
1297 * include/bits/locale_facets.tcc (__use_cache): New function,
1299 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
1300 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
1301 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
1302 * src/locale-inst.cc: Same. Add __numpunct_cache.
1303 * src/locale.cc: Tweak inlines.
1304 (__use_cache): Define specializations.
1305 * src/localename.cc: Use global bits.
1306 (_Impl::~Impl): Deal with __numpunct_cache destruction.
1307 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
1308 (_Impl::_M_init_facet): Take into account __numpunct_cache.
1309 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
1310 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1312 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
1313 Paolo Carlini <pcarlini@unitus.it>
1315 * testsuite/performance/filebuf_copy.cc: New, testing char
1318 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
1319 Nathan C. Myers <ncm-nospam@cantrip.org>
1321 * include/bits/fstream.tcc (_M_underflow): When the actual
1322 end of file is reached, set 'uncommitted' mode to allow a
1323 next write without an intervening seek (see C++98 27.8.1.1,2
1325 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
1327 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
1329 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1330 sputc): Move inline, from here...
1331 * include/std/std_streambuf.h: ... to here.
1333 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
1334 sputbackc, sungetc, sputc): Use __builtin_expect.
1336 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
1338 * docs/doxygen/mainpage.html: Use a useful title.
1340 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1342 * docs/html/documentation.html: Remove assignment info.
1343 * docs/html/17_intro/contribute.html: Edits.
1344 * docs/html/17_intro/libstdc++-assign.tx: Remove.
1346 * docs/html/test.html: Update.
1350 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1351 Ulrich Drepper <drepper@redhat.com>
1353 * testsuite/testsuite_performance.h: Tweak mallinfo.
1355 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
1356 Nathan C. Myers <ncm-nospam@cantrip.org>
1358 * include/std/std_fstream.h (_M_filepos): Remove.
1359 (_M_reading, _M_writing): New, encode the various I/O modes:
1360 'read', 'write' and 'uncommitted'.
1361 (sync): If there is something to flush, do it, then go to
1363 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
1364 with three different cases: __off > 0 (upon underflow),
1365 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
1367 (_M_underflow): Don't call overflow, set _M_reading to true
1369 (pbackfail): Set _M_reading to true on pback creation, tweak.
1370 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
1371 set _M_writing to true on success, tweak.
1372 (seekoff): Simplify, set _M_reading, _M_writing to false, call
1373 _M_set_buffer(-1) ('uncommitted').
1374 (open, close, setbuf): Set _M_reading, _M_writing to false and
1375 call _M_set_buffer(-1), tweak.
1376 (basic_filebuf): Don't set _M_buf_unified.
1377 (_M_destroy_internal_buffer): Don't call setg and setp.
1378 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
1379 _M_writing and _M_set_buffer(-1).
1380 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
1381 _M_out_lim, _M_buf_unified): Remove.
1382 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
1383 (setp): Don't set _M_out_lim.
1384 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
1385 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
1386 upon open the mode is 'uncommitted' and therefore the put area
1388 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
1389 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
1390 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
1391 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
1392 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
1393 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
1394 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1395 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
1396 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
1397 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
1398 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
1399 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
1400 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
1401 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
1402 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
1403 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
1404 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
1405 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
1406 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
1407 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
1409 * include/bits/fstream.tcc (showmanyc): Use only the
1410 documented derivation interface to basic_streambuf (gptr(),
1411 setg(), etc.) to work right with user specializations.
1412 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1413 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
1414 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
1416 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
1419 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
1421 * configure.host (freebsd*): Set abi_baseline_pair.
1422 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
1423 (at or near first release) to 3.3.
1424 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
1425 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
1426 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
1428 * include/ext/mt_allocator.h: Portability.
1429 * testsuite/testsuite_performance.h: Likewise.
1431 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
1433 * docs/html/17_intro/libstdc++-assign.txt: Update address.
1435 * testsuite/performance/ifstream_getline.cc: Fix.
1437 2003-06-23 Doug Gregor <dgregor@apple.com>
1439 * include/bits/boost_concept_check.h: Don't use _D or _R for type
1442 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
1443 Nathan C. Myers <ncm-nospam@cantrip.org>
1445 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
1446 is now used only for filebuf, when _M_buf_unified is true.
1447 epgtr() plays the role of _M_out_lim but it's only updated
1448 upon overflow, underflow, uflow, seekoff/pos.
1449 * include/bits/sstream.tcc (_M_underflow): New, implements
1450 stringbuf::underflow and uflow.
1451 (seekoff, seekpos): Tweak, use _M_update_egptr.
1452 * include/std/std_sstream.h (str): Rewrote, deal correctly
1453 with the new logic, in particular, when pptr() > egptr().
1454 (_M_sync): When __testout && !__testin set all the get area
1455 pointers to the current string end.
1456 (_M_update_egptr): New, internal function updating egptr()
1457 to the actual string end.
1458 (_M_underflow): New, declare.
1459 (underflow): Dispatch to _M_underflow(false).
1460 (uflow): Dispatch to _M_underflow(true).
1462 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
1463 seekpos): Use only the documented derivation interface to
1464 basic_streambuf (gptr(), setg(), etc.) to work right with
1465 user specializations.
1466 * include/std/std_sstream.h (str, _M_sync): Likewise.
1468 2003-06-20 Doug Gregor <dgregor@apple.com>
1470 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
1471 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
1472 dereference end iterator.
1473 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
1474 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
1475 index equal to the length of a string.
1476 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
1477 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
1478 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
1479 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
1480 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
1481 * testsuite/23_containers/list_modifiers.cc: Don't dereference
1482 singular reverse iterator.
1483 * testsuite/23_containers/vector_bool.cc: Don't increment singular
1485 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
1487 2003-06-20 Doug Gregor <dgregor@apple.com>
1489 * include/bits/basic_string.h (basic_string::replace): Dispatch
1490 _InputIterator version based on _Is_integer.
1491 * include/bits/basic_string.tcc (basic_string::replace):
1492 Renamed replace(iterator, iterator, size_type, _CharT) to
1494 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
1495 Test basic_string::assign(_InputIterator, _InputIterator),
1496 which calls basic_string::replace(iterator, iterator,
1497 _Input_iterator, _InputIterator).
1499 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
1501 * testsuite/testsuite_performance.h (resource_counter): Don't use
1502 mallinfo at the moment.
1504 2003-06-20 Matthias Klose <doko@debian.org>
1506 * configure.host: Set try_cpu to target_cpu for existing
1509 2003-06-19 Andreas Jaeger <aj@suse.de>
1511 * testsuite/Makefile.am (extract_symvers): Revert accidental
1513 * testsuite/Makefile.in: Regenerate.
1515 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
1516 * configure: Regenerated.
1518 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
1520 * include/std/std_sstream.h (_M_sync): Make non virtual.
1522 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
1524 * testsuite/testsuite_performance.h (time_counter): New.
1525 (resource_counter): New.
1526 (report_performance): New.
1527 (start_counters): New.
1528 (stop_counters): New.
1529 (clear_counters): New.
1530 * testsuite/performance/allocator.cc: Instrument.
1531 * testsuite/performance/cout_insert_int.cc: Same.
1532 * testsuite/performance/complex_norm.cc: Same.
1533 * testsuite/performance/filebuf_sputc.cc: New.
1534 * testsuite/performance/fstream_seek_write.cc: Same.
1535 * testsuite/performance/ifstream_getline.cc: Same.
1536 * testsuite/performance/map_create_fill.cc: Same.
1537 * testsuite/performance/ofstream_insert_float.cc: Same.
1538 * testsuite/performance/ofstream_insert_int.cc: Same.
1539 * testsuite/performance/string_append.cc: Convert.
1540 * scripts/check_performance: New.
1541 * testsuite/Makefile.am (check-performance): New.
1544 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
1545 Benjamin Kosnik <bkoz@redhat.com>
1547 * include/std/std_sstream.h (setbuf): Check __n >= 0.
1548 * include/bits/fstream.tcc (setbuf): Tweak.
1550 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
1552 * include/bits/sstream.tcc (seekoff): We can't seek beyond
1553 _M_out_lim, therefore _M_move_out_cur boils down to simply
1554 updating _M_out_cur.
1555 (seekpos): Likewise, clean up.
1557 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
1558 Paolo Carlini <pcarlini@unitus.it>
1560 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
1561 simply equivalent to the unbuffered case (0, 0) as far as
1562 _M_buf_size is concerned.
1564 2003-06-18 Andreas Jaeger <aj@suse.de>
1566 * testsuite/Makefile.am (new-abi-baseline): Create baseline
1568 (baseline_file): Use baseline_dir.
1569 (baseline_dir): New.
1570 (mkinstalldirs): New.
1572 * acinclude.m4: Rename baseline_file to baseline_dir, strip
1573 filename from baseline_dir.
1575 * testsuite/Makefile.in: Regenerated.
1576 * Makefile.in: Regenerated.
1577 * aclocal.m4: Regenerated.
1578 * configure: Regenerated.
1580 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1582 * configure.in: Missed check_survey bit.
1583 * configure: Regenerated.
1585 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1588 * config/abi/extract_symvers: Move to...
1589 * scripts/extract_symvers: ...here.
1590 * mkcheck.in: Move to..
1591 * scripts/check_survey.in: ...here.
1592 * testsuite_flags.in: Move to..
1593 * scripts/testsuite_flags.in: ...here.
1594 * configure.in: Change check and testsuite_flags locations.
1595 * configure: Regenerate.
1596 * testsuite/Makefile.am (current_symbols.txt): Change location.
1597 * testsuite/Makefile.in: Regenerate.
1598 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1599 location of testsuite_flags.
1600 * Makefile.am (check-script): Move..
1601 (check-script-install): Move...
1602 * testsuite/Makefile.am: ... here.
1603 * testsuite/Makefile.in: Regenerate.
1604 * Makefile.in: Regenerate.
1606 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1608 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
1610 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1612 * Makefile.am (check-abi): Move...
1613 (new-abi-baseline): Move...
1614 * testsuite/Makefile.am: ...here.
1615 (new-abi-baseline): Conditionalize.
1616 (check-abi): Conditionalize.
1617 (check-abi-verbose): New.
1618 * Makefile.in: Regenerate.
1619 * testsuite/Makefile.in: Regenerate.
1620 * configure.in: Consolidate testsuite configure bits.
1621 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
1622 * configure: Regenerate.
1623 * aclocal.m4: Regenerate.
1624 * testsuite/abi_check.cc: Add --check-verbose.
1625 Only output detailed information if --check-verbose.
1627 2003-06-16 Andreas Jaeger <aj@suse.de>
1629 * testsuite/abi_check.cc: Create summary report.
1631 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
1633 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
1634 for systems with BUFSIZ != 8192.
1635 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1636 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
1639 2003-06-16 Andreas Jaeger <aj@suse.de>
1641 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
1642 check-abi multilib aware.
1643 * aclocal.m4: Regenerate.
1644 * configure: Regenerate.
1646 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1647 Andreas Jaeger <aj@suse.de>
1649 * configure.host: Set x86_64 abi_baseline pair correctly.
1651 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
1653 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
1654 fix for missing seeks between gets and puts into...
1655 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
1656 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
1657 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
1658 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
1659 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
1660 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
1662 2003-06-15 Richard Henderson <rth@redhat.com>
1664 * config/linker-map.gnu: Export virtual function thunks for
1667 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
1669 * config/abi/i686-pc-linux-gnu: To..
1670 * config/abi/i486-linux-gnu: ...this.
1671 * config/abi/alphaev67-unknown-linux-gnu: To..
1672 * config/abi/alpha-linux-gnu: ...this.
1673 * config/abi/ia64-unknown-linux-gnu: To...
1674 * config/abi/ia64-linux-gnu: ...this.
1675 * config/abi/x86_64-unknown-linux-gnu: To...
1676 * config/abi/x86_64-linux-gnu: ...this.
1677 * config/abi/i386-unknown-freebsd4: To...
1678 * config/abi/i386-freebsd4: ...this.
1679 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
1681 * configure.host: abi_baseline_triplet to abi_baseline_pair.
1682 Simplify cpu bits so that abi_baseline_pair can use the same
1684 * acinclude.m4: Same.
1685 * aclocal.m4: Regenerate.
1686 * configure.in: Can't get enable_abi_check to yes unless native.
1687 * configure: Regenerate.
1689 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
1691 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
1692 fix for missing seeks between gets and puts into...
1693 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
1694 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
1695 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
1696 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
1697 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
1698 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
1699 for missing seeks between gets and puts.
1700 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
1701 * testsuite/data/seekoff-1.tst: New.
1702 * testsuite/data/seekoff-2.tst: New.
1703 * testsuite/data/seekpos-1.tst: New.
1704 * testsuite/data/seekpos-2.tst: New.
1706 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
1708 Avoid multi-processor bus contention on increment/decrement-and-
1709 test of the reference count in the empty-string object, by comparing
1710 addresses first, and never touching the reference count of the empty-
1712 * include/bits/basic_string.h:
1713 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
1715 (_Rep::_S_empty_rep()): New accessor.
1716 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
1717 a base class _Rep_base.
1718 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
1719 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
1720 since no longer must increment its refcount.
1721 * include/bits/basic_string.tcc:
1722 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
1723 return immediately. The former might be unnecessary. The latter
1724 prevents begin() and end() from cloning it unnecessarily.
1725 (_S_construct(_InIterator, _InIterator, const _Alloc&,
1726 input_iterator_tag), _S_construct(_InIterator, _InIterator,
1727 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
1728 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
1729 (_M_mutate): Check for the empty string and treat it as shared.
1730 This is necessary here because _M_mutate is sometimes called with
1731 all-zero arguments; in all other uses of _M_is_shared, the test comes
1734 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
1736 * src/allocator-inst.cc: Explicitly instantiate.
1737 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
1739 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
1741 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1743 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
1744 * aclocal.m4: Regenerate.
1745 * Makefile.am (SUBDIRS): Remove libio.
1746 * Makefile.in: Regenerate.
1747 * configure.in: Same.
1748 * configure: Regenerate.
1749 * config/io/basic_file_libio.cc: Remove.
1750 * config/io/basic_file_libio.h: Remove.
1751 * config/io/c_io_libio_codecvt.c: Remove.
1752 * config/io/c_io_libio.h: Remove.
1754 * src/Makefile.am: Same.
1755 * src/Makefile.in: Regenerate.
1756 * docs/html/configopts.html: Edits.
1757 * docs/html/explanations.html: Edits.
1759 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1761 * include/bits/stl_alloc.h (__debug_alloc): Move out.
1762 (__malloc_alloc): Same.
1763 (__pool_alloc): Same.
1764 (__new_alloc): Same.
1766 * include/bits/allocator.h: ...this.
1767 * include/bits/stl_deque.h: Modify comment.
1768 * include/bits/stl_tree.h: Modify include.
1769 * include/std/std_memory.h: Same.
1770 * include/ext/rope: Same.
1771 * include/ext/slist: Same.
1772 * include/std/std_vector.h: Same.
1773 * include/std/std_stack.h: Same.
1774 * include/std/std_queue.h: Same.
1775 * include/std/std_list.h: Same.
1776 * include/std/std_deque.h: Same.
1777 * include/backward/alloc.h: Same.
1778 * include/ext/debug_allocator.h: New.
1779 * include/ext/malloc_allocator.h: New.
1780 * include/ext/pool_allocator.h: New.
1781 * include/ext/new_allocator.h: New.
1782 * include/bits/pthread_allocimpl.h: Remove.
1783 * include/bits/stl_pthread_alloc.h: Remove.
1784 * include/Makefile.am (ext_headers): Add.
1785 * include/Makefile.in: Regenerate.
1786 * src/stl-inst.cc: Use __gnu_cxx namespace.
1787 * src/stl-inst.cc: Move to...
1788 * src/allocator-inst.cc: Here.
1789 * src/Makefile.am (sources): Update.
1790 * src/Makefile.in: Regenerate.
1791 * config/linker-map.gnu: Remove __pool_alloc bits.
1792 * testsuite/ext/headers.cc: Add.
1793 * testsuite/ext/allocators.cc: Fixup.
1795 2003-06-11 Stefan Olsson <stefan@snon.net>
1796 Ola Rönnerup <fnolis@home.se>
1798 * include/Makefile.am (ext_headers): Add.
1799 * include/Makefile.in: Regenerate.
1800 * include/ext/mt_allocator.h: New file.
1802 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1804 * include/bits/fstream.tcc (close): Clean up a bit.
1806 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
1808 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
1809 - the saved _M_in_cur, that is - cannot be null.
1810 (sync): Constify a variable.
1812 * include/std/std_streambuf.h: Tweak a comment.
1813 (in_avail): Constify a variable.
1815 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
1817 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
1818 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
1819 correctness of container::iterator typedefs. Fix whitespace.
1820 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
1822 * docs/html/documentation.html: Regenerate.
1824 * include/bits/basic_string.h, include/bits/basic_string.tcc,
1825 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
1826 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1827 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
1828 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
1829 include/bits/stl_vector.h, include/bits/vector.tcc,
1830 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
1831 Change _Iter names to _Iterator, and __pos to __position.
1833 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
1834 include/bits/stl_multiset.h, include/bits/stl_set.h:
1835 Remove emacs markers.
1837 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
1839 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1841 * include/bits/fstream.tcc (overflow): According to
1842 27.5.2.4.5, overflow() returns not_eof(eof()).
1843 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
1844 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
1846 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
1848 * include/bits/fstream.tcc (_M_underflow): Check overflow return
1849 value; tweak slightly.
1851 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
1853 * include/bits/fstream.tcc (_M_underflow): Do not special
1854 case the unbuffered case, which really means simply a one char
1856 (basic_filebuf): Initialize _M_buf_size.
1857 (setbuf): Unbuffered means _M_buf_size == 1, since only
1858 _M_buf_size - 1 == 0 chars are going to be used for the
1859 put area and 1 for the get area.
1860 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
1861 (~basic_streambuf): Tweak.
1862 (basic_streambuf): Do not initialize _M_buf_size.
1863 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
1864 (~basic_filebuf): Tweak.
1865 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
1866 unbuffered situation (i.e., put area pointers NULL).
1867 * include/bits/streambuf.tcc (sbumpc): Clean up.
1868 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
1869 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
1870 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
1871 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
1872 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
1873 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
1874 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
1876 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
1878 * acinclude.m4: Move all AM_CONDITIONAL calls out.
1879 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
1881 * configure.in: Centralize AM_CONDITIONALs so that they are always
1882 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
1883 * aclocal.m4, configure: Regenerated.
1885 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
1887 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
1889 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
1891 * include/bits/stl_iterator.h
1892 (reverse_iterator::reverse_iterator()): Apply DR235: default
1893 constructor default-initializes data member. Instantiated on a
1894 pointer type, the member has to end up equal to zero.
1896 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
1898 * include/bits/stl_alloc.h: Cleanups.
1899 * include/ext/functional: Same.
1900 * include/ext/hash_map: Same.
1901 * include/ext/hash_set: Same.
1902 * include/ext/iterator: Same.
1903 * include/ext/memory: Same.
1904 * include/ext/numeric: Same.
1905 * include/ext/rb_tree: Same.
1906 * include/ext/ropeimpl.h: Same.
1907 * include/ext/slist: Same.
1908 * include/ext/stdio_filebuf.h: Same.
1909 * include/ext/stdio_sync_filebuf.h: Same.
1910 * include/ext/stl_rope.h: Move to...
1911 * include/ext/rope: ...here.
1912 * include/ext/stl_hash_fun.h: Move to...
1913 * include/ext/hash_fun.h: ...here.
1914 * include/ext/stl_hashtable.h: Move to...
1915 * include/ext/hashtable.h: ...here.
1916 * include/backward/hashtable.h: Reflect new names.
1917 * include/Makefile.am: Same.
1918 * include/Makefile.in: Regenerated.
1920 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
1923 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
1924 * include/bits/stl_algobase.h: Tweak.
1925 * include/std/std_fstream.h: Move _M_buf_size to...
1926 * include/std/std_streambuf.h: ...here. Modify.
1927 * include/bits/streambuf.tcc: Same.
1928 * testsuite/testsuite_hooks.h: Tweak.
1929 * testsuite/testsuite_io.h (constraint_filebuf): New.
1930 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
1931 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
1932 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
1933 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
1934 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
1935 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
1936 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
1937 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
1938 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
1939 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
1940 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
1941 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
1942 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
1943 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
1944 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
1945 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
1946 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
1947 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
1948 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
1949 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
1950 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
1951 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
1952 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
1953 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
1954 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
1955 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
1956 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
1957 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
1958 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
1959 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
1960 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
1961 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
1962 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
1963 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
1964 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
1965 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
1966 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
1967 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
1968 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
1969 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
1970 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
1971 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
1972 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
1973 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
1974 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
1975 * testsuite/data/sgetc.txt: New.
1976 * testsuite/data/sgetn.txt: New.
1978 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
1981 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
1982 Deal with width() smaller than zero.
1983 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
1984 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
1985 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
1986 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
1987 operator<<(basic_ostream, const basic_string&)): Likewise.
1989 * testsuite/27_io/basic_istream/extractors_character/char/
1990 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
1991 * testsuite/27_io/basic_ostream/inserters_character/char/
1992 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
1993 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
1994 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
1996 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1998 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
1999 .gch compilation works.
2000 * aclocal.m4, configure: Regenerate.
2001 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
2002 initialize PCHFLAGS.
2004 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
2006 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
2007 erase(iterator), erase(iterator, iterator), c_str,
2008 compare(const basic_string&)): Constify various variables.
2009 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
2010 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
2011 _S_create, resize, _M_replace, _M_replace_safe,
2012 append(const basic_string&), append(const basic_string&, size_type,
2013 size_type), append(const _CharT*, size_type), append(size_type,
2014 _CharT), operator+(const _CharT*, const basic_string&),
2015 operator+(_CharT, const basic_string&), replace(iterator, iterator,
2016 size_type, _CharT), find(const _CharT*, size_type, size_type),
2017 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
2018 rfind(_CharT, size_type), compare(size_type, size_type,
2019 const basic_string&), compare(size_type, size_type,
2020 const basic_string&, size_type, size_type), compare(const _CharT*),
2021 compare(size_type, size_type, const _CharT*), compare(size_type,
2022 size_type, const _CharT*, size_type)): Likewise.
2024 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
2026 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
2027 'if' branch less obscure.
2029 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
2032 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
2034 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
2035 (__atomic_add): likewise.
2037 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2039 * include/bits/sstream.tcc (pbackfail): Minor clean up and
2040 reformatting, consistent with basic_filebuf::pbackfail.
2042 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
2045 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
2046 __attribute__ ((__unused__)).
2047 * config/os/aix/atomicity.h: Likewise.
2049 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2052 * include/bits/fstream.tcc (pbackfail): If the pback buffer
2053 is already active don't try to store in it a second char.
2054 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
2056 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
2058 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2060 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
2063 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2065 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
2066 instead of unnecessarily taking the address of _M_pback.
2067 (xsgetn): Simplify slightly for a single char pback buffer.
2069 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2071 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
2072 variables and two 'if', clean up.
2074 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
2076 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
2077 not _M_out_end, since the former actually points to the string
2078 end (vs buffer end).
2079 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
2081 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
2083 * docs/doxygen/filter: New file.
2084 * docs/doxygen/filter.sed: New file.
2085 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
2086 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
2087 * docs/html/documentation.html: Fix links to doxygen pages.
2089 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
2091 * include/bits/fstream.tcc (_M_convert_to_external): Don't
2092 check for __ilen > 0.
2094 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
2097 * include/bits/stl_iterator.h (class __normal_iterator):
2098 Don't inherit from iterator, add missing typedefs.
2100 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
2102 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
2103 * testsuite/24_iterators/reverse_iterator/1.cc: New.
2104 * testsuite/24_iterators/reverse_iterator/2.cc: New.
2105 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
2108 2003-05-27 Steve Ellcey <sje@cup.hp.com>
2110 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
2112 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
2113 _LIBUNWIND_STD_ABI is set.
2115 2003-05-26 Brendan Kehoe <brendan@zen.org>
2117 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
2118 make sure the number of digits required after the decimal-point
2119 (if any) is exactly the value returned by frac_digits().
2120 * testsuite/22_locale/money_get/get/char/9.cc: New.
2121 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
2123 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
2125 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
2128 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
2131 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
2132 (_M_pback): No array necessary.
2133 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
2134 unbuffered case, coalesec into ...
2135 (basic_filebuf::overflow): ...this.
2136 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
2137 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
2139 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
2141 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
2142 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
2143 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
2144 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
2145 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
2146 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
2147 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
2148 libsupc++/eh_unex_handler.cc, libsupc++/exception,
2149 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
2150 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
2151 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
2152 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
2153 Replace "GNU CC" with "GCC".
2155 * include/backward/new.h: Replace "GNU CC" with "GCC".
2157 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
2160 * configure.in: Switch target to host, don't assume newlib.
2161 (target_alias): Remove.
2162 * configure: Regenerate.
2163 * acinclude.m4: Same.
2164 * aclocal.m4: Regenerate.
2165 * configure.target: Same. Rename to...
2166 * configure.host: This.
2168 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
2170 * include/std/std_fstream.h (_S_pback_size): Remove definition.
2171 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
2173 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
2174 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
2175 of _S_pback_size for systems with no COMDAT or weak support.
2176 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
2177 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
2178 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
2179 * testsuite/27_io/basic_fstream/3.cc: Likewise.
2180 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2181 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
2182 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
2183 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
2184 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
2186 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
2188 * include/bits/fstream.tcc (_M_underflow): Simplify:
2189 !__testout implies _M_filepos == _M_in_end, therefore
2190 the first _M_file.seekoff call is never issued.
2192 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
2194 * configure.in: Sort cross table.
2195 * configure: Regenerate.
2197 2003-05-22 Brad Spencer <spencer@infointeractive.com>
2200 * configure.in: Add Solaris cross bits.
2202 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2204 * libstdc++-v3/config/os/mingw32/os_defines.h
2205 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
2206 (NOMINMAX): Define. Update copyright year.
2208 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
2210 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
2212 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
2214 * docs/html/faq/index.html: Fix typo.
2215 * docs/html/faq/index.txt: Regenerate.
2217 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
2219 * docs/html/test.html: Fix markup.
2221 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
2223 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
2225 Update copyright year.
2227 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
2229 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
2231 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
2233 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
2234 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
2236 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2238 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
2239 Cast via void* to avoid -Wcast-align warnings.
2240 (__default_alloc_template::_S_refill): Likewise.
2242 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
2244 * testsuite/README: Move to...
2245 * docs/html/test.html: ...here. Add documentation.
2246 * docs/html/install.html: Move testing bits out..
2247 * docs/html/documentation.html: Add separate testing link.
2248 * testsuite/performance: Add.
2249 * testsuite/performance/allocator.cc: New.
2250 * testsuite/performance/complex_norm.cc: New.
2251 * testsuite/performance/cout_insert_int.cc: New.
2252 * testsuite/performance/fstream_seek_write.cc: New.
2253 * testsuite/performance/ifstream_getline.cc: New.
2254 * testsuite/performance/map_create_fill.cc: New.
2255 * testsuite/performance/ofstream_insert_float.cc: New.
2256 * testsuite/performance/ofstream_insert_int.cc: New.
2257 * testsuite/performance/string_append.cc: New.
2258 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
2261 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
2264 * include/std/std_complex.h (pow): Tidy.
2266 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
2268 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
2269 that upon filebuf::close() 27.8.1.1,3 is enforced.
2271 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
2273 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
2275 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
2276 Nathan Myers <ncm@cantrip.org>
2278 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
2279 _M_convert_to_external only once (_M_buf_size is now the size of
2280 the put area + 1 for the overflow char of a full area); call
2281 _M_set_buffer instead of _M_set_indeterminate.
2282 (setbuf): Don't accept a buffer smaller than 2 chars.
2283 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
2284 instead of _M_set_determinate.
2285 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
2286 (seekoff): Likewise.
2287 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
2288 std::ios_base::openmode, bool, size_t),
2289 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
2291 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
2292 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
2294 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
2295 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
2296 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
2297 the put area is now BUFSIZ - 1.
2298 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
2299 that now the smallest _M_buf_size is 2 (still fails, for the same
2302 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
2304 * testsuite/thread/pthread4.cc: Tweak test.
2306 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
2308 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
2309 excess errors dg marker, use dg-errors instead.
2310 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
2311 * testsuite/20_util/auto_ptr_neg.cc: Same.
2313 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2315 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
2317 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
2318 Initialize _M_codecvt.
2319 (basic_filebuf::imbue): Same.
2320 (basic_filebuf::showmanyc): Use it.
2321 (basic_filebuf::underflow): Use it.
2322 (basic_filebuf::_M_convert_to_external): Use it.
2323 (basic_filebuf::seekoff): Use it.
2324 (basic_filebuf::imbue): Use it, tweaks.
2325 * include/bits/localefwd.h (__check_facet): New.
2326 * include/bits/locale_classes.h: Tweaks.
2327 * include/bits/locale_facets.tcc: Tweaks.
2328 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
2329 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
2330 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
2331 * include/bits/basic_ios.tcc: Same.
2332 * include/bits/istream.tcc: Same.
2333 * include/bits/ostream.tcc: Same.
2334 * include/std/std_streambuf.h: Same.
2335 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
2336 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
2337 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
2338 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
2339 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
2340 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
2342 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
2344 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
2345 unnecessary includes and unused string literals.
2346 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
2347 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
2348 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
2349 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
2351 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2353 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
2355 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
2357 * include/std/std_fstream.h (_M_convert_to_external): Change
2358 to return bool, take two less streamsize parameters.
2359 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
2360 consistently definition.
2361 (_M_overflow): Adjust call points.
2363 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
2365 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
2367 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
2369 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
2370 * testsuite/Makefile.in: Regenerate.
2372 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
2374 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
2375 * testsuite/Makefile.in: Regenerate.
2377 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
2380 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
2381 (acos): Handle integer argument.
2400 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
2401 (__enable_if): Likewise.
2402 * testsuite/26_numerics/cmath/overloads.C: New test.
2404 2003-05-10 Petur Runolfsson <peturr02@ru.is>
2409 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
2410 implementation, based on old wchar_t specialization, add support
2411 for codecvt::in() return value of codecvt_base::noconv, remove
2412 _M_file.sys_ungetc() call.
2413 * include/std/std_fstream.h (basic_file::underflow,
2414 basic_file::uflow, basic_file::_M_underflow): Remove
2415 specialization declarations, call _M_underflow from generic versions
2416 of underflow and uflow.
2417 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
2418 basic_file::_M_underflow): Remove specializations.
2419 * src/Makefile.am (sources): Remove fstream.cc.
2420 * src/Makefile.in: Regenerated.
2421 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
2422 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
2423 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
2424 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
2426 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
2428 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
2430 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
2432 (__basic_file::xsputn): Same.
2433 (__basic_file::seekoff): Same.
2434 (__basic_file::seekpos): Same.
2435 (__basic_file::showmanyc): Same.
2436 * config/io/basic_file_stdio.cc: Same.
2437 * include/std/std_fstream.h: Same.
2438 * include/bits/fstream.tcc: Same.
2439 * src/fstream.cc: Same.
2440 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
2442 2003-05-10 Petur Runolfsson <peturr02@ru.is>
2447 * include/ext/stdio_sync_filebuf.h: New file.
2448 (basic_stdiobuf): New.
2449 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
2450 * include/Makefile.in: Regenerate.
2451 * include/bits/ios_base.h (Init::_S_create_buffers,
2452 Init::_S_destroy_buffers): Remove declarations.
2453 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
2454 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
2455 * src/ios.cc (Init::_S_create_buffers,
2456 Init::_S_destroy_buffers): Remove.
2457 (Init::Init): Create and use syncronized buffers.
2458 (ios_base::sync_with_stdio): Destroy syncronized buffers,
2459 create and install unsyncronized buffers.
2460 * testsuite/27_io/objects/char/10.cc: New test.
2461 * testsuite/27_io/objects/char/9.cc: New test.
2462 * testsuite/27_io/objects/char/9661-1.cc: New test.
2463 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
2464 * testsuite/27_io/objects/char/9661-2_xin.in: New.
2465 * testsuite/27_io/objects/wchar_t/1.cc: New test.
2466 * testsuite/27_io/objects/wchar_t/10.cc: New test.
2467 * testsuite/27_io/objects/wchar_t/2.cc: New test.
2468 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
2469 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
2470 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
2471 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
2472 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
2473 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
2474 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
2475 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
2476 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
2477 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
2478 * testsuite/27_io/objects/wchar_t/5.cc: New test.
2479 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
2480 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
2481 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
2482 * testsuite/27_io/objects/wchar_t/6.cc: New test.
2483 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
2484 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
2485 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
2486 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
2487 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
2488 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
2489 * testsuite/27_io/objects/wchar_t/7.cc: New test.
2490 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
2491 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
2492 * testsuite/27_io/objects/wchar_t/8.cc: New test.
2493 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
2494 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
2495 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
2496 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
2497 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
2498 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
2499 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
2500 * testsuite/ext/stdiobuf_char.cc: New test.
2501 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
2503 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
2505 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
2506 unnecessary includes and unused string literals.
2507 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
2509 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
2511 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
2513 2003-05-07 Richard Henderson <rth@redhat.com>
2516 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
2517 (__cxa_end_catch): Likewise.
2518 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
2519 _Unwind_Resume_or_Rethrow.
2520 * libsupc++/eh_personality.cc (empty_exception_spec): New.
2521 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
2522 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
2523 exceptions. Don't push terminate/unexpected to cxa functions.
2524 (__cxa_call_unexpected): Remove foreign exception fixmes.
2526 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
2528 * testsuite/27_io/ios_base/cons: New.
2529 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
2530 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
2532 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
2534 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
2536 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
2537 there is no buffer or __testget == !__testinit.
2540 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
2541 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
2543 * include/std/std_fstream.h (_M_destroy_pback): Don't set
2544 unnecessarily _M_pback_cur_save and _M_pback_end_save.
2546 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
2548 * include/std/std_sstream.h (_M_sync): Minor tweak.
2550 * include/bits/fstream.tcc (close): No need to call
2551 _M_destroy_pback, setting _M_pback_init to false suffices
2554 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
2556 * include/bits/stl_algo.h: Enums as _S_.
2557 * include/bits/stl_tree.h: Same.
2558 * include/bits/stl_bvector.h: Same.
2559 * include/bits/ios_base.h: Same.
2560 * include/bits/stl_alloc.h: Same.
2561 * include/ext/stl_hashtable.h: Same.
2562 * src/ios.cc: And here.
2564 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
2565 * include/bits/sstream.tcc: Same.
2567 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
2569 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
2571 * include/bits/locale_facets.h (__num_base): Remove protected.
2572 Use _S_[io]* names for enumerations.
2573 (_S_format_int): Remove.
2574 * include/bits/locale_facets.tcc: Same.
2575 * src/locale.cc: Same.
2577 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
2579 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
2581 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
2582 * docs/html/faq/index.txt: Regenerated.
2584 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
2585 Matt Kraai <kraai@alumni.cmu.edu>
2587 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
2590 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
2592 * configure.target (mips*): Use the generic atomicity.h by default.
2594 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
2595 (Inspired by an alternate patch from Danny Smith.)
2597 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
2598 (_Swap_lock_struct<>): ...and the horse it rode in on.
2599 * src/globals.cc (_Swap_lock_struct<>): Likewise.
2600 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
2601 member to support...
2602 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
2603 visibility rules related to POSIX threads.
2604 * testsuite/thread/pthread7-rope.cc: New test.
2606 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
2608 * testsuite/21_strings/basic_string/find/char/3.cc: New
2609 file, testing basic_string<char>::find_first_not_of.
2610 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
2611 Likewise for basic_string<wchar_t>.
2613 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
2615 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
2617 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
2619 * include/Makefile.am (CLEANFILES): Remove PCH files in target
2621 * include/Makefile.in: Regenerate.
2623 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
2625 * include/std/std_sstream.h (str()): Tidy.
2627 2003-05-02 Nathan Myers <ncm@cantrip.org>
2628 Paolo Carlini <pcarlini@unitus.it>
2630 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
2632 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
2634 * include/bits/basic_string.h (swap): Remove redundant template
2635 parameters from declaration of non-template member function.
2637 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
2639 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
2640 * configure.in: Move libintl.h header test...
2641 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
2642 the NLS-related test results into one symbol.
2643 * src/functexcept.cc: Use it here.
2644 * aclocal.m4, config.h.in, configure: Regenerated.
2646 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2648 * include/bits/sstream.tcc (overflow): Instead of calling
2649 str(), then _M_string.reserve, thus copying the contents
2650 of the current buffer two times, just copy the latter in
2651 a temporary, then use the 'swap trick'.
2653 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2655 * include/std/std_sstream.h (str()): Revert the best of the
2656 previous 'improvement', incorrect due to the COW nature of
2657 v3 basic_string; simplify.
2659 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2661 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
2662 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
2664 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
2666 * testsuite/abi_check.cc (check_version): Update known versions.
2667 Check added symbols for version_name != base version. Add missing
2668 symbols to incompatible list.
2670 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
2672 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
2673 * aclocal.m4: Regenerated.
2674 * configure: Regenerated.
2676 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2678 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
2679 Const-ify some variables.
2680 (basic_streambuf::xsputn): Likewise; change the type of some
2681 variables to size_t.
2682 (__copy_streambufs): Change some variables to size_t.
2684 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2686 * include/std/std_sstream.h (str()): Avoid constructing
2687 a basic_string temporary not only when it would turn out
2688 to be zero-sized but also when identical to the current
2691 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
2693 * include/ext/stdio_filebuf.h
2694 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
2695 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
2696 Shorten a bit (-10 lines) by factoring out some code.
2698 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
2700 * acinclude.m4: Add bit missing from previous patch.
2701 * aclocal.m4, configure: Regenerated.
2703 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
2705 * docs/doxygen/mainpage.html: Bring up to date.
2706 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
2708 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
2709 breaks everything. Don't scan them.
2710 * docs/html/documentation.html: Point to "Write after approval"
2713 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
2715 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
2716 of libc if message translations are being used. Fix info text in
2717 xieee_1003.1-2001 case.
2718 * aclocal.m4, configure: Regenerate.
2720 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
2721 Loren J. Rittle <ljrittle@acm.org>
2722 Martin v. Loewis <martin@v.loewis.de>
2724 * config/cpu/i386/atomicity.h: New file.
2726 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
2728 * include/bits/fstream.tcc (open): Change to single return.
2730 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
2732 * include/std/std_sstream.h (underflow): Change to single return.
2734 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2736 * include/std/std_streambuf.h (_M_buf): is currently
2737 used only for basic_filebuf, therefore move it there.
2738 (basic_streambuf(), ~basic_streambuf()): Adjust.
2739 * include/std/std_fstream.h (_M_buf): Moved here.
2740 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
2741 is actually redundant for basic_stringbuf.
2742 (_M_really_sync): Likewise.
2743 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2744 * include/bits/sstream.tcc (seekoff): Adjust.
2746 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2748 * src/localename.cc: Standardize exception strings.
2749 * src/locale.cc: Same.
2751 * include/bits/basic_string.tcc: Same.
2752 * include/bits/basic_ios.tcc: Same.
2753 * include/std/std_bitset.h: Same.
2754 * include/ext/ropeimpl.h: Same.
2755 * include/bits/stl_vector.h: Same.
2756 * include/bits/stl_deque.h: Same.
2757 * include/bits/stl_bvector.h: Same.
2758 * config/locale/generic/c_locale.cc: Same.
2759 * config/locale/gnu/c_locale.cc: Same.
2760 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
2762 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
2764 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2766 * include/std/std_streambuf.h (_M_buf_size): is currently
2767 used only for basic_filebuf, therefore move it there.
2768 (basic_streambuf(), ~basic_streambuf()): Adjust.
2769 * include/std/std_fstream.h (_M_buf_size): Moved here.
2770 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
2772 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2774 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
2775 _M_buf_size (synced input is now correctly dealt with
2776 elsewhere); when the output buffer is full don't fall back
2777 to a snextc-sputc loop, call overflow instead.
2779 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
2781 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
2782 the innermost 'if' by factoring out some code.
2784 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
2786 * configure.in: Test for libintl.h.
2787 * include/bits/c++config: Define __N for everybody.
2788 * include/bits/basic_string.h, include/bits/stl_bvector.h,
2789 include/bits/stl_deque.h, include/bits/stl_vector.h,
2790 include/std/std_bitset.h: Wrap all __throw* text with __N.
2791 * po/Makefile.am (pot): New rule, mostly working.
2792 * src/functexcept.cc: Call gettext on all __throw* arguments when
2793 -fexceptions is in effect.
2794 * po/Makefile.in, config.h.in, configure: Regenerate.
2796 2003-04-28 Petur Runolfsson <peturr02@ru.is>
2799 * include/bits/ios_base.h (Init::_S_ios_create,
2800 Init::_S_ios_destroy): Remove declarations.
2801 (Init::_S_create_buffers,
2802 Init::_S_destroy_buffers): Declare
2803 * src/ios.cc (Init::_S_ios_create): Remove
2804 (Init::_S_create_buffers): Create buffers and add to streams.
2805 (Init::_S_ios_destroy): Rename to...
2806 (Init::_S_destroy_buffers): this.
2807 (Init::Init): Only construct streams once.
2808 (Init::~Init): Flush streams, don't destroy them.
2809 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
2810 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
2811 * testsuite/27_io/objects/char/5.cc: New test.
2812 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
2813 * testsuite/27_io/objects/char/6.cc: New test.
2814 * testsuite/27_io/objects/char/7.cc: New test.
2816 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2818 * testsuite/27_io/objects/char/8.cc: New test.
2820 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
2822 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
2823 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
2825 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
2827 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
2828 _M_destroy_pback. _M_pback_create to
2829 _M_create_pback. _M_underflow_common to
2830 _M_underflow. _M_really_overflow to _M_overflow.
2831 * include/bits/fstream.tcc: Same.
2832 * src/fstream.cc: Same.
2833 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
2834 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
2835 * include/bits/streambuf.tcc: Same.
2836 * include/bits/fstream.tcc: Same.
2837 * include/bits/sstream.tcc: Same.
2839 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
2841 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
2842 from fixed size array.
2843 (locale): Change _S_categories as well.
2845 * include/bits/locale_facets.tcc: Tweak.
2846 * config/locale/gnu/c_locale.cc: Assign _S_categories.
2847 * config/locale/generic/c_locale.cc: Same.
2848 * src/locale.cc: Tweak.
2849 * src/globals.cc: Change facet_name to name_vec, add names_c.
2850 * src/localename.cc: Use them.
2851 (locale::_Impl::~_Impl): Destroy _M_names.
2852 (locale::_Impl::_Impl): Create _M_names.
2854 2003-04-27 Andreas Schwab <schwab@suse.de>
2856 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2857 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
2859 2003-04-27 Nathan Myers <ncm@cantrip.org>
2861 Move some basic_string members out of line because
2862 they are too big to reasonably be inline.
2863 * include/bits/basic_string.h
2864 (assign(const basic_string&, size_type, size_type),
2865 assign(const _CharT*, size_type),
2866 insert(size_type, const basic_string&, size_type, size_type),
2867 insert(size_type, const _CharT*, size_type),
2868 replace(size_type, size_type, const _CharT*, size_type)):
2869 Move from here to...
2870 * include/bits/basic_string.tcc: ...here.
2872 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
2874 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
2875 the innermost 'if' by factoring out some code.
2877 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
2879 * include/bits/streambuf.tcc (__copy_streambufs): Don't
2880 use in_avail(), simplify.
2882 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
2884 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
2885 in basic_stringbuf it's unused.
2887 * include/std/std_sstream.h (underflow): consistently use
2888 _M_in_cur, not gptr().
2890 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
2891 Phil Edwards <pme@gcc.gnu.org>
2893 * testsuite_flags.in: Guard against the possibility
2894 of having "xgcc" as a part of a folder name in the
2895 path to the GCC build folder.
2896 * testsuite/Makefile.am: Likewise.
2897 * testsuite/Makefile.in: Regenerated.
2899 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
2902 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
2903 exception specifications.
2904 (basic_filebuf::close): Same.
2905 (basic_filebuf::_M_pback_destroy): Same.
2906 (basic_filebuf::_M_destroy_internal_buffer): Same.
2907 (basic_filebuf): Remove __res_type typedef.
2908 * src/fstream.cc: Same.
2909 * include/bits/fstream.tcc
2910 (basic_filebuf::_M_convert_to_external): Simplify.
2911 (basic_filebuf::seekoff): Use has_facet before use_facet.
2912 (basic_filebuf::close): Add exception specification of throw().
2913 * testsuite/27_io/basic_filebuf/cons: New.
2914 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
2915 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
2916 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
2917 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
2919 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
2921 * include/bits/locale_classes.h
2922 (locale::_S_extra_categories_size): Remove.
2923 * src/locale.cc: Remove _S_extra_categories_size.
2924 * src/localename.cc: Same.
2925 * config/locale/gnu/c_locale.cc: Same.
2926 * config/locale/generic/c_locale.cc: Same.
2928 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
2930 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
2932 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
2934 * docs/html/17_intro/howto.html: Update some links.
2935 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
2936 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
2937 * docs/html/ext/howto.html: Link to demangler notes and API.
2938 * docs/html/faq/index.html: Remove trailing whitespace.
2939 (1.4, 2.4, 3.8, 4.1): Bring up to date.
2940 (5.6): Change to a bulleted list.
2942 * docs/html/faq/index.txt, docs/html/documentation.html,
2943 docs/html/17_intro/porting.html: Regenerate.
2945 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
2947 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
2948 belongs to basic_filebuf.
2949 * testsuite/27_io/basic_fstream/3.cc: Likewise.
2950 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
2951 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
2952 instantiation (now belongs to basic_filebuf).
2953 * testsuite/27_io/basic_iostream/3.cc: Likewise.
2954 * testsuite/27_io/basic_istream/3.cc: Likewise.
2955 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
2956 _S_pback_size now belongs to basic_filebuf.
2957 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
2958 instantiation (now belongs to basic_filebuf).
2959 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
2960 belongs to basic_filebuf.
2961 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
2962 instantiation (now belongs to basic_filebuf).
2963 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
2964 _S_pback_size now belongs to basic_filebuf.
2965 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
2966 instantiation (now belongs to basic_filebuf).
2967 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
2969 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
2970 instantiation (now belongs to basic_filebuf).
2971 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
2973 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
2975 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
2976 * configure: Regenerated.
2978 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
2980 * config/locale/generic/c_locale.h (__convert_from_v): Use
2983 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
2985 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
2986 implementation only.
2987 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
2988 Comment and change to comply with DR 60 and the effect on gcount().
2989 * include/std/std_istream.h: Update comments.
2990 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
2991 comments about reasons for tests. Test sync() against gcount().
2992 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
2993 for effect on gcount().
2994 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
2995 for effect on gcount().
2997 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
2999 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
3002 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
3004 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
3005 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3006 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
3007 (basic_streambuf::basic_streambuf()): Adjust.
3008 * include/std/std_fstream.h (_S_pback_size, _M_pback,
3009 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
3010 _M_pback_create(), _M_pback_destroy()): Moved here
3011 from basic_streambuf.
3012 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
3014 (basic_filebuf::_S_pback_size): Add declaration.
3015 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
3018 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3020 Consistently use _M_in_beg instead of eback(), _M_in_cur
3021 instead of gptr(), and so on.
3022 * include/bits/fstream.tcc (pbackfail, imbue): Here.
3023 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
3024 * include/bits/streambuf.tcc (sbumpc, sputbackc,
3025 __copy_streambufs): Ditto.
3026 * include/std/std_streambuf.h (sgetc): Ditto.
3028 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3030 * include/bits/sstream.tcc (pbackfail, overflow):
3033 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
3035 * include/std/std_streambuf.h (uflow()): It's used only by
3036 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
3037 therefore do not consider the _M_buf_unified == true case.
3039 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
3041 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
3043 * docs/html/ext/howto.html ('LWG Issues'):
3044 Add issues 19, 90, 171, 231, 271.
3046 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
3048 * include/bits/sstream.tcc (pbackfail): Remove redundant
3049 NULL pointer check from test involving _M_in_*.
3050 (overflow, seekoff, seekpos): Const qualify bool variables.
3051 * include/std/std_sstream.h (underflow): Remove redundant
3052 NULL pointer check from test involving _M_in_*.
3053 (_M_really_sync): Const qualify bool variables.
3054 * src/fstream.cc (_M_underflow_common): Remove redundant
3055 NULL pointer check from test involving _M_in_*, const qualify
3058 * include/std/std_streambuf.h (sgetc): Remove redundant
3061 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
3063 According to 5.9 para 2 (second bullet) for pointers p, q
3064 pointing to the same type, with p == 0 and q == 0, (p < q)
3066 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
3067 seekoff): Remove redundant NULL pointer checks from tests
3068 involving _M_out_* and _M_in_*, const qualify bool variables.
3069 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
3070 qualify bool variables.
3071 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
3072 Remove redundant NULL pointer checks from tests involving
3073 _M_out_* and _M_in_*, const qualify bool variables.
3074 * include/std/std_fstream.h (sync): Likewise.
3075 (_M_is_indeterminate): Const qualify bool variables.
3076 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
3077 NULL pointer checks from tests involving _M_out_* and _M_in_*,
3078 const qualify bool variables.
3079 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
3082 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
3084 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
3085 C99 FP macros, if actually captured.
3087 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
3088 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3089 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3090 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3091 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
3093 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
3094 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
3095 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
3096 * include/c_std/std_cstdlib.h: Use new macros.
3097 * include/c_std/std_cstdio.h: Use new macros.
3098 * include/c_std/std_cwchar.h: Use new macros.
3100 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
3103 * include/bits/ostream.tcc: Catch all exceptions for formatted
3104 output, instead of std::exception and derivatives.
3105 * include/bits/istream.tcc: Same.
3106 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
3107 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
3108 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
3109 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
3110 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3111 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
3114 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
3116 * include/bits/c++config: Minor cosmetic tweaks.
3118 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
3120 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
3121 * include/Makefile.am (pch_input): Find in ${target_builddir}.
3122 (pch_output): Rename to...
3123 (pch_output_builddir): ..this. Find in ${target_builddir}.
3124 (pch_source): Tweak.
3125 (pch_build): Key off a built file.
3126 (pch_output rule): Rename to...
3127 (pch_input rule): ...this. Produce ${pch_output_builddir}
3128 instead of ${pch_output}.
3129 (install-pch rule): Install ${pch_output_builddir}.
3130 * include/Makefile.in: Regenerated.
3132 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
3134 * include/std/std_streambuf.h (setp): _M_out_lim, being
3135 the end limit of used put area, is set equal to _M_out_beg.
3137 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
3139 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
3140 * aclocal.m4: Regenerated.
3141 * configure.in: Remove old demangler bits.
3143 * configure: Regenerate.
3144 * config.h.in: Regenerate.
3145 * include/Makefile.am (allstamps): Now allstamped.
3146 (allcreated): Define this.
3147 (all-local): Use 'em.
3148 Conditionally define pch_build, pch_install based on
3150 (${pch_output}): New rule.
3151 (install-pch): New rule.
3152 (install-headers): New rule.
3153 (install-data-local): Install headers and conditionally pch.
3154 * include/Makefile.in: Regenerate.
3155 * testsuite_flags.in (--build-cxx): Use pch file.
3157 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
3159 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
3161 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
3162 Paolo Carlini <pcarlini at unitus dot it>
3165 * docs/html/27_io/howto.html
3166 ('The buffering is screwing up my program!'): Explain that
3167 opening counts as an I/O operation.
3169 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
3171 * testsuite/thread/pthread1.cc: Enable for darwin test.
3172 * testsuite/thread/pthread2.cc: Same.
3173 * testsuite/thread/pthread3.cc: Same.
3174 * testsuite/thread/pthread4.cc: Same.
3175 * testsuite/thread/pthread5.cc: Same.
3176 * testsuite/thread/pthread6.cc: Same.
3178 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
3181 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
3182 Populate it with multiple legal ways to obtain the C99 float
3183 transcendentals. Use them instead of direct global reference.
3184 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
3185 * docs/html/17_intro/porting.texi
3186 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3187 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3188 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
3189 * config/os/bsd/freebsd/os_defines.h
3190 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
3191 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
3192 * testsuite/26_numerics/c_math_dynamic.cc: New file.
3194 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
3195 Benjamin Kosnik <bkoz@redhat.com>
3197 * config/os/generic/ctype_inline.h: Fix.
3199 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
3201 * testsuite/testsuite_hooks.h
3202 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
3203 Change to try_named_locale.
3204 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
3206 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
3208 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
3209 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
3210 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
3211 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
3212 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
3213 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
3214 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
3215 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
3216 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
3217 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
3218 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
3219 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
3220 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
3221 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
3222 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
3223 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
3224 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
3225 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
3226 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
3227 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
3228 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
3229 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
3230 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
3231 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
3232 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
3233 * testsuite/22_locale/collate/compare/char/1.cc: Same.
3234 * testsuite/22_locale/collate/compare/char/2.cc: Same.
3235 * testsuite/22_locale/collate/compare/char/3.cc: Same.
3236 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
3237 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
3238 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
3239 * testsuite/22_locale/collate/hash/char/2.cc: Same.
3240 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
3241 * testsuite/22_locale/collate/transform/char/2.cc: Same.
3242 * testsuite/22_locale/collate/transform/char/3.cc: Same.
3243 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
3244 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
3245 * testsuite/22_locale/collate_byname/1.cc: Same.
3246 * testsuite/22_locale/ctype/is/char/2.cc: Same.
3247 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
3248 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
3249 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
3250 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
3251 * testsuite/22_locale/facet/2.cc: Same.
3252 * testsuite/22_locale/locale/cons/2.cc: Same.
3253 * testsuite/22_locale/locale/cons/4.cc: Same.
3254 * testsuite/22_locale/locale/cons/5.cc: Same.
3255 * testsuite/22_locale/locale/cons/7.cc: Same.
3256 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
3257 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
3258 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
3259 * testsuite/22_locale/messages/members/char/1.cc: Same.
3260 * testsuite/22_locale/messages/members/char/2.cc: Same.
3261 * testsuite/22_locale/messages/members/char/3.cc: Same.
3262 * testsuite/22_locale/messages_byname/1.cc: Same.
3263 * testsuite/22_locale/money_get/get/char/1.cc: Same.
3264 * testsuite/22_locale/money_get/get/char/2.cc: Same.
3265 * testsuite/22_locale/money_get/get/char/3.cc: Same.
3266 * testsuite/22_locale/money_get/get/char/4.cc: Same.
3267 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
3268 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
3269 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
3270 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
3271 * testsuite/22_locale/money_put/put/char/1.cc: Same.
3272 * testsuite/22_locale/money_put/put/char/2.cc: Same.
3273 * testsuite/22_locale/money_put/put/char/3.cc: Same.
3274 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
3275 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
3276 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
3277 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
3278 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
3279 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
3280 * testsuite/22_locale/num_get/get/char/1.cc: Same.
3281 * testsuite/22_locale/num_get/get/char/2.cc: Same.
3282 * testsuite/22_locale/num_get/get/char/3.cc: Same.
3283 * testsuite/22_locale/num_get/get/char/5.cc: Same.
3284 * testsuite/22_locale/num_get/get/char/6.cc: Same.
3285 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
3286 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
3287 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
3288 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
3289 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
3290 * testsuite/22_locale/num_put/put/char/1.cc: Same.
3291 * testsuite/22_locale/num_put/put/char/2.cc: Same.
3292 * testsuite/22_locale/num_put/put/char/3.cc: Same.
3293 * testsuite/22_locale/num_put/put/char/5.cc: Same.
3294 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
3295 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
3296 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
3297 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
3298 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
3299 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
3300 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
3301 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
3302 * testsuite/22_locale/numpunct_byname/1.cc: Same.
3303 * testsuite/22_locale/numpunct_byname/2.cc: Same.
3304 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
3305 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
3306 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
3307 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
3308 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
3309 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
3310 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
3311 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
3312 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
3313 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
3314 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
3315 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
3316 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
3317 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
3318 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
3319 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
3320 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
3321 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
3322 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
3323 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
3324 * testsuite/22_locale/time_put/put/char/1.cc: Same.
3325 * testsuite/22_locale/time_put/put/char/2.cc: Same.
3326 * testsuite/22_locale/time_put/put/char/3.cc: Same.
3327 * testsuite/22_locale/time_put/put/char/4.cc: Same.
3328 * testsuite/22_locale/time_put/put/char/5.cc: Same.
3329 * testsuite/22_locale/time_put/put/char/6.cc: Same.
3330 * testsuite/22_locale/time_put/put/char/7.cc: Same.
3331 * testsuite/22_locale/time_put/put/char/8.cc: Same.
3332 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
3333 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
3334 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
3335 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
3336 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
3337 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
3338 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
3339 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
3340 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
3341 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
3342 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
3343 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
3344 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
3346 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
3348 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
3349 solaris includes, not generic.
3351 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
3353 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
3355 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
3356 * include/bits/concept_check.h: Fix multi-line comment.
3357 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
3358 when target is *-*-freebsd*.
3360 2003-04-14 Nathan Myers <ncm@cantrip.org>
3361 Paolo Carlini <pcarlini@unitus.it>
3363 PR libstdc++/9701 (in_avail())
3364 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
3365 doesn't care if there is anything in some putback cell.
3366 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
3368 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
3369 unused string literals.
3371 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
3373 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
3374 _M_out_end, _M_set_indeterminate() does it.
3376 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3378 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
3380 2003-04-12 David Edelsohn <edelsohn@gnu.org>
3382 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
3383 Change basic_streambuf instantiation to "unsigned char".
3384 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3386 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
3388 Remove _M_buf_size_opt, use directly _M_buf_size instead.
3389 * include/bits/fstream.tcc
3390 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
3391 references to _M_buf_size_opt.
3392 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
3393 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
3394 __bufsize to __in_avail and __size_opt to __buf_size.
3395 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
3396 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
3397 * include/std/std_streambuf.h (~basic_streambuf(),
3398 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
3399 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
3400 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
3401 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
3402 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
3403 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
3404 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
3405 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
3406 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
3407 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
3408 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
3409 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
3410 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
3412 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
3414 * include/ext/stdio_filebuf.h
3415 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
3416 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
3417 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
3418 since a stack-based buffer is used for small values of the size_t
3420 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
3421 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
3422 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
3424 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
3427 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
3428 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
3430 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3432 * testsuite/22_locale/locale/cons/3.cc: Split.
3433 * testsuite/22_locale/locale/cons/7222-c.cc: New.
3434 * testsuite/22_locale/locale/cons/7222-env.cc: New.
3435 Check before trying to create a locale from the environment.
3436 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
3437 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
3440 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3442 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
3443 locale to construct this hybrid locale, not the global locale.
3445 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
3447 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
3448 instantiation for AIX.
3449 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3450 * testsuite/25_algorithms/min_max.cc: Same.
3452 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3454 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
3455 twice. Always set _M_cfile to 0 when stream was open.
3457 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3459 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
3460 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
3461 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
3462 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
3463 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
3464 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
3465 ifstream_members.cc, instantiations.cc, ios.cc,
3466 ios_base_callbacks.cc, ios_base_members_static-1.tst,
3467 ios_base_members_static.cc, ios_base_storage.cc,
3468 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
3469 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
3470 iostream.cc, iostream_members.cc, istream.cc,
3471 istream_exception.cc, istream_extractor_char.cc,
3472 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
3473 istream_extractor_other-2.tst, istream_extractor_other.cc,
3474 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
3475 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
3476 istream_sentry.cc, istream_unformatted-1.tst,
3477 istream_unformatted-1.txt, istream_unformatted.cc,
3478 istringstream.cc, istringstream_members.cc,
3479 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
3480 ofstream_members.cc, ostream.cc, ostream_exception.cc,
3481 ostream_fail.cc, ostream_inserter_arith.cc,
3482 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
3483 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
3484 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
3485 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
3486 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
3487 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
3488 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
3489 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
3490 wide_stream_objects.cc, istream_extractor_arith/01.cc,
3491 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
3492 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
3493 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
3494 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
3495 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
3497 * 27_io/basic_filebuf/1.cc: New.
3498 * 27_io/basic_filebuf/2.cc: New.
3499 * 27_io/basic_filebuf/3.cc: New.
3500 * 27_io/basic_filebuf/4.cc: New.
3501 * 27_io/basic_filebuf/close/char/1.cc: New.
3502 * 27_io/basic_filebuf/close/char/2.cc: New.
3503 * 27_io/basic_filebuf/close/char/3.cc: New.
3504 * 27_io/basic_filebuf/close/char/4879.cc: New.
3505 * 27_io/basic_filebuf/close/char/9964.cc: New.
3506 * 27_io/basic_filebuf/imbue/char/1.cc: New.
3507 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
3508 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
3509 * 27_io/basic_filebuf/is_open/char/1.cc: New.
3510 * 27_io/basic_filebuf/open/char/1.cc: New.
3511 * 27_io/basic_filebuf/open/char/2.cc: New.
3512 * 27_io/basic_filebuf/open/char/3.cc: New.
3513 * 27_io/basic_filebuf/open/char/9507.cc: New.
3514 * 27_io/basic_filebuf/overflow/char/1.cc: New.
3515 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
3516 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
3517 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
3518 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
3519 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
3520 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
3521 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
3522 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
3523 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
3524 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
3525 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
3526 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
3527 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
3528 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
3529 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
3530 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
3531 * 27_io/basic_filebuf/snextc/char/1.cc: New.
3532 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
3533 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
3534 * 27_io/basic_filebuf/sputc/char/1.cc: New.
3535 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
3536 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
3537 * 27_io/basic_filebuf/sputn/char/1.cc: New.
3538 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
3539 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
3540 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
3541 * 27_io/basic_filebuf/sync/char/1057.cc: New.
3542 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
3543 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
3544 * 27_io/basic_fstream/1.cc: New.
3545 * 27_io/basic_fstream/2.cc: New.
3546 * 27_io/basic_fstream/3.cc: New.
3547 * 27_io/basic_fstream/4.cc: New.
3548 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
3549 * 27_io/basic_ifstream/1.cc: New.
3550 * 27_io/basic_ifstream/2.cc: New.
3551 * 27_io/basic_ifstream/3.cc: New.
3552 * 27_io/basic_ifstream/4.cc: New.
3553 * 27_io/basic_ifstream/cons/char/1.cc: New.
3554 * 27_io/basic_ifstream/open/char/1.cc: New.
3555 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
3556 * 27_io/basic_ios/1.cc: New.
3557 * 27_io/basic_ios/2.cc: New.
3558 * 27_io/basic_ios/3.cc: New.
3559 * 27_io/basic_ios/4.cc: New.
3560 * 27_io/basic_ios/clear/char/1.cc: New.
3561 * 27_io/basic_ios/cons/char/1.cc: New.
3562 * 27_io/basic_ios/cons/char/2.cc: New.
3563 * 27_io/basic_ios/cons/char/3.cc: New.
3564 * 27_io/basic_ios/copyfmt/char/1.cc: New.
3565 * 27_io/basic_ios/copyfmt/char/2.cc: New.
3566 * 27_io/basic_ios/exceptions/char/1.cc: New.
3567 * 27_io/basic_ios/locales/char/1.cc: New.
3568 * 27_io/basic_iostream/1.cc: New.
3569 * 27_io/basic_iostream/2.cc: New.
3570 * 27_io/basic_iostream/3.cc: New.
3571 * 27_io/basic_iostream/4.cc: New.
3572 * 27_io/basic_istream/1.cc: New.
3573 * 27_io/basic_istream/2.cc: New.
3574 * 27_io/basic_istream/3.cc: New.
3575 * 27_io/basic_istream/4.cc: New.
3576 * 27_io/basic_istream/exceptions/char/9561.cc: New.
3577 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
3578 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
3579 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
3580 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
3581 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
3582 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
3583 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
3584 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
3585 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
3586 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
3587 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
3588 * 27_io/basic_istream/extractors_character/char/1.cc: New.
3589 * 27_io/basic_istream/extractors_character/char/2.cc: New.
3590 * 27_io/basic_istream/extractors_character/char/3.cc: New.
3591 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
3592 * 27_io/basic_istream/extractors_other/char/1.cc: New.
3593 * 27_io/basic_istream/extractors_other/char/2.cc: New.
3594 * 27_io/basic_istream/extractors_other/char/3.cc: New.
3595 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
3596 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
3597 * 27_io/basic_istream/get/char/1.cc: New.
3598 * 27_io/basic_istream/get/char/2.cc: New.
3599 * 27_io/basic_istream/getline/char/1.cc: New.
3600 * 27_io/basic_istream/getline/char/2.cc: New.
3601 * 27_io/basic_istream/getline/char/3.cc: New.
3602 * 27_io/basic_istream/ignore/char/1.cc: New.
3603 * 27_io/basic_istream/ignore/char/6360.cc: New.
3604 * 27_io/basic_istream/ignore/char/7220.cc: New.
3605 * 27_io/basic_istream/peek/char/1.cc: New.
3606 * 27_io/basic_istream/peek/char/6414.cc: New.
3607 * 27_io/basic_istream/putback/char/1.cc: New.
3608 * 27_io/basic_istream/read/char/1.cc: New.
3609 * 27_io/basic_istream/read/char/2.cc: New.
3610 * 27_io/basic_istream/read/char/3.cc: New.
3611 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
3612 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
3613 * 27_io/basic_istream/readsome/char/8258.cc: New.
3614 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
3615 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
3616 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
3617 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
3618 * 27_io/basic_istream/seekg/char/fstream.cc: New.
3619 * 27_io/basic_istream/seekg/char/sstream.cc: New.
3620 * 27_io/basic_istream/sentry/char/1.cc: New.
3621 * 27_io/basic_istream/sentry/char/2.cc: New.
3622 * 27_io/basic_istream/sentry/char/3.cc: New.
3623 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
3624 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
3625 * 27_io/basic_istream/tellg/char/1.cc: New.
3626 * 27_io/basic_istream/tellg/char/8348.cc: New.
3627 * 27_io/basic_istream/tellg/char/fstream.cc: New.
3628 * 27_io/basic_istream/tellg/char/sstream.cc: New.
3629 * 27_io/basic_istream/ws/char/1.cc: New.
3630 * 27_io/basic_istringstream/1.cc: New.
3631 * 27_io/basic_istringstream/2.cc: New.
3632 * 27_io/basic_istringstream/3.cc: New.
3633 * 27_io/basic_istringstream/4.cc: New.
3634 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
3635 * 27_io/basic_istringstream/str/char/1.cc: New.
3636 * 27_io/basic_ofstream/1.cc: New.
3637 * 27_io/basic_ofstream/2.cc: New.
3638 * 27_io/basic_ofstream/3.cc: New.
3639 * 27_io/basic_ofstream/4.cc: New.
3640 * 27_io/basic_ofstream/cons/char/2.cc: New.
3641 * 27_io/basic_ofstream/open/char/1.cc: New.
3642 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
3643 * 27_io/basic_ostream/1.cc: New.
3644 * 27_io/basic_ostream/2.cc: New.
3645 * 27_io/basic_ostream/3.cc: New.
3646 * 27_io/basic_ostream/4.cc: New.
3647 * 27_io/basic_ostream/cons/char/9827.cc: New.
3648 * 27_io/basic_ostream/endl/char/1.cc: New.
3649 * 27_io/basic_ostream/ends/char/1.cc: New.
3650 * 27_io/basic_ostream/ends/char/2.cc: New.
3651 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
3652 * 27_io/basic_ostream/flush/char/1.cc: New.
3653 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
3654 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
3655 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
3656 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
3657 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
3658 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
3659 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
3660 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
3661 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
3662 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
3663 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
3664 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
3665 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
3666 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
3667 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
3668 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
3669 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
3670 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
3671 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
3672 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
3673 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
3674 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
3675 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
3676 * 27_io/basic_ostream/sentry/char/1.cc: New.
3677 * 27_io/basic_ostream/sentry/char/2.cc: New.
3678 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
3679 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
3680 * 27_io/basic_ostream/tellp/char/1.cc: New.
3681 * 27_io/basic_ostream/tellp/char/2.cc: New.
3682 * 27_io/basic_ostringstream/1.cc: New.
3683 * 27_io/basic_ostringstream/2.cc: New.
3684 * 27_io/basic_ostringstream/3.cc: New.
3685 * 27_io/basic_ostringstream/4.cc: New.
3686 * 27_io/basic_ostringstream/cons/char/3.cc: New.
3687 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
3688 * 27_io/basic_ostringstream/str/char/1.cc: New.
3689 * 27_io/basic_ostringstream/str/char/2.cc: New.
3690 * 27_io/basic_streambuf/1.cc: New.
3691 * 27_io/basic_streambuf/2.cc: New.
3692 * 27_io/basic_streambuf/3.cc: New.
3693 * 27_io/basic_streambuf/cons/char/1.cc: New.
3694 * 27_io/basic_streambuf/imbue/char/1.cc: New.
3695 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
3696 * 27_io/basic_streambuf/overflow/char/1.cc: New.
3697 * 27_io/basic_streambuf/overflow/char/2.cc: New.
3698 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
3699 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
3700 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
3701 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
3702 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
3703 * 27_io/basic_streambuf/sputn/char/1.cc: New.
3704 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
3705 * 27_io/basic_streambuf/sync/char/1057.cc: New.
3706 * 27_io/basic_stringbuf/1.cc: New.
3707 * 27_io/basic_stringbuf/2.cc: New.
3708 * 27_io/basic_stringbuf/3.cc: New.
3709 * 27_io/basic_stringbuf/4.cc: New.
3710 * 27_io/basic_stringbuf/5.cc: New.
3711 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
3712 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
3713 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
3714 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
3715 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
3716 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
3717 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
3718 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
3719 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
3720 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
3721 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
3722 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
3723 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
3724 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
3725 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
3726 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
3727 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
3728 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
3729 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
3730 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
3731 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
3732 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
3733 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
3734 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
3735 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
3736 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
3737 * 27_io/basic_stringbuf/str/char/1.cc: New.
3738 * 27_io/basic_stringbuf/str/char/2.cc: New.
3739 * 27_io/basic_stringbuf/str/char/3.cc: New.
3740 * 27_io/basic_stringbuf/str/char/3955.cc: New.
3741 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
3742 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
3743 * 27_io/basic_stringstream/1.cc: New.
3744 * 27_io/basic_stringstream/2.cc: New.
3745 * 27_io/basic_stringstream/3.cc: New.
3746 * 27_io/basic_stringstream/4.cc: New.
3747 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
3748 * 27_io/basic_stringstream/str/char/1.cc: New.
3749 * 27_io/basic_stringstream/str/char/2.cc: New.
3750 * 27_io/basic_stringstream/str/char/3.cc: New.
3751 * 27_io/basic_stringstream/str/char/4.cc: New.
3752 * 27_io/fpos/1.cc: New.
3753 * 27_io/fpos/2.cc: New.
3754 * 27_io/fpos/3.cc: New.
3755 * 27_io/ios_base/callbacks/1.cc: New.
3756 * 27_io/ios_base/state/1.cc: New.
3757 * 27_io/ios_base/storage/1.cc: New.
3758 * 27_io/ios_base/storage/2.cc: New.
3759 * 27_io/ios_base/storage/3.cc: New.
3760 * 27_io/ios_base/sync_with_stdio/1.cc: New.
3761 * 27_io/ios_base/sync_with_stdio/2.cc: New.
3762 * 27_io/manipulators/adjustfield/char/1.cc: New.
3763 * 27_io/manipulators/adjustfield/char/2.cc: New.
3764 * 27_io/manipulators/basefield/char/1.cc: New.
3765 * 27_io/manipulators/standard/char/1.cc: New.
3766 * 27_io/manipulators/standard/char/2.cc: New.
3767 * 27_io/objects/char/1.cc: New.
3768 * 27_io/objects/char/2.cc: New.
3769 * 27_io/objects/char/2523-1_xin.cc: New.
3770 * 27_io/objects/char/2523-1_xin.in: New.
3771 * 27_io/objects/char/2523-2_xin.cc: New.
3772 * 27_io/objects/char/2523-2_xin.in: New.
3773 * 27_io/objects/char/3045.cc: New.
3774 * 27_io/objects/char/3647.cc: New.
3775 * 27_io/objects/char/3_xin.cc: New.
3776 * 27_io/objects/char/3_xin.in: New.
3777 * 27_io/objects/char/4_xin.cc: New.
3778 * 27_io/objects/char/4_xin.in: New.
3779 * 27_io/objects/char/5268.cc: New.
3780 * 27_io/objects/char/5280_xin.cc: New.
3781 * 27_io/objects/char/5280_xin.in: New.
3782 * 27_io/objects/char/6548_xin.cc: New.
3783 * 27_io/objects/char/6548_xin.in: New.
3784 * 27_io/objects/char/6648-1_xin.cc: New.
3785 * 27_io/objects/char/6648-1_xin.in: New.
3786 * 27_io/objects/char/6648-2_xin.cc: New.
3787 * 27_io/objects/char/6648-2_xin.in: New.
3788 * 27_io/objects/char/7744_xin.cc: New.
3789 * 27_io/objects/char/7744_xin.in: New.
3790 * 27_io/objects/wchar_t/1.cc: New.
3791 * 27_io/types/1.cc: New.
3792 * 27_io/types/2.cc: New.
3793 * data/filebuf_members-1.tst: New.
3794 * data/filebuf_members-1.txt: New.
3795 * data/filebuf_virtuals-1.tst: New.
3796 * data/filebuf_virtuals-1.txt: New.
3797 * data/filebuf_virtuals-2.tst: New.
3798 * data/filebuf_virtuals-3.tst: New.
3799 * data/ifstream_members-1.tst: New.
3800 * data/ifstream_members-1.txt: New.
3801 * data/ios_base_members_static-1.tst: New.
3802 * data/istream_extractor_other-1.tst: New.
3803 * data/istream_extractor_other-1.txt: New.
3804 * data/istream_extractor_other-2.tst: New.
3805 * data/istream_seeks-1.tst: New.
3806 * data/istream_seeks-1.txt: New.
3807 * data/istream_seeks-2.tst: New.
3808 * data/istream_seeks-3.tst: New.
3809 * data/istream_unformatted-1.tst: New.
3810 * data/istream_unformatted-1.txt: New.
3811 * data/ofstream_members-1.tst: New.
3812 * data/ostream_inserter_char-1.tst: New.
3813 * data/ostream_inserter_char-1.txt: New.
3814 * data/ostream_inserter_other-1.tst: New.
3815 * data/ostream_inserter_other-2.tst: New.
3816 * data/ostream_seeks-1.tst: New.
3818 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3820 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
3821 requirement that __mode must be strict input or output.
3823 * include/std/std_streambuf.h (basic_streambuf::setp): Set
3826 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
3827 output string shouldn't core.
3828 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
3830 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
3832 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
3835 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
3837 * testsuite/data: New directory.
3838 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3839 to copy files from the testsuite data directory.
3840 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
3841 testfiles containing _xin, which now means this is an interactive
3842 test and should be run with the interactive dejagnu hooks.
3843 * testsuite/Makefile.am: Remove testsuite_* files.
3844 * testsuite/Makefile.in: Regenerate.
3846 2003-04-09 Zack Weinberg <zack@codesourcery.com>
3848 * docs/html/install.html: Document complete list of locales
3849 required by test suite. Document procedure for installing
3850 said locales under Debian. Solicit instructions for other
3853 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
3855 * include/bits/sstream.tcc (overflow): Make sure operands of min
3856 and max have the same type.
3858 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
3861 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
3864 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
3866 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
3867 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
3868 Don't set _M_out_end.
3869 (basic_filebuf::overflow): Replace _M_out_buf_size() with
3870 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
3871 * include/bits/sstream.tcc (basic_stringbuf::overflow):
3872 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
3873 * include/bits/streambuf.tcc (basic_streambuf::sputc):
3874 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
3875 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
3876 _M_out_end - _M_out_cur.
3877 (__copy_streambufs): Likewise.
3878 * include/std/std_fstream.h (_M_set_determinate): Set
3881 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
3883 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
3884 _M_convert_to_external, _M_really_overflow, seekoff): Fix
3885 test for synced buffer.
3886 * include/std/std_fstream.h (sync): Likewise.
3887 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
3888 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
3890 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
3892 * include/std/std_sstream.h (basic_istringstream): Adjust
3894 (basic_ostringstream): Same.
3895 (basic_stringstream): Same.
3896 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
3897 (basic_ofstream): Same.
3898 (basic_fstream): Same.
3899 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
3900 that does not call init.
3901 * include/std/std_istream.h (basic_istream): Same.
3902 (basic_iostream): Construct istream, ostream uninitialized, use
3903 init to initialize just once. Add protected ctor that does not
3906 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
3907 Nathan Myers <ncm@cantrip.org>
3910 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
3912 (basic_filebuf<>::showmanyc): Use the information provided
3913 by codecvt and __basic_file<>::showmanyc_helper to implement
3914 a non-trivial showmanyc.
3915 * config/io/basic_file_stdio.h
3916 (__basic_file<>::showmanyc_helper): New, declare.
3917 * config/io/basic_file_stdio.cc
3918 (__basic_file<>::showmanyc_helper): Define.
3919 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
3920 (__basic_file<char>::open): Don't call fcntl().
3921 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
3922 GLIBCPP_CHECK_POLL): New macros.
3923 * configure.in: Call here.
3924 * acconfig.h: Add #undefs for the corresponding symbols.
3925 * aclocal.m4: Regenerate.
3926 * configure: Regenerate.
3927 * config.h.in: Regenerate.
3929 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
3931 * config/linker-map.gnu: Remove string export restrictions.
3933 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
3935 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
3936 find_first_of, find_last_of and find_last_not_of tests.
3937 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
3938 tests here, new file.
3939 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
3940 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
3941 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
3942 wchar_t find_first_of tests here, new file.
3943 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
3945 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
3947 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
3948 wchar_t find_last_of tests here.
3949 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
3950 wchar_t find_last_not_of tests here.
3952 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
3954 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
3955 Correct return value.
3957 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
3960 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
3961 * include/std/std_complex.h (norm): Use faster,
3962 less accurate computation for builtin float types under --fast-math.
3964 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
3966 * testsuite/testsuite_hooks.h: Fix warning nits.
3968 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
3970 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
3971 Only .set mips2 for the o32 ABI.
3973 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
3975 * testsuite/21_strings/char_traits/requirements/char/1.cc:
3976 Test char not wchar_t.
3978 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
3980 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
3981 Correct size, taking into account sizeof(wchar_t).
3983 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
3985 Reshuffle 21_strings testsuite.
3986 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
3987 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
3988 element_access.cc, operations.cc, char_traits_requirements.cc,
3989 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
3990 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
3991 wchar_t tests as follows.
3992 * 21_strings/basic_string/append/char/1.cc: New.
3993 * 21_strings/basic_string/append/wchar_t/1.cc: New.
3994 * 21_strings/basic_string/assign/char/1.cc: New.
3995 * 21_strings/basic_string/assign/char/2.cc: New.
3996 * 21_strings/basic_string/assign/char/3.cc: New.
3997 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
3998 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
3999 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
4000 * 21_strings/basic_string/capacity/1.cc: New.
4001 * 21_strings/basic_string/capacity/char/1.cc: New.
4002 * 21_strings/basic_string/capacity/char/2.cc: New.
4003 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
4004 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
4005 * 21_strings/basic_string/compare/char/1.cc: New.
4006 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
4007 * 21_strings/basic_string/cons/char/1.cc: New.
4008 * 21_strings/basic_string/cons/char/2.cc: New.
4009 * 21_strings/basic_string/cons/char/3.cc: New.
4010 * 21_strings/basic_string/cons/char/4.cc: New.
4011 * 21_strings/basic_string/cons/char/5.cc: New.
4012 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
4013 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
4014 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
4015 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
4016 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
4017 * 21_strings/basic_string/element_access/char/1.cc: New.
4018 * 21_strings/basic_string/element_access/char/2.cc: New.
4019 * 21_strings/basic_string/element_access/char/3.cc: New.
4020 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
4021 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
4022 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
4023 * 21_strings/basic_string/find/char/1.cc: New.
4024 * 21_strings/basic_string/find/wchar_t/1.cc: New.
4025 * 21_strings/basic_string/insert/char/1.cc: New.
4026 * 21_strings/basic_string/insert/char/2.cc: New.
4027 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
4028 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
4029 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
4030 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
4031 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
4032 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
4033 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
4034 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
4035 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
4036 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
4037 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
4038 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
4039 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
4040 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
4041 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
4042 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
4043 * 21_strings/basic_string/operators/char/1.cc: New.
4044 * 21_strings/basic_string/operators/char/2.cc: New.
4045 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
4046 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
4047 * 21_strings/basic_string/replace/char/1.cc: New.
4048 * 21_strings/basic_string/replace/char/2.cc: New.
4049 * 21_strings/basic_string/replace/char/3.cc: New.
4050 * 21_strings/basic_string/replace/char/4.cc: New.
4051 * 21_strings/basic_string/replace/char/5.cc: New.
4052 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
4053 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
4054 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
4055 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
4056 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
4057 * 21_strings/basic_string/rfind/char/1.cc: New.
4058 * 21_strings/basic_string/rfind/char/2.cc: New.
4059 * 21_strings/basic_string/rfind/char/3.cc: New.
4060 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
4061 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
4062 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
4063 * 21_strings/basic_string/substr/char/1.cc: New.
4064 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
4065 * 21_strings/c_strings/char/1.cc: New.
4066 * 21_strings/c_strings/char/2.cc: New.
4067 * 21_strings/c_strings/wchar_t/1.cc: New.
4068 * 21_strings/c_strings/wchar_t/2.cc: New.
4069 * 21_strings/char_traits/requirements/char/1.cc: New.
4070 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
4071 * 21_strings/char_traits/typedefs/char/1.cc: New.
4073 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
4074 Petur Runolfsson <peturr02@ru.is>
4077 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
4078 basic_filebuf<wchar_t>::_M_underflow_common):
4079 if (gptr() < egptr()) return *gptr().
4080 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
4082 * testsuite/27_io/filebuf_members.cc (test_04): Minor
4083 changes: unlink fifo before making it, fix spelling error.
4085 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
4087 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
4088 * testsuite/Makefile.in: Regenerate.
4089 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
4092 2003-03-17 Petur Runolfsson <peturr02@ru.is>
4095 * include/bits/fstream.tcc (basic_filebuf::close):
4096 Always close file, even when write fails.
4097 * testsuite/27_io/filebuf_members.cc (test_07): New test.
4099 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
4101 * libsupc++/Makefile.am (C_COMPILE): Remove.
4102 (LTCOMPILE): Likewise.
4103 * libsupc++/Makefile.in: Regenerate.
4105 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
4107 * testsuite/23_containers/bitset_members.cc: Add test variable.
4108 * testsuite/23_containers/map_insert.cc: Same.
4109 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
4110 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
4111 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
4112 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
4113 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
4114 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
4115 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
4116 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
4117 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
4118 * testsuite/27_io/istream_exception.cc: Same.
4119 * testsuite/27_io/filebuf_virtuals.cc: Same.
4120 * testsuite/27_io/stringbuf_virtuals.cc: Same.
4121 * testsuite/27_io/ostream_inserter_arith.cc: Same.
4122 * testsuite/26_numerics/valarray_operators.cc: Same.
4123 * testsuite/26_numerics/slice.cc: Same.
4124 * testsuite/26_numerics/slice_array_assignment.cc: Same.
4125 * testsuite/24_iterators/istream_iterator.cc: Same.
4126 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
4128 2003-03-14 Petur Runolfsson <peturr02@ru.is>
4132 * config/locale/generic/ctype_members.cc,
4133 * config/locale/gnu/ctype_members.cc
4134 (ctype<wchar_t>::do_widen(char)): Cast argument to
4135 unsigned char before passing to btowc.
4136 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
4137 Convert characters with btowc instead of mbsrtowcs.
4138 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
4140 Convert characters with wctob instead of wcsrtombs.
4141 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
4142 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
4143 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
4145 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
4147 * include/stdc++.h: New.
4148 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
4149 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
4150 * include/Makefile.in: Regenerate.
4151 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
4152 (--cxxflags): Put -g -O2 here.
4153 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
4155 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
4157 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
4158 missing named locale.
4160 2003-03-14 Andreas Schwab <schwab@suse.de>
4162 * configure.in: Only append to makefiles that are newly created to
4163 avoid multiple multi-do/multi-clean rules.
4164 * configure: Rebuilt.
4166 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
4168 * docs/html/configopts.html, docs/html/documentation.html,
4169 docs/html/explanations.html, docs/html/install.html,
4170 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
4171 invalid XHTML and make page header style consistent.
4173 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
4175 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
4176 * docs/html/faq/index.txt: Regenerate.
4177 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
4179 2003-03-12 Andreas Schwab <schwab@suse.de>
4181 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
4182 glibcpp_toolexeclibdir.
4183 * aclocal.m4, configure: Rebuilt.
4185 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
4187 * docs/html/faq/index.html: Update text about location of headers.
4188 * docs/html/faq/index.txt: Regenerate.
4190 2003-03-11 Carlo Wood <carlo@alinoe.com>
4192 * include/bits/demangle.h: Prepend accessors of
4193 class qualifier with 'get_' in order to fix warnings
4194 when compiling with -Wshadow.
4196 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
4198 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
4200 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
4202 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
4203 report lack of setenv().
4205 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4207 * config/io/basic_file_stdio.cc: include <unistd.h>.
4209 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4210 Nathan Myers <ncm@cantrip.org>
4213 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
4214 seekoff, seekpos): Add a boolean parameter __stdio.
4215 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
4216 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
4217 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
4219 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
4220 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
4221 * include/std/std_fstream.h (sync): Likewise.
4222 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
4223 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
4224 libstdc++/8399 commit involving isatty(0).
4225 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
4226 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
4227 * configure.in: Remove call.
4228 * aclocal.m4: Regenerate.
4229 * config.h.in: Regenerate.
4230 * configure: Regenerate.
4231 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
4233 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
4236 * include/bits/fstream.tcc (overflow): don't write EOF to file.
4237 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
4239 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4242 * include/bits/basic_ios.h (_M_setstate): New.
4243 * include/bits/ostream.tcc (operator<<): Use it.
4244 * include/bits/istream.tcc (operator>>): Use it.
4245 * include/std/std_ostream.h (operator<<): Make friends.
4246 * include/std/std_istream.h (operator>>): Make friends.
4247 * testsuite/27_io/ostream_exception.cc,
4248 testsuite/27_io/istream_exception.cc: New tests.
4250 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
4252 * include/bits/locale_facets.tcc: Fix typo.
4254 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
4256 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
4258 * config/locale/generic/c_locale.cc
4259 (locale::facet::_S_create_c_locale): Throw runtime exception when
4260 unsupported language is specified.
4261 * testsuite/testsuite_hooks.h
4262 (run_test_wrapped_generic_locale_exception_catcher): New function.
4263 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
4264 Suppress runtime exception thrown by generic implementation.
4265 (run_tests_wrapped_env): Likewise.
4266 (run_test_wrapped_generic_locale_exception_catcher): New function.
4267 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
4268 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
4269 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
4270 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
4271 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
4272 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
4273 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
4274 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
4275 * testsuite/22_locale/facet/2.cc: New test wrap.
4276 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
4277 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
4278 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
4279 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
4280 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
4281 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
4282 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
4283 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
4284 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
4285 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
4286 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
4287 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
4288 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
4289 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
4290 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
4291 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
4292 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
4293 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
4294 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
4295 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
4296 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
4297 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
4298 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
4299 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
4300 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
4301 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
4302 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
4303 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
4304 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
4305 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
4306 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
4307 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
4308 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
4309 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
4310 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
4311 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
4312 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
4313 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
4314 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
4315 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
4316 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
4317 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
4318 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
4319 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
4320 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
4321 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
4322 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
4323 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
4324 * testsuite/27_io/ios_members.cc: New test wrap.
4325 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
4327 * testsuite/27_io/streambuf_members.cc: New test wrap.
4328 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
4330 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
4331 Petur Runolfsson <peturr02@ru.is>
4334 * include/bits/streambuf.tcc (__copy_streambufs): Use
4335 sgetn-sputn only when sputn cannot fail, otherwise fall back
4336 to safe snextc-sputc.
4337 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
4339 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4341 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
4342 locale cache for truename and falsename.
4344 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
4346 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
4347 _M_word_size initialization.
4349 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4351 * include/bits/fstream.tcc (_M_convert_to_external):
4352 Set __elen to zero if codecvt::out eventually fails.
4354 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4357 * include/bits/fstream.tcc (_M_really_overflow): Check
4358 for _M_convert_to_external possible failures.
4359 * include/std/std_fstream.h (sync): Check _M_really_overflow
4360 return value and return -1 in case of failure.
4361 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
4363 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
4366 * include/bits/istream.tcc (operator>>(_CharT*),
4367 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
4368 * testsuite/27_io/stringstream.cc (test02): Add.
4370 * include/bits/istream.tcc (operator>>(_CharT*)):
4371 Assign a char_type to *__s.
4373 2003-03-07 Petur Runolfsson <peturr02@ru.is>
4376 * include/bits/locale_facets.tcc
4377 (collate::do_compare, collate::do_transform):
4378 Handle nul characters in input.
4379 * testsuite/22_locale/collate/compare/char/3.cc: New test.
4380 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
4381 * testsuite/22_locale/collate/transform/char/3.cc: New test.
4382 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
4384 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
4386 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
4388 * testsuite/27_io/ostream_fail.cc: New test.
4390 2003-03-07 Matthias Klose <doko@debian.org>
4392 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
4393 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
4394 * Makefile.in: Regenerate.
4395 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
4397 AM_MAKEFLAGS: Pass gxx_include_dir.
4398 * libsupc++/Makefile.in: Regenerate.
4400 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
4402 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
4403 mask. Test setting small-numbered pword and iword slots. Test
4404 behavior at limit of numeric_limits::max. Check that values are
4405 still good after failures.
4407 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
4409 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
4410 (ios_base::ios_base): Set _M_word, _M_word_size.
4411 (ios_base::~ios_base): Remove redundant test.
4412 * testsuite/27_io/ios_base_storage.cc (test03): New.
4414 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
4416 * src/strstream.cc, include/bits/basic_string.tcc: Remove
4417 incorrect whitespace added in my previous change.
4419 2003-03-05 Carlo Wood <carlo@alinoe.com>
4421 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
4422 _S_initialized() in order to allow debugging libraries to detect
4423 when the std streams are initialized from an overloaded operator
4426 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
4428 * libsupc++/demangle.h: Move to..
4429 * include/bits/demangle.h: ...here.
4430 * src/demangle.cc: Adjust include.
4431 * include/Makefile.am (bits_headers): Add.
4432 * include/Makefile.in: Regenerate.
4434 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
4436 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
4438 * config/linker-map.gnu: Filter typeinfo and vtable info.
4440 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
4442 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
4443 new failure. Throw exception if badbit and exception mask when ix
4444 >= numeric_limits<int>::max().
4446 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
4448 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
4449 min and max have the same type.
4450 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
4452 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
4454 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
4455 * include/Makefile.in: Regenerate.
4457 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
4459 * testsuite/abi_check.cc (report_symbol_info): Add version info.
4461 * config/linker-map.gnu: Hide more stuff.
4462 * include/Makefile.am: Cleanups.
4463 * include/Makefile.in: Regenerate.
4465 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
4467 * config/locale/generic/messages_members.h (messages::messages):
4468 Remove name from unused parameter.
4470 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
4472 * src/Makefile.am (sources): Add demangle.cc.
4475 * src/Makefile.in: Regenerate.
4476 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
4477 * libsupc++/Makefile.in: Regenerate.
4479 * testsuite/testsuite_hooks.h
4480 (__gnu_cxx_test::verify_demangle): New.
4481 * testsuite/testsuite_hooks.cc: Define.
4483 2003-02-27 Carlo Wood <carlo@alinoe.com>
4485 * src/demangle.cc: New.
4486 * libsupc++/demangle.h: New.
4488 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
4489 Carlo Wood <carlo@alinoe.com>
4491 * testsuite/demangle/abi_examples/01.cc: New.
4492 * testsuite/demangle/abi_examples/02.cc: New.
4493 * testsuite/demangle/abi_examples/03.cc: New.
4494 * testsuite/demangle/abi_examples/04.cc: New.
4495 * testsuite/demangle/abi_examples/05.cc: New.
4496 * testsuite/demangle/abi_examples/06.cc: New.
4497 * testsuite/demangle/abi_examples/07.cc: New.
4498 * testsuite/demangle/abi_examples/08.cc: New.
4499 * testsuite/demangle/abi_examples/09.cc: New.
4500 * testsuite/demangle/abi_examples/10.cc: New.
4501 * testsuite/demangle/abi_examples/11.cc: New.
4502 * testsuite/demangle/abi_examples/12.cc: New.
4503 * testsuite/demangle/abi_examples/13.cc: New.
4504 * testsuite/demangle/abi_examples/14.cc: New.
4505 * testsuite/demangle/abi_examples/15.cc: New.
4506 * testsuite/demangle/abi_examples/16.cc: New.
4507 * testsuite/demangle/abi_examples/17.cc: New.
4508 * testsuite/demangle/abi_examples/18.cc: New.
4509 * testsuite/demangle/abi_examples/19.cc: New.
4510 * testsuite/demangle/abi_examples/20.cc: New.
4511 * testsuite/demangle/abi_examples/21.cc: New.
4512 * testsuite/demangle/abi_examples/22.cc: New.
4513 * testsuite/demangle/abi_examples/23.cc: New.
4514 * testsuite/demangle/abi_examples/24.cc: New.
4515 * testsuite/demangle/abi_examples/25.cc: New.
4516 * testsuite/demangle/abi_examples/26.cc: New.
4517 * testsuite/demangle/abi_text/01.cc: New.
4518 * testsuite/demangle/abi_text/02.cc: New.
4519 * testsuite/demangle/abi_text/03.cc: New.
4520 * testsuite/demangle/abi_text/04.cc: New.
4521 * testsuite/demangle/abi_text/05.cc: New.
4522 * testsuite/demangle/abi_text/06.cc: New.
4523 * testsuite/demangle/abi_text/07.cc: New.
4524 * testsuite/demangle/abi_text/08.cc: New.
4525 * testsuite/demangle/abi_text/09.cc: New.
4526 * testsuite/demangle/abi_text/10.cc: New.
4527 * testsuite/demangle/abi_text/11.cc: New.
4528 * testsuite/demangle/abi_text/12.cc: New.
4529 * testsuite/demangle/abi_text/13.cc: New.
4530 * testsuite/demangle/abi_text/14.cc: New.
4531 * testsuite/demangle/regression/3111-1.cc: New.
4532 * testsuite/demangle/regression/3111-2.cc: New.
4533 * testsuite/demangle/regression/7986-01.cc: New.
4534 * testsuite/demangle/regression/7986-02.cc: New.
4535 * testsuite/demangle/regression/7986-03.cc: New.
4536 * testsuite/demangle/regression/7986-04.cc: New.
4537 * testsuite/demangle/regression/7986-05.cc: New.
4538 * testsuite/demangle/regression/7986-06.cc: New.
4539 * testsuite/demangle/regression/7986-07.cc: New.
4540 * testsuite/demangle/regression/7986-08.cc: New.
4541 * testsuite/demangle/regression/7986-09.cc: New.
4542 * testsuite/demangle/regression/7986-10.cc: New.
4543 * testsuite/demangle/regression/7986-11.cc: New.
4544 * testsuite/demangle/regression/7986-12.cc: New.
4545 * testsuite/demangle/regression/7986.cc: New.
4546 * testsuite/demangle/regression/8897.cc: New.
4547 * testsuite/demangle/regression/cw-01.cc: New.
4548 * testsuite/demangle/regression/cw-02.cc: New.
4549 * testsuite/demangle/regression/cw-03.cc: New.
4550 * testsuite/demangle/regression/cw-04.cc: New.
4551 * testsuite/demangle/regression/cw-05.cc: New.
4552 * testsuite/demangle/regression/cw-06.cc: New.
4553 * testsuite/demangle/regression/cw-07.cc: New.
4554 * testsuite/demangle/regression/cw-08.cc: New.
4555 * testsuite/demangle/regression/cw-09.cc: New.
4556 * testsuite/demangle/regression/cw-10.cc: New.
4557 * testsuite/demangle/regression/cw-11.cc: New.
4558 * testsuite/demangle/regression/cw-12.cc: New.
4559 * testsuite/demangle/regression/cw-13.cc: New.
4560 * testsuite/demangle/regression/cw-14.cc: New.
4561 * testsuite/demangle/regression/old.cc: New.
4563 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
4565 * docs/doxygen/Intro.3: Update with new (proper) names.
4566 * docs/doxygen/TODO: Update.
4567 * docs/doxygen/run_doxygen: More comments, fix up man pages.
4568 Fake entries for standard typedefs.
4569 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
4570 * docs/html/documentation.html: Top-level man page is now called
4572 * include/std/std_limits.h: Doxygenate.
4574 2003-02-25 Scott Snyder <snyder@fnal.gov>
4577 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
4578 Correct documentation.
4579 * include/bits/stl_multimap.h (lower_bound, upper_bound,
4580 equal_range): Likewise.
4582 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
4586 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
4587 __bump is true (uflow), always increment the read pointer
4588 (_M_in_cur) before returning successfully.
4589 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
4591 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
4592 Nathan Myers <ncm@cantrip.org>
4594 PR libstdc++/9404, PR libstdc++/9701 (partial)
4595 (aka pptr == epptr implies overflow)
4596 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
4597 Consistently, _M_out_end points to the end of the buffer just
4599 (overflow): Tweak to use _M_out_buf_size().
4600 (_M_convert_to_external): The role of the old _M_out_end is
4601 now played by _M_out_lim.
4602 (_M_really_overflow): Likewise.
4603 (seekoff): Likewise.
4604 (setbuf): _M_out_end points to the end of the external buffer.
4605 * include/bits/sstream.tcc (overflow): Rewrote, taking into
4606 account the resolution of DR 169 (TC).
4607 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
4608 (seekpos): Use _M_string.capacity(); tweak.
4609 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
4610 * include/std/std_fstream.h (sync): The role of the old
4611 _M_out_end is now played by _M_out_lim.
4612 (_M_set_indeterminate): Use _M_set_determinate.
4613 (_M_set_determinate): _M_out_end is now _M_out_lim.
4614 (_M_is_indeterminate): Likewise.
4615 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
4616 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
4617 which have the information readily available as _M_string.capacity();
4618 for ate and app modes, pass the string size to _M_really_sync.
4619 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
4620 point to the end of the buffer (i.e., epptr) and to the string end,
4622 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
4623 which points to the right limit of the used put area.
4624 (_M_out_cur_move): The role of the old _M_out_end is now played
4626 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
4627 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
4629 (basic_streambuf()): Initialize _M_out_lim too.
4630 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
4631 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
4632 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
4634 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
4636 * testsuite/27_io/ios_base_storage.cc (main): Call
4639 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
4641 * include/bits/locale_facets.tcc (_M_convert_float): Replace
4642 numpunct facet accesses with data from __locale_cache.
4644 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
4646 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
4647 * docs/html/faq/index.txt: Regenerate.
4649 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
4651 * config/linker-map.gnu: Also export locking symbols needed for the
4652 generic atomicity.h case.
4654 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
4656 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
4658 * configure: Rebuilt.
4660 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
4662 * include/bits/sstream.tcc (overflow): According to
4663 27.7.1.3, p5, actual output is performed by sputc(c).
4665 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
4668 * include/bits/stl_alloc.h: Remove all traces of assert().
4670 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
4672 * include/std/std_sstream.h (str()): the size of the
4673 current string may be different from the initial one
4674 whenever _M_out_end > _M_out_beg.
4675 * testsuite/27_io/stringbuf_members.cc (test07): Add.
4677 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
4680 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
4682 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
4684 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
4685 * testsuite/27_io/ios_members.cc (test03): New.
4687 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
4689 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
4690 (basic_ios::_M_cache_facets): Move into above.
4691 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
4693 (basic_ios::imbue): Force locale cache to be built.
4694 (basic_ios::_M_init): Create and initialize locale cache.
4695 * include/bits/ios_base.h (__locale_cache_base): Declare.
4696 (ios_base::_M_locale_cache): New.
4697 (ios_base::_M_cache): Define.
4698 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
4700 (__locale_cache_base,__locale_cache<_CharT>): New classes.
4701 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
4702 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
4703 cache literal string, grouping flag, thousands separator.
4704 (__locale_cache<_CharT>::__locale_cache): New.
4705 (__locale_cache<_CharT>::_M_init): New.
4706 * src/ios.cc: Clear _M_locale_cache in constructor.
4707 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
4710 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4712 * src/locale-inst.cc: Do not include <cassert>.
4713 * src/locale.cc: Likewise.
4715 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4718 * include/std/std_fstream.h: Declare underflow and uflow
4719 specializations, change generic definitions to do nothing.
4720 * src/fstream.cc: Add underflow and uflow specializations.
4722 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
4725 * include/bits/fstream.tcc (_M_convert_to_external):
4726 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
4727 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
4729 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
4731 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
4732 * include/bits/basic_ios.tcc: Guard use of extern template.
4733 * include/std/std_iomanip.h: Same.
4734 * include/bits/streambuf.tcc: Same.
4735 * include/bits/stl_alloc.h: Same.
4736 * include/bits/locale_facets.tcc: Same.
4737 * include/bits/ostream.tcc: Same.
4738 * include/bits/istream.tcc: Same.
4739 * include/bits/fstream.tcc: Same.
4740 * include/bits/basic_string.tcc: Same.
4742 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
4744 * include/bits/ostream.tcc (sentry::sentry): Improve
4745 performance-wise the fix for libstdc++/9563.
4747 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
4749 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
4750 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
4751 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
4752 when we don't have static mutex initialization.
4753 (__exchange_and_add): Use _Atomic_add_mutex_once.
4754 * src/misc-inst.cc: Definitions of all the above.
4756 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
4759 * include/bits/ostream.tcc (sentry::sentry): Check
4760 the state of the stream after the preparation.
4761 * testsuite/27_io/ostream_sentry.cc (test02): Add.
4763 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
4765 * include/Makefile.am (stamp-std-precompile): Add rule.
4766 * include/Makefile.in: Regenerated.
4768 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
4769 Benjamin Kosnik <benjamin@redhat.com>
4771 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
4772 Add indexes into this array.
4773 (__num_base::_S_atoms): To _S_atoms_in.
4774 (num_put::_M_insert): Rename to _M_pad.
4775 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
4776 (num_put::_M_widen_int): Rename to _M_group_int.
4777 (num_put::_M_widen_float): Rename to _M_group_float.
4778 * include/bits/locale_facets.tcc (__int_to_char): New inline
4779 function and adapter functions.
4780 (num_put::_M_group_int): Streamline.
4781 (num_put::_M_group_float): Streamline.
4782 (num_put::_M_convert_int): Remove unused parameter names. Choose
4783 large enough buffer for text. Use __int_to_char instead of
4784 __convert_from_v. Formatted text is now at the end of the buffer.
4785 (num_put::_M_convert_float): Preliminary fixups.
4786 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
4787 (__int_to_char<unsigned long long>): Same.
4788 (__int_to_char<char, unsigned long>): New.
4789 (__int_to_char<char, unsigned long long>): New.
4790 (__int_to_char<wchar_t, unsigned long>): New.
4791 (__int_to_char<wchar_t, unsigned long long>): New.
4793 2003-02-11 Scott Snyder <snyder@fnal.gov>
4796 * include/bits/fstream.tcc (seekoff): Avoid operator+
4799 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
4802 * include/ext/stdio_filebuf.h
4803 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
4804 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
4805 Change to take a __size parameter of type size_t, not
4806 of type (template parameter dependent) int_type.
4807 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
4808 size vars to size_t.
4809 * testsuite/ext/stdio_filebuf.cc: Add.
4811 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
4812 Petur Runolfsson <peturr02@ru.is>
4815 * include/bits/streambuf.tcc (__copy_streambufs):
4816 Don't conditionalize the copy to __testput.
4817 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
4819 2002-02-11 DJ Delorie <dj@redhat.com>
4821 * acinclude.m4: Check for native targets that can't link at
4822 this point in the build.
4823 * aclocal.m4: Regenerate.
4824 * configure: Regenerate.
4826 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4828 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
4830 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
4833 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
4835 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
4836 unsigned char platforms.
4838 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
4841 * include/std/std_istream.h
4842 (basic_istream::sentry::operator bool()): Make const.
4843 * include/std/std_ostream.h
4844 (basic_ostream::sentry::operator bool()): Likewise.
4845 * testsuite/27_io/istream_sentry.cc (test03): Add.
4846 * testsuite/27_io/ostream_sentry.cc: Add.
4848 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
4851 Implement resolution of DR 231 (Ready)
4852 * include/bits/locale_facets.h (__num_base::_S_format_float):
4853 Change declaration: return void, remove __prec parameter.
4854 * src/locale.cc (__num_base::_S_format_float): Implement
4855 resolution of DR 231.
4856 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
4857 Tweak uses. Check for negative precision.
4858 * testsuite/22_locale/num_put/put/char/6.cc: Add
4859 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
4861 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
4863 * config/io/basic_file_libio.h: Fixups.
4864 * config/io/c_io_libio.h: Same.
4865 * libio/Makefile.am: Same.
4866 * libio/Makefile.in: Regenerated.
4868 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
4870 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
4871 Explicitly use the "C" locale.
4872 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
4874 2003-02-06 Petur Runolfsson <peturr02@ru.is>
4878 PR libstdc++/9028 (partial)
4884 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
4885 codecvt<wchar_t, char, mbstate_t>::do_length,
4886 codecvt<wchar_t, char, mbstate_t>::do_max_length):
4888 * config/locale/generic/codecvt_members.cc: ...here.
4889 * config/locale/gnu/codecvt_members.cc: ...and here.
4891 * config/locale/generic/codecvt_members.cc,
4892 * config/locale/gnu/codecvt_members.cc
4893 (codecvt<wchar_t, char, mbstate_t>::do_encoding
4894 codecvt<wchar_t, char, mbstate_t>::do_in,
4895 codecvt<wchar_t, char, mbstate_t>::do_length,
4896 codecvt<wchar_t, char, mbstate_t>::do_max_length,
4897 codecvt<wchar_t, char, mbstate_t>::do_out):
4898 New implementation that handles stateless encodings,
4901 * config/locale/generic/codecvt_members.cc,
4902 * config/locale/gnu/codecvt_members.cc,
4903 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
4904 * include/bits/codecvt.h,
4906 (codecvt::length, codecvt::do_length):
4907 Change type of first argument of length and do_length from
4908 'const state_type&' to 'state_type&' according to DR 75.
4910 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
4911 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
4912 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
4913 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
4914 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
4915 Cleanup and check for correct return value from encoding
4917 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
4918 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
4919 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
4920 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
4921 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
4922 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
4923 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
4924 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
4925 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
4926 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
4927 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
4928 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
4929 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
4930 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
4931 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
4932 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
4933 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
4934 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
4935 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
4936 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
4937 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
4938 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
4939 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
4940 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
4941 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
4942 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
4943 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
4944 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
4945 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
4946 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
4947 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
4948 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
4949 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
4950 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
4951 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
4952 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
4953 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
4955 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
4957 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
4958 (money_put::do_put): Same.
4960 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
4962 * include/bits/ios_base.h (ios_base): Document reserved storage.
4964 * include/bits/locale_facets.h: (struct __pad): Comment on
4966 (__verify_grouping): Same.
4967 (__add_grouping): Same.
4968 * include/bits/locale_facets.tcc (__verify_grouping): Move
4969 comments to declaration.
4970 (__add_grouping): Same.
4972 * include/bits/locale_facets.tcc:
4973 (__write<_CharT, _OutIter>): New function.
4974 (__write<_CharT>): New function specialization.
4975 (num_put::_M_insert): Remove explicit loop over iterator. Use
4977 (num_put::_M_widen_float): Remove __basefield.
4978 (num_put::_M_widen_int): Move __basefield to within grouping block.
4980 * include/bits/streambuf_iterator.h: Include <streambuf>.
4981 (ostreambuf_iterator::_M_put): Add.
4983 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
4985 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
4987 2003-02-04 Nathan Myers <ncm@cantrip.org>
4989 * testsuite/25_algorithms/min_max.cc (test02): Add.
4991 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
4993 PR libstdc++/9439, PR libstdc++/9425
4994 * config/io/basic_file_stdio.cc
4995 (__basic_file<char>::seekoff, seekpos): Return -1L if
4997 * include/bits/fstream.tcc (basic_filebuf::seekoff):
4998 Check _M_file.seekoff return value; always return
4999 pos_type(off_type(-1)) in case of failure.
5000 (basic_filebuf::pbackfail): Check this->seekoff return
5001 value and return traits_type::eof() in case of failure.
5002 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
5004 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
5006 * include/std/std_ostream.h (ostream::_M_write): Declare.
5007 * ostream.tcc (ostream::_M_write): Define.
5008 (basic_ostream::write): Use it.
5009 (operator<<(basic_ostream, _CharT)): Ditto.
5010 (operator<<(basic_ostream, char)): Ditto.
5011 (operator<<(basic_ostream, _CharT*)): Ditto.
5012 (operator<<(basic_ostream, char*)): Ditto.
5013 (operator<<(basic_ostream, basic_string)): Ditto.
5015 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
5017 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
5019 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5021 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
5022 add HTML comment about updating links if numbering changes.
5024 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5027 * include/bits/streambuf.tcc (sputbackc): Access
5028 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
5029 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
5031 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
5034 * include/bits/fstream.tcc (open): If the 'ate' repositioning
5035 operation fails, calls close _and_ returns a null pointer
5036 to indicate failure (27.8.1.3,4).
5037 * testsuite/27_io/filebuf_members.cc (test_06): Add.
5039 2003-02-04 Petur Runolfsson <peturr02@ru.is>
5041 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
5043 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
5045 * docs/html/27_io/howto.html: New section on stdio_filebuf.
5046 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
5047 * docs/html/documentation.html: Regenerate.
5049 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
5051 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
5052 * docs/html/17_intro/porting.html: Regenerate.
5054 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5055 Phil Edwards <pme@gcc.gnu.org>
5057 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
5058 numeric_limits for bits-per-word values.
5059 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
5060 Use __builtin_popcountl instead.
5061 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
5062 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
5063 Use __builtin_ctzl instead.
5064 (_S_bit_count, _S_first_one): Remove.
5065 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
5066 * src/Makefile.am (sources): Remove bitset.cc.
5067 * src/bitset.cc: Delete file.
5068 * src/Makefile.in: Regenerate.
5070 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
5072 PR libstdc++/9527, PR libstdc++/8713
5073 * docs/html/install.html: Mention glibc version requirement.
5074 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
5075 with 3.2.1+ (formatting bugfixes).
5076 * docs/html/faq/index.txt: Regenerate.
5078 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5081 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
5084 * include/bits/valarray_before.h (__not_equal_to): Use != instead
5087 * testsuite/26_numerics/valarray_operators.cc: New test.
5089 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
5091 * docs/html/faq/index.html: Correct link to libg++ information.
5092 * docs/html/faq/index.txt: Regenerated.
5094 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
5095 Benjamin Kosnik <bkoz@redhat.com>
5097 Const correctness issue:
5098 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
5099 * include/bits/locale_classes.h
5100 (locale::_Impl::_M_facets): Change type to const facet**.
5101 (locale::_Impl::_M_install_facet): Change declaration to
5103 (locale::facet::_M_references): Make mutable.
5104 (locale::facet::_M_add_reference): Declare const.
5105 (locale::facet::_M_remove_reference): Likewise.
5106 * include/bits/locale_facets.tcc
5107 (use_facet(const locale&)): Tweak for const facet** _M_facets.
5108 (has_facet(const locale&)): Likewise.
5110 (locale::facet::_M_add_reference): Adjust definition.
5111 (locale::facet::_M_remove_reference): Likewise.
5113 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
5114 const facet** _M_facets.
5115 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
5116 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
5117 (locale::_Impl::_M_install_facet): Adjust definition to take
5118 const facet* and for const facet** _M_facets.
5119 * testsuite/22_locale/locale/cons/8.cc: Add.
5121 2003-01-29 Mark Mitchell <mark@codesourcery.com>
5123 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
5124 Use __FLT_HAS_INIFINITY__ to initialize.
5125 (numeric_limits<float>::has_quiet_NaN): Likewise.
5126 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
5128 (numeric_limits<double>::has_quiet_NaN): Likewise.
5129 (numeric_limits<long double>::has_infinity): Use
5130 __LDBL_HAS_INIFINITY__ to initialize.
5131 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
5133 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
5136 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
5137 with bases which are very ambiguous.
5139 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
5141 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
5142 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
5143 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
5144 * src/Makefile.in: Regenerate.
5145 * libsupc++/Makefile.in: Regenerate.
5147 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
5149 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
5150 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
5151 version_specific_libs is enabled.
5152 * aclocal.m4, configure: Rebuilt.
5154 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
5156 * include/bits/valarray_meta.h: Remove, split into ...
5157 * include/bits/valarray_before.h: ... this, and ...
5158 * include/bits/valarray_after.h: ... this.
5159 * include/std/std_valarray.h: Adjust.
5160 * include/Makefile.am (bits_headers): Adjust.
5161 * include/Makefile.in: Regenerate.
5163 2003-01-24 Andreas Schwab <schwab@suse.de>
5165 * config/linker-map.gnu: Fix for size_t variance.
5167 2003-01-23 Petur Runolfsson <peturr02@ru.is>
5170 * include/std/std_streambuf.h
5171 (basic_streambuf::basic_streambuf,
5172 basic_streambuf::~basic_streambuf,
5173 basic_streambuf::getloc, basic_streambuf::imbue):
5174 Remove _M_buf_locale_init
5175 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
5176 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
5177 * testsuite/27_io/streambuf_members.cc (test08): Add.
5178 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
5180 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
5182 Revert include ordering.
5183 * config/locale/generic/c_locale.h: Add include guards.
5184 * config/locale/gnu/c_locale.h: Same.
5185 * include/bits/locale_classes.h: Remove cctype include.
5186 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
5187 * include/std/std_fstream.h: Remove streambuf include.
5188 * include/std/std_sstream.h: Remove streambuf include.
5190 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
5192 * configure.in (libtool_VERSION): To 6:0:0.
5193 * configure: Regenerated.
5194 * config/linker-map.gnu: Clean.
5196 * src/misc-inst.cc: Remove instantiations.
5198 * include/bits/stl_alloc.h (__malloc_alloc_template):
5200 (__default_alloc_template): To __pool_alloc.
5201 * src/stl-inst.cc: Same.
5202 * include/backward/alloc.h: Update.
5203 * testsuite/ext/allocators.cc: Update.
5205 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
5206 really try to remove these if possible.
5207 * src/locale.cc (std): Same.
5209 * testsuite/abi_check.cc (check_version): Add.
5211 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
5212 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
5213 Mark Mitchell <mark@codesourcery.com>
5216 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
5217 (basic_filebuf::underflow): Declare.
5220 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
5222 * include/bits/locale_facets.h: Move non-facet classes requiring
5224 * include/bits/locale_classes.h: New.
5225 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
5226 * include/bits/Makefile.in: Regenerate.
5228 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
5229 * config/locale/gnu/c_locale.h: ...here.
5230 * config/locale/generic/c_locale.h: Same.
5232 * include/bits/locale_facets.tcc: Move declarations to...
5233 * include/bits/locale_facets.h: ...here.
5234 * include/bits/basic_ios.h: Tweak includes accordingly.
5235 * include/std/std_sstream.h: Add streambuf include.
5236 * include/std/std_fstream.h: Ditto.
5237 * include/std/std_locale.h: Add locale_classes.h include.
5238 * include/std/std_iosfwd.h: Tweak.
5239 * src/concept-inst.cc: Add iterator include.
5241 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
5242 bits as unexported in the future.
5244 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
5246 Reshuffle 22_locale testsuite.
5247 * 22_locale/(codecvt.cc money_get.cc
5248 codecvt_members_char_char.cc money_get_members_char.cc
5249 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
5250 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
5251 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
5252 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
5253 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
5254 money_put_members_char.cc ctor_copy_dtor.cc
5255 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
5256 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
5257 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
5258 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
5259 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
5260 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
5261 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
5262 operators.cc ctype_widen_char.cc static_members.cc
5263 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
5264 global_templates.cc time_get_members_wchar_t.cc, members.cc,
5265 time_put.cc, messages_byname.cc, time_put_members_char.cc,
5266 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
5267 Split up into individual test cases...
5268 * 22_locale/codecvt/1.cc: New.
5269 * 22_locale/codecvt/2.cc: New.
5270 * 22_locale/codecvt/always_noconv/char/1.cc: New.
5271 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
5272 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
5273 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
5274 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
5275 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
5276 * 22_locale/codecvt/encoding/char/1.cc: New.
5277 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
5278 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
5279 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
5280 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
5281 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
5282 * 22_locale/codecvt/in/char/1.cc: New.
5283 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
5284 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
5285 * 22_locale/codecvt/in/wchar_t/1.cc: New.
5286 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
5287 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
5288 * 22_locale/codecvt/length/char/1.cc: New.
5289 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
5290 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
5291 * 22_locale/codecvt/length/wchar_t/1.cc: New.
5292 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
5293 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
5294 * 22_locale/codecvt/max_length/char/1.cc: New.
5295 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
5296 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
5297 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
5298 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
5299 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
5300 * 22_locale/codecvt/out/char/1.cc: New.
5301 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
5302 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
5303 * 22_locale/codecvt/out/wchar_t/1.cc: New.
5304 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
5305 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
5306 * 22_locale/codecvt/unicode/char.cc: New.
5307 * 22_locale/codecvt/unicode/wchar_t.cc: New.
5308 * 22_locale/codecvt/unshift/char/1.cc: New.
5309 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
5310 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
5311 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
5312 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
5313 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
5314 * 22_locale/collate/1.cc: New.
5315 * 22_locale/collate/2.cc: New.
5316 * 22_locale/collate/compare/char/1.cc: New.
5317 * 22_locale/collate/compare/char/2.cc: New.
5318 * 22_locale/collate/compare/char/wrapped_env.cc: New.
5319 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
5320 * 22_locale/collate/compare/wchar_t/1.cc: New.
5321 * 22_locale/collate/compare/wchar_t/2.cc: New.
5322 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
5323 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
5324 * 22_locale/collate/hash/char/1.cc: New.
5325 * 22_locale/collate/hash/char/2.cc: New.
5326 * 22_locale/collate/hash/char/wrapped_env.cc: New.
5327 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
5328 * 22_locale/collate/hash/wchar_t/1.cc: New.
5329 * 22_locale/collate/hash/wchar_t/2.cc: New.
5330 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
5331 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
5332 * 22_locale/collate/transform/char/2.cc: New.
5333 * 22_locale/collate/transform/char/wrapped_env.cc: New.
5334 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
5335 * 22_locale/collate/transform/wchar_t/2.cc: New.
5336 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
5337 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
5338 * 22_locale/collate_byname/1.cc: New.
5339 * 22_locale/ctype/1.cc: New.
5340 * 22_locale/ctype/2.cc: New.
5341 * 22_locale/ctype/cons/char/1.cc: New.
5342 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
5343 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
5344 * 22_locale/ctype/is/char/1.cc: New.
5345 * 22_locale/ctype/is/char/2.cc: New.
5346 * 22_locale/ctype/is/char/3.cc: New.
5347 * 22_locale/ctype/is/char/wrapped_env.cc: New.
5348 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
5349 * 22_locale/ctype/is/wchar_t/1.cc: New.
5350 * 22_locale/ctype/is/wchar_t/2.cc: New.
5351 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
5352 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
5353 * 22_locale/ctype/narrow/char/1.cc: New.
5354 * 22_locale/ctype/narrow/char/2.cc: New.
5355 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
5356 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
5357 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
5358 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
5359 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
5360 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
5361 * 22_locale/ctype/scan/char/1.cc: New.
5362 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
5363 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
5364 * 22_locale/ctype/scan/wchar_t/1.cc: New.
5365 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
5366 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
5367 * 22_locale/ctype/to/char/1.cc: New.
5368 * 22_locale/ctype/to/char/wrapped_env.cc: New.
5369 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
5370 * 22_locale/ctype/to/wchar_t/1.cc: New.
5371 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
5372 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
5373 * 22_locale/ctype/widen/char/1.cc: New.
5374 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
5375 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
5376 * 22_locale/ctype/widen/wchar_t/1.cc: New.
5377 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
5378 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
5379 * 22_locale/facet/1.cc: New.
5380 * 22_locale/facet/2.cc: New.
5381 * 22_locale/global_templates/1.cc: New.
5382 * 22_locale/locale/cons/1.cc: New.
5383 * 22_locale/locale/cons/2.cc: New.
5384 * 22_locale/locale/cons/3.cc: New.
5385 * 22_locale/locale/cons/4.cc: New.
5386 * 22_locale/locale/cons/5.cc: New.
5387 * 22_locale/locale/cons/6.cc: New.
5388 * 22_locale/locale/cons/7.cc: New.
5389 * 22_locale/locale/global_locale_objects/1.cc: New.
5390 * 22_locale/locale/global_locale_objects/2.cc: New.
5391 * 22_locale/locale/global_locale_objects/3.cc: New.
5392 * 22_locale/locale/operations/1.cc: New.
5393 * 22_locale/locale/operations/2.cc: New.
5394 * 22_locale/messages/1.cc: New.
5395 * 22_locale/messages/2.cc: New.
5396 * 22_locale/messages/members/char/1.cc: New.
5397 * 22_locale/messages/members/char/2.cc: New.
5398 * 22_locale/messages/members/char/3.cc: New.
5399 * 22_locale/messages/members/char/wrapped_env.cc: New.
5400 * 22_locale/messages/members/char/wrapped_locale.cc: New.
5401 * 22_locale/messages_byname/1.cc: New.
5402 * 22_locale/money_get/1.cc: New.
5403 * 22_locale/money_get/2.cc: New.
5404 * 22_locale/money_get/get/char/1.cc: New.
5405 * 22_locale/money_get/get/char/2.cc: New.
5406 * 22_locale/money_get/get/char/3.cc: New.
5407 * 22_locale/money_get/get/char/4.cc: New.
5408 * 22_locale/money_get/get/char/5.cc: New.
5409 * 22_locale/money_get/get/char/6.cc: New.
5410 * 22_locale/money_get/get/char/7.cc: New.
5411 * 22_locale/money_get/get/char/8.cc: New.
5412 * 22_locale/money_get/get/char/wrapped_env.cc: New.
5413 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
5414 * 22_locale/money_get/get/wchar_t/1.cc: New.
5415 * 22_locale/money_get/get/wchar_t/2.cc: New.
5416 * 22_locale/money_get/get/wchar_t/3.cc: New.
5417 * 22_locale/money_get/get/wchar_t/4.cc: New.
5418 * 22_locale/money_get/get/wchar_t/5.cc: New.
5419 * 22_locale/money_get/get/wchar_t/6.cc: New.
5420 * 22_locale/money_get/get/wchar_t/7.cc: New.
5421 * 22_locale/money_get/get/wchar_t/8.cc: New.
5422 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
5423 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
5424 * 22_locale/money_put/1.cc: New.
5425 * 22_locale/money_put/2.cc: New.
5426 * 22_locale/money_put/put/char/1.cc: New.
5427 * 22_locale/money_put/put/char/2.cc: New.
5428 * 22_locale/money_put/put/char/3.cc: New.
5429 * 22_locale/money_put/put/char/4.cc: New.
5430 * 22_locale/money_put/put/char/5.cc: New.
5431 * 22_locale/money_put/put/char/6.cc: New.
5432 * 22_locale/money_put/put/char/wrapped_env.cc: New.
5433 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
5434 * 22_locale/money_put/put/wchar_t/1.cc: New.
5435 * 22_locale/money_put/put/wchar_t/2.cc: New.
5436 * 22_locale/money_put/put/wchar_t/3.cc: New.
5437 * 22_locale/money_put/put/wchar_t/4.cc: New.
5438 * 22_locale/money_put/put/wchar_t/5.cc: New.
5439 * 22_locale/money_put/put/wchar_t/6.cc: New.
5440 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
5441 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
5442 * 22_locale/moneypunct/1.cc: New.
5443 * 22_locale/moneypunct/2.cc: New.
5444 * 22_locale/moneypunct/3.cc: New.
5445 * 22_locale/moneypunct/members/char/1.cc: New.
5446 * 22_locale/moneypunct/members/char/2.cc: New.
5447 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
5448 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
5449 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
5450 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
5451 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
5452 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
5453 * 22_locale/moneypunct_byname/1.cc: New.
5454 * 22_locale/num_get/1.cc: New.
5455 * 22_locale/num_get/2.cc: New.
5456 * 22_locale/num_get/get/char/1.cc: New.
5457 * 22_locale/num_get/get/char/2.cc: New.
5458 * 22_locale/num_get/get/char/3.cc: New.
5459 * 22_locale/num_get/get/char/4.cc: New.
5460 * 22_locale/num_get/get/char/5.cc: New.
5461 * 22_locale/num_get/get/char/6.cc: New.
5462 * 22_locale/num_get/get/char/wrapped_env.cc: New.
5463 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
5464 * 22_locale/num_get/get/wchar_t/1.cc: New.
5465 * 22_locale/num_get/get/wchar_t/2.cc: New.
5466 * 22_locale/num_get/get/wchar_t/3.cc: New.
5467 * 22_locale/num_get/get/wchar_t/4.cc: New.
5468 * 22_locale/num_get/get/wchar_t/5.cc: New.
5469 * 22_locale/num_get/get/wchar_t/6.cc: New.
5470 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
5471 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
5472 * 22_locale/num_put/1.cc: New.
5473 * 22_locale/num_put/2.cc: New.
5474 * 22_locale/num_put/put/char/1.cc: New.
5475 * 22_locale/num_put/put/char/2.cc: New.
5476 * 22_locale/num_put/put/char/3.cc: New.
5477 * 22_locale/num_put/put/char/4.cc: New.
5478 * 22_locale/num_put/put/char/5.cc: New.
5479 * 22_locale/num_put/put/char/wrapped_env.cc: New.
5480 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
5481 * 22_locale/num_put/put/wchar_t/1.cc: New.
5482 * 22_locale/num_put/put/wchar_t/2.cc: New.
5483 * 22_locale/num_put/put/wchar_t/3.cc: New.
5484 * 22_locale/num_put/put/wchar_t/4.cc: New.
5485 * 22_locale/num_put/put/wchar_t/5.cc: New.
5486 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
5487 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
5488 * 22_locale/numpunct/1.cc: New.
5489 * 22_locale/numpunct/2.cc: New.
5490 * 22_locale/numpunct/members/char/1.cc: New.
5491 * 22_locale/numpunct/members/char/2.cc: New.
5492 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
5493 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
5494 * 22_locale/numpunct/members/wchar_t/1.cc: New.
5495 * 22_locale/numpunct/members/wchar_t/2.cc: New.
5496 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
5497 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
5498 * 22_locale/numpunct_byname/1.cc: New.
5499 * 22_locale/numpunct_byname/2.cc: New.
5500 * 22_locale/time_get/1.cc: New.
5501 * 22_locale/time_get/2.cc: New.
5502 * 22_locale/time_get/date_order/char/1.cc: New.
5503 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
5504 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
5505 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
5506 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
5507 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
5508 * 22_locale/time_get/get_date/char/1.cc: New.
5509 * 22_locale/time_get/get_date/char/2.cc: New.
5510 * 22_locale/time_get/get_date/char/3.cc: New.
5511 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
5512 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
5513 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
5514 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
5515 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
5516 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
5517 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
5518 * 22_locale/time_get/get_monthname/char/1.cc: New.
5519 * 22_locale/time_get/get_monthname/char/2.cc: New.
5520 * 22_locale/time_get/get_monthname/char/3.cc: New.
5521 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
5522 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
5523 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
5524 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
5525 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
5526 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
5527 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
5528 * 22_locale/time_get/get_time/char/1.cc: New.
5529 * 22_locale/time_get/get_time/char/2.cc: New.
5530 * 22_locale/time_get/get_time/char/3.cc: New.
5531 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
5532 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
5533 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
5534 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
5535 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
5536 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
5537 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
5538 * 22_locale/time_get/get_weekday/char/1.cc: New.
5539 * 22_locale/time_get/get_weekday/char/2.cc: New.
5540 * 22_locale/time_get/get_weekday/char/3.cc: New.
5541 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
5542 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
5543 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
5544 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
5545 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
5546 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
5547 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
5548 * 22_locale/time_get/get_year/char/1.cc: New.
5549 * 22_locale/time_get/get_year/char/3.cc: New.
5550 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
5551 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
5552 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
5553 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
5554 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
5555 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
5556 * 22_locale/time_put/1.cc: New.
5557 * 22_locale/time_put/2.cc: New.
5558 * 22_locale/time_put/put/char/1.cc: New.
5559 * 22_locale/time_put/put/char/10.cc: New.
5560 * 22_locale/time_put/put/char/2.cc: New.
5561 * 22_locale/time_put/put/char/3.cc: New.
5562 * 22_locale/time_put/put/char/4.cc: New.
5563 * 22_locale/time_put/put/char/5.cc: New.
5564 * 22_locale/time_put/put/char/6.cc: New.
5565 * 22_locale/time_put/put/char/7.cc: New.
5566 * 22_locale/time_put/put/char/8.cc: New.
5567 * 22_locale/time_put/put/char/9.cc: New.
5568 * 22_locale/time_put/put/char/wrapped_env.cc: New.
5569 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
5570 * 22_locale/time_put/put/wchar_t/1.cc: New.
5571 * 22_locale/time_put/put/wchar_t/10.cc: New.
5572 * 22_locale/time_put/put/wchar_t/2.cc: New.
5573 * 22_locale/time_put/put/wchar_t/3.cc: New.
5574 * 22_locale/time_put/put/wchar_t/4.cc: New.
5575 * 22_locale/time_put/put/wchar_t/5.cc: New.
5576 * 22_locale/time_put/put/wchar_t/6.cc: New.
5577 * 22_locale/time_put/put/wchar_t/7.cc: New.
5578 * 22_locale/time_put/put/wchar_t/8.cc: New.
5579 * 22_locale/time_put/put/wchar_t/9.cc: New.
5580 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
5581 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
5583 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
5585 * config/locale/generic/messages_members.h
5586 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
5587 unqualified members of base clasess.
5589 2003-01-16 Mark Mitchell <mark@codesourcery.com>
5590 Jeffrey Oldham <oldham@codesourcery.com>
5592 * config/locale/gnu/messages_members.h: Use this-> to refer to
5593 unqualified members of base clasess.
5594 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
5595 * include/bits/codecvt.h: Likewise.
5596 * include/bits/deque.tcc: Likewise.
5597 * include/bits/fstream.tcc: Likewise.
5598 * include/bits/istream.tcc: Likewise.
5599 * include/bits/list.tcc: Likewise.
5600 * include/bits/locale_facets.h: Likewise.
5601 * include/bits/ostream.tcc: Likewise.
5602 * include/bits/sstream.tcc: Likewise.
5603 * include/bits/stl_bvector.h: Likewise.
5604 * include/bits/stl_deque.h: Likewise.
5605 * include/bits/stl_list.h: Likewise.
5606 * include/bits/stl_tree.h: Likewise.
5607 * include/bits/stl_vector.h: Likewise.
5608 * include/bits/vector.tcc: Likewise.
5609 * include/ext/ropeimpl.h: Likewise.
5610 * include/ext/stdio_filebuf.h: Likewise.
5611 * include/ext/stl_rope.h: Likewise.
5612 * include/std/std_fstream.h: Likewise.
5613 * include/std/std_sstream.h: Likewise.
5615 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
5617 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
5619 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
5621 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
5622 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
5623 * aclocal.m4: Regenerate.
5624 * configure: Regenerate.
5625 * testsuite/Makefile.am (all-local): Add conditional rule to
5626 generate testsuite_wchar_t.
5627 * testsuite/Makefile.in: Regenerate.
5628 * testsuite/lib/libstdc++-v3-dg.exp
5629 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
5630 testsuite_wchar_t is not present in the build directory.
5631 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
5632 Remove setulimit bits.
5633 * testsuite/26_numerics/complex_value.cc: Set to noopts.
5634 * testsuite/Makefile.am (CLEANFILES): Add.
5635 * testsuite/Makefile.in: Regenerate.
5637 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5639 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
5642 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
5644 Further conform g++'s __vmi_class_type_info to the C++ ABI
5646 * libsupc++/cxxabi.h
5647 (__vmi_class_type_info::__flags_masks): Remove enumerations not
5648 required by the specification.
5650 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
5652 Renames, namespaces for testsuite utilities.
5653 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
5654 (gnu_allocator_tracker): Rename to allocation_tracker.
5655 (gnu_new_allocator): Rename to tracker_alloc.
5656 (__set_testsuite_memlimit): Rename to set_memory_limits.
5657 (gnu_assignment_operator): Rename to assignment_operator.
5658 (gnu_destructor): Rename to destructor.
5659 (gnu_copy_tracker): Rename to copy_tracker.
5660 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
5661 (run_tests_wrapped_locale): New.
5662 (run_tests_wrapped_env): New.
5663 * testsuite/testsuite_hooks.cc: Same.
5664 (class locale_data): Add.
5665 (class enviornment_variable): Add.
5666 (class not_found): Add.
5667 * testsuite/testsuite_allocator.h: Same.
5668 * testsuite/testsuite_allocator.cc: Same.
5669 * testsuite/23_containers/deque_ctor.cc
5670 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
5672 Change gnu_new_allocator to tracker_alloc.
5673 Change gnu_counting_struct to counter.
5674 Change gnu_copy_tracker to copy_tracker.
5675 Change gnu_copy_constructor to copy_constructor.
5676 Change gnu_assignment_operator to assignment_operator.
5678 * testsuite/23_containers/vector_capacity.cc: Same.
5679 * testsuite/23_containers/vector_ctor.cc (test01): Same.
5680 * testsuite/23_containers/list_modifiers.cc: Change
5681 gnu_copy_tracker to copy_tracker.
5682 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
5683 __set_testsuite_memlimit to set_memory_limits.
5684 * testsuite/21_strings/insert.cc (main): Same.
5685 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
5686 * testsuite/27_io/stringstream.cc: Same.
5687 * testsuite/27_io/stringbuf.cc: Same.
5688 * testsuite/27_io/streambuf.cc: Same.
5689 * testsuite/27_io/ostream.cc: Same.
5690 * testsuite/27_io/istream.cc: Same.
5691 * testsuite/27_io/fstream.cc: Same.
5692 * testsuite/lib/libstdc++-v3-dg.exp
5693 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
5694 three levels deeper in glob patterns.
5696 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
5698 * docs/doxygen/tables.html: Finished now.
5699 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
5700 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
5703 * include/bits/deque.tcc, include/bits/stl_alloc.h,
5704 include/bits/stl_deque.h, include/bits/stl_list.h,
5705 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
5708 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
5710 * configure.in: Revert.
5711 * configure: Regenerate.
5713 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5715 * include/Makefile.am (install-data-local): Prepend
5716 $(DESTDIR) to destination paths in all (un)installation
5717 commands. Use ${c_base_builddir} and ${std_builddir}
5718 as destination subdirectories to achieve consistency with
5719 preceding mkinstalldirs commands. No effect because both
5720 variables contain "." only.
5721 * include/Makefile.in: Regenerate.
5723 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
5725 * include/Makefile.am (stamp-*): Add checks for existing stamps.
5726 * include/Makefile.in: Regenerate.
5728 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
5729 * aclocal.m4: Regenerate.
5731 * configure.in: Don't add new multi-do rules every time the
5732 directory is reconfigured.
5733 * configure: Regenerate.
5735 2003-01-08 Brad Spencer <spencer@infointeractive.com>
5736 Nathan Myers <ncm@cantrip.org>
5738 * src/Makefile.am (stamp-debug): Clean.
5739 * src/Makefile.in: Regenerate.
5741 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
5744 * Makefile.am (distclean-multi): Fix.
5745 * Makefile.in: Regenerate.
5747 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
5749 * include/bits/locale_facets.h (messages): Move ctor, dtor
5751 (__timepunct): Same.
5752 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
5753 definitions. Conditionalize for GNU systems.
5754 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
5756 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
5757 definitions. Conditionalize for GNU systems.
5758 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
5760 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
5761 * src/locale.cc: Define.
5762 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
5764 * config/locale/gnu/time_members.h: Use it.
5765 * config/locale/gnu/messages_members.h: Use it.
5766 * config/linker-map.gnu: Add locale::facets details.
5767 * include/Makefile.am (target_headers_extra): Add time_members.h.
5768 * include/Makefile.in: Regenerate.
5769 * acinclude.m4: Export CTIME_H.
5770 * aclocal.m4: Regenerate.
5771 * configure: Regnerate.
5773 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
5776 (codecvt<char, char, mbstate_t>::do_in, do_out):
5777 Tweak parameters to avoid unused parameter warnings.
5779 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
5782 * include/bits/locale_facets.cc (num_put::_M_convert_float):
5783 Limit __prec to digits10 + 2, not digits10 + 1, taking into
5784 account the possibility of %{g,G} conversion specifiers
5785 inside _S_format_float.
5786 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
5788 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5790 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
5791 libstdc++-v3-list-sourcefiles): Additionally handle files one
5792 level deeper in glob patterns.
5794 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
5795 * testsuite/27_io/istream_extractor_arith/01.cc,
5796 testsuite/27_io/istream_extractor_arith/02.cc,
5797 testsuite/27_io/istream_extractor_arith/03.cc,
5798 testsuite/27_io/istream_extractor_arith/06.cc,
5799 testsuite/27_io/istream_extractor_arith/07.cc,
5800 testsuite/27_io/istream_extractor_arith/08.cc,
5801 testsuite/27_io/istream_extractor_arith/09.cc,
5802 testsuite/27_io/istream_extractor_arith/10.cc,
5803 testsuite/27_io/istream_extractor_arith/11.cc,
5804 testsuite/27_io/istream_extractor_arith/12.cc,
5805 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
5806 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
5809 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
5813 (codecvt<char, char, mbstate_t>::do_in, do_out):
5814 Implement the resolution of DR19 (TC).
5815 * testsuite/22_locale/codecvt_members_char_char.cc
5818 2003-01-02 Jason Merrill <jason@redhat.com>
5820 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
5821 *__mem is also an output.
5822 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.