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