Daily bump.
[gcc.git] / libstdc++-v3 / ChangeLog
1 2003-12-23 Benjamin Kosnik <bkoz@redhat.com>
2
3 * include/ext/new_allocator.h (new_allocator): Proper allocator class.
4 (__new_alloc): Delete.
5 * include/ext/malloc_allocator.h (malloc_allocator): Same.
6 (__malloc_alloc): Delete.
7 * include/ext/mt_allocator.h: Same, but weakly.
8 * include/ext/debug_allocator.h: Convert to the new style.
9 * include/ext/pool_allocator.h: Use global new and delete directly.
10 * include/backward/alloc.h: Don't inject malloc_allocator, or
11 debug_allocator.
12 * testsuite/ext/allocators.cc: Minimal fixups for usage of new
13 classes. Comment out tests with __pool_alloc for now.
14 * testsuite/performance/allocator.cc: Same.
15
16 2003-12-22 Matt Austern <austern@apple.com>
17
18 * include/bits/stl_bvector.h (_Bvector_alloc_base): Eliminate.
19 (_Bvector_base): Inherit directly from word allocator.
20 * include/bits/stl_tree.h (_Rb_tree_alloc_base): Eliminate.
21 (_Rb_tree_base): Eliminate.
22 (_Rb_tree): Inherit directly from node allocator.
23 * include/ext/slist (_Alist_alloc_base): Eliminate.
24 (_Slist_base): Inherit direcly from node allocator.
25
26 2003-12-22 Benjamin Kosnik <bkoz@redhat.com>
27
28 * testsuite/18_support/numeric_limits.cc: Add _GLIBCXX_ASSERT to
29 dg-options in testcases that use VERIFY.
30 * testsuite/23_containers/vector/invalidation/1.cc: Same.
31 * testsuite/23_containers/vector/invalidation/2.cc: Same.
32 * testsuite/23_containers/vector/invalidation/3.cc: Same.
33 * testsuite/23_containers/vector/invalidation/4.cc: Same.
34 * testsuite/23_containers/vector/resize/1.cc: Same.
35 * testsuite/26_numerics/complex_value.cc: Same.
36 * testsuite/27_io/ios_base/storage/1.cc: Same.
37 * testsuite/27_io/ios_base/storage/2.cc: Same.
38 * testsuite/27_io/ios_base/storage/3.cc: Same.
39 * testsuite/27_io/manipulators/standard/char/2.cc: Same.
40 * testsuite/backward/11460.cc: Same.
41 * testsuite/backward/strstream_members.cc: Same.
42
43 * include/ext/hash_set (class hash_multiset): Fix typo.
44
45 2003-12-22 Benjamin Kosnik <bkoz@redhat.com>
46
47 * testsuite/27_io/objects/char/5.cc: Don't use stdc++.h.gch.
48 * testsuite/27_io/objects/wchar_t/5.cc: Same.
49 * docs/html/test.html: Add docs for constructing test files that
50 don't use stdc++.h.gch.
51 * scripts/testsuite_flags.in (PCHFLAGS): Move to --cxxpchflags.
52 * testsuite/libstdc++-dg/normal.exp: Compute DEFAULT_CXXFLAGS
53 differently.
54
55 * include/bits/ios_base.h (ios_base::Init::_S_initialized): Remove.
56 * src/ios_init.cc: Same.
57 * config/linker-map.gnu: Same.
58 * testsuite/27_io/ios_base/cons/copy_neg.cc: Adjust line numbers.
59 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
60
61 2003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
62
63 PR libstdc++/13462
64 * include/bits/stl_multiset.h (__gnu_norm::multiset): Define pointer
65 as allocator's pointer, likewise for reference, const_pointer, and
66 const_reference.
67 * include/bits/stl_set.h (__gnu_norm::set): Likewise.
68 * include/ext/hash_set (__gnu_ext::hash_set): Likewise.
69 (__gnu_ext::hash_multiset): Likewise.
70
71 2003-12-22 Paolo Carlini <pcarlini@suse.de>
72
73 * include/bits/locale_facets.tcc (num_get::_M_extract_int,
74 num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
75 first look for decimal_point and thousands_sep, when parsing
76 sign, leading zeros (and 0, Ox, 0X for integer types) too.
77 * testsuite/22_locale/num_get/get/char/12.cc: New.
78 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
79
80 * testsuite/22_locale/num_get/get/char/11.cc: Add a comment.
81 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
82
83 2003-12-20 Jason Merrill <jason@redhat.com>
84
85 * config/cpu/powerpc/atomicity.h: Fix oversight in previous
86 change.
87
88 2003-12-20 Jerry Quinn <jlquinn@optonline.net>
89
90 * docs/doxygen/TODO: Update.
91 * include/bits/locale_classes.h (locale, facet, id): Document.
92 * include/bits/locale_facets.tcc (has_facet, use_facet): Document.
93
94 2003-12-19 Jason Merrill <jason@redhat.com>
95
96 * config/cpu/cris/atomicity.h: Remove memory clobbers.
97 * config/cpu/mips/atomicity.h: Likewise.
98 * config/cpu/i486/atomicity.h: Remove memory clobbers.
99 Split up read-write memory operand.
100 * config/cpu/m68k/atomicity.h: Likewise.
101 * config/cpu/powerpc/atomicity.h: Make memory I/O explicit.
102 * config/cpu/s390/atomicity.h: Likewise.
103 * config/cpu/sparc/atomicity.h: Likewise.
104
105 2003-12-20 Carlo Wood <carlo@alinoe.com>
106
107 * bits/demangle.h
108 namespace __gnu_cxx::demangler
109 (session<Allocator>::decode_encoding): Put the postfix
110 of the return type of (member) functions after the function
111 instead of after the return type.
112
113 2003-12-19 Jerry Quinn <jlquinn@optonline.net>
114
115 * include/bits/locale_facet.h
116 (__ctype_abstract_base,ctype<charT>,ctype<char>,ctype<wchar_t>):
117 Document.
118
119 2003-12-19 Paolo Carlini <pcarlini@suse.de>
120
121 * include/bits/locale_facets.tcc (num_get::_M_extract_int,
122 num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
123 first look for decimal_point and thousands_sep.
124 * testsuite/22_locale/num_get/get/char/11.cc: New.
125 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
126
127 2003-12-19 Paolo Carlini <pcarlini@suse.de>
128
129 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
130 When __found_sci becomes true stop eating thousands separators
131 and the decimal radix separator.
132 * testsuite/22_locale/num_get/get/char/9.cc: New.
133 * testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.
134
135 * config/locale/generic/c_locale.cc (__convert_to_v): Don't
136 check that *__sanity == '\0': parsing may stop earlier, still
137 be successful.
138 * config/locale/gnu/c_locale.cc: Likewise.
139 * testsuite/22_locale/num_get/get/char/10.cc: New.
140 * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
141 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
142 Tweak in one place accordingly.
143
144 * testsuite/22_locale/money_get/get/char/1.cc: Fix typo.
145 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
146
147 2003-12-18 Benjamin Kosnik <bkoz@redhat.com>
148
149 * include/bits/stl_list.h: Formatting tweaks.
150 * include/bits/list.tcc: Same.
151
152 2003-12-18 Matt Austern <austern@apple.com>
153
154 * include/bits/demangle.h: Fix allocator type correctness,
155 i.e. make sure that when we instantiate a container with a value
156 type and an allocator, the allocator's value type matches the
157 container's.
158 * include/bits/stl_deque.h (_Deque_alloc_base): Eliminate.
159 (_Deque_base): inherit directly from the deque's allocator. Use
160 rebinding instead of _Alloc_traits. Pick up data members from
161 _Deque_alloc_base.
162 * include/bits/stl_list.h (_List_alloc_base): Eliminate.
163 (_List_base): Inherit directly from the list's allocator. Use
164 rebinding instead of _Alloc_traits. Pick up data members from
165 _List_alloc_base.
166 * include/bits/stl_vector.h (_Vector_alloc_base): Eliminate
167 (_Vector_base): Inherit directly from the vector's allocator. Use
168 rebinding instead of _Alloc_traits. Pick up data members from
169 _Vector_alloc_base.
170 * include/ext/hashtable.h: Fix allocator type correctness (the
171 vector of buckets must be passed an allocator for objects of
172 type _Node*). Use rebinding instead of _Alloc_traits.
173
174 2003-12-17 Paolo Carlini <pcarlini@suse.de>
175
176 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
177 Use narrow to get from __format[__i] a char __c representing a
178 formatting code, don't use it to compare *__beg to __format[__i].
179 * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: New.
180
181 2003-12-17 Paolo Carlini <pcarlini@suse.de>
182
183 * testsuite/performance/container_benchmark.cc: Tweak outputs.
184
185 * testsuite/performance/list_create_fill_sort.cc: Shrink a
186 bit some outputs.
187
188 * testsuite/testsuite_performance.h: Widen a few output fields.
189
190 * testsuite/performance/ifstream_extract_int.cc: New.
191
192 2003-12-16 Phil Edwards <phil@codesourcery.com>
193
194 * configure.ac (AM_INIT_AUTOMAKE): Don't warn about GNU Make.
195 * configure: Regenerated.
196 * Makefile.am (check-%): New catch-all forwarding target.
197 * Makefile.in: Regenerated.
198
199 2003-12-16 Paolo Carlini <pcarlini@suse.de>
200
201 * testsuite/performance/container_benchmark.cc: New, a
202 benchmark developed by Bjarne Stroustrup and Alexander
203 Stepanov and made available with no restrictions.
204
205 * testsuite/testsuite_performance.h (report_header): New,
206 useful to produce header lines in the reports.
207
208 2003-12-16 Jonathan Wakely <redi@gcc.gnu.org>
209
210 * docs/html/21_strings/howto.html: Document shrink-to-fit reserve().
211 * docs/html/faq/index.html: Reducing vector's capacity() to size().
212 * docs/html/documentation.html, docs/html/faq/index.txt: Regenerate.
213
214 2003-12-16 Paolo Carlini <pcarlini@suse.de>
215
216 * testsuite/performance/narrow_widen_char.cc: Tweak the
217 number of iterations for each test.
218 * testsuite/performance/narrow_widen_wchar_t.cc: Add a
219 missing clear_counters.
220
221 2003-12-16 Paolo Carlini <pcarlini@suse.de>
222
223 PR libstdc++/11723
224 * include/bits/locale_facets.h: Add _M_bit and _M_wmask,
225 used to speed up the computation of ctype::do_is.
226 * config/locale/generic/ctype_members.cc
227 (_M_initialize_ctype): Fill _M_bit and _M_wmask.
228 (ctype::do_is): Use _M_bit and _M_wmask.
229 * config/locale/gnu/ctype_members.cc: Likewise.
230 * testsuite/performance/is_wchar_t.cc: New.
231
232 * testsuite/performance/narrow_widen_wchar_t.cc: Tweak
233 string literal (incorrect citation ;)
234
235 * include/bits/locale_facets.h: Minor tweaks, const
236 correctness, unsigned -> size_t.
237
238 2003-12-16 Jerry Quinn <jlquinn@optonline.net>
239
240 * include/bits/locale_facets.h (widen, narrow): Uncomment the
241 intended code.
242
243 2003-12-15 Jerry Quinn <jlquinn@optonline.net>
244
245 * config/os/aix/ctype_noninline.h,
246 config/os/bsd/freebsd/ctype_noninline.h,
247 config/os/bsd/netbsd/ctype_noninline.h,
248 config/os/djgpp/ctype_noninline.h,
249 config/os/generic/ctype_noninline.h,
250 config/os/gnu-linux/ctype_noninline.h,
251 config/os/hpux/ctype_noninline.h,
252 config/os/irix/irix5.2/ctype_noninline.h,
253 config/os/irix/irix6.5/ctype_noninline.h,
254 config/os/mingw32/ctype_noninline.h,
255 config/os/newlib/ctype_noninline.h,
256 config/os/qnx/qnx6.1/ctype_noninline.h,
257 config/os/solaris/solaris2.5/ctype_noninline.h,
258 config/os/solaris/solaris2.6/ctype_noninline.h,
259 config/os/solaris/solaris2.7/ctype_noninline.h,
260 config/os/vxworks/ctype_noninline.h,
261 config/os/windiss/ctype_noninline.h (ctype): Initialize
262 _M_narrow, _M_widen.
263 * include/bits/locale_facets.h (_M_widen, _M_widen_ok,
264 _M_narrow, _M_narrow_ok): New.
265 (widen, narrow): Use tables to bypass virtual functions.
266 (_M_widen_init, _M_narrow_init): New.
267
268 2003-12-15 Carlo Wood <carlo@alinoe.com>
269
270 * include/bits/ios_base.h (Init::_S_initialized): Change into
271 declaration.
272 * src/ios_init.cc (Init::_S_initialized): Add definition.
273
274 2003-12-15 Benjamin Kosnik <bkoz@redhat.com>
275
276 PR libstdc++/12658
277 * include/Makefile.am (bits_headers): Add concurrence.h.
278 * include/Makefile.in: Regenerated.
279 * include/bits/concurrence.h: New.
280 * src/locale_init.cc: Use it.
281 (locale::locale): Lock critical regions.
282 (locale::global): Same.
283
284 2003-12-15 Benjamin Kosnik <bkoz@redhat.com>
285
286 * include/bits/basic_string.h: Change _*_references to _*_refcount.
287 * include/bits/locale_classes.h: Same.
288 * src/locale.cc: Same.
289 * src/locale_name.cc: Same.
290 * src/locale_init.cc: Same.
291
292 2003-12-15 Benjamin Kosnik <bkoz@redhat.com>
293
294 PR libstdc++/12855
295 * include/bits/ios_base.h (Init::_S_ios_base_init): Change to
296 _S_refcount, make atomic.
297 * src/ios.cc: Adjust definition.
298 * src/ios_init.cc (ios_base::Init::Init): Use __exchange_and_add,
299 and __atomic_add.
300 (ios_base::Init::~Init): Same.
301 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
302 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
303
304 2003-12-15 Paolo Carlini <pcarlini@suse.de>
305
306 * include/bits/locale_facets.tcc (num_get::do_get(bool&)):
307 Fail as soon as the begins of both truename and falsename
308 stop to match; always leave __beg one position beyond the
309 last char successfully matched.
310 * testsuite/22_locale/num_get/get/char/8.cc: New.
311 * testsuite/22_locale/num_get/get/wchar_t/8.cc: Likewise.
312
313 2003-12-15 Paolo Carlini <pcarlini@suse.de>
314
315 * include/bits/locale_facets.h (_M_widen): Reserve space
316 for all the possible widened chars.
317 * config/locale/generic/ctype_members.cc (_M_initialize_ctype):
318 Compute at construction time all the possible widened chars.
319 (do_widen): Tweak, simplify.
320 * config/locale/gnu/ctype_members.cc: Likewise.
321 * testsuite/performance/narrow_widen_wchar_t.cc: Add tests
322 for the array versions.
323
324 2003-12-12 Paolo Carlini <pcarlini@suse.de>
325 Benjamin Kosnik <bkoz@redhat.com>
326
327 PR libstdc++/13341
328 * include/bits/locale_facets.h (ctype<wchar_t>): Declare
329 _M_initialize_ctype() and _M_narrow_ok, _M_narrow and _M_widen.
330 * src/ctype.cc (ctype<wchar_t>::ctype(size_t),
331 ctype<wchar_t>::ctype(__c_locale, size_t)): Use
332 _M_initialize_ctype to fill _M_narrow and _M_widen.
333 (ctype_byname<wchar_t>::ctype_byname(const char*, size_t)):
334 Likewise.
335 * config/locale/generic/ctype_members.cc (do_narrow, do_widen)
336 Use _M_narrow and _M_widen when possible, instead of calling
337 wctob and btowc, respectively.
338 (_M_initialize_ctype): Define, it fills at construction time
339 _M_narrow and _M_widen.
340 * config/locale/gnu/ctype_members.cc: Likewise.
341 * testsuite/performance/narrow_widen_wchar_t.cc: New.
342
343 2003-12-12 Jonathan Wakely <redi@gcc.gnu.org>
344
345 * docs/html/faq/index.txt: Regenerate after adding <link> tags.
346
347 2003-12-11 Neil Ferguson <nferguso@eso.org>
348 Paolo Carlini <pcarlini@suse.de>
349
350 * include/bits/basic_string.tcc (reserve): Allow shrink-to-fit.
351 * testsuite/21_strings/basic_string/capacity/1.cc: Tweak.
352 * testsuite/21_strings/basic_string/capacity/char/1.cc: Ditto.
353 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Ditto.
354
355 2003-12-10 Benjamin Kosnik <bkoz@redhat.com>
356
357 PR libstdc++/6243
358 * testsuite/lib/libstdc++.exp (v3-init): Add
359 original_ld_library_path, calculate ld_library path, set
360 LD_LIBRARY_PATH to both. Based on libjava.exp.
361
362 2003-12-10 Benjamin Kosnik <bkoz@redhat.com>
363 Alexandre Oliva <aoliva@redhat.com>
364
365 PR libstdc++/11612
366 * testsuite/Makefile.am (GLIBCXX_DIR): New.
367 (GLIBGCC_DIR): New.
368 (CXXLINK): Use both with -R so libtool links the correct libs.
369
370 2003-12-10 Paolo Carlini <pcarlini@suse.de>
371
372 PR libstdc++/13217
373 * include/bits/fstream.tcc (underflow): Deal gracefully with
374 read errors: throw ios_base::failure.
375
376 2003-12-10 Benjamin Kosnik <bkoz@redhat.com>
377
378 PR libstdc++/10063
379 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Sync.
380 * testsuite/ext/stdio_filebuf/char/10063-1.cc: New.
381 * testsuite/ext/stdio_filebuf/char/10063-2.cc: New.
382
383 2003-12-10 Paolo Carlini <pcarlini@suse.de>
384
385 * include/bits/locale_facets.tcc (num_put::do_put(void*)):
386 Remove the try/catch, not necessary.
387
388 2003-12-10 Paolo Carlini <pcarlini@suse.de>
389
390 * testsuite/22_locale/locale/cons/12438.cc: Tweak memory
391 limit and iterations to avoid spurious failures on some
392 64 bit machines.
393
394 2003-12-09 Benjamin Kosnik <bkoz@redhat.com>
395
396 * config/linker-map.gnu: Remove private ios_base members from
397 export list.
398
399 * config/cpu/alpha/atomicity.h: Consistently format.
400 * config/cpu/cris/atomicity.h: Same.
401 * config/cpu/generic/atomicity.h: Same.
402 * config/cpu/hppa/atomicity.h: Same.
403 * config/cpu/i386/atomicity.h: Same.
404 * config/cpu/i486/atomicity.h: Same.
405 * config/cpu/ia64/atomicity.h: Same.
406 * config/cpu/m68k/atomicity.h: Same.
407 * config/cpu/mips/atomicity.h: Same.
408 * config/cpu/powerpc/atomicity.h: Same.
409 * config/cpu/s390/atomicity.h: Same.
410 * config/cpu/sparc/atomicity.h: Same.
411
412 2003-12-09 Benjamin Kosnik <bkoz@redhat.com>
413
414 PR libstdc++/13296
415 * acinclude.m4 (GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS): Remove.
416 * aclocal.m4: Regenerate.
417 * configure.ac: Remove call to GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS.
418 * conigure: Regenerate.
419 * src/Makefile.am (libstdc___la_LDFLAGS): Remove LIBUNWIND_FLAGS.
420 * src/Makefile.in: Regenerate.
421 * docs/html/17_intro/configury.html: Modify.
422
423 2003-12-09 Paolo Carlini <pcaelini@suse.de>
424
425 * include/bits/demangle.h (struct implementation_details):
426 Keep in comments the names of the unused parameters.
427
428 2003-12-09 Paolo Carlini <pcaelini@suse.de>
429
430 * include/bits/demangle.h (struct implementation_details):
431 Fix unused parameters warning.
432
433 2003-12-09 Paolo Carlini <pcarlini@suse.de>
434
435 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
436 Slightly streamline the code dealing with overflows and the
437 parsing of the sign.
438
439 2003-12-09 Bernardo Innocenti <bernie@develer.com>
440
441 * include/ext/algorithm, include/ext/debug_allocator.h,
442 include/ext/enc_filebuf.h, include/ext/functional,
443 include/ext/hash_fun.h, include/ext/hash_map, include/ext/hash_set,
444 include/ext/hashtable.h, include/ext/iterator,
445 include/ext/malloc_allocator.h, include/ext/memory,
446 include/ext/mt_allocator.h, include/ext/numeric,
447 include/ext/pod_char_traits.h, include/ext/pool_allocator.h,
448 include/ext/rb_tree, include/ext/rope, include/ext/ropeimpl.h,
449 include/ext/slist, include/ext/stdio_filebuf.h,
450 include/ext/stdio_sync_filebuf.h: Remove trailing whitespace.
451
452 2003-12-09 Bernardo Innocenti <bernie@develer.com>
453
454 * include/debug/bitset, include/debug/debug.h, include/debug/deque,
455 include/debug/formatter.h, include/debug/hash_map.h,
456 include/debug/hash_multimap.h, include/debug/hash_multiset.h,
457 include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
458 include/debug/map.h, include/debug/multimap.h,
459 include/debug/multiset.h, include/debug/safe_base.h,
460 include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
461 include/debug/safe_sequence.h, include/debug/set.h,
462 include/debug/string, include/debug/vector: Remove trailing whitespace.
463
464 2003-12-09 Bernardo Innocenti <bernie@develer.com>
465
466 * include/c_compatibility/iso646.h, include/c_compatibility/limits.h,
467 include/c_compatibility/locale.h, include/c_compatibility/stdio.h,
468 include/c_compatibility/string.h, include/c_compatibility/time.h,
469 include/c_compatibility/wchar.h, include/c_compatibility/wctype.h:
470 Remove trailing whitespace.
471
472 2003-12-09 Bernardo Innocenti <bernie@develer.com>
473
474 * include/c_std/cmath.tcc, include/c_std/std_cassert.h,
475 include/c_std/std_cctype.h, include/c_std/std_cmath.h,
476 include/c_std/std_cstddef.h, include/c_std/std_cstdio.h,
477 include/c_std/std_cstdlib.h, include/c_std/std_cstring.h,
478 include/c_std/std_cwchar.h, include/c_std/std_cwctype.h:
479 Remove trailing whitespace.
480
481 2003-12-09 Bernardo Innocenti <bernie@develer.com>
482
483 * include/c/std_cctype.h, include/c/std_cmath.h,
484 include/c/std_cstdlib.h include/c/std_cwchar.h,
485 include/c/std_cwctype.h: Remove trailing whitespace.
486
487 2003-12-09 Bernardo Innocenti <bernie@develer.com>
488
489 * include/backward/algo.h, include/backward/algobase.h,
490 include/backward/alloc.h, include/backward/complex.h,
491 include/backward/defalloc.h, include/backward/function.h,
492 include/backward/iterator.h, include/backward/new.h,
493 include/backward/ostream.h, include/backward/queue.h,
494 include/backward/rope.h, include/backward/stream.h,
495 include/backward/streambuf.h, include/backward/strstream,
496 include/backward/tempbuf.h, include/backward/tree.h,
497 include/backward/vector.h: Remove trailing whitespace.
498
499 2003-12-08 Paolo Carlini <pcarlini@suse.de>
500
501 * config/locale/generic/c_locale.cc (__convert_to_v(long&),
502 __convert_to_v(unsigned long&), __convert_to_v(long long&),
503 __convert_to_v(unsigned long long&): Remove.
504 (__convert_to_v(float&), __convert_to_v(double&),
505 __convert_to_v(long double&)): Remove last unused parameter.
506 * config/locale/gnu/c_locale.cc: Likewise.
507 * include/bits/locale_facets.h: Likewise.
508 (num_get::_M_extract_int): Update declaration.
509 (class __num_base): Tweak _S_ie and _S_iE according to the
510 _S_atoms_in changes.
511 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
512 Provide directly the final _ValueT, not a string: accumulate
513 the result checking for overflow at each digit.
514 (num_get::do_get(bool&), num_get::do_get(long&),
515 num_get::do_get(unsigned short&), num_get::do_get(unsigned int&),
516 num_get::do_get(unsigned long&), num_get::do_get(long long&),
517 num_get::do_get(unsigned long long&), num_get::do_get(void*&)):
518 Use the new _M_extract_int, simplify.
519 * src/locale-inst.cc (num_get::_M_extract_int(long&),
520 num_get::_M_extract_int(unsigned short&),
521 num_get::_M_extract_int(unsigned int&),
522 num_get::_M_extract_int(unsigned long&),
523 num_get::_M_extract_int(long long&),
524 num_get::_M_extract_int(unsigned long long&): Instantiate.
525 * src/locale_facets.cc (__num_base::_S_atoms_in): Reorder
526 the chars in the natural order: abcdefABCDEF.
527
528 2003-12-08 David S. Miller <davem@redhat.com>
529
530 PR libstdc++/12496
531 * config/cpu/sparc/atomicity.h (__exchange_and_add, __atomic_add):
532 Extend increment to _Atomic_word before giving to assembler.
533
534 2003-12-06 Benjamin Kosnik <bkoz@redhat.com>
535
536 * testsuite/ext/enc_filebuf/char/13189.cc: Guard for __enc_traits.
537 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
538
539 2003-12-06 Benjamin Kosnik <bkoz@redhat.com>
540
541 PR libstdc++/11691
542 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf):
543 Remove __del argument to file descriptor constructor.
544 * config/io/basic_file_stdio.h (__basic_file::sys_open): Remove
545 bool argument.
546 * config/io/basic_file_stdio.cc: Same.
547
548 2003-12-05 Benjamin Kosnik <bkoz@redhat.com>
549
550 PR libstdc++/13189
551 * include/ext/enc_filebuf.h: Fix.
552 * include/bits/fstream.tcc: Tweak formatting.
553 * include/bits/postypes.h: Same.
554 * include/bits/sstream.tcc: Same.
555 * include/bits/streambuf.tcc: Same.
556 * testsuite/ext/stdio_filebuf.cc: Split.
557 * testsuite/ext/stdio_filebuf_2.cc: Split.
558 * testsuite/ext/stdio_sync_filebuf_char.cc: Split.
559 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc: Split.
560 * testsuite/ext/enc_filebuf/char/13189.cc: New.
561 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: New.
562 * testsuite/ext/stdio_filebuf/char/1.cc: New.
563 * testsuite/ext/stdio_filebuf/char/2.cc: New.
564 * testsuite/ext/stdio_sync_filebuf/char/1.cc: New.
565 * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: New.
566 * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: New.
567 * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: New.
568 * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: New.
569 * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: New.
570 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: New.
571 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: New.
572 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: New.
573 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: New.
574
575 2003-12-05 Carlo Wood <carlo@alinoe.com>
576
577 PR libstdc++/13045
578 * bits/demangle.h
579 namespace __gnu_cxx::demangler
580 (enum substitution_nt): Removed trailing comma.
581 (implementation_details): Added.
582 (session<Allocator>::M_implementation_details): Added.
583 (session<Allocator>::session): Pass implementation_details.
584 (session<Allocator>::decode_encoding): Same.
585 (session<Allocator>::decode_real): Added.
586 (_GLIBCXX_DEMANGLER_STYLE_VOID _GLIBCXX_DEMANGLER_STYLE_LITERAL
587 _GLIBCXX_DEMANGLER_STYLE_LITERAL_INT
588 _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
589 _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Replaced with
590 implementation_details equivalent.
591 (session<Allocator>::decode_expression):
592 Use M_implementation_details instead of macros. Add extra parentheses
593 around 'larger than' operator in expressions in template arguments.
594 (session<Allocator>::decode_bare_function_type): Idem.
595 (session<Allocator>::decode_literal):
596 Idem, and call decode_real for floating literals.
597 (session<Allocator>::decode_type_with_postfix): Put the postfix
598 of the return type of (member) functions after the function
599 instead of after the return type. Also, put a space after the
600 prefix of qualified function pointers: "int (* const<space>".
601 * src/demangle.cc: include most dependent header file first.
602 * testsuite/demangle/regression/cw-16.cc: Updated two
603 and added three tests.
604
605 2003-12-04 Benjamin Kosnik <bkoz@redhat.com>
606
607 PR libstdc++/13284
608 * include/bits/stl_algo.h (__random_number): Remove.
609 (random_shuffle): Use rand, as permitted by DR 395.
610 * include/ext/algorithm: Same.
611 * linkage.m4 (GLIBCXX_CHECK_STDLIB_SUPPORT): Remove lrand48.
612 * acconfig.h: Same.
613 * crossconfig.m4: Remove HAVE_DRAND48, HAVE_LRAND48.
614 * config.h.in: Regenerated.
615 * configure: Same.
616 * aclocal.m4: Same.
617
618 2003-12-04 Paolo Carlini <pcarlini@suse.de>
619
620 PR libstdc++/12653
621 * include/std/std_bitset.h (operator>>): Implement resolution
622 of DR 303 [WP]: use widen('0') and widen('1').
623 * docs/html/ext/howto.html: Add an entry for DR 303.
624
625 * include/std/std_bitset.h (operator>>): Implement the common
626 requirements of formatted input functions (27.6.1.2.1).
627
628 * include/std/std_bitset.h (operator>>): Set the failbit when
629 nothing was extracted and _Nb != 0.
630 * testsuite/23_containers/bitset/input/1.cc: New.
631
632 2003-12-03 Paolo Carlini <pcarlini@suse.de>
633
634 PR libstdc++/12791
635 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
636 Rewrite, stop the parsing as soon as a digit cannot possibly
637 lead to a final number within the bounds; otherwise, simplify,
638 avoiding __ctype.is() and atoi().
639 * testsuite/22_locale/time_get/get_date/char/12791.cc: New.
640 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.
641
642 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
643 Minor tweak: a 4-digit integer cannot be bigger than 9999.
644
645 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
646 type-correct wchar_t string literals.
647 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
648 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
649 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
650 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
651
652 2003-12-02 Paolo Carlini <pcarlini@suse.de>
653
654 * include/bits/locale_facets.tcc (time_get::do_get_year):
655 Avoid using a basic_string and calling a full blown strtol
656 (via __convert_to_v) for simple 2 or 4 digits, base 10,
657 positive integers; simplify.
658
659 2003-12-02 Paolo Carlini <pcarlini@suse.de>
660
661 * config/locale/gnu/monetary_members.cc
662 (money_base::_S_construct_pattern): For case 3: and 4:
663 exchanging 'if (__precedes)' and 'if (__space)' allows
664 to factor out a few more assignments.
665
666 2003-12-01 Benjamin Kosnik <bkoz@redhat.com>
667
668 * include/bits/basic_ios.h (basic_ios::setstate): Revert.
669 * include/bits/istream.tcc: Only call setstate if __err != goodbit.
670 * include/bits/ostream.tcc: Same.
671 * testsuite/27_io/basic_ios/exceptions/char/2.cc: New.
672
673 * testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
674 internal buffer non-static.
675
676 2003-12-01 Benjamin Kosnik <bkoz@redhat.com>
677
678 * docs/html/17_intro/C++STYLE: Add exception bits.
679 * include/bits/fstream.tcc: Add location info to exception strings.
680
681 * include/bits/stl_construct.h: Formatting tweaks.
682
683 2003-12-01 Paolo Carlini <pcarlini@suse.de>
684
685 PR libstdc++/10378
686 * include/bits/allocator.h (allocator::construct): Implement
687 resolution of DR 402 [Ready] (in Revision 28).
688 * include/bits/allocator_traits.h (__allocator::construct):
689 Likewise.
690 * include/bits/stl_construct.h (_Construct): Likewise.
691 * testsuite/20_util/allocator_members.cc: Move to...
692 * testsuite/20_util/allocator/1.cc: ... here.
693 * testsuite/20_util/allocator/10378.cc: New.
694 * docs/html/ext/howto.html: Add an entry for DR 402.
695
696 2003-11-30 Paolo Carlini <pcarlini@suse.de>
697
698 * config/locale/gnu/codecvt_members.cc (codecvt::do_in,
699 codecvt::do_length): More minor tweaks.
700
701 2003-11-30 Paolo Carlini <pcarlini@suse.de>
702
703 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
704 Minor stylistic tweak.
705
706 2003-11-30 Paolo Carlini <pcarlini@suse.de>
707
708 * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
709 Minor tweaks, consistent with the style used in other facets.
710
711 2003-11-29 Paolo Carlini <pcarlini@suse.de>
712
713 * include/bits/fstream.tcc (underflow): Minor tweaks in
714 preparation for libstdc++/13217.
715
716 2003-11-29 Paolo Carlini <pcarlini@suse.de>
717
718 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
719 Tweak for a few small problems (fix timings, use VERIFY..)
720
721 2003-11-28 Paolo Carlini <pcarlini@suse.de>
722
723 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.
724 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: New,
725 the original third testcase for libstdc++/13171 belong here.
726
727 2003-11-28 Paolo Carlini <pcarlini@suse.de>
728
729 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc:
730 Remove extraneous wchar_t lines.
731
732 2003-11-27 Paolo Carlini <pcarlini@suse.de>
733
734 PR libstdc++/11544
735 PR libstdc++/11603
736 * include/bits/fstream.tcc (underflow): Throw ios_base::failure
737 upon incomplete or invalid byte sequences in the file.
738 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-1.cc: New.
739 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc: New.
740 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: New.
741
742 2003-11-27 Paolo Carlini <pcarlini@suse.de>
743
744 * include/std/std_streambuf.h (__copy_streambufs): Remove
745 the first, unused, basic_ios<> parameter.
746 * src/streambuf-inst.cc: Likewise.
747 * include/bits/streambuf.tcc: Likewise.
748 * include/bits/istream.tcc (operator>>(__streambuf_type*)):
749 Tweak accordingly the call.
750 * include/bits/ostream.tcc (operator<<(__streambuf_type*)):
751 Likewise.
752
753 * include/bits/streambuf.tcc (__copy_streambufs): Remove
754 redundant try/catch.
755
756 2003-11-26 Benjamin Kosnik <bkoz@redhat.com>
757
758 PR libstdc++/9371
759 PR libstdc++/9546
760 PR libstdc++/10093
761 PR libstdc++/10095
762 * include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
763 (basic_ios::_M_setstate): Consolidate common error handling code.
764 * include/bits/basic_ios.tcc: Tweak.
765 * include/bits/fstream.tcc: Tweak.
766 * include/bits/istream.tcc: Use _M_setstate for common exception
767 handling. Move setstate calls after catch.
768 (basic_istream::tellg): Check for exceptions thrown by streambuf
769 virtual functions.
770 (basic_istream::seekg): Same.
771 * include/bits/ostream.tcc: Same, but for ostream.
772 (basic_ostream::flush): Check for exceptions thrown by streambuf
773 virtual functions.
774 (basic_istream::tellp): Same.
775 (basic_istream::seekp): Same.
776 * include/bits/locale_facets.tcc: Tweak.
777 * include/bits/streambuf.tcc: Tweak.
778 (__copy_streambufs): Propagate exceptions.
779 * testsuite/testsuite_io.h (fail_streambuf): New.
780 (fail_num_get): New.
781 (fail_num_put): New.
782 (facet_error): New.
783 (underflow_error): New.
784 (overflow_error): New.
785 (positioning_error): New.
786 * testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
787 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
788 exceptions_badbit_throw.cc, exceptions_failbit.cc,
789 exceptions_failbit_throw.cc: New.
790 * testsuite/27_io/basic_istream/extractors_other/char/
791 error_failbit.cc, exceptions_badbit_throw.cc,
792 exceptions_failbit_throw.cc, exceptions_null.cc: New.
793 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
794 New.
795 * testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
796 New.
797 * testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
798 New.
799 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
800 exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
801 * testsuite/27_io/basic_ostream/inserters_other/char/
802 error_failbit.cc, exceptions_badbit_throw.cc,
803 exceptions_failbit_throw.cc, exceptions_null.cc: New.
804 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
805 New.
806 * testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc:
807 New.
808
809 2003-11-26 Benjamin Kosnik <bkoz@redhat.com>
810
811 PR libstdc++/12297
812 * include/bits/istream.tcc
813 (basic_istream::sentry::sentry): Set failbit and eofbit when eof.
814 * testsuite/27_io/basic_istream/sentry/char/12297.cc: New.
815
816 2003-11-26 Paolo Carlini <pcarlini@suse.de>
817 Petur Runolfsson <peturr02@ru.is>
818
819 PR libstdc++/13171
820 * include/bits/fstream.tcc (imbue): Relax the conditions under
821 which the function succeeds: allow for two consecutive calls with
822 the same name; state dependent encodings are ok even after open
823 if at the beginning of the file; don't check seekoff return value
824 (pipes, cin, cout, etc...)
825 * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: New.
826 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: New.
827 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: New.
828 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: New.
829 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak comment.
830 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: Likewise.
831 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Tweak comment.
832 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: Likewise.
833
834 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: More
835 correctly use the UTF-8 locale appearing in the PR.
836
837 2003-11-26 Paolo Carlini <pcarlini@suse.de>
838
839 * include/bits/locale_facets.h
840 (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
841 _M_truename and _M_falsename: the constructor always does
842 it immediately before the _M_cache call.
843
844 2003-11-25 Paolo Carlini <pcarlini@suse.de>
845
846 * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
847 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
848 former is very fast, but stops if encounters a NUL.
849 (codecvt::do_out): Tweaks.
850 (codecvt::do_in): Tweaks, improve the code dealing with errors.
851 * testsuite/performance/wchar_t_length.cc: New.
852
853 2003-11-24 Paolo Carlini <pcarlini@suse.de>
854
855 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
856 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
857 former is very fast, but stops if encounters a NUL.
858 (codecvt::do_out): Tweak.
859 * testsuite/performance/wchar_t_in.cc: New.
860
861 2003-11-24 Paolo Carlini <pcarlini@suse.de>
862
863 * include/bits/locale_facets.h
864 (__numpunct_cache<>::_M_cache): Set _M_allocated at the beginning
865 in order to avoid memory leaks; simplify a bit.
866
867 2003-11-24 Benjamin Kosnik <bkoz@redhat.com>
868
869 * include/bits/streambuf_iterator.h (ostreambuf_iterator): Remove
870 non-standard throw specs.
871 * testsuite/24_iterators/istreambuf_iterator.cc: Split into...
872 * testsuite/24_iterators/istreambuf_iterator/1.cc
873 * testsuite/24_iterators/istreambuf_iterator/2.cc
874 * testsuite/24_iterators/istreambuf_iterator/2627.cc
875 * testsuite/24_iterators/ostreambuf_iterator.cc: Split into...
876 * testsuite/24_iterators/ostreambuf_iterator/1.cc
877 * testsuite/24_iterators/ostreambuf_iterator/2.cc
878
879 * testsuite/24_iterators/reverse_iterator/1.cc: Just compile,
880 don't link.
881
882 * include/bits/allocator.h: Formatting tweak.
883
884 2003-11-24 Paolo Carlini <pcarlini@suse.de>
885
886 * src/locale_init.cc: Cosmetic reformatting.
887
888 2003-11-23 Paolo Carlini <pcarlini@suse.de>
889
890 * include/bits/locale_facets.tcc (__add_grouping):
891 Cosmetic reformatting.
892
893 2003-11-23 Paolo Carlini <pcarlini@suse.de>
894
895 * include/bits/locale_facets.tcc (_M_extract_float,
896 _M_extract_int): Remove a wrong comment and simplify
897 the corresponding code using char_traits::find().
898
899 2003-11-22 Paolo Carlini <pcarlini@suse.de>
900
901 * config/locale/gnu/monetary_members.cc
902 (money_base::_S_construct_pattern): Factor out two assignments.
903
904 2003-11-22 Paolo Carlini <pcarlini@suse.de>
905
906 * include/bits/istream.tcc (getline(basic_string<>&)):
907 Fix error in comment of the previous commit.
908
909 2003-11-22 Paolo Carlini <pcarlini@suse.de>
910
911 PR libstdc++/12593
912 * include/bits/istream.tcc (operator>>(basic_string<>&),
913 getline(basic_string<>&)): Implement resolution of DR 91 [WP];
914 fix some minor issues with the exit conditions.
915 * docs/html/ext/howto.html: Add an entry for DR 91.
916
917 2003-11-21 Paolo Carlini <pcarlini@suse.de>
918
919 * config/locale/gnu/monetary_members.cc
920 (money_base::_S_construct_pattern): Factor out an assignment.
921
922 2003-11-21 Paolo Carlini <pcarlini@suse.de>
923
924 PR libstdc++/12882 (partial)
925 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
926 and ftello64 too.
927 * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
928 and ftello64 if available.
929 * aclocal.m4: Regenerate.
930 * configure: Ditto.
931
932 2003-11-20 Benjamin Kosnik <bkoz@redhat.com>
933
934 * include/debug/formatter.h: Use _Tp as template argument.
935 * src/debug.cc: Same, instantiate std::size_t.
936
937 2003-11-20 Benjamin Kosnik <bkoz@redhat.com>
938
939 PR libstdc++/13109
940 * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
941 * src/debug.cc (__gnu_debug): Format.
942 (_Error_formatter::_M_format_word): Define, use, instantiate.
943
944 2003-11-20 Paolo Carlini <pcarlini@suse.de>
945
946 PR libstdc++/11602
947 * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
948 Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
949 former is very fast, but stops if encounters a NUL.
950 * testsuite/performance/wchar_t_out.cc: New, from the PR.
951
952 2003-11-19 Paolo Carlini <pcarlini@suse.de>
953
954 * config/locale/gnu/codecvt_members.cc (do_out): If
955 we can upper bound the total number of external chars
956 to something smaller than __to_end - __to, avoid the
957 temporary buffer, the memcopy and simplify the loop.
958 * config/locale/generic/codecvt_members.cc (do_out):
959 Likewise.
960
961 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
962
963 * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
964 * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
965 flag.
966
967 2003-11-18 Jonathan Wakely <redi@gcc.gnu.org>
968
969 * docs/html/configopts.html, docs/html/debug.html,
970 docs/html/documentation.html, docs/html/explanations.html,
971 docs/html/install.html, docs/html/17_intro/contribute.html,
972 docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
973 docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
974 docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
975 docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
976 docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
977 docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
978 docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
979 docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
980 docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
981
982 2003-11-18 Paolo Carlini <pcarlini@suse.de>
983
984 PR libstdc++/12868
985 * include/bits/fstream.tcc (imbue): For encodings != -1 it's
986 always ok to imbue a new locale, provided seekoff(0, cur, ...)
987 doesn't fail, of course.
988 (underflow): In order for the above to work, deal gracefully
989 with _M_codecvt->in returning codecvt_base::error while
990 (__ilen = __iend - this->eback()) > 0: it just means __ilen
991 correctly converted internal characters before an error.
992 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
993
994 2003-11-17 Paolo Carlini <pcarlini@suse.de>
995
996 * include/bits/locale_facets.tcc: Fix typo in comment.
997
998 2003-11-17 Paolo Carlini <pcarlini@suse.de>
999
1000 * testsuite/22_locale/num_put/put/char/8.cc: New test,
1001 summarizing the discussion ensuing libstdc++/12988.
1002 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
1003
1004 2003-11-15 Paolo Carlini <pcarlini@suse.de>
1005
1006 * include/std/std_fstream.h: Tweak a comment.
1007
1008 2003-11-15 Roger Sayle <roger@eyesopen.com>
1009
1010 * include/c_std/std_cmath.h: Don't import C99's float transcendentals
1011 into the __gnu_cxx::__c99_binding namespace.
1012 (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
1013 ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
1014 GCC's math builtins, i.e. __builtin_foo.
1015 * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
1016 ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
1017 ldexpf, ldexpl, modff, modfl): Provide stub implementations.
1018
1019 2003-11-14 Paolo Carlini <pcarlini@suse.de>
1020
1021 * testsuite/22_locale/locale/cons/12352.cc: Use
1022 __gnu_test::try_named_locale.
1023
1024 2003-11-14 Paolo Carlini <pcarlini@suse.de>
1025
1026 * docs/html/ext/howto.html: Add entries for DR 63, 75
1027 and 305; tweak entries for DR 60 and 328.
1028
1029 2003-11-13 Douglas Gregor <gregod@cs.rpi.edu>
1030
1031 * docs/html/debug.html: Users are allowed to specialize in
1032 namespace __gnu_debug, unlike in the Apple version of the debug
1033 mode. Clear up a confusing double-negative. Note that
1034 std::basic_string does provide extra debugging capabilities, but
1035 not safe iterators.
1036 * include/bits/basic_string.tcc: Make sure there's never an
1037 ambiguity when calling __is_null_pointer.
1038 * include/debug/deque: (deque::erase) Properly handle invalidation
1039 when erasing at the end of the deque.
1040 * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
1041 (vector::clear): Set the guaranteed capacity to 0.
1042 * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
1043 iterator invalidation when erasing at the end of the deque.
1044
1045 2003-11-13 Paolo Carlini <pcarlini@suse.de>
1046 Petur Runolfsson <peturr02@ru.is>
1047
1048 PR libstdc++/13007
1049 * include/bits/fstream.tcc (imbue): Don't touch the stored
1050 locale.
1051 * include/std/std_streambuf.h (imbue): According to the
1052 standard, base class version does nothing.
1053 (pubimbue): Store the locale.
1054 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
1055 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
1056 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
1057 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
1058 * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
1059 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
1060 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
1061 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
1062
1063 2003-11-13 Petur Runolfsson <peturr02@ru.is>
1064
1065 PR libstdc++/12594
1066 * include/bits/ostream.tcc
1067 (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
1068 basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
1069 basic_ostream::operator<<(ios_base& (*)(ios_base&))):
1070 Implement the resolution of DR 60 (TC): These are not formatted
1071 output functions so don't construct sentry objects and don't
1072 catch exceptions.
1073 (basic_ostream::put, basic_ostream::write): Implement the
1074 resolution of DR 63 (TC) by catching exceptions and setting
1075 badbit.
1076 (basic_ostream::flush): Implement the resolution of DR 60 (TC):
1077 This is not an unformatted output function so don't construct
1078 a sentry object.
1079 * testsuite/testsuite_io.h (sync_streambuf): Define.
1080 * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
1081 * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
1082 * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
1083 * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
1084
1085 2003-11-13 Paolo Carlini <pcarlini@suse.de>
1086
1087 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
1088 Fix, closely following the testcase included in the PR.
1089 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
1090 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
1091 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
1092
1093 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
1094
1095 * docs/html/17_intro/configury.html: XHTML tweak.
1096
1097 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
1098
1099 * docs/html/debug_mode.html: XHTML fixes.
1100
1101 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
1102
1103 * docs/html/debug_mode.html: Update.
1104 * docs/html/17_intro/TODO: Update.
1105
1106 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
1107
1108 * include/bits/c++config: Move using directive...
1109 * include/debug/formatter.h: ...here.
1110
1111 2003-11-12 Carlo Wood <carlo@alinoe.com>
1112
1113 PR libstdc++/12947
1114 * bits/demangle.h
1115 (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
1116 (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
1117 (session<Allocator>::next_peek() const): Added.
1118 (decode_non_negative_decimal_integer(string_type&)):
1119 Renamed from decode_decimal_integer(string_type&).
1120 (session<Allocator>::decode_nested_name):
1121 Decode <template_param> as well.
1122 (session<Allocator>::add_substitution):
1123 Handle <template-param> for <nested-name>'s.
1124 (enum xary_nt): Added.
1125 (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
1126 (symbol_name_table_c): Updated for `entry_st::type' and additional
1127 operators (unary `operator+' and `sizeof(type)').
1128 (offset_table_c): Updated for new operators (causing a new hash map).
1129 (decode_operator_name): Match the updated hash map.
1130 (session<Allocator>::decode_expression):
1131 Support for `sizeof ([typename] type)' (st),
1132 dependent names (sr) and casting operator (cv). Handle
1133 `entry_st::type'. Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
1134 and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
1135 (session<Allocator>::decode_type_with_postfix):
1136 Support `extern "C"' function types (FY).
1137 * testsuite/demangle/regression/cw-16.cc: Added tests for the
1138 added functionality.
1139 * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
1140 appended.
1141
1142 2003-11-11 Paolo Carlini <pcarlini@suse.de>
1143
1144 PR libstdc++/12875
1145 * include/bits/fstream.tcc (setbuf): Don't do anything
1146 after open(), in particular don't discard data.
1147 (_M_allocate_internal_buffer): Tweak to not allocate memory
1148 in case the buffer is provided by the user via setbuf.
1149 * include/ext/stdio_filebuf.h: Tweak comment.
1150 * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
1151 * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
1152 * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
1153 setbuf does nothing after open().
1154 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
1155
1156 2003-11-11 Doug Gregor <gregod@cs.rpi.edu>
1157
1158 * docs/html/debug.html: Document libstdc++ debug mode.
1159 * docs/html/debug_mode.html: Document libstdc++ debug mode design.
1160 * docs/html/test.html: Document how to test under debug mode.
1161 * docs/html/17_intro/howto.html: Document debug-mode macros.
1162 * include/Makefile.am: Install debug-mode headers.
1163 * src/Makefile.am: Include debug.cc.
1164 * include/bits/basic_string.tcc:
1165 (basic_string::_S_construct): Fix NULL pointer check.
1166 (__is_null_pointer): New.
1167 Add precondition annotations.
1168 * include/bits/stream_iterator.h (istream_iterator,
1169 ostream_iterator): Added precondition annotations.
1170 * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
1171 * include/bits/stl_queue.h (queue, priority_queue): Ditto.
1172 * include/bits/stl_stack.h (stack): Ditto.
1173 * include/bits/basic_string.h (basic_string): Ditto.
1174 * include/bits/basic_string.tcc (basic_string): Ditto.
1175 * include/std/std_memory.h (auto_ptr): Ditto.
1176 * include/std/std_valarray.h (valarray): Ditto.
1177 * include/bits/stl_algo.h: Added algorithm precondition
1178 annotations.
1179 * include/bits/stl_algobase.h: Added algorithm precondition
1180 annotations.
1181 * include/bits/stl_numeric.h: Ditto.
1182 * include/ext/algorithm: Added algorithm precondition
1183 annotations.
1184 (__is_heap): Moved away from here.
1185 * include/bits/stl_heap.h: Added algorithm precondition
1186 annotations.
1187 (__is_heap): Moved to the top of this file.
1188 (__is_heap): Added iterator range overloads.
1189 * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
1190 with changes in std_memory.h.
1191 * testsuite/23_containers/list/operators/4.cc: Don't verify
1192 performance guarantees when in debug mode.
1193 * testsuite/23_containers/bitset/invalidation/1.cc: New.
1194 * testsuite/23_containers/deque/invalidation/1.cc: New.
1195 * testsuite/23_containers/deque/invalidation/2.cc: New.
1196 * testsuite/23_containers/deque/invalidation/3.cc: New.
1197 * testsuite/23_containers/deque/invalidation/4.cc: New.
1198 * testsuite/23_containers/list/invalidation/1.cc: New.
1199 * testsuite/23_containers/list/invalidation/2.cc: New.
1200 * testsuite/23_containers/list/invalidation/3.cc: New.
1201 * testsuite/23_containers/list/invalidation/4.cc: New.
1202 * testsuite/23_containers/map/invalidation/1.cc: New.
1203 * testsuite/23_containers/map/invalidation/2.cc: New.
1204 * testsuite/23_containers/multimap/invalidation/1.cc: New.
1205 * testsuite/23_containers/multimap/invalidation/2.cc: New.
1206 * testsuite/23_containers/multiset/invalidation/1.cc: New.
1207 * testsuite/23_containers/multiset/invalidation/2.cc: New.
1208 * testsuite/23_containers/set/invalidation/1.cc: New.
1209 * testsuite/23_containers/set/invalidation/2.cc: New.
1210 * testsuite/23_containers/vector/invalidation/1.cc: New.
1211 * testsuite/23_containers/vector/invalidation/2.cc: New.
1212 * testsuite/23_containers/vector/invalidation/3.cc: New.
1213 * testsuite/23_containers/vector/invalidation/4.cc: New.
1214 * testsuite/25_algorithms/heap.cc: Don't verify
1215 performance guarantees when in debug mode.
1216 * include/debug/bitset: New.
1217 * include/debug/debug.h: New.
1218 * include/debug/deque: New.
1219 * include/debug/formatter.h: New.
1220 * include/debug/hash_map: New.
1221 * include/debug/hash_map.h: New.
1222 * include/debug/hash_multimap.h: New.
1223 * include/debug/hash_set: New.
1224 * include/debug/hash_set.h: New.
1225 * include/debug/hash_multiset.h: New.
1226 * include/debug/list: New.
1227 * include/debug/map: New.
1228 * include/debug/map.h: New.
1229 * include/debug/multimap.h: New.
1230 * include/debug/multiset.h: New.
1231 * include/debug/safe_base.h: New.
1232 * include/debug/safe_iterator.h: New.
1233 * include/debug/safe_iterator.tcc: New.
1234 * include/debug/safe_sequence.h: New.
1235 * include/debug/set: New.
1236 * include/debug/set.h: New.
1237 * include/debug/string: New.
1238 * include/debug/vector: New.
1239 * src/debug.cc: New.
1240 * config/linker-map.gnu: Add debug mode symbols.
1241
1242 2003-11-11 Benjamin Kosnik <bkoz@redhat.com>
1243
1244 * src/string-inst.cc: Tweak namespaces.
1245 * src/misc-inst.cc: Same.
1246 * docs/html/debug.html: Edits.
1247 * config/link-map.gnu: Remove cruft.
1248
1249 * include/bits/c++config: Add in namespace associations.
1250 * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
1251 comment tweaks.
1252 * include/bits/deque.tcc: Same.
1253 * include/bits/list.tcc: Same.
1254 * include/bits/stl_bvector.h: Same.
1255 * include/bits/stl_deque.h: Same.
1256 * include/bits/stl_list.h: Same.
1257 * include/bits/stl_map.h: Same.
1258 * include/bits/stl_multimap.h: Same.
1259 * include/bits/stl_multiset.h: Same.
1260 * include/bits/stl_set.h: Same.
1261 * include/bits/stl_vector.h: Same.
1262 * include/bits/vector.tcc: Same.
1263
1264 * include/std/std_algorithm.h: Remove markup comments.
1265 * include/std/std_functional.h: Same.
1266 * include/std/std_iterator.h: Same.
1267 * include/std/std_numeric.h: Same.
1268 * include/std/std_utility.h: Same.
1269 * include/bits/stl_queue.h: Formatting tweaks.
1270 * include/bits/stl_stack.h: Same.
1271 * include/std/std_deque.h: Include debugging version in debug mode.
1272 * include/std/std_list.h: Same.
1273 * include/std/std_map.h: Same.
1274 * include/std/std_set.h: Same.
1275 * include/std/std_vector.h: Same.
1276 * include/std/std_queue.h: Use deque, vector.
1277 * include/std/std_stack.h: Same.
1278
1279 2003-11-09 Paolo Carlini <pcarlini@suse.de>
1280
1281 * include/bits/locale_facets.tcc (_M_insert_int,
1282 _M_insert_float): Move a couple of vars inside an if block.
1283
1284 2003-11-09 Paolo Carlini <pcarlini@suse.de>
1285
1286 PR libstdc++/12971
1287 * include/bits/locale_facets.tcc
1288 (money_put::do_put(..., long double)): Fix conversion
1289 specification as per DR 328 [WP].
1290 * testsuite/22_locale/money_put/put/char/12971.cc: Add.
1291 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
1292 * docs/html/ext/howto.html: Add entry for DR 328.
1293
1294 2003-11-08 Paolo Carlini <pcarlini@suse.de>
1295
1296 PR libstdc++/12967
1297 * include/bits/list.tcc (merge): Implement resolution of
1298 DR 300 [WP].
1299 * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
1300 for DR 231.
1301
1302 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
1303 Import R27.
1304
1305 2003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
1306
1307 * libsupc++/vec.cc: Conform to C++STYLE.
1308
1309 2003-11-07 Carlo Wood <carlo@alinoe.com>
1310
1311 PR libstdc++/12736
1312 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
1313 (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
1314 K, V, r and A qualifiers before processing them as a group.
1315 * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
1316 * testsuite/demangle/regression/cw-16.cc: New.
1317
1318 2003-11-07 Robert Millan <robertmh@gnu.org>
1319
1320 * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
1321 * crossconfig.m4: Likewise.
1322 * configure: Regenerate.
1323
1324 2003-11-07 Carlo Wood <carlo@alinoe.com>
1325
1326 * include/bits/demangle.h
1327 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1328 string_type&, bool member_function_pointer_qualifiers):
1329 Always separate the '[' of an array type with a space from
1330 what is left of it, except when that is the closing bracket
1331 of another array dimension.
1332
1333 2003-11-07 Carlo Wood <carlo@alinoe.com>
1334
1335 * include/bits/demangle.h
1336 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1337 string_type&, bool) const): Made const.
1338 (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
1339 (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
1340 std::ostream& operator<<(std::ostream&, qualifier const&),
1341 std::ostream& operator<<(std::ostream&, qualifier_list const&),
1342 qualifier_list<Allocator>::decode_qualifiers(string_type&,
1343 string_type&, bool) const,
1344 session<Allocator>::decode_type_with_postfix(string_type&,
1345 string_type&, qualifier_list<Allocator>*))
1346 Added and/or changed debug-only hooks and code.
1347
1348 2003-11-04 Jeffrey D. Oldham <oldham@codesourcery.com>
1349
1350 * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
1351 immediately return. This reflects a C++ ABI change 2003 Nov 03.
1352 (__cxa_vec_delete3): Likewise.
1353
1354 2003-11-03 Petur Runolfsson <peturr02@ru.is>
1355
1356 PR libstdc++/12790
1357 * include/bits/fstream.tcc: Delete _M_last_overflowed.
1358 (basic_filebuf::basic_filebuf): Initialize _M_state_last.
1359 (basic_filebuf::open, basic_filebuf::close): Assign
1360 _M_state_beg to _M_state_cur and _M_state_last.
1361 (basic_filebuf::close): Call _M_terminate_output to handle
1362 unshift and flushing.
1363 (basic_filebuf::underflow): Assign _M_state_last, throw
1364 exception instead of calling abort when codecvt::max_length()
1365 is bad.
1366 (basic_filebuf::seekoff): Use _M_state_last when calling
1367 codecvt::length(), pass correct state to _M_seek.
1368 (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
1369 (basic_filebuf::_M_seek): Add __state_type parameter,
1370 set _M_state_cur correctly, store the resulting state in
1371 the return value and use _M_terminate_output to handle
1372 flushing and unshift.
1373 (basic_filebuf::_M_terminate_output): Flush contents of
1374 output buffer, if any, then call codecvt::unshift as
1375 needed and output the result.
1376 (basic_filebuf::sync): Move here, don't modify _M_writing
1377 or _M_reading.
1378
1379 * include/std/std_fstream.h
1380 (basic_filebuf::_M_state_last): Declare it.
1381 (basic_filebuf::_M_last_overflowed): Delete.
1382 (basic_filebuf::_M_seek): Add __state_type parameter.
1383 (basic_filebuf::sync): Declare only.
1384 (basic_filebuf::_M_output_unshift): Delete.
1385 (basic_filebuf::_M_terminate_output): Declare it.
1386
1387 * testsuite/testsuite_character.h:
1388 Define character class and state class plus char_traits and
1389 codecvt specializations for same for testing support for
1390 stateful encodings.
1391
1392 * testsuite/27_io/basic_filebuf/close/12790-1.cc,
1393 * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
1394 * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
1395 * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
1396 * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
1397 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
1398 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
1399 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
1400 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
1401 * testsuite/27_io/basic_filebuf/open/12790-1.cc,
1402 * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
1403 * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
1404 * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
1405 * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
1406 * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
1407 * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
1408 * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
1409 * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
1410 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
1411 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
1412 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
1413 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
1414 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
1415 * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
1416 * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
1417 * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
1418 * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
1419 * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
1420 * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
1421 * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
1422 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
1423 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
1424 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
1425 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
1426 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
1427 * testsuite/27_io/basic_filebuf/sync/char/1.cc,
1428 * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
1429 New tests.
1430
1431 * testsuite/27_io/basic_filebuf/3.cc,
1432 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
1433 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
1434 * testsuite/27_io/basic_fstream/3.cc,
1435 * testsuite/27_io/basic_ifstream/3.cc,
1436 * testsuite/27_io/basic_ofstream/3.cc:
1437 Use streamoff as off_type and fpos<state_type> as pos_type.
1438
1439 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
1440 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
1441 Check that sync does *not* set _M_writing to false.
1442
1443 2003-11-03 Anthony Green <green@redhat.com>
1444
1445 * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
1446 they're used.
1447
1448 2003-11-03 Benjamin Kosnik <bkoz@redhat.com>
1449
1450 * include/bits/locale_facets.h (time_get::_M_extract_name): Add
1451 ctype argument.
1452 * include/bits/locale_facets.tcc: Same, use it to allow
1453 capitalized names.
1454
1455 * include/bits/fstream.tcc: Spacing tweak.
1456 * include/bits/istream.tcc: Same.
1457 * include/bits/ostream.tcc: Same.
1458
1459 2003-10-30 Paolo Carlini <pcarlini@suse.de>
1460
1461 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
1462 __mod is only assigned, never used its value, remove it.
1463
1464 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1465
1466 * include/bits/locale_facets.tcc (time_get::do_get_year):
1467 Absolutely avoid dereferencing end iterators.
1468 (time_put::put): Minor clean up.
1469
1470 * include/bits/locale_facets.tcc: Cosmetic reformattings.
1471
1472 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1473
1474 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1475 Revert the last commit, is not correct, sorry.
1476
1477 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1478
1479 * config/locale/generic/c_locale.cc: Add back <cmath> and
1480 <cstdlib>.
1481
1482 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1483 Clean up.
1484
1485 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1486
1487 * include/bits/locale_facets.tcc (time_put::put): Absolutely
1488 avoid dereferencing end iterators; clean up.
1489
1490 * include/bits/locale_facets.tcc (num_get::_M_extract_float,
1491 num_get::_M_extract_int): Minor tweak.
1492
1493 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1494
1495 * include/bits/locale_facets.tcc: Remove some unnecessary
1496 includes.
1497 * config/locale/generic/c_locale.cc: Include <cerrno> here.
1498 * config/locale/gnu/c_locale.cc: Likewise.
1499
1500 2003-10-28 Paolo Carlini <pcarlini@suse.de>
1501
1502 * include/bits/locale_facets.tcc
1503 (money_get<>::do_get(..., string_type&)): Absolutely avoid
1504 dereferencing end iterators; general clean up.
1505
1506 2003-10-28 Paolo Carlini <pcarlini@suse.de>
1507
1508 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
1509 Absolutely avoid dereferencing end iterators.
1510 (time_get::_M_extract_name): Likewise.
1511
1512 * include/bits/locale_facets.tcc
1513 (time_get::_M_extract_via_format, case 'e'): Don't try to
1514 be smart wrt returning the right __beg in case of parse
1515 error, time_get::_M_extract_num must be fixed instead.
1516
1517 2003-10-27 Paolo Carlini <pcarlini@suse.de>
1518
1519 PR libstdc++/12778
1520 * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
1521 * aclocal.m4: Regenerate.
1522 * configure: Regenerate.
1523
1524 2003-10-27 Benjamin Kosnik <bkoz@redhat.com>
1525
1526 * docs/html/17_intro/TODO: Add links.
1527 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1528 Uncomment.
1529
1530 2003-10-27 Paolo Carlini <pcarlini@suse.de>
1531
1532 PR libstdc++/12750
1533 * include/bits/locale_facets.tcc
1534 (time_get::_M_extract_via_format): Deal with code 'e'.
1535 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
1536 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
1537
1538 * include/bits/locale_facets.tcc
1539 (time_get::_M_extract_via_format): Tweak to absolutely avoid
1540 dereferencing end iterators.
1541
1542 * include/bits/locale_facets.h (__verify_grouping):
1543 Const-ify second parameter.
1544 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
1545 * src/locale-inst.cc (__verify_grouping): Ditto.
1546
1547 2003-10-27 Paolo Carlini <pcarlini@suse.de>
1548
1549 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1550 Various things: 1- Avoid absolutely end iterator dereferences;
1551 2- Improve performance-wise the code skipping leading zeros;
1552 3- Fix two bugs wrt early bail out in case of parsing errors
1553 (see testcases); 4- General clean up.
1554 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
1555 use __builtin_expect to favor base 10 inputs.
1556 * testsuite/22_locale/num_get/get/char/7.cc: New.
1557 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
1558
1559 2003-10-26 Paolo Carlini <pcarlini@suse.de>
1560
1561 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
1562 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
1563
1564 2003-10-25 Paolo Carlini <pcarlini@suse.de>
1565
1566 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
1567 __pos in only incremented, never used its value, remove it.
1568
1569 2003-10-24 Robert Millan <robertmh@gnu.org>
1570
1571 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
1572 and knetbsd*-gnu.
1573 * aclocal.m4: Regenerated.
1574 * configure: Regenerated.
1575
1576 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1577
1578 * include/bits/locale_facets.tcc (money_get::do_get(...,
1579 long double&): Properly size the temporary buffer.
1580 * testsuite/22_locale/money_get/get/char/11.cc: New.
1581 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
1582
1583 * include/bits/locale_facets.tcc (num_put::_M_group_int,
1584 num_put::_M_group_float, money_put::do_put(..., const
1585 string_type&), collate::do_compare, collate::do_transform):
1586 Prefer basic_string::data() to c_str() when the '\0'
1587 terminator is not really needed.
1588
1589 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1590
1591 * include/bits/locale_facets.tcc (__verify_grouping):
1592 Prefer '=' to an unnecessary '&='.
1593
1594 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1595
1596 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1597 Tweak my fix for libstdc++/12657.
1598
1599 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1600
1601 * include/bits/locale_facets.tcc (money_get::do_get(...,
1602 string_type&): Minor tweak to the previous commit.
1603
1604 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1605
1606 * include/bits/locale_facets.tcc (money_get::do_get(...,
1607 string_type&): Disregard the previous commit: doesn't hurt but
1608 doesn't accomplish anything useful either. This is the right
1609 one, speeding up greatly the function in case of early fail.
1610
1611 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1612
1613 * include/bits/locale_facets.tcc (money_get::do_get(...,
1614 string_type&): Move an if block, thus minimizing the amount
1615 of code processed anyway when __tmp_units.size() == 0.
1616
1617 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1618
1619 * include/bits/locale_facets.tcc
1620 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
1621 equivalent to 'y'.
1622
1623 2003-10-23 Benjamin Kosnik <bkoz@redhat.com>
1624
1625 * docs/html/documentation.html: Add a pointer to the doxygen style
1626 guide.
1627 * docs/html/17_intro/TODO: Update.
1628 * docs/html/test.html: Add instructions for running a subset of
1629 tests, update.
1630
1631 2003-10-23 Paolo Carlini <pcarlini@suse.de>
1632
1633 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
1634 string_type&)): Use find_first_not_of to strip leading
1635 zeros; if __tmp_units == "0" never prefix it with '-';
1636 always fail if __tmp_units is empty.
1637 * testsuite/22_locale/money_get/get/char/10.cc: New.
1638 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
1639
1640 2003-10-23 Phil Edwards <phil@codesourcery.com>
1641
1642 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
1643 2003-10-21 change.
1644
1645 2003-10-22 Paolo Carlini <pcarlini@suse.de>
1646
1647 * include/bits/locale_facets.tcc (__int_to_char): Remove
1648 the const int parameter.
1649 (_M_insert_int): Update caller.
1650 * src/locale-inst.cc (__int_to_char): Update instantiations.
1651
1652 2003-10-22 Benjamin Kosnik <bkoz@redhat.com>
1653
1654 * include/bits/locale_facets.h: Correct byname facets for "C"
1655 locale.
1656 * config/locale/generic/ctype_members.cc: Same.
1657 * config/locale/generic/messages_members.h: Same.
1658 * config/locale/gnu/ctype_members.cc: Same.
1659 * config/locale/gnu/messages_members.h: Same.
1660 * include/bits/codecvt.h: Same.
1661 * src/ctype.cc: Same.
1662 * testsuite/22_locale/codecvt_byname/1.cc: New.
1663 * testsuite/22_locale/collate/1.cc: Edit.
1664 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
1665 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
1666 * testsuite/22_locale/ctype/1.cc: Derivation tests.
1667 * testsuite/22_locale/ctype/11844.cc: Move...
1668 * testsuite/22_locale/ctype_base/11844.cc: ...here.
1669 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
1670 * testsuite/22_locale/ctype_byname/1.cc: Name.
1671 * testsuite/22_locale/messages_byname/1.cc: New.
1672 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
1673 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
1674 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
1675 * testsuite/22_locale/numpunct/1.cc: Edit.
1676 * testsuite/22_locale/numpunct_byname/2.cc: Move...
1677 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
1678 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
1679 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
1680
1681 2003-10-22 Paolo Carlini <pcarlini@suse.de>
1682
1683 PR libstdc++/8610
1684 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
1685 checking for the availability of int64_t.
1686 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
1687 * configure.ac: Call here.
1688 * acconfig.h: Add undef for the corresponding symbols.
1689 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
1690 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
1691 (__basic_file<char>::seekoff): Likewise, call lseek64 when
1692 available, otherwise lseek, checking the __off parameter.
1693 * include/bits/postypes.h: Typedef __streamoff_base_type
1694 to int64_t if available, otherwise long long.
1695 * aclocal.m4: Regenerate.
1696 * config.h.in: Likewise.
1697 * configure: Likewise.
1698
1699 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
1700 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
1701
1702 2003-10-22 Paolo Carlini <pcarlini@suse.de>
1703
1704 PR libstdc++/12657
1705 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1706 Implement resolution of DR 292 (WP).
1707 * docs/html/ext/howto.html: Add entry for DR 292.
1708
1709 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1710
1711 * include/ext/mt_allocator.h: Change include to gthr.h.
1712 * include/ext/rope: Same. Add _Refcount_base definitions.
1713 * include/ext/pool_allocator.h: Adjust namespaces.
1714 * include/bits/stl_threads.h (_Refcount_base): Move.
1715 Put remaining into namespace __gnu_cxx.
1716
1717 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1718
1719 PR libstdc++/9858
1720 * include/bits/locale_facets.h (ctype<char>): Remove
1721 __ctype_abstract_base.
1722 (ctype<char>::do_is): Remove.
1723 (ctype<char>::do_scan_is): Remove.
1724 * src/ctype.cc: Same. Inline the rest.
1725 * testsuite/22_locale/ctype/is/char/9858.cc: New.
1726 * config/os/aix/ctype_noninline.h: Adjust ctor.
1727 * config/os/bsd/freebsd/ctype_noninline.h: Same.
1728 * config/os/bsd/netbsd/ctype_noninline.h: Same.
1729 * config/os/djgpp/ctype_noninline.h: Same.
1730 * config/os/generic/ctype_noninline.h: Same.
1731 * config/os/gnu-linux/ctype_noninline.h: Same.
1732 * config/os/hpux/ctype_noninline.h: Same.
1733 * config/os/irix/irix5.2/ctype_noninline.h: Same.
1734 * config/os/irix/irix6.5/ctype_noninline.h: Same.
1735 * config/os/mingw32/ctype_noninline.h: Same.
1736 * config/os/newlib/ctype_noninline.h: Same.
1737 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
1738 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
1739 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
1740 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
1741 * config/os/windiss/ctype_noninline.h: Same.
1742
1743 2003-10-21 Paolo Carlini <pcarlini@suse.de>
1744
1745 * src/locale.cc: Tweak a comment.
1746 * src/localename.cc: Move a comment.
1747
1748 2003-10-20 Benjamin Kosnik <bkoz@redhat.com>
1749
1750 PR libstdc++/10081
1751 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
1752 * testsuite_hooks.cc: Same.
1753 * 22_locale/numpunct/members/pod/1.cc: Edit.
1754 * 22_locale/numpunct/members/pod/2.cc: Same.
1755 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
1756 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
1757 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
1758 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
1759 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
1760 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
1761 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
1762 * 27_io/basic_istream/sentry/pod/1.cc: New.
1763 * 27_io/basic_ostream/sentry/pod/1.cc: New.
1764 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
1765 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
1766
1767 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1768
1769 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
1770 of external _MIPS_SIM_ABI32.
1771
1772 2003-10-20 Phil Edwards <phil@codesourcery.com>
1773
1774 * configure.ac: Fix comment typo.
1775 * configure.host: Add vxworks to host_os switch.
1776 * crossconfig.m4: Remove old commented os_include_dir variables
1777 left over from autotools transition.
1778 (*-vxworks): New stanza.
1779 (*-windiss): Add missing symbols.
1780 * configure: Regenerate.
1781 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
1782 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
1783 New files.
1784 * config/os/windiss/os_defines.h: Define __C9X__.
1785
1786 2003-10-19 David Edelsohn <edelsohn@gnu.org>
1787
1788 PR other/12506
1789 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
1790
1791 2003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
1792
1793 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
1794 confusion of the use of the gthr API when __gthread_active_p()
1795 returns true.
1796
1797 2003-10-17 Benjamin Kosnik <bkoz@redhat.com>
1798
1799 * src/Makefile.am: Add new files.
1800 * src/Makefile.in: Regenerate.
1801 * src/globals.cc: Split into..
1802 * src/globals_io.cc: New.
1803 * src/globals_locale.cc: New.
1804 * src/ios.cc: Split into...
1805 * src/ios_init.cc: New.
1806 * src/ios_locale.cc: New.
1807 * src/locale-inst.cc: Split into..
1808 * src/wlocale-inst.cc: New.
1809 * src/locale-misc-inst.cc: New.
1810 * src/locale.cc, src/localename: Split into...
1811 * src/locale_facets.cc: New.
1812 * src/locale_init.cc: New.
1813 * src/wstring-inst.cc: Add copyright info.
1814
1815 2003-10-16 Petur Runolfsson <peturr02@ru.is>
1816
1817 PR libstdc++/11450
1818 PR libstdc++/11543
1819 PR libstdc++/12065
1820 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
1821 Change return value from streampos to streamoff.
1822 (__basic_file::seekpos): Delete.
1823 * config/io/basic_file_stdio.h: Same.
1824 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
1825 * include/Makefile.am (bits_headers): Add bits/postypes.h.
1826 * include/bits/char_traits.h: Include bits/postypes.h instead of
1827 bits/fpos.h.
1828 * include/bits/fstream.tcc (basic_filebuf::open,
1829 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
1830 values, use == and != instead.
1831 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
1832 to pos_type.
1833 (basic_filebuf::imbue): Don't use ! on pos_type values, use
1834 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
1835 * include/bits/postypes.h: New file.
1836 Add __streamoff_base_type typedef, streamsize.
1837 (streamoff, streampos, wstreampos): Define typedefs, with
1838 streamoff defined as...
1839 (streamoff): New class. Document implementation defined
1840 aspects.
1841 (fpos): New implementation. Document implementation defined
1842 aspects.
1843 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
1844 explicit conversion from pos_type to off_type.
1845 * include/std/std_iosfwd.h: Include bits/postypes.h instead
1846 of bits/fpos.h.
1847 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
1848 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
1849 * testsuite/27_io/fpos/11450.cc: New test.
1850 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
1851 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
1852 * testsuite/27_io/types/3.cc: New test.
1853
1854 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
1855
1856 * configure.host: Remove fpos_include_dir.
1857 * configure.ac: Remove FPOS_INC_SRCDIR.
1858 * configure: Regenerate.
1859 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
1860 * aclocal.m4: Regenerate.
1861 * include/Makefile.am (host_headers): Remove fpos.h.
1862 (bits_headers): Add postypes.h.
1863 * include/Makefile.in: Regenerate.
1864 * config/os/gnu-linux/fposh: Remove.
1865 * config/os/generic/fpos.h: Remove.
1866
1867 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
1868 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
1869 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
1870 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
1871 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
1872 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
1873 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
1874 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
1875 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
1876 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
1877 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
1878 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
1879 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
1880 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
1881 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
1882 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1883 * testsuite/27_io/objects/char/10.cc: Same.
1884
1885 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1886
1887 * src/locale.cc (locale::locale(const char*)): ... one
1888 more comparison missed in the previous commit.
1889
1890 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
1891
1892 * acconfig.h: Add HAVE_DRAND48.
1893 * crossconfig.m4: Remove ISATTY.
1894 * aclocal.m4: Regenerated.
1895 * config.h.in: Regenerated.
1896 * configure: Regenerated.
1897
1898 2003-10-16 Bernardo Innocenti <bernie@develer.com>
1899
1900 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
1901 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
1902 Document SMP safeness of asm macros.
1903
1904 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1905
1906 * src/locale.cc (locale::locale(const char*)): Tweak
1907 a couple of comparisons to use basic_string operators.
1908
1909 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1910
1911 PR libstdc++/12540
1912 * config/locale/gnu/monetary_members.cc
1913 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
1914 Don't leak memory if new throws.
1915 * src/locale.cc (locale::locale(const char*)): In order not
1916 to leak memory in case new throws, use a basic_string type
1917 for __res too and avoid strdup.
1918
1919 2003-10-14 Jeff Bailey <jbailey@nisa.net>
1920
1921 PR libstdc++/12562
1922 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
1923 * configure: Regenerate.
1924
1925 2003-10-14 Carlo Wood <carlo@alinoe.com>
1926
1927 PR libstdc++/12600
1928 * include/bits/demangle.h (session<Allocator>::
1929 decode_unqualified_name(string_type& output)): Fail on a
1930 <operator-name> when decoding <template-argument>.
1931 * testsuite/demangle/regression/cw-15.cc: New.
1932
1933 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
1934
1935 PR libstdc++/11480
1936 * include/bits/stl_algo.h (unique): Fix.
1937 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
1938 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
1939 * testsuite/25_algorithms/unique/2.cc: New.
1940
1941 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
1942
1943 * src/localename.cc (_M_replace_categories, M_replace_facet):
1944 Const-ify a couple of variables.
1945
1946 2003-10-14 Petur Runolfsson <peturr02@ru.is>
1947 Andreas Tobler <a.tobler@schweiz.ch>
1948
1949 * src/locale.cc (locale::_S_initialize): Workaround a confusion
1950 of the use of the gthr API when __gthread_active_p() returns true.
1951
1952 2003-10-12 Petur Runolfsson <peturr02@ru.is>
1953 Paolo Carlini <pcarlini@unitus.it>
1954
1955 PR libstdc++/11460
1956 * src/strstream.cc (pbackfail): Fix to use to_int_type.
1957 * testsuite/backward/11460.cc: New, from the PR.
1958
1959 2003-10-12 Paolo Carlini <pcarlini@unitus.it>
1960
1961 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1962 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
1963 * include/bits/basic_string.tcc: Likewise.
1964 * include/bits/ios_base.h: Likewise.
1965 * include/bits/istream.tcc: Likewise.
1966 * include/bits/locale_facets.tcc: Likewise.
1967 * include/bits/ostream.tcc: Likewise.
1968 * include/bits/stl_function.h: Likewise.
1969 * include/bits/stl_multiset.h: Likewise.
1970 * include/bits/stl_pair.h: Likewise.
1971 * include/bits/stl_set.h: Likewise.
1972 * include/bits/streambuf_iterator.h
1973 * include/std/std_iosfwd.h: Likewise.
1974 * include/std/std_istream.h: Likewise.
1975 * include/std/std_sstream.h: Likewise.
1976 * include/std/std_streambuf.h: Likewise.
1977 * src/ios.cc: Likewise.
1978 * include/bits/c++config:
1979 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
1980 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
1981 dg-error directive due to removal of a blank line.
1982 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1983
1984 2003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
1985 Paolo Carlini <pcarlini@unitus.it>
1986
1987 PR libstdc++/11844/11740 (cont)
1988 * config/os/generic/ctype_inline.h (ctype<char>::is):
1989 Generically, use a bitmasksize of 15 (instead of 10);
1990 Fix the logic to actually return (M & m) != 0 as per
1991 22.2.1.1.2.
1992
1993 2003-10-11 Bernardo Innocenti <bernie@develer.com>
1994
1995 * crossconfig.m4 (*-uclinux*): New target.
1996 * configure: Regenerate.
1997
1998 2003-10-10 Paolo Carlini <pcarlini@unitus.it>
1999
2000 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
2001 Avoid unnecessarily calling __builtin_alloca and dealing
2002 explicitly with width() smaller than zero.
2003 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
2004 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
2005 const char*), operator<<(basic_ostream<char, _Traits>&,
2006 const char*), operator<<(basic_ostream, const basic_string&)):
2007 Likewise.
2008
2009 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
2010
2011 * config/linker-map.gnu: Make more *_type_info bits visible.
2012 Move new/delete bits back into GLIBCXX space.
2013
2014 * include/bits/locale_classes.h: Move _M_id out of line, so that
2015 locale::id::_S_highwater can be removed from the export list.
2016 * src/locale.cc (locale::id::_M_id): Define.
2017
2018 2003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
2019
2020 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
2021 SPARC64.
2022
2023 2003-10-09 Paolo Carlini <pcarlini@unitus.it>
2024
2025 PR libstdc++/11844
2026 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
2027 to conform to the requirements of 22.2.1.
2028 * config/os/bsd/freebsd/ctype_base.h: Likewise.
2029 * config/os/djgpp/ctype_base.h: Likewise.
2030 * config/os/generic/ctype_base.h: Likewise.
2031 * config/os/gnu-linux/ctype_base.h: Likewise.
2032 * config/os/hpux/ctype_base.h: Likewise.
2033 * config/os/irix/irix6.5/ctype_base.h: Likewise.
2034 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
2035 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
2036 * testsuite/22_locale/ctype/11844.cc: New.
2037
2038 * config/locale/generic/ctype_members.cc (do_is):
2039 Generically, use a bitmasksize of 15 (instead of 10), since
2040 we don't know the numerical encoding of the various categories
2041 in the underlying /usr/include/ctype.h.
2042
2043 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
2044
2045 * src/string-inst.cc: Prune.
2046 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2047 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2048
2049 2003-10-09 Petur Runolfsson <peturr02@ru.is>
2050
2051 * src/io-inst.cc: Don't include iostream.
2052 * include/bits/ios_base.h (ios_base::failure): Use string.
2053 * src/Makefile.am: Add ios_failure.cc.
2054 * src/Makefile.in: Regenerate.
2055 * src/ios.cc: Move ios_base::failure definitions to...
2056 * src/ios_failure.cc: ...here. New.
2057
2058 2003-10-09 Petur Runolfsson <peturr02@ru.is>
2059
2060 PR libstdc++/9874
2061 * include/bits/fstream.tcc (basic_filebuf::seekoff):
2062 Move code needed for both seekoff and seekpos...
2063 (basic_filebuf::_M_seek): ...here. New function.
2064 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
2065 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
2066 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
2067
2068 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
2069
2070 2003-10-08 Paolo Carlini <pcarlini@unitus.it>
2071
2072 * include/bits/locale_facets.tcc: More minor cosmetic
2073 changes and const-ifications of some variables.
2074
2075 2003-10-07 Paolo Carlini <pcarlini@unitus.it>
2076
2077 * include/bits/locale_facets.tcc: Minor cosmetic changes
2078 and const-ifications of some variables.
2079
2080 * include/bits/locale_facets.tcc
2081 (money_get::do_get(..., string_type&)): Simplify an if-else.
2082
2083 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
2084
2085 PR libstdc++/11740
2086 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
2087 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
2088 * config/locale/generic/ctype_members.cc: Same.
2089 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
2090
2091 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
2092
2093 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
2094 Improve performance-wise: avoid one traits::copy, avoid
2095 the __builtin_alloca, streamline.
2096
2097 2003-10-05 Paolo Carlini <pcarlini@unitus.it>
2098
2099 * include/bits/locale_facets.tcc
2100 (num_put::do_put(..., bool)): Prefer ?: to if-else.
2101 (time_get::_M_extract_name): Qualify min with std::.
2102 (__pad<>::_S_pad): Constify two variables; simplify an
2103 if-else statement factoring out some code.
2104
2105 * include/bits/locale_facets.tcc: Minor cosmetic changes.
2106
2107 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
2108
2109 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2110 Constify a couple of variables.
2111 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
2112 ++__beg to *__beg++.
2113
2114 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
2115 Petur Runolfsson <peturr02@ru.is>
2116
2117 * include/ext/stdio_sync_filebuf.h: Don't include the whole
2118 <fstream>, only <streambuf> and <cstdio>.
2119
2120 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
2121
2122 PR libstdc++/12206
2123 * include/bits/fstream.tcc (imbue): In case a codecvt facet
2124 is not available, set _M_codecvt = 0.
2125 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
2126
2127 2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
2128
2129 PR libstdc++/12451
2130 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
2131
2132 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2133
2134 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
2135 * src/locale.cc: Define.
2136 * src/localename.cc: Use it.
2137 * config/locale/generic/time_members.h: Same.
2138 * config/locale/gnu/messages_members.h: Same.
2139 * config/locale/gnu/time_members.h: Same.
2140
2141 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
2142
2143 PR libstdc++/12232
2144 * include/bits/fstream.tcc (seekoff): Ignore the openmode
2145 argument; simplify.
2146 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
2147 seekpos): Remove the openmode argument.
2148 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
2149 seekpos): Remove redundant placeholder for the openmode argument.
2150 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
2151 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
2152 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
2153 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
2154 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
2155
2156 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2157
2158 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
2159 (locale::facet::_S_get_c_locale): Same.
2160
2161 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2162
2163 * config/linker-map.gnu: Export _S_get_c_locale instead of
2164 _S_c_locale object.
2165
2166 2003-10-02 Petur Runolfsson <peturr02@ru.is>
2167
2168 * config/locale/generic/c_locale.cc
2169 (category_names, locale::_S_categories): Const qualify.
2170 * config/locale/gnu/c_locale.cc: Same.
2171 * config/locale/generic/time_members.h (__timepunct::__timepunct):
2172 Copy string contents before assigning to _M_name_timepunct,
2173 qualify strcpy and strlen with std::.
2174 * config/locale/gnu/time_members.h: Same.
2175 * config/locale/gnu/messages_members.h (messages::messages):
2176 Copy string contents before assigning to _M_name_messages,
2177 qualify strcpy and strlen with std::.
2178 * config/os/gnu-linux/ctype_noninline.h
2179 (ctype<char>::classic_table()): Don't call locale::classic().
2180 * include/bits/locale_classes.h
2181 (locale::_S_categories): Const qualify.
2182 (locale::_S_once, locale::_S_initialize_once,
2183 locale::facet::_S_once, locale::facet::_S_initialize_once,
2184 locale::facet::_S_get_c_locale): Declare.
2185 (locale::_S_initialize): Don't define.
2186 (locale::facet::_S_c_locale): Make private.
2187 (locale::facet::_S_c_name): Same, const qualify.
2188 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
2189 parameters, add throw() specifier.
2190 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
2191 messages::_M_name_messages): Const qualify.
2192 * src/locale.cc
2193 (locale::_S_once, locale::facet::_S_once): Define.
2194 (locale::classic): Move initialization code...
2195 (locale::_S_initialize_once): ...here.
2196 (locale::_S_initialize): Call _S_initialize_once through
2197 __gthread_once.
2198 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
2199 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
2200 __gthread_once before returning _S_c_locale.
2201 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
2202 Drop unused parameters, add throw() specifier, don't initialize
2203 locale::facet::_S_c_locale and _S_c_name.
2204
2205 * config/locale/generic/messages_members.h:
2206 Replace _S_c_locale with _S_get_c_locale().
2207 * config/locale/gnu/c_locale.cc: Same.
2208 * config/locale/gnu/messages_members.h: Same.
2209 * config/locale/gnu/numeric_members.cc: Same.
2210 * config/locale/gnu/time_members.cc: Same.
2211 * config/os/gnu-linux/ctype_noninline.h: Same.
2212 * include/bits/locale_facets.h: Same.
2213 * include/bits/locale_facets.tcc: Same.
2214 * src/codecvt.cc: Same.
2215 * src/ctype.cc: Same.
2216
2217 2003-10-02 Carlo Wood <carlo@alinoe.com>
2218
2219 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
2220 Decode symbols that start with _GLOBAL_[ID]_ differently: the
2221 trailing part ends with a terminating zero and is not necessarily an
2222 encoding.
2223 * src/demangle.cc (): Same.
2224 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
2225
2226 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
2227
2228 * testsuite/22_locale/locale/cons/12438.cc: Use
2229 __gnu_test::try_named_locale("").
2230
2231 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2232
2233 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
2234 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
2235 instead of drand48.
2236 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
2237 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
2238 HAVE_DRAND48.
2239 * config.h.in, configure: Regenerate.
2240 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
2241 lrand48 use.
2242
2243 2003-10-01 Nathan Myers <ncm@cantrip.org>
2244
2245 * include/bits/locale_facets.tcc (time_put::put): Avoid
2246 expensive *__s++, in favor of *__s, ++__s.
2247
2248 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
2249
2250 * include/bits/locale_facets.tcc (time_put::put): Minor
2251 tweak to the previous commit.
2252
2253 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
2254
2255 PR libstdc++/12439
2256 * include/bits/locale_facets.tcc (time_put::put): Deal
2257 with the three issues pointed out by the PR.
2258 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
2259 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
2260 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
2261 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
2262 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
2263
2264 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2265
2266 * include/bits/stl_algo.h: Minor cosmetic reformattings.
2267
2268 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2269
2270 * include/bits/stl_algo.h (search_n): Tweak, to spare the
2271 first --__n.
2272
2273 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2274
2275 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
2276 qualify exception name.
2277
2278 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2279
2280 PR libstdc++/12438
2281 * include/bits/locale_facets.tcc (locale::combine): Don't
2282 leak memory if _M_replace_facet throws.
2283 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
2284
2285 * include/bits/locale_classes.h (locale::locale(const locale&,
2286 _Facet*)): Tweak, use consistently _M_remove_reference.
2287
2288 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
2289
2290 PR libstdc++/12352 (cont)
2291 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
2292 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
2293 calls fail.
2294 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
2295 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
2296 !_M_caches, !_M_names.
2297
2298 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2299
2300 * configure.host: Handle Solaris 2.5 micro releases explicitly.
2301 Remove wildcards from Solaris 2.6, 7-9: there were no
2302 micro releases.
2303 Treat Solaris 10 and up like 7-9.
2304
2305 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
2306
2307 * include/bits/stl_algo.h (search_n): Improve the previous
2308 fix as suggested by Martin.
2309
2310 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
2311
2312 PR libstdc++/12296
2313 * include/bits/istream.tcc (peek): Set eofbit if sgetc
2314 returns eof.
2315 * testsuite/27_io/basic_istream/peek/char/12296.cc:
2316 New, from the PR.
2317
2318 2003-09-29 Nathan Myers <ncm@cantrip.org>
2319 Paolo Carlini <pcarlini@unitus.it>
2320
2321 PR libstdc++/11400
2322 * include/bits/stl_algo.h (search_n):
2323 Use iterator_traits<>::difference_type for __n.
2324 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
2325
2326 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
2327
2328 * testsuite/22_locale/locale/cons/12352.cc:
2329 Use __attribute__((unused)) for test.
2330
2331 2003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
2332
2333 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
2334 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
2335 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
2336
2337 2003-09-26 Brad Spencer <spencer@infointeractive.com>
2338
2339 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
2340 Explicitly qualify exceptions.
2341 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
2342 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2343 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2344 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2345
2346 2003-09-25 Paolo Carlini <pcarlini@unitus.it>
2347
2348 PR libstdc++/12352
2349 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
2350 size_t)): Don't leak if memory allocations for _M_facets,
2351 _M_caches, and _M_names fail.
2352 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
2353 (locale::_Impl::_M_replace_categories(const _Impl*,
2354 category)): Ditto.
2355 (locale::_Impl::_M_install_facet(const locale::id*,
2356 const facet*)): Ditto.
2357 * include/bits/locale_classes.h (locale::locale(const locale&,
2358 _Facet*)): Don't leak memory.
2359 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
2360
2361 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
2362 bool)): Qualify with std:: strcpy, tweak.
2363 * include/bits/locale_classes.h
2364 (locale::_Impl::_M_check_same_name): Qualify strcmp.
2365
2366 2003-09-25 Brad Spencer <spencer@infointeractive.com>
2367
2368 PR libstdc++/6072
2369 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
2370 wcstof, iswblank.
2371 * aclocal.m4: Regenerate.
2372 * config.h.in: Regenerate.
2373 * configure: Regenerate.
2374 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
2375 * config/io/basic_file_stdio.cc: Guard unistd.h.
2376 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
2377 * include/c_std/std_cwchar.h: Same.
2378 * include/c_std/std_cwctype.h: Same.
2379
2380 2003-09-25 Benjamin Kosnik <bkoz@redhat.com>
2381
2382 PR libstdc++/11065
2383 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
2384 * config/locale/generic/ctype_members.cc: Same.
2385 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
2386 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
2387
2388 * config/os/generic/ctype_inline.h: Update.
2389
2390 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2391
2392 * src/Makefile.am (version_dep): New variable.
2393 (libstdc___la_DEPENDENCIES): Use it to add dependency on
2394 libstdc++-symbol.ver only when using symbol versioning.
2395 * src/Makefile.in: Regenerate.
2396
2397 2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
2398
2399 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
2400 * testsuite/testsuite_hooks.h: Same.
2401 * testsuite/*/*.cc: Same.
2402
2403 2003-09-22 Petur Runolfsson <peturr02@ru.is>
2404
2405 * include/bits/istream.tcc (basic_istream::read,
2406 basic_istream::readsome, basic_istream::putback,
2407 basic_istream::unget, operator>>(basic_istream, CharT)):
2408 Avoid redundant setstate(failbit) calls when sentry::operator bool()
2409 returns false.
2410
2411 2003-09-22 Carlo Wood <carlo@alinoe.com>
2412
2413 PR libstdc++/12365
2414 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
2415 char const*, int, int)): Remove unused identifier
2416 cv_qualifier for overloaded constructor.
2417
2418 2003-09-18 Benjamin Kosnik <bkoz@redhat.com>
2419
2420 PR libstdc++/11504
2421 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
2422 WARN_FLAGS, remove -Wno-format.
2423 * aclocal.m4: Regenerate.
2424 * configure: Regenerate.
2425
2426 2003-09-18 Petur Runolfsson <peturr02@ru.is>
2427
2428 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
2429 * config/io/basic_file_stdio.h: Same.
2430 * include/std/std_fstream.h (__ctype_type): Delete.
2431 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
2432
2433 2003-09-17 Benjamin Kosnik <bkoz@redhat.com>
2434
2435 PR libstdc++/12239
2436 * configure.host (abi_baseline_pair): Error out on solaris2
2437 configurations without a minor version number.
2438
2439 2003-09-13 Phil Edwards <phil@codesourcery.com>
2440
2441 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
2442 if man pages are on.
2443 * docs/doxygen/user.cfg.in: And here.
2444
2445 2003-09-10 Daniel Jacobowitz <drow@mvista.com>
2446 Andreas Jaeger <aj@suse.de>
2447
2448 PR libstdc++/12189
2449 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
2450 abi_check if cross compiling.
2451 * aclocal.m4: Regenerated.
2452 * configure: Regenerated.
2453
2454 2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
2455
2456 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
2457 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
2458 (__cxa_vec_new3): Likewise.
2459
2460 2003-09-10 Petur Runolfsson <peturr02@ru.is>
2461
2462 * include/bits/fstream.tcc (basic_filebuf::seekoff):
2463 Use codecvt::length to handle variable-width stateless encodings
2464 correctly.
2465 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
2466 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
2467
2468 2003-09-10 Alan Modra <amodra@bigpond.net.au>
2469
2470 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
2471 rather than or'ing.
2472
2473 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2474
2475 * configure: Regenerate.
2476
2477 2003-09-09 David Edelsohn <edelsohn@gnu.org>
2478
2479 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
2480 qualifier from _S_synced_with_stdio.
2481
2482 2003-09-09 Bernardo Innocenti <bernie@develer.com>
2483
2484 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
2485
2486 2003-09-04 Petur Runolfsson <peturr02@ru.is>
2487
2488 PR libstdc++/9028
2489 * include/bits/fstream.tcc
2490 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
2491 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
2492 _M_ext_buf_size, _M_ext_next and _M_ext_end.
2493 (basic_filebuf::underflow): Handle variable-width stateless
2494 encodings (codecvt::encoding() == 0), including UTF-8.
2495 * include/std/std_fstream.h (basic_filebuf):
2496 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
2497 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
2498 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
2499 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
2500 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
2501 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
2502 * testsuite/27_io/objects/wchar_t/12.cc: New test.
2503 * testsuite/27_io/objects/wchar_t/13.cc: New test.
2504
2505 2003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
2506
2507 * docs/html/faq/index.html: Note that a namespace alias can't be
2508 used when specialising templates in extension namespace.
2509 * docs/html/faq/index.txt: Regenerate.
2510
2511 2003-09-03 Petur Runolfsson <peturr02@ru.is>
2512
2513 PR libstdc++/12048
2514 * include/ext/stdio_sync_filebuf.h
2515 (stdio_sync_filebuf::_M_unget_buf): Declare it.
2516 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
2517 (stdio_sync_filebuf::uflow): Store the returned character in
2518 _M_unget_buf.
2519 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
2520 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
2521 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
2522 _M_unget_buf, if any, else eof().
2523 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
2524 _M_unget_buf, if any, else eof().
2525 * testsuite/27_io/objects/char/12048.cc: Rename to...
2526 * testsuite/27_io/objects/char/12048-1.cc: ...this.
2527 * testsuite/27_io/objects/char/12048-2.cc: New test.
2528 * testsuite/27_io/objects/char/12048-3.cc: New test.
2529 * testsuite/27_io/objects/char/12048-4.cc: New test.
2530 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
2531 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
2532 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
2533 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
2534 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
2535 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
2536 * testsuite/ext/stdio_sync_filebuf_char.cc
2537 (test02, test03, test04, test05): New tests.
2538 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
2539 (test02, test03, test04, test05): New tests.
2540
2541 2003-09-03 Petur Runolfsson <peturr02@ru.is>
2542
2543 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
2544 stringbuf or strstreambuf. Fix typos.
2545
2546 2003-09-02 Phil Edwards <phil@codesourcery.com>
2547
2548 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
2549 appropriately.
2550 * config.h.in: Add _GLIBCXX_HOSTED.
2551 * libsupc++/eh_term_handler.cc: Test it here; initialize
2552 __terminate_handler to std::abort if freestanding.
2553 * aclocal.m4, configure: Regenerated.
2554 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
2555
2556 2003-08-29 Nathan Myers <ncm@cantrip.org>
2557
2558 PR libstdc++/11990
2559 * include/bits/locale_facets.tcc (__pad): delete dead code.
2560
2561 2003-08-28 Alan Modra <amodra@bigpond.net.au>
2562
2563 * configure.ac: Test $with_cross_host against $build_alias, not $build.
2564 * configure: Regenerate.
2565
2566 2003-08-27 Petur Runolfsson <peturr02@ru.is>
2567
2568 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
2569 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
2570
2571 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
2572
2573 * Makefile.am: Remove trailing whitespace. Remove needless
2574 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
2575 * include/Makefile.am: Likewise.
2576 * libmath/Makefile.am: Likewise.
2577 * libsupc++/Makefile.am: Likewise.
2578 * po/Makefile.am: Likewise.
2579 * src/Makefile.am: Likewise.
2580 * testsuite/Makefile.am: Likewise.
2581
2582 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
2583 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2584 testsuite/Makefile.in: Regenerated.
2585
2586 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
2587
2588 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
2589 includedir.
2590 * aclocal.m4, configure: Regenerate.
2591
2592 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
2593
2594 * acinclude.m4: Include no-executables.m4.
2595 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
2596 * aclocal.m4: Regenerated.
2597 * configure: Regenerated.
2598
2599 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
2600
2601 * acinclude.m4: Don't call AC_ISC_POSIX.
2602 * aclocal.m4: Regenerated.
2603 * configure: Regenerated.
2604
2605 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
2606
2607 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
2608 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
2609 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
2610 used elsewhere in this file.
2611 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
2612 * configure.ac: ...called here to expand all conditionals.
2613 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
2614 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
2615 (install-freestanding-headers): New target, a subset of
2616 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
2617
2618 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2619 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2620 src/Makefile.in, testsuite/Makefile.in: Regenerated.
2621
2622 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
2623
2624 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
2625 pathnames from generated tag file.
2626
2627 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
2628
2629 * Makefile.am: Add comment.
2630 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
2631 SUBDIRS variables.
2632 * configure.ac: Use them both here, instead of hardcoded lists.
2633
2634 * fragment.am: Add STAMP varaible.
2635 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
2636 instead of @LN_S@.
2637 (stamp-*): Move file creation rule outside of 'if' branches to
2638 ensure the stamp-* files are actually updated. Use $(STAMP).
2639 * src/Makefile.am: Remove now-nonexistant variable.
2640 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
2641 for -prefer-pic.
2642 * po/Makefile.am: Include same fragment as all the others.
2643
2644 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2645 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
2646
2647 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
2648
2649 * testsuite/data/cin_unget-1.txt: New.
2650 * testsuite/27_io/objects/char/12048.cc: New.
2651
2652 2003-08-25 Zack Weinberg <zack@codesourcery.com>
2653
2654 * config/os/hpux/os_defines.h: Unconditionally define
2655 _GLIBCXX_GTHREAD_USE_WEAK to 0.
2656
2657 2003-08-19 Geoffrey Keating <geoffk@apple.com>
2658
2659 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
2660 crosses to Darwin targets.
2661 * configure: Regenerate.
2662
2663 2003-08-19 Petur Runolfsson <peturr02@ru.is>
2664
2665 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
2666
2667 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
2668
2669 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
2670 in the patch from 3 minutes ago. Boy, is my face red.
2671 * configure: At least I remembered to regenerate this.
2672
2673 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
2674
2675 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
2676 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
2677 things from the top level.
2678 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
2679 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
2680 (currently unused). Strip the fake-VPATH shell fragment from
2681 automake-generated rules, if present.
2682 * linkage.m4: Add comment.
2683
2684 * fragment.am: New file, containing factored-out common settings.
2685 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
2686 * Makefile.am: Include fragment.am. Remove common variables.
2687 * include/Makefile.am: Likewise.
2688 * libmath/Makefile.am: Likewise.
2689 * libsupc++/Makefile.am: Likewise.
2690 * po/Makefile.am: Likewise. Print rules during check.
2691 * src/Makefile.am: Likewise.
2692 * testsuite/Makefile.am: Likewise.
2693
2694 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2695 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2696 src/Makefile.in, testsuite/Makefile.in: Regenerate.
2697
2698 2003-08-11 John Levon <levon@movementarian.org>
2699
2700 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
2701 remaining places for the name change from GLIBCPP_FORCE_NEW
2702 to GLIBCXX_FORCE_NEW
2703
2704 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
2705
2706 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
2707 typedefs to num_*.
2708 * include/bits/basic_ios.tcc: Same.
2709 * include/bits/istream.tcc: Same.
2710 * include/bits/locale_facets.h: Same.
2711 * include/bits/ostream.tcc: Same.
2712 * include/std/std_istream.h: Same.
2713 * include/std/std_ostream.h: Same.
2714 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
2715
2716 * include/ext/rope: Remove build warning.
2717
2718 2003-08-11 Andreas Jaeger <aj@suse.de>
2719
2720 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
2721 to make SMP-safe.
2722 * include/Makefile.in: Regenerated.
2723
2724 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
2725
2726 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
2727 when calling AC_PROG_CC.
2728 * aclocal.m4, configure: Regenerate.
2729
2730 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
2731
2732 * acinclude.m4: Properly quote variable which will be expanded
2733 inside makefiles. Use CXX instead of CC to extract compiler info.
2734 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
2735 correct form in PACKAGE.
2736 * aclocal.m4, configure: Regenerate.
2737
2738 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
2739
2740 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
2741 (check-abi-verbose): Same.
2742 * testsuite/testsuite_performance.h (report_performance): Same.
2743
2744 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
2745
2746 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2747
2748 2003-08-07 Doug Gregor <dgregor@apple.com>
2749
2750 * include/bits/char_traits.h (char_traits::not_eof): Match operand
2751 types in ? :.
2752
2753 2003-08-07 Bernardo Innocenti <bernie@develer.com>
2754
2755 PR libstdc++/11784
2756 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
2757 Replace variants with new BSET-based version.
2758
2759 2003-08-07 Carlo Wood <carlo@alinoe.com>
2760
2761 * include/bits/demangle.h: Do not use cctype functions that depend
2762 on locale.
2763
2764 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
2765
2766 * configure.in: Rename...
2767 * configure.ac: ...to this.
2768 * docs/html/17_intro/porting.texi: Update name.
2769
2770 * docs/html/17_intro/porting.html: Regenerate.
2771 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2772 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2773 testsuite/Makefile.in: Regenerate (picks up new dependancy).
2774
2775 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
2776
2777 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
2778 pipe, open the window to let out the fumes, redo the option-handling
2779 logic to properly execute the detection test.
2780 * aclocal.m4, configure: Regenerate.
2781
2782 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2783
2784 Convert to new autotools.
2785 * acconfig.h: Update with correct names.
2786 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
2787 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
2788 * configure.in: Update. Split hardcoded cross-configury settings
2789 out to...
2790 * crossconfig.m4: ...here. New file. Contents untouched.
2791 * acinclude.m4: Reorganize and rewrite as needed. Split large
2792 chunks out to...
2793 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
2794 Contents untouched.
2795 * scripts/testsuite_flags.in: Update.
2796
2797 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
2798 variables (already generated by automake).
2799 * include/Makefile.am: Ditto.
2800 * libmath/Makefile.am: Ditto.
2801 * libsupc++/Makefile.am: Ditto.
2802 * po/Makefile.am: Ditto.
2803 * src/Makefile.am: Ditto.
2804
2805 * aclocal.m4: Regenerate using new versions.
2806 * config.h.in: Ditto.
2807 * configure: Ditto.
2808 * Makefile.in: Ditto.
2809 * include/Makefile.in: Ditto.
2810 * libmath/Makefile.in: Ditto.
2811 * libsupc++/Makefile.in: Ditto.
2812 * po/Makefile.in: Ditto.
2813 * src/Makefile.in: Ditto.
2814 * testsuite/Makefile.in: Ditto.
2815
2816 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2817
2818 * po/libstdc++.pot: Re-extract/regenerate.
2819
2820 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2821
2822 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
2823 Remove unneeded variable assignments. Leave them for automake.
2824 * testsuite/lib/libstdc++-v3.exp: Rename...
2825 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
2826 accordingly.
2827 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
2828 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
2829 names accordingly.
2830
2831 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2832
2833 * docs/doxygen/guide.html: run_doxygen uses bash.
2834 * docs/doxygen/mainpage.html: We'll be shipping tag files.
2835 * docs/doxygen/run_doxygen: Tweaks and improvements.
2836 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
2837 * docs/html/install.html: Update autoconf/automake requirements.
2838 * docs/html/test.html: Add section describing DejaGNU support.
2839 * docs/html/17_intro/confdeps.dot: New file, generates...
2840 * docs/html/17_intro/confdeps.png: ...this new file.
2841 * docs/html/Makefile: Generated here.
2842 * docs/html/17_intro/configury.html: New file.
2843
2844 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
2845
2846 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
2847 * testsuite/lib/libstdc++-v3.exp: ...to this.
2848 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
2849
2850 2003-07-31 Doug Gregor <dgregor@apple.com>
2851
2852 Add user specialization tests.
2853 * testsuite/23_containers/deque/1.cc: New.
2854 * testsuite/23_containers/list/1.cc: New.
2855 * testsuite/23_containers/map/1.cc: New.
2856 * testsuite/23_containers/multimap/1.cc: New.
2857 * testsuite/23_containers/multiset/1.cc: New.
2858 * testsuite/23_containers/set/1.cc: New.
2859 * testsuite/23_containers/vector/1.cc: New.
2860
2861 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
2862
2863 Reshuffle 23_containers testsuite.
2864 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
2865 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
2866 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
2867 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
2868 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
2869 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
2870 vector_resize.cc: Split into...
2871 * 23_containers/bitset/cons/1.cc: New.
2872 * 23_containers/bitset/cons/6282.cc: New.
2873 * 23_containers/bitset/count/6124.cc: New.
2874 * 23_containers/bitset/operations/1.cc: New.
2875 * 23_containers/bitset/operations/2.cc: New.
2876 * 23_containers/bitset/test/1.cc: New.
2877 * 23_containers/bitset/to_ulong/1.cc: New.
2878 * 23_containers/deque/cons/1.cc: New.
2879 * 23_containers/deque/cons/2.cc: New.
2880 * 23_containers/deque/operators/1.cc: New.
2881 * 23_containers/list/capacity/1.cc: New.
2882 * 23_containers/list/cons/1.cc: New.
2883 * 23_containers/list/cons/2.cc: New.
2884 * 23_containers/list/cons/3.cc: New.
2885 * 23_containers/list/cons/4.cc: New.
2886 * 23_containers/list/cons/5.cc: New.
2887 * 23_containers/list/cons/6.cc: New.
2888 * 23_containers/list/cons/7.cc: New.
2889 * 23_containers/list/cons/8.cc: New.
2890 * 23_containers/list/cons/9.cc: New.
2891 * 23_containers/list/modifiers/1.cc: New.
2892 * 23_containers/list/modifiers/2.cc: New.
2893 * 23_containers/list/modifiers/3.cc: New.
2894 * 23_containers/list/operators/1.cc: New.
2895 * 23_containers/list/operators/2.cc: New.
2896 * 23_containers/list/operators/3.cc: New.
2897 * 23_containers/list/operators/4.cc: New.
2898 * 23_containers/map/insert/1.cc: New.
2899 * 23_containers/map/operators/1.cc: New.
2900 * 23_containers/map/operators/1_neg.cc: New.
2901 * 23_containers/multiset/insert/1.cc: New.
2902 * 23_containers/priority_queue/members/7161.cc: New.
2903 * 23_containers/queue/members/7157.cc: New.
2904 * 23_containers/set/operators/1_neg.cc: New.
2905 * 23_containers/stack/members/7158.cc: New.
2906 * 23_containers/vector/bool/1.cc: New.
2907 * 23_containers/vector/bool/6886.cc: New.
2908 * 23_containers/vector/capacity/1.cc: New.
2909 * 23_containers/vector/capacity/2.cc: New.
2910 * 23_containers/vector/capacity/8230.cc: New.
2911 * 23_containers/vector/cons/1.cc: New.
2912 * 23_containers/vector/cons/2.cc: New.
2913 * 23_containers/vector/cons/3.cc: New.
2914 * 23_containers/vector/cons/4.cc: New.
2915 * 23_containers/vector/cons/6513.cc: New.
2916 * 23_containers/vector/element_access/1.cc: New.
2917 * 23_containers/vector/modifiers/1.cc: New.
2918 * 23_containers/vector/modifiers/2.cc: New.
2919 * 23_containers/vector/resize/1.cc: New.
2920
2921 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2922
2923 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
2924 dg-options.
2925 * testsuite/thread/pthread2.cc: Likewise.
2926 * testsuite/thread/pthread3.cc: Likewise.
2927 * testsuite/thread/pthread4.cc: Likewise.
2928 * testsuite/thread/pthread5.cc: Likewise.
2929 * testsuite/thread/pthread6.cc: Likewise.
2930 * testsuite/thread/pthread7-rope.cc: Likewise.
2931
2932 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
2933
2934 * include/bits/c++config: Partial reversion (comment placement) of
2935 previous patch.
2936
2937 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
2938
2939 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
2940 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
2941 (_GLIBCXX_AT_AT): Remove.
2942 (__USE_MALLOC): Remove.
2943 * include/std/std_fstream.h: Modify.
2944 * include/bits/basic_ios.h: Same.
2945 * include/bits/valarray_array.h: Same.
2946 * include/c_std/std_cmath.h: Same.
2947 * include/c_std/cmath.tcc: Same.
2948 * include/std/std_vector.h: Same.
2949 * include/std/std_string.h: Same.
2950 * include/std/std_stack.h: Same.
2951 * include/std/std_queue.h: Same.
2952 * include/std/std_list.h: Same.
2953 * include/std/std_deque.h: Same.
2954 * include/std/std_streambuf.h: Same.
2955 * include/std/std_sstream.h: Same.
2956 * include/std/std_ostream.h: Same.
2957 * include/std/std_istream.h: Same.
2958 * include/bits/valarray_array.tcc: Same, format.
2959
2960 * include/c/std_cctype.h: Fix include guards.
2961 * include/c/std_cerrno.h: Same.
2962 * include/c/std_cfloat.h: Same.
2963 * include/c/std_climits.h: Same.
2964 * include/c/std_clocale.h: Same.
2965 * include/c/std_cmath.h: Same.
2966 * include/c/std_csetjmp.h: Same.
2967 * include/c/std_csignal.h: Same.
2968 * include/c/std_cstdarg.h: Same.
2969 * include/c/std_cstddef.h: Same.
2970 * include/c/std_cstdio.h: Same.
2971 * include/c/std_cstdlib.h: Same.
2972 * include/c/std_cstring.h: Same.
2973 * include/c/std_ctime.h: Same.
2974 * include/c/std_cwchar.h: Same.
2975 * include/c/std_cwctype.h: Same.
2976 * include/c_std/cmath.tcc: Same.
2977 * include/c_std/std_cmath.h: Same.
2978
2979 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
2980
2981 PR libstdc++/11504.
2982 * include/bits/stl_tree.h: Replace C-style casts with C++-style
2983 casts. Changes to avoid casting away constness. Eliminate
2984 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
2985 initialization lists. Move out implementation of __black_count()
2986 to...
2987 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
2988 Rename_Rb_tree_base_iterator::_M_increment() to
2989 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
2990 _Rb_tree_decrement.
2991 * config/linker-map.gnu: Add and change symbols here.
2992
2993 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
2994
2995 * docs/html/22_locale/howto.html: Use locale::classic() instead
2996 of locale("C").
2997
2998 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
2999
3000 * testsuite/testsuite_hooks.h: Remove list include.
3001 (func_callback): Define as unique type, not std::list.
3002 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
3003 * testsuite/libstdc++-v3.dg/dg.exp: Same.
3004 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
3005 * testsuite/23_containers/bitset_ctor.cc:
3006 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
3007 * testsuite/18_support/numeric_limits.cc: Same.
3008 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
3009 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
3010 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
3011 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
3012 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
3013 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
3014 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
3015 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
3016 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
3017 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
3018 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
3019 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
3020 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
3021 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
3022 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
3023 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
3024 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
3025 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
3026 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
3027 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
3028 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
3029 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
3030 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
3031 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
3032 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
3033 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
3034 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
3035 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
3036 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
3037 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
3038 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
3039 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
3040 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
3041 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
3042 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
3043 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
3044 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
3045 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
3046 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
3047 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
3048 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
3049 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
3050 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
3051 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
3052 * testsuite/23_containers/bitset_ctor.cc: Same.
3053 * testsuite/23_containers/bitset_shift.cc: Same.
3054 * testsuite/23_containers/vector_ctor.cc: Same.
3055 * testsuite/23_containers/vector_element_access.cc: Same.
3056 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
3057 * testsuite/24_iterators/iterator.cc: Same.
3058 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
3059 * testsuite/25_algorithms/lower_bound.cc: Same.
3060 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
3061 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
3062 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
3063 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
3064 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
3065 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
3066 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
3067 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
3068 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
3069 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
3070 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3071 Same.
3072
3073 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
3074
3075 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
3076 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
3077 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
3078 GLIBCPP to GLIBCXX (and explain as needed).
3079
3080 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
3081
3082 * README: Update.
3083
3084 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
3085
3086 * testsuite/22_locale/messages/members/char/1.cc,
3087 testsuite/22_locale/messages/members/char/2.cc,
3088 testsuite/22_locale/messages/members/char/3.cc,
3089 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
3090 the origin of LOCALEDIR.
3091 * testsuite/lib/libstdc++-v3.exp: New file.
3092
3093 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
3094
3095 * include/bits/char_traits.h: Update copyright, tweak.
3096 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
3097 std types.
3098
3099 2003-07-24 Matt Austern <austern@apple.com>
3100
3101 * /include/bits/char_traits.h (class char_traits): Put all the
3102 real work into the new class template __gnu_cxx::char_traits.
3103 Gave generic definitions for member functions. Types are taken
3104 from the new class template __gnu_cxx::_Char_types.
3105 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
3106 file. Test of std::char_traits<short>, which serves as a test of
3107 the char_traits primary template.
3108
3109 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
3110
3111 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
3112
3113 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
3114
3115 * testsuite/23_containers/map_operators.cc: Conform to
3116 container requirement as value must be Assignable.
3117
3118 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
3119
3120 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
3121 tests not only generation of pch files, but also their use.
3122 * aclocal.m4, configure: Rebuilt.
3123
3124 2003-07-23 Steve Ellcey <sje@cup.hp.com>
3125
3126 * config/cpu/hppa/atomicity.h: Change
3127 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
3128 to match misc-inst.cc
3129
3130 2003-07-23 Steve Ellcey <sje@cup.hp.com>
3131
3132 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
3133 * include/c_std/std_cctype.h: Ditto.
3134 * include/c_std/std_cerrno.h: Ditto.
3135 * include/c_std/std_cfloat.h: Ditto.
3136 * include/c_std/std_climits.h: Ditto.
3137 * include/c_std/std_clocale.h: Ditto.
3138 * include/c_std/std_cmath.h: Ditto.
3139 * include/c_std/std_csetjmp.h: Ditto.
3140 * include/c_std/std_csignal.h: Ditto.
3141 * include/c_std/std_cstdarg.h: Ditto.
3142 * include/c_std/std_cstddef.h: Ditto.
3143 * include/c_std/std_cstdio.h: Ditto.
3144 * include/c_std/std_cstdlib.h: Ditto.
3145 * include/c_std/std_cstring.h: Ditto.
3146 * include/c_std/std_ctime.h: Ditto.
3147 * include/c_std/std_cwchar.h: Ditto.
3148 * include/c_std/std_cwctype.h: Ditto.
3149 * include/std/std_algorithm.h: Ditto.
3150 * include/std/std_bitset.h: Ditto.
3151 * include/std/std_complex.h: Ditto.
3152 * include/std/std_deque.h: Ditto.
3153 * include/std/std_fstream.h: Ditto.
3154 * include/std/std_functional.h: Ditto.
3155 * include/std/std_iomanip.h: Ditto.
3156 * include/std/std_ios.h: Ditto.
3157 * include/std/std_iosfwd.h: Ditto.
3158 * include/std/std_iostream.h: Ditto.
3159 * include/std/std_istream.h: Ditto.
3160 * include/std/std_iterator.h: Ditto.
3161 * include/std/std_limits.h: Ditto.
3162 * include/std/std_list.h: Ditto.
3163 * include/std/std_locale.h: Ditto.
3164 * include/std/std_map.h: Ditto.
3165 * include/std/std_memory.h: Ditto.
3166 * include/std/std_numeric.h: Ditto.
3167 * include/std/std_ostream.h: Ditto.
3168 * include/std/std_queue.h: Ditto.
3169 * include/std/std_set.h: Ditto.
3170 * include/std/std_sstream.h: Ditto.
3171 * include/std/std_stack.h: Ditto.
3172 * include/std/std_stdexcept.h: Ditto.
3173 * include/std/std_streambuf.h: Ditto.
3174 * include/std/std_string.h: Ditto.
3175 * include/std/std_utility.h: Ditto.
3176 * include/std/std_valarray.h: Ditto.
3177 * include/std/std_vector.h: Ditto.
3178
3179 2003-07-22 Doug Gregor <dgregor@apple.com>
3180
3181 * include/bits/basic_string.h (basic_string::insert): Deprecate
3182 GNU extension.
3183
3184 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
3185
3186 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
3187 paths for libio.
3188 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
3189 (test03): Include typeinfo for bad_cast.
3190 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
3191 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3192 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
3193
3194 2003-07-21 Doug Gregor <dgregor@apple.com>
3195
3196 * include/bits/boost_concept_check.h:
3197 (_EqualityComparableConcept::__constraints): Remove != from the
3198 list of constraints; it is not listed in Table 28 of the C++98
3199 standard.
3200
3201 2003-07-18 Andreas Jaeger <aj@suse.de>
3202
3203 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
3204 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
3205 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
3206 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
3207
3208 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
3209
3210 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
3211 * config/locale/generic/messages_members.h: Tweaks.
3212 * config/locale/generic/monetary_members.cc
3213 (moneypunct::_M_initialize_moneypunct): Use cache.
3214 (moneypunct::~moneypunct): Delete cache.
3215 * config/locale/generic/time_members.cc:
3216 (__timepunct::_M_initialize_timepunct): Use cache.
3217 * config/locale/generic/time_members.h:
3218 (__timepunct::~__timepunct): Delete cache.
3219 (__timepunct::__timepunct): Set cache.
3220 * config/locale/gnu/messages_members.h: Tweaks.
3221 * config/locale/gnu/monetary_members.cc:
3222 (moneypunct::_M_initialize_moneypunct): Use cache.
3223 (moneypunct::~moneypunct): Delete cache.
3224 * config/locale/gnu/time_members.cc:
3225 (__timepunct::_M_initialize_timepunct): Use cache.
3226 * config/locale/gnu/time_members.h:
3227 (__timepunct::~__timepunct): Delete cache.
3228 (__timepunct::__timepunct): Set cache.
3229 * include/bits/locale_facets.h (__timepunct_cache): New.
3230 (__moneypunct_cache): New.
3231 * include/bits/locale_facets.tcc: Tweak.
3232 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
3233 * src/locale-inst.cc: Instantiate caches.
3234 * src/globals.cc: Add "C" caches.
3235 * src/localename.cc: Use external "C" caches.
3236
3237 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
3238
3239 * docs/doxygen/guide.html: Fix typo.
3240
3241 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
3242
3243 * include/ext/pod_char_traits.h: Add state template argument.
3244
3245 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
3246
3247 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
3248 (num_get::_M_convert_int): To _M_insert_int.
3249 (num_get::_M_convert_float): To _M_insert_float.
3250 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
3251 Use caches for ctype, num_get.
3252 (num_get::_M_extract_int): Same.
3253 (num_get::get(bool)): Same.
3254 (__verify_grouping): Use size_t.
3255 * src/locale-inst.cc: Update.
3256 * src/locale.cc: Adjust _S_atoms_in.
3257
3258 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
3259
3260 * docs/doxygen/mainpage.html: Move building/writing instructions...
3261 * docs/doxygen/guide.html: ...to here. New file.
3262
3263 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
3264
3265 * docs/html/ext/howto.html: Update URL for SGI STL docs.
3266 * docs/html/faq/index.html: Same.
3267 * docs/html/faq/index.txt: Regenerate.
3268
3269 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
3270
3271 PR libstdc++/11528
3272 * include/bits/locale_facets.tcc (money_get::do_get):
3273 Strip only _leading_ zeros.
3274 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
3275 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
3276
3277 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3278
3279 * include/ext/hash_map (class hash_multimap): Remove extra
3280 semicolons from __glibcxx_class_requires3 entries.
3281 * include/ext/hash_set (class hash_set): Ditto.
3282 (class hash_multiset): Ditto.
3283
3284 2003-07-15 Petur Runolfsson <peturr02@ru.is>
3285
3286 * include/bits/char_traits.h (char_traits<wchar_t>::move):
3287 Change last parameter from int_type to size_t.
3288
3289 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
3290
3291 * include/bits/stl_algo.h (includes, set_union, set_intersection,
3292 set_difference, set_symmetric_difference, max_element, min_element,
3293 next_permutation, prev_permutation, find_first_of, find_end):
3294 Document.
3295 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
3296 restrictions in docs.
3297 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
3298 Document.
3299 * docs/doxygen/doxygroups.cc (setoperations): New group.
3300
3301 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
3302
3303 * include/bits/basic_string.h: Document public functions.
3304 * docs/doxygen/TODO: Update c21 todo.
3305
3306 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
3307
3308 * include/bits/stl_list.h: Document more functions.
3309 * docs/doxygen/TODO: Update c23 todo.
3310
3311 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
3312
3313 * config/locale/gnu/c_locale.h (__convert_from_v): One more
3314 qualification.
3315
3316 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
3317
3318 * include/bits/stl_tempbuf.h: Qualify free with std::.
3319 * src/locale.cc: Include <cstdlib>, qualify getenv.
3320
3321 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
3322
3323 * config/locale/gnu/c_locale.h (__convert_from_v): Include
3324 <cstdio>. Qualify names.
3325 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
3326
3327 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
3328 Nathan C. Myers <ncm-nospam@cantrip.org>
3329
3330 PR libstdc++/11378
3331 * include/std/std_fstream.h (xsputn): Declare only.
3332 * include/bits/fstream.tcc (xsputn): Define, optimize for the
3333 always_noconv() case: when __n is sufficiently large flush
3334 the buffer and issue a direct write, if possible combining the
3335 two with writev in __basic_file<>::xsputn_2.
3336 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
3337 New, declare.
3338 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
3339 Define.
3340 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
3341 the availability of writev in <sys/uio.h>.
3342 * configure.in: Call here.
3343 * acconfig.h: Add undef for the corresponding symbol.
3344 * aclocal.m4: Regenerate.
3345 * configure: Regenerate.
3346 * config.h.in: Regenerate.
3347 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
3348
3349 * include/std/std_fstream.h (sync): Constify a variable.
3350
3351 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
3352
3353 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
3354 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3355
3356 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
3357
3358 * config/locale/gnu/c_locale.h (__convert_from_v): Include
3359 <cstring> and <cstdlib>. Qualify names.
3360
3361 2003-07-13 Mark Mitchell <mark@codesourcery.com>
3362
3363 * config/locale/generic/c_locale.h: Include <cstdlib> and
3364 <cstring>.
3365 * include/bits/boost_concept_check.h: Add this-> to unqualified
3366 method calls.
3367 * include/bits/deque.tcc: Likewise.
3368 * include/bits/locale_facets.h : Likewise.
3369 * include/bits/ostream.tcc: Likewise.
3370 * include/bits/stl_algo.h: Likewise.
3371 * include/bits/stl_bvector.h: Likewise.
3372 * include/bits/stl_deque.h: Likewise.
3373 * include/bits/stl_list.h: Likewise.
3374 * include/bits/stl_tree.h: Likewise.
3375 * include/bits/stl_vector.h: Likewise.
3376 * include/bits/vector.tcc: Likewise.
3377 * include/ext/rope: Likewise.
3378 * include/ext/ropeimpl.h: Likewise.
3379 * include/ext/stdio_filebuf.h: Likewise.
3380
3381 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
3382
3383 * include/bits/basic_ios.h (copyfmt): Document.
3384 * include/bits/ios_base.h (event, event_callback, register_callback,
3385 xalloc, iword, pword): Document.
3386 (imbue, ~ios_base): Update docs on callbacks.
3387
3388 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
3389
3390 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
3391 warning messages if the environment cannot support symbol versioning.
3392 (port_specific_symbol_file): It's plural, add an 's' on the end.
3393 * configure.host: Likewise.
3394 * src/Makefile.am: Likewise.
3395 * config/linker-map.gnu: Remove one semicolon, heh.
3396 * scripts/extract_symvers: Don't assume useful 'export' syntax.
3397 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
3398 * aclocal.m4, configure, src/Makefile.in: Regenerated.
3399
3400 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
3401
3402 * include/bits/locale_facets.tcc: Use function object for
3403 __use_cache instead of template function. Partially specialize for
3404 __numpunct<_CharT>.
3405 * include/bits/locale_classes.h: Update friend declaration for
3406 __use_cache.
3407 (_M_install_cache): No throw exception specs.
3408 * src/locale.cc: Remove __use_cache specializations.
3409 * include/ext/pod_char_traits.h (length): Tweak.
3410 * include/bits/locale_facets.h (__numpunct_cache): Remove
3411 char_type typedef.
3412 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
3413 (pod_long): Remove.
3414 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
3415 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
3416 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
3417 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
3418 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
3419 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
3420
3421 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
3422
3423 * src/ios.cc (_M_grow_words): Fix spelling.
3424
3425 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
3426
3427 * include/bits/stl_tree.h: Move larger member functions in
3428 _Rb_tree_base_iterator and _Rb_tree_node to...
3429 * src/stl_tree.cc: Here.
3430 * src/Makefile.in: Add stl_tree.cc.
3431 * src/Makefile.in: Regenerated.
3432 * config/linker-map.gnu: Add symbols here.
3433
3434 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
3435
3436 * testsuite/ext/pod_char_traits.cc: New.
3437 * include/ext/pod_char_traits.h: New.
3438 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
3439 * include/Makefile.in: Regenerate.
3440 * docs/html/21_strings/howto.html: Update.
3441
3442 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
3443
3444 * testsuite/performance/list_create_fill_sort.cc: New.
3445
3446 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
3447
3448 * config/locale/generic/numeric_members.cc: Correct type info.
3449 * config/locale/gnu/numeric_members.cc: Same.
3450 * include/bits/locale_facets.h: Same.
3451
3452 * include/bits/char_traits.h: Correct spacing.
3453
3454 * src/locale.cc: Wrap to 80 col.
3455
3456 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
3457
3458 * include/std/std_complex.h: Partially revert last
3459 changes: cmath functions must not be qualified.
3460
3461 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
3462
3463 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
3464 2.11 with globbing backport fix.
3465 * aclocal.m4, configure: Regenerated.
3466
3467 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
3468
3469 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
3470 if output is at all possible (!_M_reading), cannot be active.
3471
3472 * include/std/std_fstream.h: Tweak comments to doxygen style.
3473
3474 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
3475
3476 * include/bits/locale_classes.h: Fully qualify standard
3477 functions with std::, thus avoiding Koenig lookup.
3478 * include/bits/locale_facets.tcc: Likewise.
3479 * src/locale.cc: Likewise.
3480 * src/localename.cc: Likewise.
3481
3482 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
3483
3484 * include/bits/allocator_traits.h: Fix doxygen markup.
3485 * include/ext/mt_allocator.h: Likewise.
3486
3487 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
3488
3489 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
3490
3491 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
3492
3493 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
3494 requirement. Add port_specific_symbol_file variable.
3495 * configure.host: Add docs for port_specific_symbol_file.
3496 Clean up try_cpu block for x86.
3497 * config/linker-map.gnu: No more "last symbol can't have a
3498 semicolon" kaka. Add hook for port-specific symbols.
3499 * src/Makefile.am: Remove trailing whitespace.
3500 (libstdc++-symbol.ver): Detect the presence of port-specific
3501 symbols, and add them accordingly.
3502
3503 * docs/html/17_intro/porting.texi: Bring up to date.
3504
3505 * src/Makefile.in, aclocal.m4, configure,
3506 docs/html/17_intro/porting.html: Regenerated.
3507
3508 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
3509
3510 * scripts/create_testsuite_files: New file.
3511 * testsuite/Makefile.am (all-local, check-performance): Use it.
3512 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
3513 * testsuite/Makefile.in: Regenerated.
3514
3515 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
3516 files at the end.
3517 * testsuite/performance/fstream_seek_write.cc: Likewise.
3518 * testsuite/performance/ofstream_insert_float.cc: Likewise.
3519 * testsuite/performance/ofstream_insert_int.cc: Likewise.
3520 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
3521
3522 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
3523
3524 * include/bits/stl_list.h: Performance and memory usage
3525 improvements. In particular, the behaviour of the constructor and
3526 destructor as the list header node is no longer dynamically
3527 allocated/de-allocated.
3528 * include/bits/list.tcc: Likewise.
3529
3530 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
3531
3532 * include/std/std_complex.h: Fully qualify standard
3533 functions with std::, thus avoiding Koenig lookup.
3534 * include/std/std_memory.h: Likewise.
3535 * include/std/std_valarray.h: Likewise.
3536
3537 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
3538
3539 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
3540 variable for grandparent and use const
3541
3542 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
3543
3544 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
3545 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
3546 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
3547 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
3548 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
3549 * testsuite/27_io/objects/char/7.cc: Ditto
3550 * testsuite/27_io/objects/char/9661-1.cc: Ditto
3551
3552 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
3553
3554 * include/std/std_bitset.h: Fully qualify standard
3555 functions with std::, thus avoiding Koenig lookup.
3556
3557 * include/std/std_fstream.h: Change comment to doxygen style.
3558
3559 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
3560
3561 * include/std/std_limits.h: More CPP->CXX changes.
3562 * scripts/check_survey.in: Likewise.
3563
3564 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3565
3566 Move from CPP to CXX.
3567 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
3568 * testsuite/Makefile.am: Same.
3569 * testsuite/Makefile.in: Regenerate.
3570 * po/Makefile.am: Same.
3571 * po/Makefile.in: Regenerate.
3572 * libsupc++/Makefile.am: Same.
3573 * libsupc++/Makefile.in: Regenerate.
3574 * libmath/Makefile.am: Same.
3575 * libmath/Makefile.in: Regenerate.
3576 * include/Makefile.am: Same.
3577 * include/Makefile.in: Regenerate.
3578 * src/Makefile.am: Same.
3579 * src/Makefile.in: Regenerate.
3580 * acconfig.h: Same.
3581 * configure.host: Same.
3582 * configure.in: Same.
3583 * configure: Regenerate.
3584 * acinclude.m4: Same.
3585 * aclocal.m4: Same.
3586 * src: Change all files in this directory.
3587 * testsuite: Same.
3588 * include: Same, standardize include guards.
3589 * config: Same.
3590 * libsupc++: Same.
3591
3592 2003-07-04 Zack Weinberg <zack@codesourcery.com>
3593
3594 * testsuite/22_locale/collate/compare/wchar_t/2.cc
3595 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
3596 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
3597 * testsuite/22_locale/collate/hash/wchar_t/2.cc
3598 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
3599 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
3600 * testsuite/22_locale/collate/transform/wchar_t/2.cc
3601 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
3602 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3603 XFAIL on all targets.
3604
3605 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3606
3607 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
3608 * aclocal.m4: Regenerate.
3609 * configure: Regenerate.
3610
3611 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
3612
3613 * include/bits/locale_facets.tcc (__int_to_char): Move common case
3614 to the top.
3615
3616 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3617 Petur Runolfsson <peturr02@ru.is>
3618
3619 * config/io/basic_file_stdio.cc: Revert.
3620
3621 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3622
3623 * include/bits/deque.tcc: Fully qualify standard
3624 functions with std::, thus avoiding Koenig lookup.
3625 * include/bits/gslice_array.h: Likewise.
3626 * include/bits/indirect_array.h: Likewise.
3627 * include/bits/list.tcc: Likewise.
3628 * include/bits/mask_array.h: Likewise.
3629 * include/bits/slice_array.h: Likewise.
3630
3631 2003-07-04 Gawain Bolton <gbolton@free.fr>
3632
3633 * include/bits/stl_tree.h: Performance and memory usage
3634 improvements.
3635
3636 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3637
3638 * Makefile.am: Replace PWD with PWD_COMMAND.
3639 * Makefile.in: Regenerated.
3640 * docs/html/Makefile: Likewise.
3641
3642 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3643
3644 * include/bits/valarray_array.h: Fully qualify standard
3645 functions with std::, thus avoiding Koenig lookup.
3646 * include/bits/vector.tcc: Likewise.
3647
3648 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3649
3650 * include/Makefile.am: Update target_ to host_.
3651 * include/Makefile.in: Regenerate.
3652 * src/Makefile.am: Same.
3653 * src/Makefile.in: Regenerate.
3654
3655 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
3656
3657 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3658
3659 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
3660 --enable-libstdcxx-debug-flags.
3661 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
3662 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
3663 * aclocal.m4: Regenerate.
3664 * configure: Same.
3665 * docs/html/configopts.html: Update.
3666
3667 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3668
3669 Revert the fix for libstdc++/11378.
3670
3671 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3672
3673 PR libstdc++/11378
3674 * include/std/std_fstream.h (xsputn): In the unbuffered case,
3675 provided always_noconv(), issue directly _M_file.xsputn.
3676 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
3677
3678 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3679
3680 * include/bits/stl_list.h: Fully qualify standard
3681 functions with std::, thus avoiding Koenig lookup.
3682 * include/bits/stl_queue.h: Likewise.
3683 * include/bits/stl_raw_storage_iter.h: Likewise.
3684 * include/bits/stl_tempbuf.h: Likewise.
3685 * include/bits/stl_tree.h: Likewise.
3686 * include/bits/stl_uninitialized.h: Likewise.
3687 * include/bits/stl_vector.h: Likewise.
3688 * include/ext/rope: Change includes order.
3689
3690 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3691
3692 * configure.host (fpos_include_dir): Fix.
3693
3694 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3695
3696 * include/bits/stl_heap.h: Fully qualify standard
3697 functions with std::, thus avoiding Koenig lookup.
3698 * include/bits/stl_iterator_base_funcs.h: Likewise.
3699
3700 * include/bits/stl_algo.h: Qualify __iterator_category too.
3701 * include/bits/stl_algobase.h: Likewise.
3702 * include/bits/stl_bvector.h: Likewise.
3703
3704 * include/bits/stl_algo.h: Don't qualify the pair type.
3705
3706 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3707
3708 * include/Makefile.am (target_headers): Add fpos.h
3709 (bits_headers): Remove.
3710 * include/Makefile.in: Regenerate.
3711 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
3712 * configure: Regenerate.
3713 * configure.host: Add fpos_include_dir.
3714 * config/os/gnu-linux/fpos.h: New.
3715 * config/os/generic/fpos.h: Add.
3716 * include/bits/fpos.h: Remove.
3717
3718 * config/io/c_io_stdio.h: Remove fpos_t typedef.
3719
3720 * include/bits/fstream.tcc: Tweaks.
3721 * include/std/std_fstream.h: Same.
3722
3723 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
3724 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
3725 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
3726 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
3727 * testsuite/27_io/fpos/1.cc: New.
3728
3729 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3730 Petur Runolfsson <peturr02@ru.is>
3731
3732 * include/std/std_streambuf.h: Remove _M_pos.
3733 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
3734 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
3735 use fread/fwrite instead of read/write.
3736 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
3737 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
3738 before reading again.
3739 * testsuite/27_io/objects/char/6.cc: Tweak.
3740
3741 2003-07-03 David Edelsohn <edelsohn@gnu.org>
3742
3743 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
3744 _GLIBCPP_USE_WCHAR_T.
3745
3746 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
3747
3748 * include/bits/basic_string.tcc (_M_replace_aux): Constify
3749 __n1 and __off1.
3750
3751 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
3752
3753 * include/bits/stl_bvector.h: Fully qualify standard
3754 functions with std::, thus avoiding Koenig lookup.
3755 * include/bits/stl_construct.h: Likewise.
3756 * include/bits/stl_deque.h: Likewise.
3757
3758 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
3759
3760 * testsuite/22_locale/num_put/put/char/7.cc: Include
3761 <testsuite_hooks.h>, tweak.
3762 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
3763
3764 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
3765
3766 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
3767 check* targets, but not libs/programs).
3768 * testsuite/Makefile.in: Regenerate.
3769
3770 2003-07-01 Roger Sayle <roger@eyesopen.com>
3771
3772 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
3773 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
3774 * aclocal.m4: Regenerate.
3775 * configure: Regenerate.
3776
3777 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
3778
3779 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
3780 * aclocal.m4: Regenerated.
3781 * configure: Regenerated.
3782
3783 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
3784
3785 PR libstdc++/11389
3786 * include/bits/fstream.tcc (underflow): For encoding() == 0
3787 don't read more than __buflen chars.
3788 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
3789 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
3790 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
3791 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
3792
3793 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
3794
3795 * 22_locale/num_put/put/char/7.cc: New.
3796 * 22_locale/num_put/put/wchar_t/7.cc: New.
3797
3798 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
3799
3800 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
3801 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
3802
3803 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
3804
3805 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
3806 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
3807 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
3808 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
3809 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
3810 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
3811 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
3812 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
3813 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
3814 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
3815 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
3816 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
3817 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
3818 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
3819 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
3820 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
3821 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
3822 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
3823 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
3824 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
3825 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
3826 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
3827 * data/seekoff-1.tst: Remove.
3828 * data/seekoff-1io.tst: New.
3829 * data/seekoff-1out.tst: New.
3830 * data/seekoff-2.tst: Remove.
3831 * data/seekoff-2io.tst: New.
3832 * data/seekoff-2out.tst: New.
3833 * data/seekoff.txt
3834 * data/seekpos-1.tst: Remove.
3835 * data/seekpos-1io.tst: New.
3836 * data/seekpos-1out.tst: New.
3837 * data/seekpos-2.tst: Remove.
3838 * data/seekpos-2io.tst: New.
3839 * data/seekpos-2out.tst: New.
3840 * data/seekpos.txt: New.
3841
3842 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
3843
3844 * src/locale.cc (__use_cache<numpunct>): Move from here ...
3845 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
3846 here.
3847
3848 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3849
3850 * include/bits/stl_algobase.h: Fully qualify standard
3851 functions with std::, thus avoiding Koenig lookup.
3852
3853 2003-06-30 Doug Gregor <dgregor@apple.com>
3854
3855 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
3856 subscripting empty string.
3857
3858 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
3859
3860 * testsuite/Makefile.am (check-am): Do not override.
3861 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
3862 * testsuite/Makefile.in: Regenerate.
3863
3864 2003-06-30 Doug Gregor <dgregor@apple.com>
3865
3866 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
3867 Don't initialize an insert_iterator with a singular iterator.
3868
3869 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
3870
3871 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
3872 * aclocal.m4: Regenerate.
3873 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
3874 GLIBCPP_ENABLE_PCH, default to yes.
3875 * configure: Regenerate.
3876 * docs/html/configopts.html: Add --enable-pch.
3877
3878 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
3879
3880 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
3881 (libstdc++-v3-init): Also set LD_RUN_PATH.
3882
3883 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3884
3885 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
3886 from here to filebuf and stringbuf.
3887 (~basic_streambuf()): Don't set _M_mode.
3888 (basic_streambuf()): Don't set _M_mode.
3889 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
3890 (~basic_filebuf()): Clean up.
3891 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
3892 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
3893 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
3894 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
3895 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
3896 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
3897 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
3898
3899 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3900
3901 * include/std/std_fstream.h (_M_underflow): Remove.
3902 (uflow): Remove, inherited from streambuf.
3903 (underflow): Only declare.
3904 * include/bits/fstream.tcc (_M_underflow): Rename to
3905 underflow, to which is equivalent for __bump == false,
3906 simplify.
3907 * include/std/std_sstream.h (_M_underflow): Remove.
3908 (uflow): Remove, inherited from streambuf.
3909 (underflow): Only declare.
3910 * include/bits/sstream.tcc (_M_underflow): Rename to
3911 underflow, to which is equivalent for __bump == false,
3912 simplify.
3913
3914 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3915
3916 * include/bits/stl_algo.h: Fully qualify standard functions
3917 with std::, thus avoiding Koenig lookup.
3918
3919 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3920
3921 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
3922 Improve type correctness-wise.
3923 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
3924 Likewise.
3925 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
3926 Likewise.
3927 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
3928 Likewise.
3929
3930 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3931
3932 * include/std/std_streambuf.h (uflow): According to
3933 27.5.2.4.3,p16, don't check gptr() < egptr().
3934
3935 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
3936
3937 PR libstdc++/9875
3938 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
3939 (seekpos): Likewise.
3940 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
3941 New test.
3942 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
3943 New test.
3944
3945 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
3946
3947 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
3948 output name to libstdc++-v3-performance.sum.
3949 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
3950 * testsuite/Makefile.in: Regenerate.
3951
3952 2003-06-27 Matthias Klose <doko@debian.org>
3953
3954 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
3955 output of abi-check in libstdc++-v3-abi.sum.
3956 * testsuite/Makefile.in: Regenerate.
3957
3958 2003-06-27 Krister Walfridsson <cato@df.lth.se>
3959
3960 * config/os/bsd/netbsd/ctype_noninline.h
3961 (_C_ctype_): Declare.
3962 (ctype<char>::classic_table): Return _C_ctype_ + 1.
3963 (ctype<char>::ctype): Use classic_table.
3964
3965 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
3966 Nathan C. Myers <ncm-nospam@cantrip.org>
3967
3968 PR libstdc++/9178
3969 * include/bits/fstream.tcc (_M_underflow): Properly estimate
3970 the worst-case number of external bytes for a given get area.
3971 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
3972
3973 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
3974 Petur Runolfsson <peturr02@ru.is>
3975
3976 PR libstdc++/11305
3977 * include/bits/fstream.tcc (overflow): Properly estimate the
3978 worst-case number of external bytes for a given put area
3979 (by using codecvt::max_length()).
3980 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
3981 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
3982 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
3983 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
3984
3985 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
3986
3987 * config/linker-map.gnu: Remove ; after __numpunct_cache.
3988
3989 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3990
3991 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
3992 to the imbued locale.
3993 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
3994 _M_getloc.
3995 (num_put::_M_convert_float): Use.
3996
3997 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3998 Jerry Quinn <jlquinn@optonline.net>
3999
4000 * config/linker-map.gnu: Add __numpunct_cache.
4001 * config/locale/gnu/numeric_members.cc
4002 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
4003 all elements for "C" locale.
4004 (numpunct::~numpunct): Delete _M_data.
4005 * config/locale/generic/numeric_members.cc: Same.
4006 * include/bits/basic_ios.tcc
4007 (basic_ios::init): Remove __locale_cache bits.
4008 (basic_ios::_M_cache_locale): Same.
4009 * include/bits/ios_base.h: Same. Tweaks.
4010 * include/bits/locale_classes.h: Tweaks. Reorder classes.
4011 (__use_cache): Make friends with _Impl, locale.
4012 (_Impl::_M_caches): Add.
4013 (_Impl::_M_install_cache): Add.
4014 * include/bits/locale_facets.h (__numpunct_cache): New.
4015 (numpunct): Encapsulate data members in __numpunct_cache member,
4016 _M_data. Adjust virtuals.
4017 (numpunct::numpunct): New ctor for the same.
4018 (__locale_cache_base): Remove.
4019 (__locale_cache): Remove.
4020 * include/bits/locale_facets.tcc (__use_cache): New function,
4021 specializations.
4022 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
4023 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
4024 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
4025 * src/locale-inst.cc: Same. Add __numpunct_cache.
4026 * src/locale.cc: Tweak inlines.
4027 (__use_cache): Define specializations.
4028 * src/localename.cc: Use global bits.
4029 (_Impl::~Impl): Deal with __numpunct_cache destruction.
4030 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
4031 (_Impl::_M_init_facet): Take into account __numpunct_cache.
4032 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
4033 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4034
4035 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
4036 Paolo Carlini <pcarlini@unitus.it>
4037
4038 * testsuite/performance/filebuf_copy.cc: New, testing char
4039 by char file copy.
4040
4041 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
4042 Nathan C. Myers <ncm-nospam@cantrip.org>
4043
4044 * include/bits/fstream.tcc (_M_underflow): When the actual
4045 end of file is reached, set 'uncommitted' mode to allow a
4046 next write without an intervening seek (see C++98 27.8.1.1,2
4047 and C89 7.9.5.3).
4048 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
4049
4050 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
4051
4052 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4053 sputc): Move inline, from here...
4054 * include/std/std_streambuf.h: ... to here.
4055
4056 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
4057 sputbackc, sungetc, sputc): Use __builtin_expect.
4058
4059 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
4060
4061 * docs/doxygen/mainpage.html: Use a useful title.
4062
4063 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
4064
4065 * docs/html/documentation.html: Remove assignment info.
4066 * docs/html/17_intro/contribute.html: Edits.
4067 * docs/html/17_intro/libstdc++-assign.tx: Remove.
4068
4069 * docs/html/test.html: Update.
4070
4071 * README: Update.
4072
4073 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
4074 Ulrich Drepper <drepper@redhat.com>
4075
4076 * testsuite/testsuite_performance.h: Tweak mallinfo.
4077
4078 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
4079 Nathan C. Myers <ncm-nospam@cantrip.org>
4080
4081 * include/std/std_fstream.h (_M_filepos): Remove.
4082 (_M_reading, _M_writing): New, encode the various I/O modes:
4083 'read', 'write' and 'uncommitted'.
4084 (sync): If there is something to flush, do it, then go to
4085 'uncommitted' mode.
4086 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
4087 with three different cases: __off > 0 (upon underflow),
4088 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
4089 seekoff/pos).
4090 (_M_underflow): Don't call overflow, set _M_reading to true
4091 on success, tweak.
4092 (pbackfail): Set _M_reading to true on pback creation, tweak.
4093 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
4094 set _M_writing to true on success, tweak.
4095 (seekoff): Simplify, set _M_reading, _M_writing to false, call
4096 _M_set_buffer(-1) ('uncommitted').
4097 (open, close, setbuf): Set _M_reading, _M_writing to false and
4098 call _M_set_buffer(-1), tweak.
4099 (basic_filebuf): Don't set _M_buf_unified.
4100 (_M_destroy_internal_buffer): Don't call setg and setp.
4101 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
4102 _M_writing and _M_set_buffer(-1).
4103 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
4104 _M_out_lim, _M_buf_unified): Remove.
4105 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
4106 (setp): Don't set _M_out_lim.
4107 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
4108 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
4109 upon open the mode is 'uncommitted' and therefore the put area
4110 pointers are null.
4111 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
4112 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
4113 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
4114 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
4115 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
4116 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
4117 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4118 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
4119 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
4120 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
4121 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
4122 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
4123 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
4124 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
4125 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
4126 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
4127 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
4128 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
4129 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
4130 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
4131
4132 * include/bits/fstream.tcc (showmanyc): Use only the
4133 documented derivation interface to basic_streambuf (gptr(),
4134 setg(), etc.) to work right with user specializations.
4135 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4136 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
4137 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
4138 Likewise.
4139 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
4140 xsgetn): Likewise.
4141
4142 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
4143
4144 * configure.host (freebsd*): Set abi_baseline_pair.
4145 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
4146 (at or near first release) to 3.3.
4147 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
4148 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
4149 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
4150
4151 * include/ext/mt_allocator.h: Portability.
4152 * testsuite/testsuite_performance.h: Likewise.
4153
4154 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
4155
4156 * docs/html/17_intro/libstdc++-assign.txt: Update address.
4157
4158 * testsuite/performance/ifstream_getline.cc: Fix.
4159
4160 2003-06-23 Doug Gregor <dgregor@apple.com>
4161
4162 * include/bits/boost_concept_check.h: Don't use _D or _R for type
4163 names.
4164
4165 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
4166 Nathan C. Myers <ncm-nospam@cantrip.org>
4167
4168 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
4169 is now used only for filebuf, when _M_buf_unified is true.
4170 epgtr() plays the role of _M_out_lim but it's only updated
4171 upon overflow, underflow, uflow, seekoff/pos.
4172 * include/bits/sstream.tcc (_M_underflow): New, implements
4173 stringbuf::underflow and uflow.
4174 (seekoff, seekpos): Tweak, use _M_update_egptr.
4175 * include/std/std_sstream.h (str): Rewrote, deal correctly
4176 with the new logic, in particular, when pptr() > egptr().
4177 (_M_sync): When __testout && !__testin set all the get area
4178 pointers to the current string end.
4179 (_M_update_egptr): New, internal function updating egptr()
4180 to the actual string end.
4181 (_M_underflow): New, declare.
4182 (underflow): Dispatch to _M_underflow(false).
4183 (uflow): Dispatch to _M_underflow(true).
4184
4185 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
4186 seekpos): Use only the documented derivation interface to
4187 basic_streambuf (gptr(), setg(), etc.) to work right with
4188 user specializations.
4189 * include/std/std_sstream.h (str, _M_sync): Likewise.
4190
4191 2003-06-20 Doug Gregor <dgregor@apple.com>
4192
4193 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
4194 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
4195 dereference end iterator.
4196 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
4197 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
4198 index equal to the length of a string.
4199 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
4200 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
4201 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
4202 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
4203 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
4204 * testsuite/23_containers/list_modifiers.cc: Don't dereference
4205 singular reverse iterator.
4206 * testsuite/23_containers/vector_bool.cc: Don't increment singular
4207 iterator.
4208 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
4209
4210 2003-06-20 Doug Gregor <dgregor@apple.com>
4211
4212 * include/bits/basic_string.h (basic_string::replace): Dispatch
4213 _InputIterator version based on _Is_integer.
4214 * include/bits/basic_string.tcc (basic_string::replace):
4215 Renamed replace(iterator, iterator, size_type, _CharT) to
4216 _M_replace_aux.
4217 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
4218 Test basic_string::assign(_InputIterator, _InputIterator),
4219 which calls basic_string::replace(iterator, iterator,
4220 _Input_iterator, _InputIterator).
4221
4222 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
4223
4224 * testsuite/testsuite_performance.h (resource_counter): Don't use
4225 mallinfo at the moment.
4226
4227 2003-06-20 Matthias Klose <doko@debian.org>
4228
4229 * configure.host: Set try_cpu to target_cpu for existing
4230 baseline files.
4231
4232 2003-06-19 Andreas Jaeger <aj@suse.de>
4233
4234 * testsuite/Makefile.am (extract_symvers): Revert accidental
4235 change.
4236 * testsuite/Makefile.in: Regenerate.
4237
4238 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
4239 * configure: Regenerated.
4240
4241 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
4242
4243 * include/std/std_sstream.h (_M_sync): Make non virtual.
4244
4245 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
4246
4247 * testsuite/testsuite_performance.h (time_counter): New.
4248 (resource_counter): New.
4249 (report_performance): New.
4250 (start_counters): New.
4251 (stop_counters): New.
4252 (clear_counters): New.
4253 * testsuite/performance/allocator.cc: Instrument.
4254 * testsuite/performance/cout_insert_int.cc: Same.
4255 * testsuite/performance/complex_norm.cc: Same.
4256 * testsuite/performance/filebuf_sputc.cc: New.
4257 * testsuite/performance/fstream_seek_write.cc: Same.
4258 * testsuite/performance/ifstream_getline.cc: Same.
4259 * testsuite/performance/map_create_fill.cc: Same.
4260 * testsuite/performance/ofstream_insert_float.cc: Same.
4261 * testsuite/performance/ofstream_insert_int.cc: Same.
4262 * testsuite/performance/string_append.cc: Convert.
4263 * scripts/check_performance: New.
4264 * testsuite/Makefile.am (check-performance): New.
4265 (CLEANFILES): Add.
4266
4267 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
4268 Benjamin Kosnik <bkoz@redhat.com>
4269
4270 * include/std/std_sstream.h (setbuf): Check __n >= 0.
4271 * include/bits/fstream.tcc (setbuf): Tweak.
4272
4273 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
4274
4275 * include/bits/sstream.tcc (seekoff): We can't seek beyond
4276 _M_out_lim, therefore _M_move_out_cur boils down to simply
4277 updating _M_out_cur.
4278 (seekpos): Likewise, clean up.
4279
4280 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
4281 Paolo Carlini <pcarlini@unitus.it>
4282
4283 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
4284 simply equivalent to the unbuffered case (0, 0) as far as
4285 _M_buf_size is concerned.
4286
4287 2003-06-18 Andreas Jaeger <aj@suse.de>
4288
4289 * testsuite/Makefile.am (new-abi-baseline): Create baseline
4290 directory.
4291 (baseline_file): Use baseline_dir.
4292 (baseline_dir): New.
4293 (mkinstalldirs): New.
4294
4295 * acinclude.m4: Rename baseline_file to baseline_dir, strip
4296 filename from baseline_dir.
4297
4298 * testsuite/Makefile.in: Regenerated.
4299 * Makefile.in: Regenerated.
4300 * aclocal.m4: Regenerated.
4301 * configure: Regenerated.
4302
4303 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4304
4305 * configure.in: Missed check_survey bit.
4306 * configure: Regenerated.
4307
4308 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4309
4310 * scripts: New.
4311 * config/abi/extract_symvers: Move to...
4312 * scripts/extract_symvers: ...here.
4313 * mkcheck.in: Move to..
4314 * scripts/check_survey.in: ...here.
4315 * testsuite_flags.in: Move to..
4316 * scripts/testsuite_flags.in: ...here.
4317 * configure.in: Change check and testsuite_flags locations.
4318 * configure: Regenerate.
4319 * testsuite/Makefile.am (current_symbols.txt): Change location.
4320 * testsuite/Makefile.in: Regenerate.
4321 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
4322 location of testsuite_flags.
4323 * Makefile.am (check-script): Move..
4324 (check-script-install): Move...
4325 * testsuite/Makefile.am: ... here.
4326 * testsuite/Makefile.in: Regenerate.
4327 * Makefile.in: Regenerate.
4328
4329 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4330
4331 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
4332
4333 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
4334
4335 * Makefile.am (check-abi): Move...
4336 (new-abi-baseline): Move...
4337 * testsuite/Makefile.am: ...here.
4338 (new-abi-baseline): Conditionalize.
4339 (check-abi): Conditionalize.
4340 (check-abi-verbose): New.
4341 * Makefile.in: Regenerate.
4342 * testsuite/Makefile.in: Regenerate.
4343 * configure.in: Consolidate testsuite configure bits.
4344 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
4345 * configure: Regenerate.
4346 * aclocal.m4: Regenerate.
4347 * testsuite/abi_check.cc: Add --check-verbose.
4348 Only output detailed information if --check-verbose.
4349
4350 2003-06-16 Andreas Jaeger <aj@suse.de>
4351
4352 * testsuite/abi_check.cc: Create summary report.
4353
4354 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
4355
4356 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
4357 for systems with BUFSIZ != 8192.
4358 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4359 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
4360 Minor tweaks.
4361
4362 2003-06-16 Andreas Jaeger <aj@suse.de>
4363
4364 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
4365 check-abi multilib aware.
4366 * aclocal.m4: Regenerate.
4367 * configure: Regenerate.
4368
4369 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
4370 Andreas Jaeger <aj@suse.de>
4371
4372 * configure.host: Set x86_64 abi_baseline pair correctly.
4373
4374 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
4375
4376 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
4377 fix for missing seeks between gets and puts into...
4378 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
4379 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
4380 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
4381 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
4382 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
4383 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
4384
4385 2003-06-15 Richard Henderson <rth@redhat.com>
4386
4387 * config/linker-map.gnu: Export virtual function thunks for
4388 64-bit systems too.
4389
4390 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
4391
4392 * config/abi/i686-pc-linux-gnu: To..
4393 * config/abi/i486-linux-gnu: ...this.
4394 * config/abi/alphaev67-unknown-linux-gnu: To..
4395 * config/abi/alpha-linux-gnu: ...this.
4396 * config/abi/ia64-unknown-linux-gnu: To...
4397 * config/abi/ia64-linux-gnu: ...this.
4398 * config/abi/x86_64-unknown-linux-gnu: To...
4399 * config/abi/x86_64-linux-gnu: ...this.
4400 * config/abi/i386-unknown-freebsd4: To...
4401 * config/abi/i386-freebsd4: ...this.
4402 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
4403 CXXABI.
4404 * configure.host: abi_baseline_triplet to abi_baseline_pair.
4405 Simplify cpu bits so that abi_baseline_pair can use the same
4406 cpu configuration.
4407 * acinclude.m4: Same.
4408 * aclocal.m4: Regenerate.
4409 * configure.in: Can't get enable_abi_check to yes unless native.
4410 * configure: Regenerate.
4411
4412 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
4413
4414 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
4415 fix for missing seeks between gets and puts into...
4416 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
4417 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
4418 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
4419 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
4420 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
4421 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
4422 for missing seeks between gets and puts.
4423 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
4424 * testsuite/data/seekoff-1.tst: New.
4425 * testsuite/data/seekoff-2.tst: New.
4426 * testsuite/data/seekpos-1.tst: New.
4427 * testsuite/data/seekpos-2.tst: New.
4428
4429 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
4430
4431 Avoid multi-processor bus contention on increment/decrement-and-
4432 test of the reference count in the empty-string object, by comparing
4433 addresses first, and never touching the reference count of the empty-
4434 string object.
4435 * include/bits/basic_string.h:
4436 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
4437 members.
4438 (_Rep::_S_empty_rep()): New accessor.
4439 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
4440 a base class _Rep_base.
4441 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
4442 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
4443 since no longer must increment its refcount.
4444 * include/bits/basic_string.tcc:
4445 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
4446 return immediately. The former might be unnecessary. The latter
4447 prevents begin() and end() from cloning it unnecessarily.
4448 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4449 input_iterator_tag), _S_construct(_InIterator, _InIterator,
4450 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
4451 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
4452 (_M_mutate): Check for the empty string and treat it as shared.
4453 This is necessary here because _M_mutate is sometimes called with
4454 all-zero arguments; in all other uses of _M_is_shared, the test comes
4455 out right anyhow.
4456
4457 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
4458
4459 * src/allocator-inst.cc: Explicitly instantiate.
4460 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
4461 Tweaks.
4462 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
4463
4464 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4465
4466 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
4467 * aclocal.m4: Regenerate.
4468 * Makefile.am (SUBDIRS): Remove libio.
4469 * Makefile.in: Regenerate.
4470 * configure.in: Same.
4471 * configure: Regenerate.
4472 * config/io/basic_file_libio.cc: Remove.
4473 * config/io/basic_file_libio.h: Remove.
4474 * config/io/c_io_libio_codecvt.c: Remove.
4475 * config/io/c_io_libio.h: Remove.
4476 * libio/*: Remove.
4477 * src/Makefile.am: Same.
4478 * src/Makefile.in: Regenerate.
4479 * docs/html/configopts.html: Edits.
4480 * docs/html/explanations.html: Edits.
4481
4482 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4483
4484 * include/bits/stl_alloc.h (__debug_alloc): Move out.
4485 (__malloc_alloc): Same.
4486 (__pool_alloc): Same.
4487 (__new_alloc): Same.
4488 Rename to..
4489 * include/bits/allocator.h: ...this.
4490 * include/bits/stl_deque.h: Modify comment.
4491 * include/bits/stl_tree.h: Modify include.
4492 * include/std/std_memory.h: Same.
4493 * include/ext/rope: Same.
4494 * include/ext/slist: Same.
4495 * include/std/std_vector.h: Same.
4496 * include/std/std_stack.h: Same.
4497 * include/std/std_queue.h: Same.
4498 * include/std/std_list.h: Same.
4499 * include/std/std_deque.h: Same.
4500 * include/backward/alloc.h: Same.
4501 * include/ext/debug_allocator.h: New.
4502 * include/ext/malloc_allocator.h: New.
4503 * include/ext/pool_allocator.h: New.
4504 * include/ext/new_allocator.h: New.
4505 * include/bits/pthread_allocimpl.h: Remove.
4506 * include/bits/stl_pthread_alloc.h: Remove.
4507 * include/Makefile.am (ext_headers): Add.
4508 * include/Makefile.in: Regenerate.
4509 * src/stl-inst.cc: Use __gnu_cxx namespace.
4510 * src/stl-inst.cc: Move to...
4511 * src/allocator-inst.cc: Here.
4512 * src/Makefile.am (sources): Update.
4513 * src/Makefile.in: Regenerate.
4514 * config/linker-map.gnu: Remove __pool_alloc bits.
4515 * testsuite/ext/headers.cc: Add.
4516 * testsuite/ext/allocators.cc: Fixup.
4517
4518 2003-06-11 Stefan Olsson <stefan@snon.net>
4519 Ola Rönnerup <fnolis@home.se>
4520
4521 * include/Makefile.am (ext_headers): Add.
4522 * include/Makefile.in: Regenerate.
4523 * include/ext/mt_allocator.h: New file.
4524
4525 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
4526
4527 * include/bits/fstream.tcc (close): Clean up a bit.
4528
4529 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
4530
4531 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
4532 - the saved _M_in_cur, that is - cannot be null.
4533 (sync): Constify a variable.
4534
4535 * include/std/std_streambuf.h: Tweak a comment.
4536 (in_avail): Constify a variable.
4537
4538 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
4539
4540 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
4541 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
4542 correctness of container::iterator typedefs. Fix whitespace.
4543 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
4544 to allocator docs.
4545 * docs/html/documentation.html: Regenerate.
4546
4547 * include/bits/basic_string.h, include/bits/basic_string.tcc,
4548 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
4549 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4550 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
4551 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
4552 include/bits/stl_vector.h, include/bits/vector.tcc,
4553 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
4554 Change _Iter names to _Iterator, and __pos to __position.
4555
4556 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
4557 include/bits/stl_multiset.h, include/bits/stl_set.h:
4558 Remove emacs markers.
4559
4560 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
4561
4562 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
4563
4564 * include/bits/fstream.tcc (overflow): According to
4565 27.5.2.4.5, overflow() returns not_eof(eof()).
4566 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
4567 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
4568
4569 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
4570
4571 * include/bits/fstream.tcc (_M_underflow): Check overflow return
4572 value; tweak slightly.
4573
4574 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
4575
4576 * include/bits/fstream.tcc (_M_underflow): Do not special
4577 case the unbuffered case, which really means simply a one char
4578 get area.
4579 (basic_filebuf): Initialize _M_buf_size.
4580 (setbuf): Unbuffered means _M_buf_size == 1, since only
4581 _M_buf_size - 1 == 0 chars are going to be used for the
4582 put area and 1 for the get area.
4583 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
4584 (~basic_streambuf): Tweak.
4585 (basic_streambuf): Do not initialize _M_buf_size.
4586 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
4587 (~basic_filebuf): Tweak.
4588 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
4589 unbuffered situation (i.e., put area pointers NULL).
4590 * include/bits/streambuf.tcc (sbumpc): Clean up.
4591 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
4592 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
4593 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
4594 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
4595 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
4596 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
4597 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
4598
4599 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
4600
4601 * acinclude.m4: Move all AM_CONDITIONAL calls out.
4602 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
4603 statements.
4604 * configure.in: Centralize AM_CONDITIONALs so that they are always
4605 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
4606 * aclocal.m4, configure: Regenerated.
4607
4608 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
4609
4610 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
4611
4612 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
4613
4614 * include/bits/stl_iterator.h
4615 (reverse_iterator::reverse_iterator()): Apply DR235: default
4616 constructor default-initializes data member. Instantiated on a
4617 pointer type, the member has to end up equal to zero.
4618
4619 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
4620
4621 * include/bits/stl_alloc.h: Cleanups.
4622 * include/ext/functional: Same.
4623 * include/ext/hash_map: Same.
4624 * include/ext/hash_set: Same.
4625 * include/ext/iterator: Same.
4626 * include/ext/memory: Same.
4627 * include/ext/numeric: Same.
4628 * include/ext/rb_tree: Same.
4629 * include/ext/ropeimpl.h: Same.
4630 * include/ext/slist: Same.
4631 * include/ext/stdio_filebuf.h: Same.
4632 * include/ext/stdio_sync_filebuf.h: Same.
4633 * include/ext/stl_rope.h: Move to...
4634 * include/ext/rope: ...here.
4635 * include/ext/stl_hash_fun.h: Move to...
4636 * include/ext/hash_fun.h: ...here.
4637 * include/ext/stl_hashtable.h: Move to...
4638 * include/ext/hashtable.h: ...here.
4639 * include/backward/hashtable.h: Reflect new names.
4640 * include/Makefile.am: Same.
4641 * include/Makefile.in: Regenerated.
4642
4643 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
4644
4645 PR libstdc++/9024
4646 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
4647 * include/bits/stl_algobase.h: Tweak.
4648 * include/std/std_fstream.h: Move _M_buf_size to...
4649 * include/std/std_streambuf.h: ...here. Modify.
4650 * include/bits/streambuf.tcc: Same.
4651 * testsuite/testsuite_hooks.h: Tweak.
4652 * testsuite/testsuite_io.h (constraint_filebuf): New.
4653 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
4654 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
4655 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
4656 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
4657 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
4658 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
4659 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
4660 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
4661 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
4662 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
4663 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
4664 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
4665 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
4666 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
4667 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
4668 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
4669 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
4670 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
4671 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
4672 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
4673 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
4674 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
4675 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
4676 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
4677 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
4678 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
4679 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
4680 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
4681 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
4682 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
4683 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
4684 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
4685 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
4686 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
4687 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
4688 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
4689 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
4690 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
4691 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
4692 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
4693 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
4694 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
4695 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
4696 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
4697 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
4698 * testsuite/data/sgetc.txt: New.
4699 * testsuite/data/sgetn.txt: New.
4700
4701 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
4702
4703 PR libstdc++/11095
4704 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
4705 Deal with width() smaller than zero.
4706 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
4707 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
4708 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
4709 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
4710 operator<<(basic_ostream, const basic_string&)): Likewise.
4711
4712 * testsuite/27_io/basic_istream/extractors_character/char/
4713 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4714 * testsuite/27_io/basic_ostream/inserters_character/char/
4715 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4716 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
4717 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
4718
4719 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4720
4721 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
4722 .gch compilation works.
4723 * aclocal.m4, configure: Regenerate.
4724 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
4725 initialize PCHFLAGS.
4726
4727 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
4728
4729 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
4730 erase(iterator), erase(iterator, iterator), c_str,
4731 compare(const basic_string&)): Constify various variables.
4732 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
4733 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
4734 _S_create, resize, _M_replace, _M_replace_safe,
4735 append(const basic_string&), append(const basic_string&, size_type,
4736 size_type), append(const _CharT*, size_type), append(size_type,
4737 _CharT), operator+(const _CharT*, const basic_string&),
4738 operator+(_CharT, const basic_string&), replace(iterator, iterator,
4739 size_type, _CharT), find(const _CharT*, size_type, size_type),
4740 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
4741 rfind(_CharT, size_type), compare(size_type, size_type,
4742 const basic_string&), compare(size_type, size_type,
4743 const basic_string&, size_type, size_type), compare(const _CharT*),
4744 compare(size_type, size_type, const _CharT*), compare(size_type,
4745 size_type, const _CharT*, size_type)): Likewise.
4746
4747 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
4748
4749 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
4750 'if' branch less obscure.
4751
4752 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
4753
4754 PR libstdc++/9815
4755 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
4756 asm case to asm.
4757 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
4758 (__atomic_add): likewise.
4759
4760 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4761
4762 * include/bits/sstream.tcc (pbackfail): Minor clean up and
4763 reformatting, consistent with basic_filebuf::pbackfail.
4764
4765 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
4766
4767 PR libstdc++/11062
4768 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
4769 __attribute__ ((__unused__)).
4770 * config/os/aix/atomicity.h: Likewise.
4771
4772 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4773
4774 PR libstdc++/9761
4775 * include/bits/fstream.tcc (pbackfail): If the pback buffer
4776 is already active don't try to store in it a second char.
4777 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
4778
4779 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
4780
4781 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4782
4783 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
4784 line spacing.
4785
4786 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4787
4788 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
4789 instead of unnecessarily taking the address of _M_pback.
4790 (xsgetn): Simplify slightly for a single char pback buffer.
4791
4792 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4793
4794 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
4795 variables and two 'if', clean up.
4796
4797 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4798
4799 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
4800 not _M_out_end, since the former actually points to the string
4801 end (vs buffer end).
4802 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
4803
4804 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
4805
4806 * docs/doxygen/filter: New file.
4807 * docs/doxygen/filter.sed: New file.
4808 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
4809 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
4810 * docs/html/documentation.html: Fix links to doxygen pages.
4811
4812 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
4813
4814 * include/bits/fstream.tcc (_M_convert_to_external): Don't
4815 check for __ilen > 0.
4816
4817 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
4818
4819 PR libstdc++/10783
4820 * include/bits/stl_iterator.h (class __normal_iterator):
4821 Don't inherit from iterator, add missing typedefs.
4822
4823 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
4824
4825 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
4826 * testsuite/24_iterators/reverse_iterator/1.cc: New.
4827 * testsuite/24_iterators/reverse_iterator/2.cc: New.
4828 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
4829 PR libstdc++/10783.
4830
4831 2003-05-27 Steve Ellcey <sje@cup.hp.com>
4832
4833 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
4834 on IA64 HP-UX.
4835 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
4836 _LIBUNWIND_STD_ABI is set.
4837
4838 2003-05-26 Brendan Kehoe <brendan@zen.org>
4839
4840 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
4841 make sure the number of digits required after the decimal-point
4842 (if any) is exactly the value returned by frac_digits().
4843 * testsuite/22_locale/money_get/get/char/9.cc: New.
4844 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
4845
4846 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
4847
4848 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
4849 comment.
4850
4851 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
4852
4853 PR libstdc++/9339
4854 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
4855 (_M_pback): No array necessary.
4856 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
4857 unbuffered case, coalesec into ...
4858 (basic_filebuf::overflow): ...this.
4859 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
4860 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
4861
4862 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
4863
4864 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
4865 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
4866 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
4867 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
4868 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
4869 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
4870 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
4871 libsupc++/eh_unex_handler.cc, libsupc++/exception,
4872 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
4873 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
4874 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
4875 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
4876 Replace "GNU CC" with "GCC".
4877
4878 * include/backward/new.h: Replace "GNU CC" with "GCC".
4879
4880 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
4881
4882 PR libstdc++/3066.
4883 * configure.in: Switch target to host, don't assume newlib.
4884 (target_alias): Remove.
4885 * configure: Regenerate.
4886 * acinclude.m4: Same.
4887 * aclocal.m4: Regenerate.
4888 * configure.target: Same. Rename to...
4889 * configure.host: This.
4890
4891 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
4892
4893 * include/std/std_fstream.h (_S_pback_size): Remove definition.
4894 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
4895 pback buffer.
4896 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
4897 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
4898 of _S_pback_size for systems with no COMDAT or weak support.
4899 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
4900 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
4901 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
4902 * testsuite/27_io/basic_fstream/3.cc: Likewise.
4903 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4904 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
4905 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
4906 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
4907 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
4908
4909 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
4910
4911 * include/bits/fstream.tcc (_M_underflow): Simplify:
4912 !__testout implies _M_filepos == _M_in_end, therefore
4913 the first _M_file.seekoff call is never issued.
4914
4915 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
4916
4917 * configure.in: Sort cross table.
4918 * configure: Regenerate.
4919
4920 2003-05-22 Brad Spencer <spencer@infointeractive.com>
4921
4922 PR libstdc++/10106
4923 * configure.in: Add Solaris cross bits.
4924
4925 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4926
4927 * libstdc++-v3/config/os/mingw32/os_defines.h
4928 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
4929 (NOMINMAX): Define. Update copyright year.
4930
4931 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
4932
4933 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
4934
4935 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
4936
4937 * docs/html/faq/index.html: Fix typo.
4938 * docs/html/faq/index.txt: Regenerate.
4939
4940 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
4941
4942 * docs/html/test.html: Fix markup.
4943
4944 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4945
4946 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
4947 zero.
4948 Update copyright year.
4949
4950 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
4951
4952 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
4953
4954 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
4955
4956 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
4957 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
4958
4959 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4960
4961 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
4962 Cast via void* to avoid -Wcast-align warnings.
4963 (__default_alloc_template::_S_refill): Likewise.
4964
4965 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
4966
4967 * testsuite/README: Move to...
4968 * docs/html/test.html: ...here. Add documentation.
4969 * docs/html/install.html: Move testing bits out..
4970 * docs/html/documentation.html: Add separate testing link.
4971 * testsuite/performance: Add.
4972 * testsuite/performance/allocator.cc: New.
4973 * testsuite/performance/complex_norm.cc: New.
4974 * testsuite/performance/cout_insert_int.cc: New.
4975 * testsuite/performance/fstream_seek_write.cc: New.
4976 * testsuite/performance/ifstream_getline.cc: New.
4977 * testsuite/performance/map_create_fill.cc: New.
4978 * testsuite/performance/ofstream_insert_float.cc: New.
4979 * testsuite/performance/ofstream_insert_int.cc: New.
4980 * testsuite/performance/string_append.cc: New.
4981 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
4982 performance tests.
4983
4984 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
4985
4986 PR libstdc++/10689
4987 * include/std/std_complex.h (pow): Tidy.
4988
4989 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
4990
4991 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
4992 that upon filebuf::close() 27.8.1.1,3 is enforced.
4993
4994 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
4995
4996 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
4997
4998 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
4999 Nathan Myers <ncm@cantrip.org>
5000
5001 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
5002 _M_convert_to_external only once (_M_buf_size is now the size of
5003 the put area + 1 for the overflow char of a full area); call
5004 _M_set_buffer instead of _M_set_indeterminate.
5005 (setbuf): Don't accept a buffer smaller than 2 chars.
5006 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
5007 instead of _M_set_determinate.
5008 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
5009 (seekoff): Likewise.
5010 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
5011 std::ios_base::openmode, bool, size_t),
5012 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
5013 Likewise.
5014 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
5015 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
5016 _M_buf_size - 1.
5017 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
5018 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
5019 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
5020 the put area is now BUFSIZ - 1.
5021 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
5022 that now the smallest _M_buf_size is 2 (still fails, for the same
5023 reason, with 3.2.3)
5024
5025 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
5026
5027 * testsuite/thread/pthread4.cc: Tweak test.
5028
5029 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
5030
5031 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
5032 excess errors dg marker, use dg-errors instead.
5033 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
5034 * testsuite/20_util/auto_ptr_neg.cc: Same.
5035
5036 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
5037
5038 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
5039 cached member.
5040 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
5041 Initialize _M_codecvt.
5042 (basic_filebuf::imbue): Same.
5043 (basic_filebuf::showmanyc): Use it.
5044 (basic_filebuf::underflow): Use it.
5045 (basic_filebuf::_M_convert_to_external): Use it.
5046 (basic_filebuf::seekoff): Use it.
5047 (basic_filebuf::imbue): Use it, tweaks.
5048 * include/bits/localefwd.h (__check_facet): New.
5049 * include/bits/locale_classes.h: Tweaks.
5050 * include/bits/locale_facets.tcc: Tweaks.
5051 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
5052 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
5053 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
5054 * include/bits/basic_ios.tcc: Same.
5055 * include/bits/istream.tcc: Same.
5056 * include/bits/ostream.tcc: Same.
5057 * include/std/std_streambuf.h: Same.
5058 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
5059 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
5060 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
5061 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
5062 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
5063 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
5064
5065 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
5066
5067 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
5068 unnecessary includes and unused string literals.
5069 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
5070 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
5071 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
5072 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
5073
5074 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
5075
5076 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
5077
5078 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
5079
5080 * include/std/std_fstream.h (_M_convert_to_external): Change
5081 to return bool, take two less streamsize parameters.
5082 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
5083 consistently definition.
5084 (_M_overflow): Adjust call points.
5085
5086 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
5087
5088 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
5089
5090 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
5091
5092 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
5093 * testsuite/Makefile.in: Regenerate.
5094
5095 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
5096
5097 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
5098 * testsuite/Makefile.in: Regenerate.
5099
5100 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5101
5102 PR libstdc++/3181
5103 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
5104 (acos): Handle integer argument.
5105 (asin): Likewise.
5106 (atan): Likewise.
5107 (atan2): Likewise.
5108 (ceil): Likewise.
5109 (cos): Likewise.
5110 (cosh): Likewise.
5111 (exp): Likewise.
5112 (fabs): Likewise.
5113 (floor): Likewise.
5114 (frexp): Likewise.
5115 (ldexp): Likewise.
5116 (log): Likewise.
5117 (log10): Likewise.
5118 (sin): Likewise.
5119 (sinh): Likewise.
5120 (sqrt): Likewise.
5121 (tan): Likewise.
5122 (tanh): Likewise.
5123 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
5124 (__enable_if): Likewise.
5125 * testsuite/26_numerics/cmath/overloads.C: New test.
5126
5127 2003-05-10 Petur Runolfsson <peturr02@ru.is>
5128
5129 PR libstdc++/9027
5130 PR libstdc++/9520
5131 PR libstdc++/10096
5132 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
5133 implementation, based on old wchar_t specialization, add support
5134 for codecvt::in() return value of codecvt_base::noconv, remove
5135 _M_file.sys_ungetc() call.
5136 * include/std/std_fstream.h (basic_file::underflow,
5137 basic_file::uflow, basic_file::_M_underflow): Remove
5138 specialization declarations, call _M_underflow from generic versions
5139 of underflow and uflow.
5140 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
5141 basic_file::_M_underflow): Remove specializations.
5142 * src/Makefile.am (sources): Remove fstream.cc.
5143 * src/Makefile.in: Regenerated.
5144 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
5145 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
5146 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
5147 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
5148
5149 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
5150
5151 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
5152 buffer.
5153 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
5154 unbuffered bits.
5155 (__basic_file::xsputn): Same.
5156 (__basic_file::seekoff): Same.
5157 (__basic_file::seekpos): Same.
5158 (__basic_file::showmanyc): Same.
5159 * config/io/basic_file_stdio.cc: Same.
5160 * include/std/std_fstream.h: Same.
5161 * include/bits/fstream.tcc: Same.
5162 * src/fstream.cc: Same.
5163 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
5164
5165 2003-05-10 Petur Runolfsson <peturr02@ru.is>
5166
5167 PR libstdc++/9520
5168 PR libstdc++/9661
5169 PR libstdc++/9662
5170 * include/ext/stdio_sync_filebuf.h: New file.
5171 (basic_stdiobuf): New.
5172 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
5173 * include/Makefile.in: Regenerate.
5174 * include/bits/ios_base.h (Init::_S_create_buffers,
5175 Init::_S_destroy_buffers): Remove declarations.
5176 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
5177 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
5178 * src/ios.cc (Init::_S_create_buffers,
5179 Init::_S_destroy_buffers): Remove.
5180 (Init::Init): Create and use syncronized buffers.
5181 (ios_base::sync_with_stdio): Destroy syncronized buffers,
5182 create and install unsyncronized buffers.
5183 * testsuite/27_io/objects/char/10.cc: New test.
5184 * testsuite/27_io/objects/char/9.cc: New test.
5185 * testsuite/27_io/objects/char/9661-1.cc: New test.
5186 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
5187 * testsuite/27_io/objects/char/9661-2_xin.in: New.
5188 * testsuite/27_io/objects/wchar_t/1.cc: New test.
5189 * testsuite/27_io/objects/wchar_t/10.cc: New test.
5190 * testsuite/27_io/objects/wchar_t/2.cc: New test.
5191 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
5192 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
5193 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
5194 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
5195 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
5196 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
5197 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
5198 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
5199 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
5200 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
5201 * testsuite/27_io/objects/wchar_t/5.cc: New test.
5202 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
5203 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
5204 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
5205 * testsuite/27_io/objects/wchar_t/6.cc: New test.
5206 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
5207 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
5208 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
5209 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
5210 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
5211 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
5212 * testsuite/27_io/objects/wchar_t/7.cc: New test.
5213 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
5214 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
5215 * testsuite/27_io/objects/wchar_t/8.cc: New test.
5216 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
5217 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
5218 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
5219 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
5220 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
5221 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
5222 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
5223 * testsuite/ext/stdiobuf_char.cc: New test.
5224 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
5225
5226 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
5227
5228 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
5229 unnecessary includes and unused string literals.
5230 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
5231
5232 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
5233
5234 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
5235
5236 2003-05-07 Richard Henderson <rth@redhat.com>
5237
5238 PR c++/10570
5239 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
5240 (__cxa_end_catch): Likewise.
5241 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
5242 _Unwind_Resume_or_Rethrow.
5243 * libsupc++/eh_personality.cc (empty_exception_spec): New.
5244 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
5245 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
5246 exceptions. Don't push terminate/unexpected to cxa functions.
5247 (__cxa_call_unexpected): Remove foreign exception fixmes.
5248
5249 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
5250
5251 * testsuite/27_io/ios_base/cons: New.
5252 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
5253 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
5254
5255 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
5256
5257 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
5258 * src/fstream.cc
5259 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
5260 there is no buffer or __testget == !__testinit.
5261
5262 * src/fstream.cc
5263 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
5264 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
5265
5266 * include/std/std_fstream.h (_M_destroy_pback): Don't set
5267 unnecessarily _M_pback_cur_save and _M_pback_end_save.
5268
5269 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
5270
5271 * include/std/std_sstream.h (_M_sync): Minor tweak.
5272
5273 * include/bits/fstream.tcc (close): No need to call
5274 _M_destroy_pback, setting _M_pback_init to false suffices
5275 to clean up.
5276
5277 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
5278
5279 * include/bits/stl_algo.h: Enums as _S_.
5280 * include/bits/stl_tree.h: Same.
5281 * include/bits/stl_bvector.h: Same.
5282 * include/bits/ios_base.h: Same.
5283 * include/bits/stl_alloc.h: Same.
5284 * include/ext/stl_hashtable.h: Same.
5285 * src/ios.cc: And here.
5286
5287 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
5288 * include/bits/sstream.tcc: Same.
5289
5290 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
5291
5292 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
5293
5294 * include/bits/locale_facets.h (__num_base): Remove protected.
5295 Use _S_[io]* names for enumerations.
5296 (_S_format_int): Remove.
5297 * include/bits/locale_facets.tcc: Same.
5298 * src/locale.cc: Same.
5299
5300 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
5301
5302 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
5303
5304 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
5305 * docs/html/faq/index.txt: Regenerated.
5306
5307 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
5308 Matt Kraai <kraai@alumni.cmu.edu>
5309
5310 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
5311 And retweak.
5312
5313 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
5314
5315 * configure.target (mips*): Use the generic atomicity.h by default.
5316
5317 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
5318 (Inspired by an alternate patch from Danny Smith.)
5319
5320 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
5321 (_Swap_lock_struct<>): ...and the horse it rode in on.
5322 * src/globals.cc (_Swap_lock_struct<>): Likewise.
5323 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
5324 member to support...
5325 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
5326 visibility rules related to POSIX threads.
5327 * testsuite/thread/pthread7-rope.cc: New test.
5328
5329 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
5330
5331 * testsuite/21_strings/basic_string/find/char/3.cc: New
5332 file, testing basic_string<char>::find_first_not_of.
5333 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
5334 Likewise for basic_string<wchar_t>.
5335
5336 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
5337
5338 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
5339
5340 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
5341
5342 * include/Makefile.am (CLEANFILES): Remove PCH files in target
5343 directory.
5344 * include/Makefile.in: Regenerate.
5345
5346 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
5347
5348 * include/std/std_sstream.h (str()): Tidy.
5349
5350 2003-05-02 Nathan Myers <ncm@cantrip.org>
5351 Paolo Carlini <pcarlini@unitus.it>
5352
5353 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
5354
5355 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
5356
5357 * include/bits/basic_string.h (swap): Remove redundant template
5358 parameters from declaration of non-template member function.
5359
5360 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
5361
5362 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
5363 * configure.in: Move libintl.h header test...
5364 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
5365 the NLS-related test results into one symbol.
5366 * src/functexcept.cc: Use it here.
5367 * aclocal.m4, config.h.in, configure: Regenerated.
5368
5369 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5370
5371 * include/bits/sstream.tcc (overflow): Instead of calling
5372 str(), then _M_string.reserve, thus copying the contents
5373 of the current buffer two times, just copy the latter in
5374 a temporary, then use the 'swap trick'.
5375
5376 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5377
5378 * include/std/std_sstream.h (str()): Revert the best of the
5379 previous 'improvement', incorrect due to the COW nature of
5380 v3 basic_string; simplify.
5381
5382 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5383
5384 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
5385 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
5386
5387 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
5388
5389 * testsuite/abi_check.cc (check_version): Update known versions.
5390 Check added symbols for version_name != base version. Add missing
5391 symbols to incompatible list.
5392
5393 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
5394
5395 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
5396 * aclocal.m4: Regenerated.
5397 * configure: Regenerated.
5398
5399 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5400
5401 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
5402 Const-ify some variables.
5403 (basic_streambuf::xsputn): Likewise; change the type of some
5404 variables to size_t.
5405 (__copy_streambufs): Change some variables to size_t.
5406
5407 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5408
5409 * include/std/std_sstream.h (str()): Avoid constructing
5410 a basic_string temporary not only when it would turn out
5411 to be zero-sized but also when identical to the current
5412 _M_string buffer.
5413
5414 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
5415
5416 * include/ext/stdio_filebuf.h
5417 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
5418 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
5419 Shorten a bit (-10 lines) by factoring out some code.
5420
5421 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
5422
5423 * acinclude.m4: Add bit missing from previous patch.
5424 * aclocal.m4, configure: Regenerated.
5425
5426 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
5427
5428 * docs/doxygen/mainpage.html: Bring up to date.
5429 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
5430 in Doxygen.
5431 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
5432 breaks everything. Don't scan them.
5433 * docs/html/documentation.html: Point to "Write after approval"
5434 notes.
5435
5436 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
5437
5438 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
5439 of libc if message translations are being used. Fix info text in
5440 xieee_1003.1-2001 case.
5441 * aclocal.m4, configure: Regenerate.
5442
5443 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
5444 Loren J. Rittle <ljrittle@acm.org>
5445 Martin v. Loewis <martin@v.loewis.de>
5446
5447 * config/cpu/i386/atomicity.h: New file.
5448
5449 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
5450
5451 * include/bits/fstream.tcc (open): Change to single return.
5452
5453 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
5454
5455 * include/std/std_sstream.h (underflow): Change to single return.
5456
5457 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5458
5459 * include/std/std_streambuf.h (_M_buf): is currently
5460 used only for basic_filebuf, therefore move it there.
5461 (basic_streambuf(), ~basic_streambuf()): Adjust.
5462 * include/std/std_fstream.h (_M_buf): Moved here.
5463 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
5464 is actually redundant for basic_stringbuf.
5465 (_M_really_sync): Likewise.
5466 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
5467 * include/bits/sstream.tcc (seekoff): Adjust.
5468
5469 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
5470
5471 * src/localename.cc: Standardize exception strings.
5472 * src/locale.cc: Same.
5473 * src/ios.cc: Same.
5474 * include/bits/basic_string.tcc: Same.
5475 * include/bits/basic_ios.tcc: Same.
5476 * include/std/std_bitset.h: Same.
5477 * include/ext/ropeimpl.h: Same.
5478 * include/bits/stl_vector.h: Same.
5479 * include/bits/stl_deque.h: Same.
5480 * include/bits/stl_bvector.h: Same.
5481 * config/locale/generic/c_locale.cc: Same.
5482 * config/locale/gnu/c_locale.cc: Same.
5483 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
5484
5485 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
5486
5487 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5488
5489 * include/std/std_streambuf.h (_M_buf_size): is currently
5490 used only for basic_filebuf, therefore move it there.
5491 (basic_streambuf(), ~basic_streambuf()): Adjust.
5492 * include/std/std_fstream.h (_M_buf_size): Moved here.
5493 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
5494
5495 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5496
5497 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
5498 _M_buf_size (synced input is now correctly dealt with
5499 elsewhere); when the output buffer is full don't fall back
5500 to a snextc-sputc loop, call overflow instead.
5501
5502 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5503
5504 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
5505 the innermost 'if' by factoring out some code.
5506
5507 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
5508
5509 * configure.in: Test for libintl.h.
5510 * include/bits/c++config: Define __N for everybody.
5511 * include/bits/basic_string.h, include/bits/stl_bvector.h,
5512 include/bits/stl_deque.h, include/bits/stl_vector.h,
5513 include/std/std_bitset.h: Wrap all __throw* text with __N.
5514 * po/Makefile.am (pot): New rule, mostly working.
5515 * src/functexcept.cc: Call gettext on all __throw* arguments when
5516 -fexceptions is in effect.
5517 * po/Makefile.in, config.h.in, configure: Regenerate.
5518
5519 2003-04-28 Petur Runolfsson <peturr02@ru.is>
5520
5521 PR libstdc++/9523
5522 * include/bits/ios_base.h (Init::_S_ios_create,
5523 Init::_S_ios_destroy): Remove declarations.
5524 (Init::_S_create_buffers,
5525 Init::_S_destroy_buffers): Declare
5526 * src/ios.cc (Init::_S_ios_create): Remove
5527 (Init::_S_create_buffers): Create buffers and add to streams.
5528 (Init::_S_ios_destroy): Rename to...
5529 (Init::_S_destroy_buffers): this.
5530 (Init::Init): Only construct streams once.
5531 (Init::~Init): Flush streams, don't destroy them.
5532 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
5533 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
5534 * testsuite/27_io/objects/char/5.cc: New test.
5535 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
5536 * testsuite/27_io/objects/char/6.cc: New test.
5537 * testsuite/27_io/objects/char/7.cc: New test.
5538
5539 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
5540
5541 * testsuite/27_io/objects/char/8.cc: New test.
5542
5543 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
5544
5545 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
5546 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
5547
5548 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
5549
5550 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
5551 _M_destroy_pback. _M_pback_create to
5552 _M_create_pback. _M_underflow_common to
5553 _M_underflow. _M_really_overflow to _M_overflow.
5554 * include/bits/fstream.tcc: Same.
5555 * src/fstream.cc: Same.
5556 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
5557 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
5558 * include/bits/streambuf.tcc: Same.
5559 * include/bits/fstream.tcc: Same.
5560 * include/bits/sstream.tcc: Same.
5561
5562 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
5563
5564 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
5565 from fixed size array.
5566 (locale): Change _S_categories as well.
5567 Formatting tweaks.
5568 * include/bits/locale_facets.tcc: Tweak.
5569 * config/locale/gnu/c_locale.cc: Assign _S_categories.
5570 * config/locale/generic/c_locale.cc: Same.
5571 * src/locale.cc: Tweak.
5572 * src/globals.cc: Change facet_name to name_vec, add names_c.
5573 * src/localename.cc: Use them.
5574 (locale::_Impl::~_Impl): Destroy _M_names.
5575 (locale::_Impl::_Impl): Create _M_names.
5576
5577 2003-04-27 Andreas Schwab <schwab@suse.de>
5578
5579 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
5580 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
5581
5582 2003-04-27 Nathan Myers <ncm@cantrip.org>
5583
5584 Move some basic_string members out of line because
5585 they are too big to reasonably be inline.
5586 * include/bits/basic_string.h
5587 (assign(const basic_string&, size_type, size_type),
5588 assign(const _CharT*, size_type),
5589 insert(size_type, const basic_string&, size_type, size_type),
5590 insert(size_type, const _CharT*, size_type),
5591 replace(size_type, size_type, const _CharT*, size_type)):
5592 Move from here to...
5593 * include/bits/basic_string.tcc: ...here.
5594
5595 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
5596
5597 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
5598 the innermost 'if' by factoring out some code.
5599
5600 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
5601
5602 * include/bits/streambuf.tcc (__copy_streambufs): Don't
5603 use in_avail(), simplify.
5604
5605 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
5606
5607 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
5608 in basic_stringbuf it's unused.
5609
5610 * include/std/std_sstream.h (underflow): consistently use
5611 _M_in_cur, not gptr().
5612
5613 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
5614 Phil Edwards <pme@gcc.gnu.org>
5615
5616 * testsuite_flags.in: Guard against the possibility
5617 of having "xgcc" as a part of a folder name in the
5618 path to the GCC build folder.
5619 * testsuite/Makefile.am: Likewise.
5620 * testsuite/Makefile.in: Regenerated.
5621
5622 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
5623
5624 PR libstdc++/10132
5625 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
5626 exception specifications.
5627 (basic_filebuf::close): Same.
5628 (basic_filebuf::_M_pback_destroy): Same.
5629 (basic_filebuf::_M_destroy_internal_buffer): Same.
5630 (basic_filebuf): Remove __res_type typedef.
5631 * src/fstream.cc: Same.
5632 * include/bits/fstream.tcc
5633 (basic_filebuf::_M_convert_to_external): Simplify.
5634 (basic_filebuf::seekoff): Use has_facet before use_facet.
5635 (basic_filebuf::close): Add exception specification of throw().
5636 * testsuite/27_io/basic_filebuf/cons: New.
5637 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
5638 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
5639 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
5640 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
5641
5642 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
5643
5644 * include/bits/locale_classes.h
5645 (locale::_S_extra_categories_size): Remove.
5646 * src/locale.cc: Remove _S_extra_categories_size.
5647 * src/localename.cc: Same.
5648 * config/locale/gnu/c_locale.cc: Same.
5649 * config/locale/generic/c_locale.cc: Same.
5650
5651 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
5652
5653 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
5654
5655 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
5656
5657 * docs/html/17_intro/howto.html: Update some links.
5658 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
5659 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
5660 * docs/html/ext/howto.html: Link to demangler notes and API.
5661 * docs/html/faq/index.html: Remove trailing whitespace.
5662 (1.4, 2.4, 3.8, 4.1): Bring up to date.
5663 (5.6): Change to a bulleted list.
5664
5665 * docs/html/faq/index.txt, docs/html/documentation.html,
5666 docs/html/17_intro/porting.html: Regenerate.
5667
5668 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
5669
5670 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
5671 belongs to basic_filebuf.
5672 * testsuite/27_io/basic_fstream/3.cc: Likewise.
5673 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
5674 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
5675 instantiation (now belongs to basic_filebuf).
5676 * testsuite/27_io/basic_iostream/3.cc: Likewise.
5677 * testsuite/27_io/basic_istream/3.cc: Likewise.
5678 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5679 _S_pback_size now belongs to basic_filebuf.
5680 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
5681 instantiation (now belongs to basic_filebuf).
5682 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
5683 belongs to basic_filebuf.
5684 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
5685 instantiation (now belongs to basic_filebuf).
5686 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
5687 _S_pback_size now belongs to basic_filebuf.
5688 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
5689 instantiation (now belongs to basic_filebuf).
5690 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
5691 to basic_filebuf.
5692 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
5693 instantiation (now belongs to basic_filebuf).
5694 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
5695
5696 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
5697
5698 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
5699 * configure: Regenerated.
5700
5701 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
5702
5703 * config/locale/generic/c_locale.h (__convert_from_v): Use
5704 attribute unused.
5705
5706 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
5707
5708 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
5709 implementation only.
5710 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
5711 Comment and change to comply with DR 60 and the effect on gcount().
5712 * include/std/std_istream.h: Update comments.
5713 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
5714 comments about reasons for tests. Test sync() against gcount().
5715 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
5716 for effect on gcount().
5717 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
5718 for effect on gcount().
5719
5720 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
5721
5722 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
5723 Adjust timing.
5724
5725 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
5726
5727 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
5728 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5729 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
5730 (basic_streambuf::basic_streambuf()): Adjust.
5731 * include/std/std_fstream.h (_S_pback_size, _M_pback,
5732 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5733 _M_pback_create(), _M_pback_destroy()): Moved here
5734 from basic_streambuf.
5735 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
5736 Adjust.
5737 (basic_filebuf::_S_pback_size): Add declaration.
5738 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
5739 Remove declaration.
5740
5741 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
5742
5743 Consistently use _M_in_beg instead of eback(), _M_in_cur
5744 instead of gptr(), and so on.
5745 * include/bits/fstream.tcc (pbackfail, imbue): Here.
5746 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
5747 * include/bits/streambuf.tcc (sbumpc, sputbackc,
5748 __copy_streambufs): Ditto.
5749 * include/std/std_streambuf.h (sgetc): Ditto.
5750
5751 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
5752
5753 * include/bits/sstream.tcc (pbackfail, overflow):
5754 Formatting fixes.
5755
5756 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
5757
5758 * include/std/std_streambuf.h (uflow()): It's used only by
5759 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
5760 therefore do not consider the _M_buf_unified == true case.
5761
5762 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
5763
5764 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
5765
5766 * docs/html/ext/howto.html ('LWG Issues'):
5767 Add issues 19, 90, 171, 231, 271.
5768
5769 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
5770
5771 * include/bits/sstream.tcc (pbackfail): Remove redundant
5772 NULL pointer check from test involving _M_in_*.
5773 (overflow, seekoff, seekpos): Const qualify bool variables.
5774 * include/std/std_sstream.h (underflow): Remove redundant
5775 NULL pointer check from test involving _M_in_*.
5776 (_M_really_sync): Const qualify bool variables.
5777 * src/fstream.cc (_M_underflow_common): Remove redundant
5778 NULL pointer check from test involving _M_in_*, const qualify
5779 bool variables.
5780
5781 * include/std/std_streambuf.h (sgetc): Remove redundant
5782 variable.
5783
5784 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
5785
5786 According to 5.9 para 2 (second bullet) for pointers p, q
5787 pointing to the same type, with p == 0 and q == 0, (p < q)
5788 is false.
5789 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
5790 seekoff): Remove redundant NULL pointer checks from tests
5791 involving _M_out_* and _M_in_*, const qualify bool variables.
5792 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
5793 qualify bool variables.
5794 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
5795 Remove redundant NULL pointer checks from tests involving
5796 _M_out_* and _M_in_*, const qualify bool variables.
5797 * include/std/std_fstream.h (sync): Likewise.
5798 (_M_is_indeterminate): Const qualify bool variables.
5799 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
5800 NULL pointer checks from tests involving _M_out_* and _M_in_*,
5801 const qualify bool variables.
5802 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
5803 variables.
5804
5805 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
5806
5807 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
5808 C99 FP macros, if actually captured.
5809
5810 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
5811 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5812 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5813 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5814 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
5815 New macro.
5816 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5817 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5818 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5819 * include/c_std/std_cstdlib.h: Use new macros.
5820 * include/c_std/std_cstdio.h: Use new macros.
5821 * include/c_std/std_cwchar.h: Use new macros.
5822
5823 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
5824
5825 PR libstdc++/9555
5826 * include/bits/ostream.tcc: Catch all exceptions for formatted
5827 output, instead of std::exception and derivatives.
5828 * include/bits/istream.tcc: Same.
5829 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
5830 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
5831 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
5832 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
5833 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
5834 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
5835 New.
5836
5837 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
5838
5839 * include/bits/c++config: Minor cosmetic tweaks.
5840
5841 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
5842
5843 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
5844 * include/Makefile.am (pch_input): Find in ${target_builddir}.
5845 (pch_output): Rename to...
5846 (pch_output_builddir): ..this. Find in ${target_builddir}.
5847 (pch_source): Tweak.
5848 (pch_build): Key off a built file.
5849 (pch_output rule): Rename to...
5850 (pch_input rule): ...this. Produce ${pch_output_builddir}
5851 instead of ${pch_output}.
5852 (install-pch rule): Install ${pch_output_builddir}.
5853 * include/Makefile.in: Regenerated.
5854
5855 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
5856
5857 * include/std/std_streambuf.h (setp): _M_out_lim, being
5858 the end limit of used put area, is set equal to _M_out_beg.
5859
5860 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
5861
5862 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
5863 * aclocal.m4: Regenerated.
5864 * configure.in: Remove old demangler bits.
5865 Call pch checks.
5866 * configure: Regenerate.
5867 * config.h.in: Regenerate.
5868 * include/Makefile.am (allstamps): Now allstamped.
5869 (allcreated): Define this.
5870 (all-local): Use 'em.
5871 Conditionally define pch_build, pch_install based on
5872 GLIBCPP_BUILD_PCH.
5873 (${pch_output}): New rule.
5874 (install-pch): New rule.
5875 (install-headers): New rule.
5876 (install-data-local): Install headers and conditionally pch.
5877 * include/Makefile.in: Regenerate.
5878 * testsuite_flags.in (--build-cxx): Use pch file.
5879
5880 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
5881
5882 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
5883
5884 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
5885 Paolo Carlini <pcarlini at unitus dot it>
5886
5887 PR libstdc++/9423
5888 * docs/html/27_io/howto.html
5889 ('The buffering is screwing up my program!'): Explain that
5890 opening counts as an I/O operation.
5891
5892 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
5893
5894 * testsuite/thread/pthread1.cc: Enable for darwin test.
5895 * testsuite/thread/pthread2.cc: Same.
5896 * testsuite/thread/pthread3.cc: Same.
5897 * testsuite/thread/pthread4.cc: Same.
5898 * testsuite/thread/pthread5.cc: Same.
5899 * testsuite/thread/pthread6.cc: Same.
5900
5901 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
5902
5903 libstdc++/7680
5904 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
5905 Populate it with multiple legal ways to obtain the C99 float
5906 transcendentals. Use them instead of direct global reference.
5907 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
5908 * docs/html/17_intro/porting.texi
5909 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5910 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5911 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
5912 * config/os/bsd/freebsd/os_defines.h
5913 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5914 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5915 * testsuite/26_numerics/c_math_dynamic.cc: New file.
5916
5917 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
5918 Benjamin Kosnik <bkoz@redhat.com>
5919
5920 * config/os/generic/ctype_inline.h: Fix.
5921
5922 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
5923
5924 * testsuite/testsuite_hooks.h
5925 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
5926 Change to try_named_locale.
5927 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
5928
5929 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
5930 try_named_locale.
5931 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5932 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5933 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
5934 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
5935 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
5936 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
5937 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
5938 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
5939 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
5940 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
5941 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
5942 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
5943 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
5944 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
5945 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
5946 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5947 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5948 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5949 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
5950 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
5951 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
5952 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
5953 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
5954 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
5955 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
5956 * testsuite/22_locale/collate/compare/char/1.cc: Same.
5957 * testsuite/22_locale/collate/compare/char/2.cc: Same.
5958 * testsuite/22_locale/collate/compare/char/3.cc: Same.
5959 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
5960 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
5961 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
5962 * testsuite/22_locale/collate/hash/char/2.cc: Same.
5963 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
5964 * testsuite/22_locale/collate/transform/char/2.cc: Same.
5965 * testsuite/22_locale/collate/transform/char/3.cc: Same.
5966 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
5967 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
5968 * testsuite/22_locale/collate_byname/1.cc: Same.
5969 * testsuite/22_locale/ctype/is/char/2.cc: Same.
5970 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
5971 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
5972 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
5973 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
5974 * testsuite/22_locale/facet/2.cc: Same.
5975 * testsuite/22_locale/locale/cons/2.cc: Same.
5976 * testsuite/22_locale/locale/cons/4.cc: Same.
5977 * testsuite/22_locale/locale/cons/5.cc: Same.
5978 * testsuite/22_locale/locale/cons/7.cc: Same.
5979 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
5980 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
5981 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
5982 * testsuite/22_locale/messages/members/char/1.cc: Same.
5983 * testsuite/22_locale/messages/members/char/2.cc: Same.
5984 * testsuite/22_locale/messages/members/char/3.cc: Same.
5985 * testsuite/22_locale/messages_byname/1.cc: Same.
5986 * testsuite/22_locale/money_get/get/char/1.cc: Same.
5987 * testsuite/22_locale/money_get/get/char/2.cc: Same.
5988 * testsuite/22_locale/money_get/get/char/3.cc: Same.
5989 * testsuite/22_locale/money_get/get/char/4.cc: Same.
5990 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
5991 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
5992 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
5993 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
5994 * testsuite/22_locale/money_put/put/char/1.cc: Same.
5995 * testsuite/22_locale/money_put/put/char/2.cc: Same.
5996 * testsuite/22_locale/money_put/put/char/3.cc: Same.
5997 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
5998 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
5999 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
6000 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
6001 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
6002 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
6003 * testsuite/22_locale/num_get/get/char/1.cc: Same.
6004 * testsuite/22_locale/num_get/get/char/2.cc: Same.
6005 * testsuite/22_locale/num_get/get/char/3.cc: Same.
6006 * testsuite/22_locale/num_get/get/char/5.cc: Same.
6007 * testsuite/22_locale/num_get/get/char/6.cc: Same.
6008 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
6009 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
6010 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
6011 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
6012 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
6013 * testsuite/22_locale/num_put/put/char/1.cc: Same.
6014 * testsuite/22_locale/num_put/put/char/2.cc: Same.
6015 * testsuite/22_locale/num_put/put/char/3.cc: Same.
6016 * testsuite/22_locale/num_put/put/char/5.cc: Same.
6017 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
6018 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
6019 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
6020 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
6021 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
6022 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
6023 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
6024 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
6025 * testsuite/22_locale/numpunct_byname/1.cc: Same.
6026 * testsuite/22_locale/numpunct_byname/2.cc: Same.
6027 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
6028 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
6029 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
6030 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
6031 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
6032 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
6033 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
6034 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
6035 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
6036 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
6037 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
6038 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
6039 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
6040 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
6041 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
6042 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
6043 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
6044 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
6045 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
6046 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
6047 * testsuite/22_locale/time_put/put/char/1.cc: Same.
6048 * testsuite/22_locale/time_put/put/char/2.cc: Same.
6049 * testsuite/22_locale/time_put/put/char/3.cc: Same.
6050 * testsuite/22_locale/time_put/put/char/4.cc: Same.
6051 * testsuite/22_locale/time_put/put/char/5.cc: Same.
6052 * testsuite/22_locale/time_put/put/char/6.cc: Same.
6053 * testsuite/22_locale/time_put/put/char/7.cc: Same.
6054 * testsuite/22_locale/time_put/put/char/8.cc: Same.
6055 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
6056 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
6057 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
6058 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
6059 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
6060 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
6061 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
6062 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
6063 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
6064 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
6065 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
6066 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
6067 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
6068
6069 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
6070
6071 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
6072 solaris includes, not generic.
6073
6074 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
6075
6076 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
6077
6078 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
6079 * include/bits/concept_check.h: Fix multi-line comment.
6080 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
6081 when target is *-*-freebsd*.
6082
6083 2003-04-14 Nathan Myers <ncm@cantrip.org>
6084 Paolo Carlini <pcarlini@unitus.it>
6085
6086 PR libstdc++/9701 (in_avail())
6087 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
6088 doesn't care if there is anything in some putback cell.
6089 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
6090
6091 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
6092 unused string literals.
6093
6094 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
6095
6096 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
6097 _M_out_end, _M_set_indeterminate() does it.
6098
6099 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6100
6101 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
6102
6103 2003-04-12 David Edelsohn <edelsohn@gnu.org>
6104
6105 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
6106 Change basic_streambuf instantiation to "unsigned char".
6107 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
6108
6109 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
6110
6111 Remove _M_buf_size_opt, use directly _M_buf_size instead.
6112 * include/bits/fstream.tcc
6113 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
6114 references to _M_buf_size_opt.
6115 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
6116 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
6117 __bufsize to __in_avail and __size_opt to __buf_size.
6118 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
6119 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
6120 * include/std/std_streambuf.h (~basic_streambuf(),
6121 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
6122 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
6123 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
6124 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
6125 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
6126 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
6127 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
6128 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
6129 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
6130 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
6131 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
6132 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
6133 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
6134
6135 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
6136
6137 * include/ext/stdio_filebuf.h
6138 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
6139 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
6140 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
6141 since a stack-based buffer is used for small values of the size_t
6142 parameter.
6143 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
6144 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
6145 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
6146
6147 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
6148
6149 PR libstdc++/9533
6150 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
6151 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
6152
6153 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
6154
6155 * testsuite/22_locale/locale/cons/3.cc: Split.
6156 * testsuite/22_locale/locale/cons/7222-c.cc: New.
6157 * testsuite/22_locale/locale/cons/7222-env.cc: New.
6158 Check before trying to create a locale from the environment.
6159 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
6160 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
6161 Adjust includes.
6162
6163 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
6164
6165 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
6166 locale to construct this hybrid locale, not the global locale.
6167
6168 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
6169
6170 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
6171 instantiation for AIX.
6172 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
6173 * testsuite/25_algorithms/min_max.cc: Same.
6174
6175 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6176
6177 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
6178 twice. Always set _M_cfile to 0 when stream was open.
6179
6180 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
6181
6182 Reshuffle 27_io testsuite.
6183 * testsuite/27_io/filebuf.cc,
6184 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
6185 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
6186 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
6187 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
6188 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
6189 ifstream_members.cc, instantiations.cc, ios.cc,
6190 ios_base_callbacks.cc, ios_base_members_static-1.tst,
6191 ios_base_members_static.cc, ios_base_storage.cc,
6192 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
6193 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
6194 iostream.cc, iostream_members.cc, istream.cc,
6195 istream_exception.cc, istream_extractor_char.cc,
6196 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
6197 istream_extractor_other-2.tst, istream_extractor_other.cc,
6198 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
6199 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
6200 istream_sentry.cc, istream_unformatted-1.tst,
6201 istream_unformatted-1.txt, istream_unformatted.cc,
6202 istringstream.cc, istringstream_members.cc,
6203 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
6204 ofstream_members.cc, ostream.cc, ostream_exception.cc,
6205 ostream_fail.cc, ostream_inserter_arith.cc,
6206 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
6207 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
6208 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
6209 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
6210 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
6211 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
6212 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
6213 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
6214 wide_stream_objects.cc, istream_extractor_arith/01.cc,
6215 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
6216 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
6217 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
6218 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
6219 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
6220 Split into...
6221 * 27_io/basic_filebuf/1.cc: New.
6222 * 27_io/basic_filebuf/2.cc: New.
6223 * 27_io/basic_filebuf/3.cc: New.
6224 * 27_io/basic_filebuf/4.cc: New.
6225 * 27_io/basic_filebuf/close/char/1.cc: New.
6226 * 27_io/basic_filebuf/close/char/2.cc: New.
6227 * 27_io/basic_filebuf/close/char/3.cc: New.
6228 * 27_io/basic_filebuf/close/char/4879.cc: New.
6229 * 27_io/basic_filebuf/close/char/9964.cc: New.
6230 * 27_io/basic_filebuf/imbue/char/1.cc: New.
6231 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
6232 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
6233 * 27_io/basic_filebuf/is_open/char/1.cc: New.
6234 * 27_io/basic_filebuf/open/char/1.cc: New.
6235 * 27_io/basic_filebuf/open/char/2.cc: New.
6236 * 27_io/basic_filebuf/open/char/3.cc: New.
6237 * 27_io/basic_filebuf/open/char/9507.cc: New.
6238 * 27_io/basic_filebuf/overflow/char/1.cc: New.
6239 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
6240 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
6241 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
6242 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
6243 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
6244 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
6245 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
6246 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
6247 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
6248 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
6249 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
6250 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
6251 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
6252 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
6253 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
6254 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
6255 * 27_io/basic_filebuf/snextc/char/1.cc: New.
6256 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
6257 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
6258 * 27_io/basic_filebuf/sputc/char/1.cc: New.
6259 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
6260 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
6261 * 27_io/basic_filebuf/sputn/char/1.cc: New.
6262 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
6263 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
6264 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
6265 * 27_io/basic_filebuf/sync/char/1057.cc: New.
6266 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
6267 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
6268 * 27_io/basic_fstream/1.cc: New.
6269 * 27_io/basic_fstream/2.cc: New.
6270 * 27_io/basic_fstream/3.cc: New.
6271 * 27_io/basic_fstream/4.cc: New.
6272 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
6273 * 27_io/basic_ifstream/1.cc: New.
6274 * 27_io/basic_ifstream/2.cc: New.
6275 * 27_io/basic_ifstream/3.cc: New.
6276 * 27_io/basic_ifstream/4.cc: New.
6277 * 27_io/basic_ifstream/cons/char/1.cc: New.
6278 * 27_io/basic_ifstream/open/char/1.cc: New.
6279 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
6280 * 27_io/basic_ios/1.cc: New.
6281 * 27_io/basic_ios/2.cc: New.
6282 * 27_io/basic_ios/3.cc: New.
6283 * 27_io/basic_ios/4.cc: New.
6284 * 27_io/basic_ios/clear/char/1.cc: New.
6285 * 27_io/basic_ios/cons/char/1.cc: New.
6286 * 27_io/basic_ios/cons/char/2.cc: New.
6287 * 27_io/basic_ios/cons/char/3.cc: New.
6288 * 27_io/basic_ios/copyfmt/char/1.cc: New.
6289 * 27_io/basic_ios/copyfmt/char/2.cc: New.
6290 * 27_io/basic_ios/exceptions/char/1.cc: New.
6291 * 27_io/basic_ios/locales/char/1.cc: New.
6292 * 27_io/basic_iostream/1.cc: New.
6293 * 27_io/basic_iostream/2.cc: New.
6294 * 27_io/basic_iostream/3.cc: New.
6295 * 27_io/basic_iostream/4.cc: New.
6296 * 27_io/basic_istream/1.cc: New.
6297 * 27_io/basic_istream/2.cc: New.
6298 * 27_io/basic_istream/3.cc: New.
6299 * 27_io/basic_istream/4.cc: New.
6300 * 27_io/basic_istream/exceptions/char/9561.cc: New.
6301 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
6302 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
6303 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
6304 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
6305 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
6306 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
6307 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
6308 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
6309 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
6310 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
6311 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
6312 * 27_io/basic_istream/extractors_character/char/1.cc: New.
6313 * 27_io/basic_istream/extractors_character/char/2.cc: New.
6314 * 27_io/basic_istream/extractors_character/char/3.cc: New.
6315 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
6316 * 27_io/basic_istream/extractors_other/char/1.cc: New.
6317 * 27_io/basic_istream/extractors_other/char/2.cc: New.
6318 * 27_io/basic_istream/extractors_other/char/3.cc: New.
6319 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
6320 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
6321 * 27_io/basic_istream/get/char/1.cc: New.
6322 * 27_io/basic_istream/get/char/2.cc: New.
6323 * 27_io/basic_istream/getline/char/1.cc: New.
6324 * 27_io/basic_istream/getline/char/2.cc: New.
6325 * 27_io/basic_istream/getline/char/3.cc: New.
6326 * 27_io/basic_istream/ignore/char/1.cc: New.
6327 * 27_io/basic_istream/ignore/char/6360.cc: New.
6328 * 27_io/basic_istream/ignore/char/7220.cc: New.
6329 * 27_io/basic_istream/peek/char/1.cc: New.
6330 * 27_io/basic_istream/peek/char/6414.cc: New.
6331 * 27_io/basic_istream/putback/char/1.cc: New.
6332 * 27_io/basic_istream/read/char/1.cc: New.
6333 * 27_io/basic_istream/read/char/2.cc: New.
6334 * 27_io/basic_istream/read/char/3.cc: New.
6335 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
6336 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
6337 * 27_io/basic_istream/readsome/char/8258.cc: New.
6338 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
6339 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
6340 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
6341 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
6342 * 27_io/basic_istream/seekg/char/fstream.cc: New.
6343 * 27_io/basic_istream/seekg/char/sstream.cc: New.
6344 * 27_io/basic_istream/sentry/char/1.cc: New.
6345 * 27_io/basic_istream/sentry/char/2.cc: New.
6346 * 27_io/basic_istream/sentry/char/3.cc: New.
6347 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
6348 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
6349 * 27_io/basic_istream/tellg/char/1.cc: New.
6350 * 27_io/basic_istream/tellg/char/8348.cc: New.
6351 * 27_io/basic_istream/tellg/char/fstream.cc: New.
6352 * 27_io/basic_istream/tellg/char/sstream.cc: New.
6353 * 27_io/basic_istream/ws/char/1.cc: New.
6354 * 27_io/basic_istringstream/1.cc: New.
6355 * 27_io/basic_istringstream/2.cc: New.
6356 * 27_io/basic_istringstream/3.cc: New.
6357 * 27_io/basic_istringstream/4.cc: New.
6358 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
6359 * 27_io/basic_istringstream/str/char/1.cc: New.
6360 * 27_io/basic_ofstream/1.cc: New.
6361 * 27_io/basic_ofstream/2.cc: New.
6362 * 27_io/basic_ofstream/3.cc: New.
6363 * 27_io/basic_ofstream/4.cc: New.
6364 * 27_io/basic_ofstream/cons/char/2.cc: New.
6365 * 27_io/basic_ofstream/open/char/1.cc: New.
6366 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
6367 * 27_io/basic_ostream/1.cc: New.
6368 * 27_io/basic_ostream/2.cc: New.
6369 * 27_io/basic_ostream/3.cc: New.
6370 * 27_io/basic_ostream/4.cc: New.
6371 * 27_io/basic_ostream/cons/char/9827.cc: New.
6372 * 27_io/basic_ostream/endl/char/1.cc: New.
6373 * 27_io/basic_ostream/ends/char/1.cc: New.
6374 * 27_io/basic_ostream/ends/char/2.cc: New.
6375 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
6376 * 27_io/basic_ostream/flush/char/1.cc: New.
6377 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
6378 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
6379 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
6380 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
6381 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
6382 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
6383 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
6384 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
6385 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
6386 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
6387 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
6388 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
6389 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
6390 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
6391 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
6392 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
6393 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
6394 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
6395 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
6396 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
6397 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
6398 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
6399 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
6400 * 27_io/basic_ostream/sentry/char/1.cc: New.
6401 * 27_io/basic_ostream/sentry/char/2.cc: New.
6402 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
6403 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
6404 * 27_io/basic_ostream/tellp/char/1.cc: New.
6405 * 27_io/basic_ostream/tellp/char/2.cc: New.
6406 * 27_io/basic_ostringstream/1.cc: New.
6407 * 27_io/basic_ostringstream/2.cc: New.
6408 * 27_io/basic_ostringstream/3.cc: New.
6409 * 27_io/basic_ostringstream/4.cc: New.
6410 * 27_io/basic_ostringstream/cons/char/3.cc: New.
6411 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
6412 * 27_io/basic_ostringstream/str/char/1.cc: New.
6413 * 27_io/basic_ostringstream/str/char/2.cc: New.
6414 * 27_io/basic_streambuf/1.cc: New.
6415 * 27_io/basic_streambuf/2.cc: New.
6416 * 27_io/basic_streambuf/3.cc: New.
6417 * 27_io/basic_streambuf/cons/char/1.cc: New.
6418 * 27_io/basic_streambuf/imbue/char/1.cc: New.
6419 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
6420 * 27_io/basic_streambuf/overflow/char/1.cc: New.
6421 * 27_io/basic_streambuf/overflow/char/2.cc: New.
6422 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
6423 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
6424 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
6425 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
6426 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
6427 * 27_io/basic_streambuf/sputn/char/1.cc: New.
6428 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
6429 * 27_io/basic_streambuf/sync/char/1057.cc: New.
6430 * 27_io/basic_stringbuf/1.cc: New.
6431 * 27_io/basic_stringbuf/2.cc: New.
6432 * 27_io/basic_stringbuf/3.cc: New.
6433 * 27_io/basic_stringbuf/4.cc: New.
6434 * 27_io/basic_stringbuf/5.cc: New.
6435 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
6436 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
6437 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
6438 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
6439 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
6440 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
6441 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
6442 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
6443 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
6444 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
6445 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
6446 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
6447 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
6448 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
6449 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
6450 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
6451 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
6452 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
6453 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
6454 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
6455 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
6456 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
6457 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
6458 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
6459 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
6460 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
6461 * 27_io/basic_stringbuf/str/char/1.cc: New.
6462 * 27_io/basic_stringbuf/str/char/2.cc: New.
6463 * 27_io/basic_stringbuf/str/char/3.cc: New.
6464 * 27_io/basic_stringbuf/str/char/3955.cc: New.
6465 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
6466 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
6467 * 27_io/basic_stringstream/1.cc: New.
6468 * 27_io/basic_stringstream/2.cc: New.
6469 * 27_io/basic_stringstream/3.cc: New.
6470 * 27_io/basic_stringstream/4.cc: New.
6471 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
6472 * 27_io/basic_stringstream/str/char/1.cc: New.
6473 * 27_io/basic_stringstream/str/char/2.cc: New.
6474 * 27_io/basic_stringstream/str/char/3.cc: New.
6475 * 27_io/basic_stringstream/str/char/4.cc: New.
6476 * 27_io/fpos/1.cc: New.
6477 * 27_io/fpos/2.cc: New.
6478 * 27_io/fpos/3.cc: New.
6479 * 27_io/ios_base/callbacks/1.cc: New.
6480 * 27_io/ios_base/state/1.cc: New.
6481 * 27_io/ios_base/storage/1.cc: New.
6482 * 27_io/ios_base/storage/2.cc: New.
6483 * 27_io/ios_base/storage/3.cc: New.
6484 * 27_io/ios_base/sync_with_stdio/1.cc: New.
6485 * 27_io/ios_base/sync_with_stdio/2.cc: New.
6486 * 27_io/manipulators/adjustfield/char/1.cc: New.
6487 * 27_io/manipulators/adjustfield/char/2.cc: New.
6488 * 27_io/manipulators/basefield/char/1.cc: New.
6489 * 27_io/manipulators/standard/char/1.cc: New.
6490 * 27_io/manipulators/standard/char/2.cc: New.
6491 * 27_io/objects/char/1.cc: New.
6492 * 27_io/objects/char/2.cc: New.
6493 * 27_io/objects/char/2523-1_xin.cc: New.
6494 * 27_io/objects/char/2523-1_xin.in: New.
6495 * 27_io/objects/char/2523-2_xin.cc: New.
6496 * 27_io/objects/char/2523-2_xin.in: New.
6497 * 27_io/objects/char/3045.cc: New.
6498 * 27_io/objects/char/3647.cc: New.
6499 * 27_io/objects/char/3_xin.cc: New.
6500 * 27_io/objects/char/3_xin.in: New.
6501 * 27_io/objects/char/4_xin.cc: New.
6502 * 27_io/objects/char/4_xin.in: New.
6503 * 27_io/objects/char/5268.cc: New.
6504 * 27_io/objects/char/5280_xin.cc: New.
6505 * 27_io/objects/char/5280_xin.in: New.
6506 * 27_io/objects/char/6548_xin.cc: New.
6507 * 27_io/objects/char/6548_xin.in: New.
6508 * 27_io/objects/char/6648-1_xin.cc: New.
6509 * 27_io/objects/char/6648-1_xin.in: New.
6510 * 27_io/objects/char/6648-2_xin.cc: New.
6511 * 27_io/objects/char/6648-2_xin.in: New.
6512 * 27_io/objects/char/7744_xin.cc: New.
6513 * 27_io/objects/char/7744_xin.in: New.
6514 * 27_io/objects/wchar_t/1.cc: New.
6515 * 27_io/types/1.cc: New.
6516 * 27_io/types/2.cc: New.
6517 * data/filebuf_members-1.tst: New.
6518 * data/filebuf_members-1.txt: New.
6519 * data/filebuf_virtuals-1.tst: New.
6520 * data/filebuf_virtuals-1.txt: New.
6521 * data/filebuf_virtuals-2.tst: New.
6522 * data/filebuf_virtuals-3.tst: New.
6523 * data/ifstream_members-1.tst: New.
6524 * data/ifstream_members-1.txt: New.
6525 * data/ios_base_members_static-1.tst: New.
6526 * data/istream_extractor_other-1.tst: New.
6527 * data/istream_extractor_other-1.txt: New.
6528 * data/istream_extractor_other-2.tst: New.
6529 * data/istream_seeks-1.tst: New.
6530 * data/istream_seeks-1.txt: New.
6531 * data/istream_seeks-2.tst: New.
6532 * data/istream_seeks-3.tst: New.
6533 * data/istream_unformatted-1.tst: New.
6534 * data/istream_unformatted-1.txt: New.
6535 * data/ofstream_members-1.tst: New.
6536 * data/ostream_inserter_char-1.tst: New.
6537 * data/ostream_inserter_char-1.txt: New.
6538 * data/ostream_inserter_other-1.tst: New.
6539 * data/ostream_inserter_other-2.tst: New.
6540 * data/ostream_seeks-1.tst: New.
6541
6542 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
6543
6544 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
6545 requirement that __mode must be strict input or output.
6546
6547 * include/std/std_streambuf.h (basic_streambuf::setp): Set
6548 _M_out_lim.
6549
6550 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
6551 output string shouldn't core.
6552 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
6553 type.
6554 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
6555
6556 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
6557 zero.
6558
6559 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
6560
6561 * testsuite/data: New directory.
6562 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
6563 to copy files from the testsuite data directory.
6564 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
6565 testfiles containing _xin, which now means this is an interactive
6566 test and should be run with the interactive dejagnu hooks.
6567 * testsuite/Makefile.am: Remove testsuite_* files.
6568 * testsuite/Makefile.in: Regenerate.
6569
6570 2003-04-09 Zack Weinberg <zack@codesourcery.com>
6571
6572 * docs/html/install.html: Document complete list of locales
6573 required by test suite. Document procedure for installing
6574 said locales under Debian. Solicit instructions for other
6575 operating systems.
6576
6577 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
6578
6579 * include/bits/sstream.tcc (overflow): Make sure operands of min
6580 and max have the same type.
6581
6582 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
6583
6584 PR libstdc++/10276
6585 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
6586 initialization.
6587
6588 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
6589
6590 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
6591 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6592 Don't set _M_out_end.
6593 (basic_filebuf::overflow): Replace _M_out_buf_size() with
6594 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
6595 * include/bits/sstream.tcc (basic_stringbuf::overflow):
6596 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
6597 * include/bits/streambuf.tcc (basic_streambuf::sputc):
6598 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
6599 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
6600 _M_out_end - _M_out_cur.
6601 (__copy_streambufs): Likewise.
6602 * include/std/std_fstream.h (_M_set_determinate): Set
6603 _M_out_end here.
6604
6605 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
6606
6607 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
6608 _M_convert_to_external, _M_really_overflow, seekoff): Fix
6609 test for synced buffer.
6610 * include/std/std_fstream.h (sync): Likewise.
6611 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6612 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
6613
6614 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
6615
6616 * include/std/std_sstream.h (basic_istringstream): Adjust
6617 initialization.
6618 (basic_ostringstream): Same.
6619 (basic_stringstream): Same.
6620 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
6621 (basic_ofstream): Same.
6622 (basic_fstream): Same.
6623 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
6624 that does not call init.
6625 * include/std/std_istream.h (basic_istream): Same.
6626 (basic_iostream): Construct istream, ostream uninitialized, use
6627 init to initialize just once. Add protected ctor that does not
6628 call init.
6629
6630 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
6631 Nathan Myers <ncm@cantrip.org>
6632
6633 PR libstdc++/9533
6634 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
6635 call underflow().
6636 (basic_filebuf<>::showmanyc): Use the information provided
6637 by codecvt and __basic_file<>::showmanyc_helper to implement
6638 a non-trivial showmanyc.
6639 * config/io/basic_file_stdio.h
6640 (__basic_file<>::showmanyc_helper): New, declare.
6641 * config/io/basic_file_stdio.cc
6642 (__basic_file<>::showmanyc_helper): Define.
6643 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
6644 (__basic_file<char>::open): Don't call fcntl().
6645 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
6646 GLIBCPP_CHECK_POLL): New macros.
6647 * configure.in: Call here.
6648 * acconfig.h: Add #undefs for the corresponding symbols.
6649 * aclocal.m4: Regenerate.
6650 * configure: Regenerate.
6651 * config.h.in: Regenerate.
6652
6653 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
6654
6655 * config/linker-map.gnu: Remove string export restrictions.
6656
6657 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
6658
6659 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
6660 find_first_of, find_last_of and find_last_not_of tests.
6661 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
6662 tests here, new file.
6663 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
6664 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
6665 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
6666 wchar_t find_first_of tests here, new file.
6667 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
6668 tests here.
6669 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
6670 tests here.
6671 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
6672 wchar_t find_last_of tests here.
6673 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
6674 wchar_t find_last_not_of tests here.
6675
6676 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
6677
6678 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
6679 Correct return value.
6680
6681 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
6682
6683 PR libstdc++/5730
6684 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
6685 * include/std/std_complex.h (norm): Use faster,
6686 less accurate computation for builtin float types under --fast-math.
6687
6688 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
6689
6690 * testsuite/testsuite_hooks.h: Fix warning nits.
6691
6692 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
6693
6694 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
6695 Only .set mips2 for the o32 ABI.
6696
6697 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
6698
6699 * testsuite/21_strings/char_traits/requirements/char/1.cc:
6700 Test char not wchar_t.
6701
6702 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
6703
6704 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
6705 Correct size, taking into account sizeof(wchar_t).
6706
6707 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
6708
6709 Reshuffle 21_strings testsuite.
6710 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
6711 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
6712 element_access.cc, operations.cc, char_traits_requirements.cc,
6713 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
6714 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
6715 wchar_t tests as follows.
6716 * 21_strings/basic_string/append/char/1.cc: New.
6717 * 21_strings/basic_string/append/wchar_t/1.cc: New.
6718 * 21_strings/basic_string/assign/char/1.cc: New.
6719 * 21_strings/basic_string/assign/char/2.cc: New.
6720 * 21_strings/basic_string/assign/char/3.cc: New.
6721 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
6722 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
6723 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
6724 * 21_strings/basic_string/capacity/1.cc: New.
6725 * 21_strings/basic_string/capacity/char/1.cc: New.
6726 * 21_strings/basic_string/capacity/char/2.cc: New.
6727 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
6728 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
6729 * 21_strings/basic_string/compare/char/1.cc: New.
6730 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
6731 * 21_strings/basic_string/cons/char/1.cc: New.
6732 * 21_strings/basic_string/cons/char/2.cc: New.
6733 * 21_strings/basic_string/cons/char/3.cc: New.
6734 * 21_strings/basic_string/cons/char/4.cc: New.
6735 * 21_strings/basic_string/cons/char/5.cc: New.
6736 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
6737 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
6738 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
6739 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
6740 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
6741 * 21_strings/basic_string/element_access/char/1.cc: New.
6742 * 21_strings/basic_string/element_access/char/2.cc: New.
6743 * 21_strings/basic_string/element_access/char/3.cc: New.
6744 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
6745 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
6746 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
6747 * 21_strings/basic_string/find/char/1.cc: New.
6748 * 21_strings/basic_string/find/wchar_t/1.cc: New.
6749 * 21_strings/basic_string/insert/char/1.cc: New.
6750 * 21_strings/basic_string/insert/char/2.cc: New.
6751 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
6752 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
6753 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
6754 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
6755 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
6756 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
6757 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
6758 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
6759 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
6760 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
6761 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
6762 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
6763 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
6764 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
6765 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
6766 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
6767 * 21_strings/basic_string/operators/char/1.cc: New.
6768 * 21_strings/basic_string/operators/char/2.cc: New.
6769 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
6770 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
6771 * 21_strings/basic_string/replace/char/1.cc: New.
6772 * 21_strings/basic_string/replace/char/2.cc: New.
6773 * 21_strings/basic_string/replace/char/3.cc: New.
6774 * 21_strings/basic_string/replace/char/4.cc: New.
6775 * 21_strings/basic_string/replace/char/5.cc: New.
6776 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
6777 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
6778 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
6779 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
6780 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
6781 * 21_strings/basic_string/rfind/char/1.cc: New.
6782 * 21_strings/basic_string/rfind/char/2.cc: New.
6783 * 21_strings/basic_string/rfind/char/3.cc: New.
6784 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
6785 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
6786 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
6787 * 21_strings/basic_string/substr/char/1.cc: New.
6788 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
6789 * 21_strings/c_strings/char/1.cc: New.
6790 * 21_strings/c_strings/char/2.cc: New.
6791 * 21_strings/c_strings/wchar_t/1.cc: New.
6792 * 21_strings/c_strings/wchar_t/2.cc: New.
6793 * 21_strings/char_traits/requirements/char/1.cc: New.
6794 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
6795 * 21_strings/char_traits/typedefs/char/1.cc: New.
6796
6797 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
6798 Petur Runolfsson <peturr02@ru.is>
6799
6800 PR libstdc++/10097
6801 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6802 basic_filebuf<wchar_t>::_M_underflow_common):
6803 if (gptr() < egptr()) return *gptr().
6804 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
6805
6806 * testsuite/27_io/filebuf_members.cc (test_04): Minor
6807 changes: unlink fifo before making it, fix spelling error.
6808
6809 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
6810
6811 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
6812 * testsuite/Makefile.in: Regenerate.
6813 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
6814 Cleanups.
6815
6816 2003-03-17 Petur Runolfsson <peturr02@ru.is>
6817
6818 PR libstdc++/9964
6819 * include/bits/fstream.tcc (basic_filebuf::close):
6820 Always close file, even when write fails.
6821 * testsuite/27_io/filebuf_members.cc (test_07): New test.
6822
6823 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
6824
6825 * libsupc++/Makefile.am (C_COMPILE): Remove.
6826 (LTCOMPILE): Likewise.
6827 * libsupc++/Makefile.in: Regenerate.
6828
6829 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
6830
6831 * testsuite/23_containers/bitset_members.cc: Add test variable.
6832 * testsuite/23_containers/map_insert.cc: Same.
6833 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
6834 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
6835 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
6836 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
6837 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
6838 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
6839 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
6840 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
6841 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
6842 * testsuite/27_io/istream_exception.cc: Same.
6843 * testsuite/27_io/filebuf_virtuals.cc: Same.
6844 * testsuite/27_io/stringbuf_virtuals.cc: Same.
6845 * testsuite/27_io/ostream_inserter_arith.cc: Same.
6846 * testsuite/26_numerics/valarray_operators.cc: Same.
6847 * testsuite/26_numerics/slice.cc: Same.
6848 * testsuite/26_numerics/slice_array_assignment.cc: Same.
6849 * testsuite/24_iterators/istream_iterator.cc: Same.
6850 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
6851
6852 2003-03-14 Petur Runolfsson <peturr02@ru.is>
6853
6854 PR libstdc++/9581
6855 PR libstdc++/9870
6856 * config/locale/generic/ctype_members.cc,
6857 * config/locale/gnu/ctype_members.cc
6858 (ctype<wchar_t>::do_widen(char)): Cast argument to
6859 unsigned char before passing to btowc.
6860 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
6861 Convert characters with btowc instead of mbsrtowcs.
6862 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
6863 char, char*):
6864 Convert characters with wctob instead of wcsrtombs.
6865 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
6866 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
6867 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
6868
6869 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
6870
6871 * include/stdc++.h: New.
6872 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
6873 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
6874 * include/Makefile.in: Regenerate.
6875 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
6876 (--cxxflags): Put -g -O2 here.
6877 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
6878
6879 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
6880
6881 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
6882 missing named locale.
6883
6884 2003-03-14 Andreas Schwab <schwab@suse.de>
6885
6886 * configure.in: Only append to makefiles that are newly created to
6887 avoid multiple multi-do/multi-clean rules.
6888 * configure: Rebuilt.
6889
6890 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
6891
6892 * docs/html/configopts.html, docs/html/documentation.html,
6893 docs/html/explanations.html, docs/html/install.html,
6894 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
6895 invalid XHTML and make page header style consistent.
6896
6897 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
6898
6899 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
6900 * docs/html/faq/index.txt: Regenerate.
6901 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
6902
6903 2003-03-12 Andreas Schwab <schwab@suse.de>
6904
6905 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
6906 glibcpp_toolexeclibdir.
6907 * aclocal.m4, configure: Rebuilt.
6908
6909 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
6910
6911 * docs/html/faq/index.html: Update text about location of headers.
6912 * docs/html/faq/index.txt: Regenerate.
6913
6914 2003-03-11 Carlo Wood <carlo@alinoe.com>
6915
6916 * include/bits/demangle.h: Prepend accessors of
6917 class qualifier with 'get_' in order to fix warnings
6918 when compiling with -Wshadow.
6919
6920 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
6921
6922 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
6923 when so installed.
6924 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
6925
6926 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
6927 report lack of setenv().
6928
6929 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6930
6931 * config/io/basic_file_stdio.cc: include <unistd.h>.
6932
6933 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6934 Nathan Myers <ncm@cantrip.org>
6935
6936 PR libstdc++/7744
6937 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
6938 seekoff, seekpos): Add a boolean parameter __stdio.
6939 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
6940 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
6941 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
6942 respectively).
6943 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
6944 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
6945 * include/std/std_fstream.h (sync): Likewise.
6946 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
6947 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
6948 libstdc++/8399 commit involving isatty(0).
6949 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
6950 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
6951 * configure.in: Remove call.
6952 * aclocal.m4: Regenerate.
6953 * config.h.in: Regenerate.
6954 * configure: Regenerate.
6955 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
6956
6957 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6958
6959 PR libstdc++/9988
6960 * include/bits/fstream.tcc (overflow): don't write EOF to file.
6961 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
6962
6963 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6964
6965 PR libstdc++/9561
6966 * include/bits/basic_ios.h (_M_setstate): New.
6967 * include/bits/ostream.tcc (operator<<): Use it.
6968 * include/bits/istream.tcc (operator>>): Use it.
6969 * include/std/std_ostream.h (operator<<): Make friends.
6970 * include/std/std_istream.h (operator>>): Make friends.
6971 * testsuite/27_io/ostream_exception.cc,
6972 testsuite/27_io/istream_exception.cc: New tests.
6973
6974 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
6975
6976 * include/bits/locale_facets.tcc: Fix typo.
6977
6978 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
6979
6980 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
6981
6982 * config/locale/generic/c_locale.cc
6983 (locale::facet::_S_create_c_locale): Throw runtime exception when
6984 unsupported language is specified.
6985 * testsuite/testsuite_hooks.h
6986 (run_test_wrapped_generic_locale_exception_catcher): New function.
6987 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
6988 Suppress runtime exception thrown by generic implementation.
6989 (run_tests_wrapped_env): Likewise.
6990 (run_test_wrapped_generic_locale_exception_catcher): New function.
6991 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
6992 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
6993 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
6994 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
6995 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
6996 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
6997 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
6998 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
6999 * testsuite/22_locale/facet/2.cc: New test wrap.
7000 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
7001 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
7002 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
7003 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
7004 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
7005 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
7006 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
7007 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
7008 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
7009 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
7010 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
7011 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
7012 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
7013 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
7014 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
7015 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
7016 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
7017 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
7018 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
7019 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
7020 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
7021 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
7022 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
7023 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
7024 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
7025 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
7026 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
7027 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
7028 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
7029 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
7030 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
7031 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
7032 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
7033 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
7034 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
7035 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
7036 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
7037 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
7038 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
7039 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
7040 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
7041 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
7042 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
7043 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
7044 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
7045 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
7046 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
7047 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
7048 * testsuite/27_io/ios_members.cc: New test wrap.
7049 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
7050 New test wrap.
7051 * testsuite/27_io/streambuf_members.cc: New test wrap.
7052 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
7053
7054 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
7055 Petur Runolfsson <peturr02@ru.is>
7056
7057 PR libstdc++/9424
7058 * include/bits/streambuf.tcc (__copy_streambufs): Use
7059 sgetn-sputn only when sputn cannot fail, otherwise fall back
7060 to safe snextc-sputc.
7061 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
7062
7063 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
7064
7065 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
7066 locale cache for truename and falsename.
7067
7068 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
7069
7070 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
7071 _M_word_size initialization.
7072
7073 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
7074
7075 * include/bits/fstream.tcc (_M_convert_to_external):
7076 Set __elen to zero if codecvt::out eventually fails.
7077
7078 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
7079
7080 PR libstdc++/9182
7081 * include/bits/fstream.tcc (_M_really_overflow): Check
7082 for _M_convert_to_external possible failures.
7083 * include/std/std_fstream.h (sync): Check _M_really_overflow
7084 return value and return -1 in case of failure.
7085 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
7086
7087 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
7088
7089 PR libstdc++/9826
7090 * include/bits/istream.tcc (operator>>(_CharT*),
7091 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
7092 * testsuite/27_io/stringstream.cc (test02): Add.
7093
7094 * include/bits/istream.tcc (operator>>(_CharT*)):
7095 Assign a char_type to *__s.
7096
7097 2003-03-07 Petur Runolfsson <peturr02@ru.is>
7098
7099 PR libstdc++/9817
7100 * include/bits/locale_facets.tcc
7101 (collate::do_compare, collate::do_transform):
7102 Handle nul characters in input.
7103 * testsuite/22_locale/collate/compare/char/3.cc: New test.
7104 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
7105 * testsuite/22_locale/collate/transform/char/3.cc: New test.
7106 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
7107
7108 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
7109
7110 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
7111 sputn fails.
7112 * testsuite/27_io/ostream_fail.cc: New test.
7113
7114 2003-03-07 Matthias Klose <doko@debian.org>
7115
7116 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
7117 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
7118 * Makefile.in: Regenerate.
7119 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
7120 of gxx_include_dir.
7121 AM_MAKEFLAGS: Pass gxx_include_dir.
7122 * libsupc++/Makefile.in: Regenerate.
7123
7124 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
7125
7126 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
7127 mask. Test setting small-numbered pword and iword slots. Test
7128 behavior at limit of numeric_limits::max. Check that values are
7129 still good after failures.
7130
7131 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
7132
7133 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
7134 (ios_base::ios_base): Set _M_word, _M_word_size.
7135 (ios_base::~ios_base): Remove redundant test.
7136 * testsuite/27_io/ios_base_storage.cc (test03): New.
7137
7138 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
7139
7140 * src/strstream.cc, include/bits/basic_string.tcc: Remove
7141 incorrect whitespace added in my previous change.
7142
7143 2003-03-05 Carlo Wood <carlo@alinoe.com>
7144
7145 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
7146 _S_initialized() in order to allow debugging libraries to detect
7147 when the std streams are initialized from an overloaded operator
7148 new.
7149
7150 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
7151
7152 * libsupc++/demangle.h: Move to..
7153 * include/bits/demangle.h: ...here.
7154 * src/demangle.cc: Adjust include.
7155 * include/Makefile.am (bits_headers): Add.
7156 * include/Makefile.in: Regenerate.
7157
7158 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
7159
7160 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
7161
7162 * config/linker-map.gnu: Filter typeinfo and vtable info.
7163
7164 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
7165
7166 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
7167 new failure. Throw exception if badbit and exception mask when ix
7168 >= numeric_limits<int>::max().
7169
7170 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
7171
7172 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
7173 min and max have the same type.
7174 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
7175
7176 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
7177
7178 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
7179 * include/Makefile.in: Regenerate.
7180
7181 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
7182
7183 * testsuite/abi_check.cc (report_symbol_info): Add version info.
7184
7185 * config/linker-map.gnu: Hide more stuff.
7186 * include/Makefile.am: Cleanups.
7187 * include/Makefile.in: Regenerate.
7188
7189 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
7190
7191 * config/locale/generic/messages_members.h (messages::messages):
7192 Remove name from unused parameter.
7193
7194 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
7195
7196 * src/Makefile.am (sources): Add demangle.cc.
7197 (demangle.o): Add.
7198 (demangle.lo): Add.
7199 * src/Makefile.in: Regenerate.
7200 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
7201 * libsupc++/Makefile.in: Regenerate.
7202
7203 * testsuite/testsuite_hooks.h
7204 (__gnu_cxx_test::verify_demangle): New.
7205 * testsuite/testsuite_hooks.cc: Define.
7206
7207 2003-02-27 Carlo Wood <carlo@alinoe.com>
7208
7209 * src/demangle.cc: New.
7210 * libsupc++/demangle.h: New.
7211
7212 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
7213 Carlo Wood <carlo@alinoe.com>
7214
7215 * testsuite/demangle/abi_examples/01.cc: New.
7216 * testsuite/demangle/abi_examples/02.cc: New.
7217 * testsuite/demangle/abi_examples/03.cc: New.
7218 * testsuite/demangle/abi_examples/04.cc: New.
7219 * testsuite/demangle/abi_examples/05.cc: New.
7220 * testsuite/demangle/abi_examples/06.cc: New.
7221 * testsuite/demangle/abi_examples/07.cc: New.
7222 * testsuite/demangle/abi_examples/08.cc: New.
7223 * testsuite/demangle/abi_examples/09.cc: New.
7224 * testsuite/demangle/abi_examples/10.cc: New.
7225 * testsuite/demangle/abi_examples/11.cc: New.
7226 * testsuite/demangle/abi_examples/12.cc: New.
7227 * testsuite/demangle/abi_examples/13.cc: New.
7228 * testsuite/demangle/abi_examples/14.cc: New.
7229 * testsuite/demangle/abi_examples/15.cc: New.
7230 * testsuite/demangle/abi_examples/16.cc: New.
7231 * testsuite/demangle/abi_examples/17.cc: New.
7232 * testsuite/demangle/abi_examples/18.cc: New.
7233 * testsuite/demangle/abi_examples/19.cc: New.
7234 * testsuite/demangle/abi_examples/20.cc: New.
7235 * testsuite/demangle/abi_examples/21.cc: New.
7236 * testsuite/demangle/abi_examples/22.cc: New.
7237 * testsuite/demangle/abi_examples/23.cc: New.
7238 * testsuite/demangle/abi_examples/24.cc: New.
7239 * testsuite/demangle/abi_examples/25.cc: New.
7240 * testsuite/demangle/abi_examples/26.cc: New.
7241 * testsuite/demangle/abi_text/01.cc: New.
7242 * testsuite/demangle/abi_text/02.cc: New.
7243 * testsuite/demangle/abi_text/03.cc: New.
7244 * testsuite/demangle/abi_text/04.cc: New.
7245 * testsuite/demangle/abi_text/05.cc: New.
7246 * testsuite/demangle/abi_text/06.cc: New.
7247 * testsuite/demangle/abi_text/07.cc: New.
7248 * testsuite/demangle/abi_text/08.cc: New.
7249 * testsuite/demangle/abi_text/09.cc: New.
7250 * testsuite/demangle/abi_text/10.cc: New.
7251 * testsuite/demangle/abi_text/11.cc: New.
7252 * testsuite/demangle/abi_text/12.cc: New.
7253 * testsuite/demangle/abi_text/13.cc: New.
7254 * testsuite/demangle/abi_text/14.cc: New.
7255 * testsuite/demangle/regression/3111-1.cc: New.
7256 * testsuite/demangle/regression/3111-2.cc: New.
7257 * testsuite/demangle/regression/7986-01.cc: New.
7258 * testsuite/demangle/regression/7986-02.cc: New.
7259 * testsuite/demangle/regression/7986-03.cc: New.
7260 * testsuite/demangle/regression/7986-04.cc: New.
7261 * testsuite/demangle/regression/7986-05.cc: New.
7262 * testsuite/demangle/regression/7986-06.cc: New.
7263 * testsuite/demangle/regression/7986-07.cc: New.
7264 * testsuite/demangle/regression/7986-08.cc: New.
7265 * testsuite/demangle/regression/7986-09.cc: New.
7266 * testsuite/demangle/regression/7986-10.cc: New.
7267 * testsuite/demangle/regression/7986-11.cc: New.
7268 * testsuite/demangle/regression/7986-12.cc: New.
7269 * testsuite/demangle/regression/7986.cc: New.
7270 * testsuite/demangle/regression/8897.cc: New.
7271 * testsuite/demangle/regression/cw-01.cc: New.
7272 * testsuite/demangle/regression/cw-02.cc: New.
7273 * testsuite/demangle/regression/cw-03.cc: New.
7274 * testsuite/demangle/regression/cw-04.cc: New.
7275 * testsuite/demangle/regression/cw-05.cc: New.
7276 * testsuite/demangle/regression/cw-06.cc: New.
7277 * testsuite/demangle/regression/cw-07.cc: New.
7278 * testsuite/demangle/regression/cw-08.cc: New.
7279 * testsuite/demangle/regression/cw-09.cc: New.
7280 * testsuite/demangle/regression/cw-10.cc: New.
7281 * testsuite/demangle/regression/cw-11.cc: New.
7282 * testsuite/demangle/regression/cw-12.cc: New.
7283 * testsuite/demangle/regression/cw-13.cc: New.
7284 * testsuite/demangle/regression/cw-14.cc: New.
7285 * testsuite/demangle/regression/old.cc: New.
7286
7287 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
7288
7289 * docs/doxygen/Intro.3: Update with new (proper) names.
7290 * docs/doxygen/TODO: Update.
7291 * docs/doxygen/run_doxygen: More comments, fix up man pages.
7292 Fake entries for standard typedefs.
7293 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
7294 * docs/html/documentation.html: Top-level man page is now called
7295 C++Intro.
7296 * include/std/std_limits.h: Doxygenate.
7297
7298 2003-02-25 Scott Snyder <snyder@fnal.gov>
7299
7300 PR libstdc++/9811
7301 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
7302 Correct documentation.
7303 * include/bits/stl_multimap.h (lower_bound, upper_bound,
7304 equal_range): Likewise.
7305
7306 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
7307
7308 PR libstdc++/9825
7309 * src/fstream.cc
7310 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
7311 __bump is true (uflow), always increment the read pointer
7312 (_M_in_cur) before returning successfully.
7313 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
7314
7315 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
7316 Nathan Myers <ncm@cantrip.org>
7317
7318 PR libstdc++/9404, PR libstdc++/9701 (partial)
7319 (aka pptr == epptr implies overflow)
7320 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
7321 Consistently, _M_out_end points to the end of the buffer just
7322 created.
7323 (overflow): Tweak to use _M_out_buf_size().
7324 (_M_convert_to_external): The role of the old _M_out_end is
7325 now played by _M_out_lim.
7326 (_M_really_overflow): Likewise.
7327 (seekoff): Likewise.
7328 (setbuf): _M_out_end points to the end of the external buffer.
7329 * include/bits/sstream.tcc (overflow): Rewrote, taking into
7330 account the resolution of DR 169 (TC).
7331 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
7332 (seekpos): Use _M_string.capacity(); tweak.
7333 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
7334 * include/std/std_fstream.h (sync): The role of the old
7335 _M_out_end is now played by _M_out_lim.
7336 (_M_set_indeterminate): Use _M_set_determinate.
7337 (_M_set_determinate): _M_out_end is now _M_out_lim.
7338 (_M_is_indeterminate): Likewise.
7339 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
7340 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
7341 which have the information readily available as _M_string.capacity();
7342 for ate and app modes, pass the string size to _M_really_sync.
7343 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
7344 point to the end of the buffer (i.e., epptr) and to the string end,
7345 respectively.
7346 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
7347 which points to the right limit of the used put area.
7348 (_M_out_cur_move): The role of the old _M_out_end is now played
7349 by _M_out_lim.
7350 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
7351 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
7352 of the standard.
7353 (basic_streambuf()): Initialize _M_out_lim too.
7354 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
7355 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
7356 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
7357
7358 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
7359
7360 * testsuite/27_io/ios_base_storage.cc (main): Call
7361 set_memory_limits.
7362
7363 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
7364
7365 * include/bits/locale_facets.tcc (_M_convert_float): Replace
7366 numpunct facet accesses with data from __locale_cache.
7367
7368 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
7369
7370 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
7371 * docs/html/faq/index.txt: Regenerate.
7372
7373 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
7374
7375 * config/linker-map.gnu: Also export locking symbols needed for the
7376 generic atomicity.h case.
7377
7378 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
7379
7380 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
7381 config.status.
7382 * configure: Rebuilt.
7383
7384 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
7385
7386 * include/bits/sstream.tcc (overflow): According to
7387 27.7.1.3, p5, actual output is performed by sputc(c).
7388
7389 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
7390
7391 PR libstdc++/9582
7392 * include/bits/stl_alloc.h: Remove all traces of assert().
7393
7394 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
7395
7396 * include/std/std_sstream.h (str()): the size of the
7397 current string may be different from the initial one
7398 whenever _M_out_end > _M_out_beg.
7399 * testsuite/27_io/stringbuf_members.cc (test07): Add.
7400
7401 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
7402
7403 PR libstdc++/9582
7404 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
7405
7406 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
7407
7408 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
7409 * testsuite/27_io/ios_members.cc (test03): New.
7410
7411 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
7412
7413 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
7414 (basic_ios::_M_cache_facets): Move into above.
7415 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
7416 cache.
7417 (basic_ios::imbue): Force locale cache to be built.
7418 (basic_ios::_M_init): Create and initialize locale cache.
7419 * include/bits/ios_base.h (__locale_cache_base): Declare.
7420 (ios_base::_M_locale_cache): New.
7421 (ios_base::_M_cache): Define.
7422 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
7423 _S_end.
7424 (__locale_cache_base,__locale_cache<_CharT>): New classes.
7425 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
7426 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
7427 cache literal string, grouping flag, thousands separator.
7428 (__locale_cache<_CharT>::__locale_cache): New.
7429 (__locale_cache<_CharT>::_M_init): New.
7430 * src/ios.cc: Clear _M_locale_cache in constructor.
7431 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
7432 New.
7433
7434 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
7435
7436 * src/locale-inst.cc: Do not include <cassert>.
7437 * src/locale.cc: Likewise.
7438
7439 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
7440
7441 PR libstdc++/9580
7442 * include/std/std_fstream.h: Declare underflow and uflow
7443 specializations, change generic definitions to do nothing.
7444 * src/fstream.cc: Add underflow and uflow specializations.
7445
7446 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
7447
7448 PR libstdc++/9169
7449 * include/bits/fstream.tcc (_M_convert_to_external):
7450 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
7451 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
7452
7453 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
7454
7455 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
7456 * include/bits/basic_ios.tcc: Guard use of extern template.
7457 * include/std/std_iomanip.h: Same.
7458 * include/bits/streambuf.tcc: Same.
7459 * include/bits/stl_alloc.h: Same.
7460 * include/bits/locale_facets.tcc: Same.
7461 * include/bits/ostream.tcc: Same.
7462 * include/bits/istream.tcc: Same.
7463 * include/bits/fstream.tcc: Same.
7464 * include/bits/basic_string.tcc: Same.
7465
7466 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
7467
7468 * include/bits/ostream.tcc (sentry::sentry): Improve
7469 performance-wise the fix for libstdc++/9563.
7470
7471 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
7472
7473 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
7474 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
7475 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
7476 when we don't have static mutex initialization.
7477 (__exchange_and_add): Use _Atomic_add_mutex_once.
7478 * src/misc-inst.cc: Definitions of all the above.
7479
7480 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
7481
7482 PR libstdc++/9563
7483 * include/bits/ostream.tcc (sentry::sentry): Check
7484 the state of the stream after the preparation.
7485 * testsuite/27_io/ostream_sentry.cc (test02): Add.
7486
7487 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
7488
7489 * include/Makefile.am (stamp-std-precompile): Add rule.
7490 * include/Makefile.in: Regenerated.
7491
7492 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
7493 Benjamin Kosnik <benjamin@redhat.com>
7494
7495 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
7496 Add indexes into this array.
7497 (__num_base::_S_atoms): To _S_atoms_in.
7498 (num_put::_M_insert): Rename to _M_pad.
7499 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
7500 (num_put::_M_widen_int): Rename to _M_group_int.
7501 (num_put::_M_widen_float): Rename to _M_group_float.
7502 * include/bits/locale_facets.tcc (__int_to_char): New inline
7503 function and adapter functions.
7504 (num_put::_M_group_int): Streamline.
7505 (num_put::_M_group_float): Streamline.
7506 (num_put::_M_convert_int): Remove unused parameter names. Choose
7507 large enough buffer for text. Use __int_to_char instead of
7508 __convert_from_v. Formatted text is now at the end of the buffer.
7509 (num_put::_M_convert_float): Preliminary fixups.
7510 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
7511 (__int_to_char<unsigned long long>): Same.
7512 (__int_to_char<char, unsigned long>): New.
7513 (__int_to_char<char, unsigned long long>): New.
7514 (__int_to_char<wchar_t, unsigned long>): New.
7515 (__int_to_char<wchar_t, unsigned long long>): New.
7516
7517 2003-02-11 Scott Snyder <snyder@fnal.gov>
7518
7519 PR libstdc++/9659
7520 * include/bits/fstream.tcc (seekoff): Avoid operator+
7521 for pos_type.
7522
7523 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
7524
7525 PR libstdc++/9320
7526 * include/ext/stdio_filebuf.h
7527 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
7528 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
7529 Change to take a __size parameter of type size_t, not
7530 of type (template parameter dependent) int_type.
7531 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
7532 size vars to size_t.
7533 * testsuite/ext/stdio_filebuf.cc: Add.
7534
7535 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
7536 Petur Runolfsson <peturr02@ru.is>
7537
7538 PR libstdc++/9318
7539 * include/bits/streambuf.tcc (__copy_streambufs):
7540 Don't conditionalize the copy to __testput.
7541 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
7542
7543 2002-02-11 DJ Delorie <dj@redhat.com>
7544
7545 * acinclude.m4: Check for native targets that can't link at
7546 this point in the build.
7547 * aclocal.m4: Regenerate.
7548 * configure: Regenerate.
7549
7550 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7551
7552 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
7553 Correct alignment.
7554 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
7555 lock.
7556
7557 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
7558
7559 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
7560 unsigned char platforms.
7561
7562 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
7563
7564 PR libstdc++/9562
7565 * include/std/std_istream.h
7566 (basic_istream::sentry::operator bool()): Make const.
7567 * include/std/std_ostream.h
7568 (basic_ostream::sentry::operator bool()): Likewise.
7569 * testsuite/27_io/istream_sentry.cc (test03): Add.
7570 * testsuite/27_io/ostream_sentry.cc: Add.
7571
7572 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
7573
7574 PR libstdc++/9548
7575 Implement resolution of DR 231 (Ready)
7576 * include/bits/locale_facets.h (__num_base::_S_format_float):
7577 Change declaration: return void, remove __prec parameter.
7578 * src/locale.cc (__num_base::_S_format_float): Implement
7579 resolution of DR 231.
7580 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
7581 Tweak uses. Check for negative precision.
7582 * testsuite/22_locale/num_put/put/char/6.cc: Add
7583 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
7584
7585 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
7586
7587 * config/io/basic_file_libio.h: Fixups.
7588 * config/io/c_io_libio.h: Same.
7589 * libio/Makefile.am: Same.
7590 * libio/Makefile.in: Regenerated.
7591
7592 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
7593
7594 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
7595 Explicitly use the "C" locale.
7596 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
7597
7598 2003-02-06 Petur Runolfsson <peturr02@ru.is>
7599
7600 DR 75
7601 DR 305
7602 PR libstdc++/9028 (partial)
7603 PR libstdc++/9224
7604 PR libstdc++/9246
7605 PR libstdc++/9247
7606
7607 * src/codecvt.cc
7608 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
7609 codecvt<wchar_t, char, mbstate_t>::do_length,
7610 codecvt<wchar_t, char, mbstate_t>::do_max_length):
7611 Move...
7612 * config/locale/generic/codecvt_members.cc: ...here.
7613 * config/locale/gnu/codecvt_members.cc: ...and here.
7614
7615 * config/locale/generic/codecvt_members.cc,
7616 * config/locale/gnu/codecvt_members.cc
7617 (codecvt<wchar_t, char, mbstate_t>::do_encoding
7618 codecvt<wchar_t, char, mbstate_t>::do_in,
7619 codecvt<wchar_t, char, mbstate_t>::do_length,
7620 codecvt<wchar_t, char, mbstate_t>::do_max_length,
7621 codecvt<wchar_t, char, mbstate_t>::do_out):
7622 New implementation that handles stateless encodings,
7623 including UTF-8.
7624
7625 * config/locale/generic/codecvt_members.cc,
7626 * config/locale/gnu/codecvt_members.cc,
7627 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
7628 * include/bits/codecvt.h,
7629 * src/codecvt.cc
7630 (codecvt::length, codecvt::do_length):
7631 Change type of first argument of length and do_length from
7632 'const state_type&' to 'state_type&' according to DR 75.
7633
7634 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
7635 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
7636 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
7637 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
7638 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
7639 Cleanup and check for correct return value from encoding
7640 for "C" locale.
7641 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
7642 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
7643 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
7644 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
7645 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
7646 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
7647 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
7648 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
7649 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
7650 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
7651 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
7652 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
7653 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
7654 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
7655 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
7656 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
7657 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
7658 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
7659 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
7660 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
7661 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
7662 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
7663 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
7664 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
7665 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
7666 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
7667 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
7668 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
7669 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
7670 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
7671 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
7672 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
7673 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
7674 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
7675 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
7676 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
7677 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
7678
7679 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
7680
7681 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
7682 (money_put::do_put): Same.
7683
7684 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
7685
7686 * include/bits/ios_base.h (ios_base): Document reserved storage.
7687
7688 * include/bits/locale_facets.h: (struct __pad): Comment on
7689 implementation.
7690 (__verify_grouping): Same.
7691 (__add_grouping): Same.
7692 * include/bits/locale_facets.tcc (__verify_grouping): Move
7693 comments to declaration.
7694 (__add_grouping): Same.
7695
7696 * include/bits/locale_facets.tcc:
7697 (__write<_CharT, _OutIter>): New function.
7698 (__write<_CharT>): New function specialization.
7699 (num_put::_M_insert): Remove explicit loop over iterator. Use
7700 __write.
7701 (num_put::_M_widen_float): Remove __basefield.
7702 (num_put::_M_widen_int): Move __basefield to within grouping block.
7703
7704 * include/bits/streambuf_iterator.h: Include <streambuf>.
7705 (ostreambuf_iterator::_M_put): Add.
7706
7707 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
7708
7709 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
7710
7711 2003-02-04 Nathan Myers <ncm@cantrip.org>
7712
7713 * testsuite/25_algorithms/min_max.cc (test02): Add.
7714
7715 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
7716
7717 PR libstdc++/9439, PR libstdc++/9425
7718 * config/io/basic_file_stdio.cc
7719 (__basic_file<char>::seekoff, seekpos): Return -1L if
7720 fseek fails.
7721 * include/bits/fstream.tcc (basic_filebuf::seekoff):
7722 Check _M_file.seekoff return value; always return
7723 pos_type(off_type(-1)) in case of failure.
7724 (basic_filebuf::pbackfail): Check this->seekoff return
7725 value and return traits_type::eof() in case of failure.
7726 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
7727
7728 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
7729
7730 * include/std/std_ostream.h (ostream::_M_write): Declare.
7731 * ostream.tcc (ostream::_M_write): Define.
7732 (basic_ostream::write): Use it.
7733 (operator<<(basic_ostream, _CharT)): Ditto.
7734 (operator<<(basic_ostream, char)): Ditto.
7735 (operator<<(basic_ostream, _CharT*)): Ditto.
7736 (operator<<(basic_ostream, char*)): Ditto.
7737 (operator<<(basic_ostream, basic_string)): Ditto.
7738
7739 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
7740
7741 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
7742
7743 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
7744
7745 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
7746 add HTML comment about updating links if numbering changes.
7747
7748 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
7749
7750 PR libstdc++/9538
7751 * include/bits/streambuf.tcc (sputbackc): Access
7752 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
7753 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
7754
7755 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
7756
7757 PR libstdc++/9507
7758 * include/bits/fstream.tcc (open): If the 'ate' repositioning
7759 operation fails, calls close _and_ returns a null pointer
7760 to indicate failure (27.8.1.3,4).
7761 * testsuite/27_io/filebuf_members.cc (test_06): Add.
7762
7763 2003-02-04 Petur Runolfsson <peturr02@ru.is>
7764
7765 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
7766
7767 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
7768
7769 * docs/html/27_io/howto.html: New section on stdio_filebuf.
7770 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
7771 * docs/html/documentation.html: Regenerate.
7772
7773 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
7774
7775 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
7776 * docs/html/17_intro/porting.html: Regenerate.
7777
7778 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
7779 Phil Edwards <pme@gcc.gnu.org>
7780
7781 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
7782 numeric_limits for bits-per-word values.
7783 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
7784 Use __builtin_popcountl instead.
7785 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
7786 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
7787 Use __builtin_ctzl instead.
7788 (_S_bit_count, _S_first_one): Remove.
7789 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
7790 * src/Makefile.am (sources): Remove bitset.cc.
7791 * src/bitset.cc: Delete file.
7792 * src/Makefile.in: Regenerate.
7793
7794 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
7795
7796 PR libstdc++/9527, PR libstdc++/8713
7797 * docs/html/install.html: Mention glibc version requirement.
7798 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
7799 with 3.2.1+ (formatting bugfixes).
7800 * docs/html/faq/index.txt: Regenerate.
7801
7802 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7803
7804 PR libstdc++/9234
7805 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
7806 operator.
7807
7808 * include/bits/valarray_before.h (__not_equal_to): Use != instead
7809 of ==.
7810
7811 * testsuite/26_numerics/valarray_operators.cc: New test.
7812
7813 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
7814
7815 * docs/html/faq/index.html: Correct link to libg++ information.
7816 * docs/html/faq/index.txt: Regenerated.
7817
7818 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
7819 Benjamin Kosnik <bkoz@redhat.com>
7820
7821 Const correctness issue:
7822 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
7823 * include/bits/locale_classes.h
7824 (locale::_Impl::_M_facets): Change type to const facet**.
7825 (locale::_Impl::_M_install_facet): Change declaration to
7826 take const facet*.
7827 (locale::facet::_M_references): Make mutable.
7828 (locale::facet::_M_add_reference): Declare const.
7829 (locale::facet::_M_remove_reference): Likewise.
7830 * include/bits/locale_facets.tcc
7831 (use_facet(const locale&)): Tweak for const facet** _M_facets.
7832 (has_facet(const locale&)): Likewise.
7833 * src/locale.cc
7834 (locale::facet::_M_add_reference): Adjust definition.
7835 (locale::facet::_M_remove_reference): Likewise.
7836 * src/localename.cc
7837 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
7838 const facet** _M_facets.
7839 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
7840 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
7841 (locale::_Impl::_M_install_facet): Adjust definition to take
7842 const facet* and for const facet** _M_facets.
7843 * testsuite/22_locale/locale/cons/8.cc: Add.
7844
7845 2003-01-29 Mark Mitchell <mark@codesourcery.com>
7846
7847 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
7848 Use __FLT_HAS_INIFINITY__ to initialize.
7849 (numeric_limits<float>::has_quiet_NaN): Likewise.
7850 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
7851 to initialize.
7852 (numeric_limits<double>::has_quiet_NaN): Likewise.
7853 (numeric_limits<long double>::has_infinity): Use
7854 __LDBL_HAS_INIFINITY__ to initialize.
7855 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
7856
7857 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
7858
7859 PR c++/9433
7860 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
7861 with bases which are very ambiguous.
7862
7863 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
7864
7865 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
7866 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
7867 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
7868 * src/Makefile.in: Regenerate.
7869 * libsupc++/Makefile.in: Regenerate.
7870
7871 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
7872
7873 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
7874 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
7875 version_specific_libs is enabled.
7876 * aclocal.m4, configure: Rebuilt.
7877
7878 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
7879
7880 * include/bits/valarray_meta.h: Remove, split into ...
7881 * include/bits/valarray_before.h: ... this, and ...
7882 * include/bits/valarray_after.h: ... this.
7883 * include/std/std_valarray.h: Adjust.
7884 * include/Makefile.am (bits_headers): Adjust.
7885 * include/Makefile.in: Regenerate.
7886
7887 2003-01-24 Andreas Schwab <schwab@suse.de>
7888
7889 * config/linker-map.gnu: Fix for size_t variance.
7890
7891 2003-01-23 Petur Runolfsson <peturr02@ru.is>
7892
7893 PR libstdc++/9322
7894 * include/std/std_streambuf.h
7895 (basic_streambuf::basic_streambuf,
7896 basic_streambuf::~basic_streambuf,
7897 basic_streambuf::getloc, basic_streambuf::imbue):
7898 Remove _M_buf_locale_init
7899 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
7900 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
7901 * testsuite/27_io/streambuf_members.cc (test08): Add.
7902 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
7903
7904 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
7905
7906 Revert include ordering.
7907 * config/locale/generic/c_locale.h: Add include guards.
7908 * config/locale/gnu/c_locale.h: Same.
7909 * include/bits/locale_classes.h: Remove cctype include.
7910 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
7911 * include/std/std_fstream.h: Remove streambuf include.
7912 * include/std/std_sstream.h: Remove streambuf include.
7913
7914 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
7915
7916 * configure.in (libtool_VERSION): To 6:0:0.
7917 * configure: Regenerated.
7918 * config/linker-map.gnu: Clean.
7919
7920 * src/misc-inst.cc: Remove instantiations.
7921
7922 * include/bits/stl_alloc.h (__malloc_alloc_template):
7923 To __malloc_alloc.
7924 (__default_alloc_template): To __pool_alloc.
7925 * src/stl-inst.cc: Same.
7926 * include/backward/alloc.h: Update.
7927 * testsuite/ext/allocators.cc: Update.
7928
7929 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
7930 really try to remove these if possible.
7931 * src/locale.cc (std): Same.
7932
7933 * testsuite/abi_check.cc (check_version): Add.
7934
7935 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
7936 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
7937 Mark Mitchell <mark@codesourcery.com>
7938
7939 PR libstdc++/9269
7940 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
7941 (basic_filebuf::underflow): Declare.
7942 Move definitions.
7943
7944 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
7945
7946 * include/bits/locale_facets.h: Move non-facet classes requiring
7947 <string> to...
7948 * include/bits/locale_classes.h: New.
7949 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
7950 * include/bits/Makefile.in: Regenerate.
7951
7952 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
7953 * config/locale/gnu/c_locale.h: ...here.
7954 * config/locale/generic/c_locale.h: Same.
7955
7956 * include/bits/locale_facets.tcc: Move declarations to...
7957 * include/bits/locale_facets.h: ...here.
7958 * include/bits/basic_ios.h: Tweak includes accordingly.
7959 * include/std/std_sstream.h: Add streambuf include.
7960 * include/std/std_fstream.h: Ditto.
7961 * include/std/std_locale.h: Add locale_classes.h include.
7962 * include/std/std_iosfwd.h: Tweak.
7963 * src/concept-inst.cc: Add iterator include.
7964
7965 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
7966 bits as unexported in the future.
7967
7968 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
7969
7970 Reshuffle 22_locale testsuite.
7971 * 22_locale/(codecvt.cc money_get.cc
7972 codecvt_members_char_char.cc money_get_members_char.cc
7973 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
7974 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
7975 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
7976 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
7977 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
7978 money_put_members_char.cc ctor_copy_dtor.cc
7979 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
7980 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
7981 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
7982 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
7983 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
7984 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
7985 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
7986 operators.cc ctype_widen_char.cc static_members.cc
7987 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
7988 global_templates.cc time_get_members_wchar_t.cc, members.cc,
7989 time_put.cc, messages_byname.cc, time_put_members_char.cc,
7990 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
7991 Split up into individual test cases...
7992 * 22_locale/codecvt/1.cc: New.
7993 * 22_locale/codecvt/2.cc: New.
7994 * 22_locale/codecvt/always_noconv/char/1.cc: New.
7995 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
7996 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
7997 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
7998 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
7999 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
8000 * 22_locale/codecvt/encoding/char/1.cc: New.
8001 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
8002 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
8003 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
8004 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
8005 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
8006 * 22_locale/codecvt/in/char/1.cc: New.
8007 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
8008 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
8009 * 22_locale/codecvt/in/wchar_t/1.cc: New.
8010 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
8011 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
8012 * 22_locale/codecvt/length/char/1.cc: New.
8013 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
8014 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
8015 * 22_locale/codecvt/length/wchar_t/1.cc: New.
8016 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
8017 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
8018 * 22_locale/codecvt/max_length/char/1.cc: New.
8019 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
8020 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
8021 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
8022 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
8023 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
8024 * 22_locale/codecvt/out/char/1.cc: New.
8025 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
8026 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
8027 * 22_locale/codecvt/out/wchar_t/1.cc: New.
8028 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
8029 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
8030 * 22_locale/codecvt/unicode/char.cc: New.
8031 * 22_locale/codecvt/unicode/wchar_t.cc: New.
8032 * 22_locale/codecvt/unshift/char/1.cc: New.
8033 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
8034 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
8035 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
8036 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
8037 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
8038 * 22_locale/collate/1.cc: New.
8039 * 22_locale/collate/2.cc: New.
8040 * 22_locale/collate/compare/char/1.cc: New.
8041 * 22_locale/collate/compare/char/2.cc: New.
8042 * 22_locale/collate/compare/char/wrapped_env.cc: New.
8043 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
8044 * 22_locale/collate/compare/wchar_t/1.cc: New.
8045 * 22_locale/collate/compare/wchar_t/2.cc: New.
8046 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
8047 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
8048 * 22_locale/collate/hash/char/1.cc: New.
8049 * 22_locale/collate/hash/char/2.cc: New.
8050 * 22_locale/collate/hash/char/wrapped_env.cc: New.
8051 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
8052 * 22_locale/collate/hash/wchar_t/1.cc: New.
8053 * 22_locale/collate/hash/wchar_t/2.cc: New.
8054 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
8055 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
8056 * 22_locale/collate/transform/char/2.cc: New.
8057 * 22_locale/collate/transform/char/wrapped_env.cc: New.
8058 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
8059 * 22_locale/collate/transform/wchar_t/2.cc: New.
8060 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
8061 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
8062 * 22_locale/collate_byname/1.cc: New.
8063 * 22_locale/ctype/1.cc: New.
8064 * 22_locale/ctype/2.cc: New.
8065 * 22_locale/ctype/cons/char/1.cc: New.
8066 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
8067 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
8068 * 22_locale/ctype/is/char/1.cc: New.
8069 * 22_locale/ctype/is/char/2.cc: New.
8070 * 22_locale/ctype/is/char/3.cc: New.
8071 * 22_locale/ctype/is/char/wrapped_env.cc: New.
8072 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
8073 * 22_locale/ctype/is/wchar_t/1.cc: New.
8074 * 22_locale/ctype/is/wchar_t/2.cc: New.
8075 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
8076 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
8077 * 22_locale/ctype/narrow/char/1.cc: New.
8078 * 22_locale/ctype/narrow/char/2.cc: New.
8079 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
8080 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
8081 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
8082 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
8083 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
8084 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
8085 * 22_locale/ctype/scan/char/1.cc: New.
8086 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
8087 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
8088 * 22_locale/ctype/scan/wchar_t/1.cc: New.
8089 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
8090 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
8091 * 22_locale/ctype/to/char/1.cc: New.
8092 * 22_locale/ctype/to/char/wrapped_env.cc: New.
8093 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
8094 * 22_locale/ctype/to/wchar_t/1.cc: New.
8095 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
8096 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
8097 * 22_locale/ctype/widen/char/1.cc: New.
8098 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
8099 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
8100 * 22_locale/ctype/widen/wchar_t/1.cc: New.
8101 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
8102 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
8103 * 22_locale/facet/1.cc: New.
8104 * 22_locale/facet/2.cc: New.
8105 * 22_locale/global_templates/1.cc: New.
8106 * 22_locale/locale/cons/1.cc: New.
8107 * 22_locale/locale/cons/2.cc: New.
8108 * 22_locale/locale/cons/3.cc: New.
8109 * 22_locale/locale/cons/4.cc: New.
8110 * 22_locale/locale/cons/5.cc: New.
8111 * 22_locale/locale/cons/6.cc: New.
8112 * 22_locale/locale/cons/7.cc: New.
8113 * 22_locale/locale/global_locale_objects/1.cc: New.
8114 * 22_locale/locale/global_locale_objects/2.cc: New.
8115 * 22_locale/locale/global_locale_objects/3.cc: New.
8116 * 22_locale/locale/operations/1.cc: New.
8117 * 22_locale/locale/operations/2.cc: New.
8118 * 22_locale/messages/1.cc: New.
8119 * 22_locale/messages/2.cc: New.
8120 * 22_locale/messages/members/char/1.cc: New.
8121 * 22_locale/messages/members/char/2.cc: New.
8122 * 22_locale/messages/members/char/3.cc: New.
8123 * 22_locale/messages/members/char/wrapped_env.cc: New.
8124 * 22_locale/messages/members/char/wrapped_locale.cc: New.
8125 * 22_locale/messages_byname/1.cc: New.
8126 * 22_locale/money_get/1.cc: New.
8127 * 22_locale/money_get/2.cc: New.
8128 * 22_locale/money_get/get/char/1.cc: New.
8129 * 22_locale/money_get/get/char/2.cc: New.
8130 * 22_locale/money_get/get/char/3.cc: New.
8131 * 22_locale/money_get/get/char/4.cc: New.
8132 * 22_locale/money_get/get/char/5.cc: New.
8133 * 22_locale/money_get/get/char/6.cc: New.
8134 * 22_locale/money_get/get/char/7.cc: New.
8135 * 22_locale/money_get/get/char/8.cc: New.
8136 * 22_locale/money_get/get/char/wrapped_env.cc: New.
8137 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
8138 * 22_locale/money_get/get/wchar_t/1.cc: New.
8139 * 22_locale/money_get/get/wchar_t/2.cc: New.
8140 * 22_locale/money_get/get/wchar_t/3.cc: New.
8141 * 22_locale/money_get/get/wchar_t/4.cc: New.
8142 * 22_locale/money_get/get/wchar_t/5.cc: New.
8143 * 22_locale/money_get/get/wchar_t/6.cc: New.
8144 * 22_locale/money_get/get/wchar_t/7.cc: New.
8145 * 22_locale/money_get/get/wchar_t/8.cc: New.
8146 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
8147 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
8148 * 22_locale/money_put/1.cc: New.
8149 * 22_locale/money_put/2.cc: New.
8150 * 22_locale/money_put/put/char/1.cc: New.
8151 * 22_locale/money_put/put/char/2.cc: New.
8152 * 22_locale/money_put/put/char/3.cc: New.
8153 * 22_locale/money_put/put/char/4.cc: New.
8154 * 22_locale/money_put/put/char/5.cc: New.
8155 * 22_locale/money_put/put/char/6.cc: New.
8156 * 22_locale/money_put/put/char/wrapped_env.cc: New.
8157 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
8158 * 22_locale/money_put/put/wchar_t/1.cc: New.
8159 * 22_locale/money_put/put/wchar_t/2.cc: New.
8160 * 22_locale/money_put/put/wchar_t/3.cc: New.
8161 * 22_locale/money_put/put/wchar_t/4.cc: New.
8162 * 22_locale/money_put/put/wchar_t/5.cc: New.
8163 * 22_locale/money_put/put/wchar_t/6.cc: New.
8164 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
8165 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
8166 * 22_locale/moneypunct/1.cc: New.
8167 * 22_locale/moneypunct/2.cc: New.
8168 * 22_locale/moneypunct/3.cc: New.
8169 * 22_locale/moneypunct/members/char/1.cc: New.
8170 * 22_locale/moneypunct/members/char/2.cc: New.
8171 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
8172 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
8173 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
8174 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
8175 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
8176 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
8177 * 22_locale/moneypunct_byname/1.cc: New.
8178 * 22_locale/num_get/1.cc: New.
8179 * 22_locale/num_get/2.cc: New.
8180 * 22_locale/num_get/get/char/1.cc: New.
8181 * 22_locale/num_get/get/char/2.cc: New.
8182 * 22_locale/num_get/get/char/3.cc: New.
8183 * 22_locale/num_get/get/char/4.cc: New.
8184 * 22_locale/num_get/get/char/5.cc: New.
8185 * 22_locale/num_get/get/char/6.cc: New.
8186 * 22_locale/num_get/get/char/wrapped_env.cc: New.
8187 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
8188 * 22_locale/num_get/get/wchar_t/1.cc: New.
8189 * 22_locale/num_get/get/wchar_t/2.cc: New.
8190 * 22_locale/num_get/get/wchar_t/3.cc: New.
8191 * 22_locale/num_get/get/wchar_t/4.cc: New.
8192 * 22_locale/num_get/get/wchar_t/5.cc: New.
8193 * 22_locale/num_get/get/wchar_t/6.cc: New.
8194 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
8195 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
8196 * 22_locale/num_put/1.cc: New.
8197 * 22_locale/num_put/2.cc: New.
8198 * 22_locale/num_put/put/char/1.cc: New.
8199 * 22_locale/num_put/put/char/2.cc: New.
8200 * 22_locale/num_put/put/char/3.cc: New.
8201 * 22_locale/num_put/put/char/4.cc: New.
8202 * 22_locale/num_put/put/char/5.cc: New.
8203 * 22_locale/num_put/put/char/wrapped_env.cc: New.
8204 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
8205 * 22_locale/num_put/put/wchar_t/1.cc: New.
8206 * 22_locale/num_put/put/wchar_t/2.cc: New.
8207 * 22_locale/num_put/put/wchar_t/3.cc: New.
8208 * 22_locale/num_put/put/wchar_t/4.cc: New.
8209 * 22_locale/num_put/put/wchar_t/5.cc: New.
8210 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
8211 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
8212 * 22_locale/numpunct/1.cc: New.
8213 * 22_locale/numpunct/2.cc: New.
8214 * 22_locale/numpunct/members/char/1.cc: New.
8215 * 22_locale/numpunct/members/char/2.cc: New.
8216 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
8217 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
8218 * 22_locale/numpunct/members/wchar_t/1.cc: New.
8219 * 22_locale/numpunct/members/wchar_t/2.cc: New.
8220 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
8221 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
8222 * 22_locale/numpunct_byname/1.cc: New.
8223 * 22_locale/numpunct_byname/2.cc: New.
8224 * 22_locale/time_get/1.cc: New.
8225 * 22_locale/time_get/2.cc: New.
8226 * 22_locale/time_get/date_order/char/1.cc: New.
8227 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
8228 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
8229 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
8230 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
8231 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
8232 * 22_locale/time_get/get_date/char/1.cc: New.
8233 * 22_locale/time_get/get_date/char/2.cc: New.
8234 * 22_locale/time_get/get_date/char/3.cc: New.
8235 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
8236 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
8237 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
8238 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
8239 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
8240 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
8241 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
8242 * 22_locale/time_get/get_monthname/char/1.cc: New.
8243 * 22_locale/time_get/get_monthname/char/2.cc: New.
8244 * 22_locale/time_get/get_monthname/char/3.cc: New.
8245 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
8246 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
8247 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
8248 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
8249 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
8250 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
8251 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
8252 * 22_locale/time_get/get_time/char/1.cc: New.
8253 * 22_locale/time_get/get_time/char/2.cc: New.
8254 * 22_locale/time_get/get_time/char/3.cc: New.
8255 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
8256 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
8257 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
8258 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
8259 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
8260 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
8261 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
8262 * 22_locale/time_get/get_weekday/char/1.cc: New.
8263 * 22_locale/time_get/get_weekday/char/2.cc: New.
8264 * 22_locale/time_get/get_weekday/char/3.cc: New.
8265 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
8266 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
8267 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
8268 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
8269 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
8270 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
8271 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
8272 * 22_locale/time_get/get_year/char/1.cc: New.
8273 * 22_locale/time_get/get_year/char/3.cc: New.
8274 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
8275 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
8276 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
8277 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
8278 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
8279 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
8280 * 22_locale/time_put/1.cc: New.
8281 * 22_locale/time_put/2.cc: New.
8282 * 22_locale/time_put/put/char/1.cc: New.
8283 * 22_locale/time_put/put/char/10.cc: New.
8284 * 22_locale/time_put/put/char/2.cc: New.
8285 * 22_locale/time_put/put/char/3.cc: New.
8286 * 22_locale/time_put/put/char/4.cc: New.
8287 * 22_locale/time_put/put/char/5.cc: New.
8288 * 22_locale/time_put/put/char/6.cc: New.
8289 * 22_locale/time_put/put/char/7.cc: New.
8290 * 22_locale/time_put/put/char/8.cc: New.
8291 * 22_locale/time_put/put/char/9.cc: New.
8292 * 22_locale/time_put/put/char/wrapped_env.cc: New.
8293 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
8294 * 22_locale/time_put/put/wchar_t/1.cc: New.
8295 * 22_locale/time_put/put/wchar_t/10.cc: New.
8296 * 22_locale/time_put/put/wchar_t/2.cc: New.
8297 * 22_locale/time_put/put/wchar_t/3.cc: New.
8298 * 22_locale/time_put/put/wchar_t/4.cc: New.
8299 * 22_locale/time_put/put/wchar_t/5.cc: New.
8300 * 22_locale/time_put/put/wchar_t/6.cc: New.
8301 * 22_locale/time_put/put/wchar_t/7.cc: New.
8302 * 22_locale/time_put/put/wchar_t/8.cc: New.
8303 * 22_locale/time_put/put/wchar_t/9.cc: New.
8304 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
8305 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
8306
8307 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
8308
8309 * config/locale/generic/messages_members.h
8310 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
8311 unqualified members of base clasess.
8312
8313 2003-01-16 Mark Mitchell <mark@codesourcery.com>
8314 Jeffrey Oldham <oldham@codesourcery.com>
8315
8316 * config/locale/gnu/messages_members.h: Use this-> to refer to
8317 unqualified members of base clasess.
8318 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
8319 * include/bits/codecvt.h: Likewise.
8320 * include/bits/deque.tcc: Likewise.
8321 * include/bits/fstream.tcc: Likewise.
8322 * include/bits/istream.tcc: Likewise.
8323 * include/bits/list.tcc: Likewise.
8324 * include/bits/locale_facets.h: Likewise.
8325 * include/bits/ostream.tcc: Likewise.
8326 * include/bits/sstream.tcc: Likewise.
8327 * include/bits/stl_bvector.h: Likewise.
8328 * include/bits/stl_deque.h: Likewise.
8329 * include/bits/stl_list.h: Likewise.
8330 * include/bits/stl_tree.h: Likewise.
8331 * include/bits/stl_vector.h: Likewise.
8332 * include/bits/vector.tcc: Likewise.
8333 * include/ext/ropeimpl.h: Likewise.
8334 * include/ext/stdio_filebuf.h: Likewise.
8335 * include/ext/stl_rope.h: Likewise.
8336 * include/std/std_fstream.h: Likewise.
8337 * include/std/std_sstream.h: Likewise.
8338
8339 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
8340
8341 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
8342
8343 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
8344
8345 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
8346 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
8347 * aclocal.m4: Regenerate.
8348 * configure: Regenerate.
8349 * testsuite/Makefile.am (all-local): Add conditional rule to
8350 generate testsuite_wchar_t.
8351 * testsuite/Makefile.in: Regenerate.
8352 * testsuite/lib/libstdc++-v3-dg.exp
8353 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
8354 testsuite_wchar_t is not present in the build directory.
8355 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
8356 Remove setulimit bits.
8357 * testsuite/26_numerics/complex_value.cc: Set to noopts.
8358 * testsuite/Makefile.am (CLEANFILES): Add.
8359 * testsuite/Makefile.in: Regenerate.
8360
8361 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8362
8363 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
8364 __hppa__.
8365
8366 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
8367
8368 Further conform g++'s __vmi_class_type_info to the C++ ABI
8369 specification.
8370 * libsupc++/cxxabi.h
8371 (__vmi_class_type_info::__flags_masks): Remove enumerations not
8372 required by the specification.
8373
8374 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
8375
8376 Renames, namespaces for testsuite utilities.
8377 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
8378 (gnu_allocator_tracker): Rename to allocation_tracker.
8379 (gnu_new_allocator): Rename to tracker_alloc.
8380 (__set_testsuite_memlimit): Rename to set_memory_limits.
8381 (gnu_assignment_operator): Rename to assignment_operator.
8382 (gnu_destructor): Rename to destructor.
8383 (gnu_copy_tracker): Rename to copy_tracker.
8384 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
8385 (run_tests_wrapped_locale): New.
8386 (run_tests_wrapped_env): New.
8387 * testsuite/testsuite_hooks.cc: Same.
8388 (class locale_data): Add.
8389 (class enviornment_variable): Add.
8390 (class not_found): Add.
8391 * testsuite/testsuite_allocator.h: Same.
8392 * testsuite/testsuite_allocator.cc: Same.
8393 * testsuite/23_containers/deque_ctor.cc
8394 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
8395 allocation_tracker.
8396 Change gnu_new_allocator to tracker_alloc.
8397 Change gnu_counting_struct to counter.
8398 Change gnu_copy_tracker to copy_tracker.
8399 Change gnu_copy_constructor to copy_constructor.
8400 Change gnu_assignment_operator to assignment_operator.
8401 Inject.
8402 * testsuite/23_containers/vector_capacity.cc: Same.
8403 * testsuite/23_containers/vector_ctor.cc (test01): Same.
8404 * testsuite/23_containers/list_modifiers.cc: Change
8405 gnu_copy_tracker to copy_tracker.
8406 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
8407 __set_testsuite_memlimit to set_memory_limits.
8408 * testsuite/21_strings/insert.cc (main): Same.
8409 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
8410 * testsuite/27_io/stringstream.cc: Same.
8411 * testsuite/27_io/stringbuf.cc: Same.
8412 * testsuite/27_io/streambuf.cc: Same.
8413 * testsuite/27_io/ostream.cc: Same.
8414 * testsuite/27_io/istream.cc: Same.
8415 * testsuite/27_io/fstream.cc: Same.
8416 * testsuite/lib/libstdc++-v3-dg.exp
8417 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
8418 three levels deeper in glob patterns.
8419
8420 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
8421
8422 * docs/doxygen/tables.html: Finished now.
8423 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
8424 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
8425 comments.
8426
8427 * include/bits/deque.tcc, include/bits/stl_alloc.h,
8428 include/bits/stl_deque.h, include/bits/stl_list.h,
8429 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
8430 for 3.4 removal.
8431
8432 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
8433
8434 * configure.in: Revert.
8435 * configure: Regenerate.
8436
8437 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
8438
8439 * include/Makefile.am (install-data-local): Prepend
8440 $(DESTDIR) to destination paths in all (un)installation
8441 commands. Use ${c_base_builddir} and ${std_builddir}
8442 as destination subdirectories to achieve consistency with
8443 preceding mkinstalldirs commands. No effect because both
8444 variables contain "." only.
8445 * include/Makefile.in: Regenerate.
8446
8447 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
8448
8449 * include/Makefile.am (stamp-*): Add checks for existing stamps.
8450 * include/Makefile.in: Regenerate.
8451
8452 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
8453 * aclocal.m4: Regenerate.
8454
8455 * configure.in: Don't add new multi-do rules every time the
8456 directory is reconfigured.
8457 * configure: Regenerate.
8458
8459 2003-01-08 Brad Spencer <spencer@infointeractive.com>
8460 Nathan Myers <ncm@cantrip.org>
8461
8462 * src/Makefile.am (stamp-debug): Clean.
8463 * src/Makefile.in: Regenerate.
8464
8465 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
8466
8467 PR libstdc++/8707
8468 * Makefile.am (distclean-multi): Fix.
8469 * Makefile.in: Regenerate.
8470
8471 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
8472
8473 * include/bits/locale_facets.h (messages): Move ctor, dtor
8474 definitions to..
8475 (__timepunct): Same.
8476 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
8477 definitions. Conditionalize for GNU systems.
8478 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
8479 definitions.
8480 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
8481 definitions. Conditionalize for GNU systems.
8482 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
8483 definitions.
8484 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
8485 * src/locale.cc: Define.
8486 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
8487 Use it.
8488 * config/locale/gnu/time_members.h: Use it.
8489 * config/locale/gnu/messages_members.h: Use it.
8490 * config/linker-map.gnu: Add locale::facets details.
8491 * include/Makefile.am (target_headers_extra): Add time_members.h.
8492 * include/Makefile.in: Regenerate.
8493 * acinclude.m4: Export CTIME_H.
8494 * aclocal.m4: Regenerate.
8495 * configure: Regnerate.
8496
8497 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
8498
8499 * src/codecvt.cc
8500 (codecvt<char, char, mbstate_t>::do_in, do_out):
8501 Tweak parameters to avoid unused parameter warnings.
8502
8503 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
8504
8505 PR libstdc++/9151
8506 * include/bits/locale_facets.cc (num_put::_M_convert_float):
8507 Limit __prec to digits10 + 2, not digits10 + 1, taking into
8508 account the possibility of %{g,G} conversion specifiers
8509 inside _S_format_float.
8510 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
8511
8512 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8513
8514 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
8515 libstdc++-v3-list-sourcefiles): Additionally handle files one
8516 level deeper in glob patterns.
8517
8518 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
8519 * testsuite/27_io/istream_extractor_arith/01.cc,
8520 testsuite/27_io/istream_extractor_arith/02.cc,
8521 testsuite/27_io/istream_extractor_arith/03.cc,
8522 testsuite/27_io/istream_extractor_arith/06.cc,
8523 testsuite/27_io/istream_extractor_arith/07.cc,
8524 testsuite/27_io/istream_extractor_arith/08.cc,
8525 testsuite/27_io/istream_extractor_arith/09.cc,
8526 testsuite/27_io/istream_extractor_arith/10.cc,
8527 testsuite/27_io/istream_extractor_arith/11.cc,
8528 testsuite/27_io/istream_extractor_arith/12.cc,
8529 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
8530 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
8531 sparc*-*-solaris2*.
8532
8533 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
8534
8535 PR libstdc++/9168
8536 * src/codecvt.cc
8537 (codecvt<char, char, mbstate_t>::do_in, do_out):
8538 Implement the resolution of DR19 (TC).
8539 * testsuite/22_locale/codecvt_members_char_char.cc
8540 (test01): Tweak.
8541
8542 2003-01-02 Jason Merrill <jason@redhat.com>
8543
8544 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
8545 *__mem is also an output.
8546 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.