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