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