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