1 2003-12-09 Bernardo Innocenti <bernie@develer.com>
3 * include/debug/bitset, include/debug/debug.h, include/debug/deque,
4 include/debug/formatter.h, include/debug/hash_map.h,
5 include/debug/hash_multimap.h, include/debug/hash_multiset.h,
6 include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
7 include/debug/map.h, include/debug/multimap.h,
8 include/debug/multiset.h, include/debug/safe_base.h,
9 include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
10 include/debug/safe_sequence.h, include/debug/set.h,
11 include/debug/string, include/debug/vector: Remove trailing whitespace.
13 2003-12-09 Bernardo Innocenti <bernie@develer.com>
15 * include/c_compatibility/iso646.h, include/c_compatibility/limits.h,
16 include/c_compatibility/locale.h, include/c_compatibility/stdio.h,
17 include/c_compatibility/string.h, include/c_compatibility/time.h,
18 include/c_compatibility/wchar.h, include/c_compatibility/wctype.h:
19 Remove trailing whitespace.
21 2003-12-09 Bernardo Innocenti <bernie@develer.com>
23 * include/c_std/cmath.tcc, include/c_std/std_cassert.h,
24 include/c_std/std_cctype.h, include/c_std/std_cmath.h,
25 include/c_std/std_cstddef.h, include/c_std/std_cstdio.h,
26 include/c_std/std_cstdlib.h, include/c_std/std_cstring.h,
27 include/c_std/std_cwchar.h, include/c_std/std_cwctype.h:
28 Remove trailing whitespace.
30 2003-12-09 Bernardo Innocenti <bernie@develer.com>
32 * include/c/std_cctype.h, include/c/std_cmath.h,
33 include/c/std_cstdlib.h include/c/std_cwchar.h,
34 include/c/std_cwctype.h: Remove trailing whitespace.
36 2003-12-09 Bernardo Innocenti <bernie@develer.com>
38 * include/backward/algo.h, include/backward/algobase.h,
39 include/backward/alloc.h, include/backward/complex.h,
40 include/backward/defalloc.h, include/backward/function.h,
41 include/backward/iterator.h, include/backward/new.h,
42 include/backward/ostream.h, include/backward/queue.h,
43 include/backward/rope.h, include/backward/stream.h,
44 include/backward/streambuf.h, include/backward/strstream,
45 include/backward/tempbuf.h, include/backward/tree.h,
46 include/backward/vector.h: Remove trailing whitespace.
48 2003-12-08 Paolo Carlini <pcarlini@suse.de>
50 * config/locale/generic/c_locale.cc (__convert_to_v(long&),
51 __convert_to_v(unsigned long&), __convert_to_v(long long&),
52 __convert_to_v(unsigned long long&): Remove.
53 (__convert_to_v(float&), __convert_to_v(double&),
54 __convert_to_v(long double&)): Remove last unused parameter.
55 * config/locale/gnu/c_locale.cc: Likewise.
56 * include/bits/locale_facets.h: Likewise.
57 (num_get::_M_extract_int): Update declaration.
58 (class __num_base): Tweak _S_ie and _S_iE according to the
60 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
61 Provide directly the final _ValueT, not a string: accumulate
62 the result checking for overflow at each digit.
63 (num_get::do_get(bool&), num_get::do_get(long&),
64 num_get::do_get(unsigned short&), num_get::do_get(unsigned int&),
65 num_get::do_get(unsigned long&), num_get::do_get(long long&),
66 num_get::do_get(unsigned long long&), num_get::do_get(void*&)):
67 Use the new _M_extract_int, simplify.
68 * src/locale-inst.cc (num_get::_M_extract_int(long&),
69 num_get::_M_extract_int(unsigned short&),
70 num_get::_M_extract_int(unsigned int&),
71 num_get::_M_extract_int(unsigned long&),
72 num_get::_M_extract_int(long long&),
73 num_get::_M_extract_int(unsigned long long&): Instantiate.
74 * src/locale_facets.cc (__num_base::_S_atoms_in): Reorder
75 the chars in the natural order: abcdefABCDEF.
77 2003-12-08 David S. Miller <davem@redhat.com>
80 * config/cpu/sparc/atomicity.h (__exchange_and_add, __atomic_add):
81 Extend increment to _Atomic_word before giving to assembler.
83 2003-12-06 Benjamin Kosnik <bkoz@redhat.com>
85 * testsuite/ext/enc_filebuf/char/13189.cc: Guard for __enc_traits.
86 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
88 2003-12-06 Benjamin Kosnik <bkoz@redhat.com>
91 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf):
92 Remove __del argument to file descriptor constructor.
93 * config/io/basic_file_stdio.h (__basic_file::sys_open): Remove
95 * config/io/basic_file_stdio.cc: Same.
97 2003-12-05 Benjamin Kosnik <bkoz@redhat.com>
100 * include/ext/enc_filebuf.h: Fix.
101 * include/bits/fstream.tcc: Tweak formatting.
102 * include/bits/postypes.h: Same.
103 * include/bits/sstream.tcc: Same.
104 * include/bits/streambuf.tcc: Same.
105 * testsuite/ext/stdio_filebuf.cc: Split.
106 * testsuite/ext/stdio_filebuf_2.cc: Split.
107 * testsuite/ext/stdio_sync_filebuf_char.cc: Split.
108 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc: Split.
109 * testsuite/ext/enc_filebuf/char/13189.cc: New.
110 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: New.
111 * testsuite/ext/stdio_filebuf/char/1.cc: New.
112 * testsuite/ext/stdio_filebuf/char/2.cc: New.
113 * testsuite/ext/stdio_sync_filebuf/char/1.cc: New.
114 * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: New.
115 * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: New.
116 * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: New.
117 * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: New.
118 * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: New.
119 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: New.
120 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: New.
121 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: New.
122 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: New.
124 2003-12-05 Carlo Wood <carlo@alinoe.com>
128 namespace __gnu_cxx::demangler
129 (enum substitution_nt): Removed trailing comma.
130 (implementation_details): Added.
131 (session<Allocator>::M_implementation_details): Added.
132 (session<Allocator>::session): Pass implementation_details.
133 (session<Allocator>::decode_encoding): Same.
134 (session<Allocator>::decode_real): Added.
135 (_GLIBCXX_DEMANGLER_STYLE_VOID _GLIBCXX_DEMANGLER_STYLE_LITERAL
136 _GLIBCXX_DEMANGLER_STYLE_LITERAL_INT
137 _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
138 _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Replaced with
139 implementation_details equivalent.
140 (session<Allocator>::decode_expression):
141 Use M_implementation_details instead of macros. Add extra parentheses
142 around 'larger than' operator in expressions in template arguments.
143 (session<Allocator>::decode_bare_function_type): Idem.
144 (session<Allocator>::decode_literal):
145 Idem, and call decode_real for floating literals.
146 (session<Allocator>::decode_type_with_postfix): Put the postfix
147 of the return type of (member) functions after the function
148 instead of after the return type. Also, put a space after the
149 prefix of qualified function pointers: "int (* const<space>".
150 * src/demangle.cc: include most dependent header file first.
151 * testsuite/demangle/regression/cw-16.cc: Updated two
152 and added three tests.
154 2003-12-04 Benjamin Kosnik <bkoz@redhat.com>
157 * include/bits/stl_algo.h (__random_number): Remove.
158 (random_shuffle): Use rand, as permitted by DR 395.
159 * include/ext/algorithm: Same.
160 * linkage.m4 (GLIBCXX_CHECK_STDLIB_SUPPORT): Remove lrand48.
162 * crossconfig.m4: Remove HAVE_DRAND48, HAVE_LRAND48.
163 * config.h.in: Regenerated.
167 2003-12-04 Paolo Carlini <pcarlini@suse.de>
170 * include/std/std_bitset.h (operator>>): Implement resolution
171 of DR 303 [WP]: use widen('0') and widen('1').
172 * docs/html/ext/howto.html: Add an entry for DR 303.
174 * include/std/std_bitset.h (operator>>): Implement the common
175 requirements of formatted input functions (27.6.1.2.1).
177 * include/std/std_bitset.h (operator>>): Set the failbit when
178 nothing was extracted and _Nb != 0.
179 * testsuite/23_containers/bitset/input/1.cc: New.
181 2003-12-03 Paolo Carlini <pcarlini@suse.de>
184 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
185 Rewrite, stop the parsing as soon as a digit cannot possibly
186 lead to a final number within the bounds; otherwise, simplify,
187 avoiding __ctype.is() and atoi().
188 * testsuite/22_locale/time_get/get_date/char/12791.cc: New.
189 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.
191 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
192 Minor tweak: a 4-digit integer cannot be bigger than 9999.
194 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
195 type-correct wchar_t string literals.
196 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
197 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
198 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
199 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
201 2003-12-02 Paolo Carlini <pcarlini@suse.de>
203 * include/bits/locale_facets.tcc (time_get::do_get_year):
204 Avoid using a basic_string and calling a full blown strtol
205 (via __convert_to_v) for simple 2 or 4 digits, base 10,
206 positive integers; simplify.
208 2003-12-02 Paolo Carlini <pcarlini@suse.de>
210 * config/locale/gnu/monetary_members.cc
211 (money_base::_S_construct_pattern): For case 3: and 4:
212 exchanging 'if (__precedes)' and 'if (__space)' allows
213 to factor out a few more assignments.
215 2003-12-01 Benjamin Kosnik <bkoz@redhat.com>
217 * include/bits/basic_ios.h (basic_ios::setstate): Revert.
218 * include/bits/istream.tcc: Only call setstate if __err != goodbit.
219 * include/bits/ostream.tcc: Same.
220 * testsuite/27_io/basic_ios/exceptions/char/2.cc: New.
222 * testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
223 internal buffer non-static.
225 2003-12-01 Benjamin Kosnik <bkoz@redhat.com>
227 * docs/html/17_intro/C++STYLE: Add exception bits.
228 * include/bits/fstream.tcc: Add location info to exception strings.
230 * include/bits/stl_construct.h: Formatting tweaks.
232 2003-12-01 Paolo Carlini <pcarlini@suse.de>
235 * include/bits/allocator.h (allocator::construct): Implement
236 resolution of DR 402 [Ready] (in Revision 28).
237 * include/bits/allocator_traits.h (__allocator::construct):
239 * include/bits/stl_construct.h (_Construct): Likewise.
240 * testsuite/20_util/allocator_members.cc: Move to...
241 * testsuite/20_util/allocator/1.cc: ... here.
242 * testsuite/20_util/allocator/10378.cc: New.
243 * docs/html/ext/howto.html: Add an entry for DR 402.
245 2003-11-30 Paolo Carlini <pcarlini@suse.de>
247 * config/locale/gnu/codecvt_members.cc (codecvt::do_in,
248 codecvt::do_length): More minor tweaks.
250 2003-11-30 Paolo Carlini <pcarlini@suse.de>
252 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
253 Minor stylistic tweak.
255 2003-11-30 Paolo Carlini <pcarlini@suse.de>
257 * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
258 Minor tweaks, consistent with the style used in other facets.
260 2003-11-29 Paolo Carlini <pcarlini@suse.de>
262 * include/bits/fstream.tcc (underflow): Minor tweaks in
263 preparation for libstdc++/13217.
265 2003-11-29 Paolo Carlini <pcarlini@suse.de>
267 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
268 Tweak for a few small problems (fix timings, use VERIFY..)
270 2003-11-28 Paolo Carlini <pcarlini@suse.de>
272 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.
273 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: New,
274 the original third testcase for libstdc++/13171 belong here.
276 2003-11-28 Paolo Carlini <pcarlini@suse.de>
278 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc:
279 Remove extraneous wchar_t lines.
281 2003-11-27 Paolo Carlini <pcarlini@suse.de>
285 * include/bits/fstream.tcc (underflow): Throw ios_base:failure
286 upon incomplete or invalid byte sequences in the file.
287 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-1.cc: New.
288 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc: New.
289 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: New.
291 2003-11-27 Paolo Carlini <pcarlini@suse.de>
293 * include/std/std_streambuf.h (__copy_streambufs): Remove
294 the first, unused, basic_ios<> parameter.
295 * src/streambuf-inst.cc: Likewise.
296 * include/bits/streambuf.tcc: Likewise.
297 * include/bits/istream.tcc (operator>>(__streambuf_type*)):
298 Tweak accordingly the call.
299 * include/bits/ostream.tcc (operator<<(__streambuf_type*)):
302 * include/bits/streambuf.tcc (__copy_streambufs): Remove
305 2003-11-26 Benjamin Kosnik <bkoz@redhat.com>
311 * include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
312 (basic_ios::_M_setstate): Consolidate common error handling code.
313 * include/bits/basic_ios.tcc: Tweak.
314 * include/bits/fstream.tcc: Tweak.
315 * include/bits/istream.tcc: Use _M_setstate for common exception
316 handling. Move setstate calls after catch.
317 (basic_istream::tellg): Check for exceptions thrown by streambuf
319 (basic_istream::seekg): Same.
320 * include/bits/ostream.tcc: Same, but for ostream.
321 (basic_ostream::flush): Check for exceptions thrown by streambuf
323 (basic_istream::tellp): Same.
324 (basic_istream::seekp): Same.
325 * include/bits/locale_facets.tcc: Tweak.
326 * include/bits/streambuf.tcc: Tweak.
327 (__copy_streambufs): Propagate exceptions.
328 * testsuite/testsuite_io.h (fail_streambuf): New.
332 (underflow_error): New.
333 (overflow_error): New.
334 (positioning_error): New.
335 * testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
336 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
337 exceptions_badbit_throw.cc, exceptions_failbit.cc,
338 exceptions_failbit_throw.cc: New.
339 * testsuite/27_io/basic_istream/extractors_other/char/
340 error_failbit.cc, exceptions_badbit_throw.cc,
341 exceptions_failbit_throw.cc, exceptions_null.cc: New.
342 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
344 * testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
346 * testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
348 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
349 exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
350 * testsuite/27_io/basic_ostream/inserters_other/char/
351 error_failbit.cc, exceptions_badbit_throw.cc,
352 exceptions_failbit_throw.cc, exceptions_null.cc: New.
353 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
355 * testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc:
358 2003-11-26 Benjamin Kosnik <bkoz@redhat.com>
361 * include/bits/istream.tcc
362 (basic_istream::sentry::sentry): Set failbit and eofbit when eof.
363 * testsuite/27_io/basic_istream/sentry/char/12297.cc: New.
365 2003-11-26 Paolo Carlini <pcarlini@suse.de>
366 Petur Runolfsson <peturr02@ru.is>
369 * include/bits/fstream.tcc (imbue): Relax the conditions under
370 which the function succeeds: allow for two consecutive calls with
371 the same name; state dependent encodings are ok even after open
372 if at the beginning of the file; don't check seekoff return value
373 (pipes, cin, cout, etc...)
374 * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: New.
375 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: New.
376 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: New.
377 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: New.
378 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak comment.
379 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: Likewise.
380 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Tweak comment.
381 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: Likewise.
383 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: More
384 correctly use the UTF-8 locale appearing in the PR.
386 2003-11-26 Paolo Carlini <pcarlini@suse.de>
388 * include/bits/locale_facets.h
389 (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
390 _M_truename and _M_falsename: the constructor always does
391 it immediately before the _M_cache call.
393 2003-11-25 Paolo Carlini <pcarlini@suse.de>
395 * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
396 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
397 former is very fast, but stops if encounters a NUL.
398 (codecvt::do_out): Tweaks.
399 (codecvt::do_in): Tweaks, improve the code dealing with errors.
400 * testsuite/performance/wchar_t_length.cc: New.
402 2003-11-24 Paolo Carlini <pcarlini@suse.de>
404 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
405 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
406 former is very fast, but stops if encounters a NUL.
407 (codecvt::do_out): Tweak.
408 * testsuite/performance/wchar_t_in.cc: New.
410 2003-11-24 Paolo Carlini <pcarlini@suse.de>
412 * include/bits/locale_facets.h
413 (__numpunct_cache<>::_M_cache): Set _M_allocated at the beginning
414 in order to avoid memory leaks; simplify a bit.
416 2003-11-24 Benjamin Kosnik <bkoz@redhat.com>
418 * include/bits/streambuf_iterator.h (ostreambuf_iterator): Remove
419 non-standard throw specs.
420 * testsuite/24_iterators/istreambuf_iterator.cc: Split into...
421 * testsuite/24_iterators/istreambuf_iterator/1.cc
422 * testsuite/24_iterators/istreambuf_iterator/2.cc
423 * testsuite/24_iterators/istreambuf_iterator/2627.cc
424 * testsuite/24_iterators/ostreambuf_iterator.cc: Split into...
425 * testsuite/24_iterators/ostreambuf_iterator/1.cc
426 * testsuite/24_iterators/ostreambuf_iterator/2.cc
428 * testsuite/24_iterators/reverse_iterator/1.cc: Just compile,
431 * include/bits/allocator.h: Formatting tweak.
433 2003-11-24 Paolo Carlini <pcarlini@suse.de>
435 * src/locale_init.cc: Cosmetic reformatting.
437 2003-11-23 Paolo Carlini <pcarlini@suse.de>
439 * include/bits/locale_facets.tcc (__add_grouping):
440 Cosmetic reformatting.
442 2003-11-23 Paolo Carlini <pcarlini@suse.de>
444 * include/bits/locale_facets.tcc (_M_extract_float,
445 _M_extract_int): Remove a wrong comment and simplify
446 the corresponding code using char_traits::find().
448 2003-11-22 Paolo Carlini <pcarlini@suse.de>
450 * config/locale/gnu/monetary_members.cc
451 (money_base::_S_construct_pattern): Factor out two assignments.
453 2003-11-22 Paolo Carlini <pcarlini@suse.de>
455 * include/bits/istream.tcc (getline(basic_string<>&)):
456 Fix error in comment of the previous commit.
458 2003-11-22 Paolo Carlini <pcarlini@suse.de>
461 * include/bits/istream.tcc (operator>>(basic_string<>&),
462 getline(basic_string<>&)): Implement resolution of DR 91 [WP];
463 fix some minor issues with the exit conditions.
464 * docs/html/ext/howto.html: Add an entry for DR 91.
466 2003-11-21 Paolo Carlini <pcarlini@suse.de>
468 * config/locale/gnu/monetary_members.cc
469 (money_base::_S_construct_pattern): Factor out an assignment.
471 2003-11-21 Paolo Carlini <pcarlini@suse.de>
473 PR libstdc++/12882 (partial)
474 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
476 * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
477 and ftello64 if available.
478 * aclocal.m4: Regenerate.
481 2003-11-20 Benjamin Kosnik <bkoz@redhat.com>
483 * include/debug/formatter.h: Use _Tp as template argument.
484 * src/debug.cc: Same, instantiate std::size_t.
486 2003-11-20 Benjamin Kosnik <bkoz@redhat.com>
489 * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
490 * src/debug.cc (__gnu_debug): Format.
491 (_Error_formatter::_M_format_word): Define, use, instantiate.
493 2003-11-20 Paolo Carlini <pcarlini@suse.de>
496 * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
497 Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
498 former is very fast, but stops if encounters a NUL.
499 * testsuite/performance/wchar_t_out.cc: New, from the PR.
501 2003-11-19 Paolo Carlini <pcarlini@suse.de>
503 * config/locale/gnu/codecvt_members.cc (do_out): If
504 we can upper bound the total number of external chars
505 to something smaller than __to_end - __to, avoid the
506 temporary buffer, the memcopy and simplify the loop.
507 * config/locale/generic/codecvt_members.cc (do_out):
510 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
512 * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
513 * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
516 2003-11-18 Jonathan Wakely <redi@gcc.gnu.org>
518 * docs/html/configopts.html, docs/html/debug.html,
519 docs/html/documentation.html, docs/html/explanations.html,
520 docs/html/install.html, docs/html/17_intro/contribute.html,
521 docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
522 docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
523 docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
524 docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
525 docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
526 docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
527 docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
528 docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
529 docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
531 2003-11-18 Paolo Carlini <pcarlini@suse.de>
534 * include/bits/fstream.tcc (imbue): For encodings != -1 it's
535 always ok to imbue a new locale, provided seekoff(0, cur, ...)
536 doesn't fail, of course.
537 (underflow): In order for the above to work, deal gracefully
538 with _M_codecvt->in returning codecvt_base::error while
539 (__ilen = __iend - this->eback()) > 0: it just means __ilen
540 correctly converted internal characters before an error.
541 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
543 2003-11-17 Paolo Carlini <pcarlini@suse.de>
545 * include/bits/locale_facets.tcc: Fix typo in comment.
547 2003-11-17 Paolo Carlini <pcarlini@suse.de>
549 * testsuite/22_locale/num_put/put/char/8.cc: New test,
550 summarizing the discussion ensuing libstdc++/12988.
551 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
553 2003-11-15 Paolo Carlini <pcarlini@suse.de>
555 * include/std/std_fstream.h: Tweak a comment.
557 2003-11-15 Roger Sayle <roger@eyesopen.com>
559 * include/c_std/std_cmath.h: Don't import C99's float transcendentals
560 into the __gnu_cxx::__c99_binding namespace.
561 (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
562 ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
563 GCC's math builtins, i.e. __builtin_foo.
564 * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
565 ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
566 ldexpf, ldexpl, modff, modfl): Provide stub implementations.
568 2003-11-14 Paolo Carlini <pcarlini@suse.de>
570 * testsuite/22_locale/locale/cons/12352.cc: Use
571 __gnu_test::try_named_locale.
573 2003-11-14 Paolo Carlini <pcarlini@suse.de>
575 * docs/html/ext/howto.html: Add entries for DR 63, 75
576 and 305; tweak entries for DR 60 and 328.
578 2003-11-13 Douglas Gregor <gregod@cs.rpi.edu>
580 * docs/html/debug.html: Users are allowed to specialize in
581 namespace __gnu_debug, unlike in the Apple version of the debug
582 mode. Clear up a confusing double-negative. Note that
583 std::basic_string does provide extra debugging capabilities, but
585 * include/bits/basic_string.tcc: Make sure there's never an
586 ambiguity when calling __is_null_pointer.
587 * include/debug/deque: (deque::erase) Properly handle invalidation
588 when erasing at the end of the deque.
589 * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
590 (vector::clear): Set the guaranteed capacity to 0.
591 * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
592 iterator invalidation when erasing at the end of the deque.
594 2003-11-13 Paolo Carlini <pcarlini@suse.de>
595 Petur Runolfsson <peturr02@ru.is>
598 * include/bits/fstream.tcc (imbue): Don't touch the stored
600 * include/std/std_streambuf.h (imbue): According to the
601 standard, base class version does nothing.
602 (pubimbue): Store the locale.
603 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
604 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
605 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
606 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
607 * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
608 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
609 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
610 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
612 2003-11-13 Petur Runolfsson <peturr02@ru.is>
615 * include/bits/ostream.tcc
616 (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
617 basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
618 basic_ostream::operator<<(ios_base& (*)(ios_base&))):
619 Implement the resolution of DR 60 (TC): These are not formatted
620 output functions so don't construct sentry objects and don't
622 (basic_ostream::put, basic_ostream::write): Implement the
623 resolution of DR 63 (TC) by catching exceptions and setting
625 (basic_ostream::flush): Implement the resolution of DR 60 (TC):
626 This is not an unformatted output function so don't construct
628 * testsuite/testsuite_io.h (sync_streambuf): Define.
629 * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
630 * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
631 * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
632 * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
634 2003-11-13 Paolo Carlini <pcarlini@suse.de>
636 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
637 Fix, closely following the testcase included in the PR.
638 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
639 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
640 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
642 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
644 * docs/html/17_intro/configury.html: XHTML tweak.
646 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
648 * docs/html/debug_mode.html: XHTML fixes.
650 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
652 * docs/html/debug_mode.html: Update.
653 * docs/html/17_intro/TODO: Update.
655 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
657 * include/bits/c++config: Move using directive...
658 * include/debug/formatter.h: ...here.
660 2003-11-12 Carlo Wood <carlo@alinoe.com>
664 (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
665 (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
666 (session<Allocator>::next_peek() const): Added.
667 (decode_non_negative_decimal_integer(string_type&)):
668 Renamed from decode_decimal_integer(string_type&).
669 (session<Allocator>::decode_nested_name):
670 Decode <template_param> as well.
671 (session<Allocator>::add_substitution):
672 Handle <template-param> for <nested-name>'s.
673 (enum xary_nt): Added.
674 (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
675 (symbol_name_table_c): Updated for `entry_st::type' and additional
676 operators (unary `operator+' and `sizeof(type)').
677 (offset_table_c): Updated for new operators (causing a new hash map).
678 (decode_operator_name): Match the updated hash map.
679 (session<Allocator>::decode_expression):
680 Support for `sizeof ([typename] type)' (st),
681 dependent names (sr) and casting operator (cv). Handle
682 `entry_st::type'. Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
683 and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
684 (session<Allocator>::decode_type_with_postfix):
685 Support `extern "C"' function types (FY).
686 * testsuite/demangle/regression/cw-16.cc: Added tests for the
688 * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
691 2003-11-11 Paolo Carlini <pcarlini@suse.de>
694 * include/bits/fstream.tcc (setbuf): Don't do anything
695 after open(), in particular don't discard data.
696 (_M_allocate_internal_buffer): Tweak to not allocate memory
697 in case the buffer is provided by the user via setbuf.
698 * include/ext/stdio_filebuf.h: Tweak comment.
699 * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
700 * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
701 * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
702 setbuf does nothing after open().
703 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
705 2003-11-11 Doug Gregor <gregod@cs.rpi.edu>
707 * docs/html/debug.html: Document libstdc++ debug mode.
708 * docs/html/debug_mode.html: Document libstdc++ debug mode design.
709 * docs/html/test.html: Document how to test under debug mode.
710 * docs/html/17_intro/howto.html: Document debug-mode macros.
711 * include/Makefile.am: Install debug-mode headers.
712 * src/Makefile.am: Include debug.cc.
713 * include/bits/basic_string.tcc:
714 (basic_string::_S_construct): Fix NULL pointer check.
715 (__is_null_pointer): New.
716 Add precondition annotations.
717 * include/bits/stream_iterator.h (istream_iterator,
718 ostream_iterator): Added precondition annotations.
719 * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
720 * include/bits/stl_queue.h (queue, priority_queue): Ditto.
721 * include/bits/stl_stack.h (stack): Ditto.
722 * include/bits/basic_string.h (basic_string): Ditto.
723 * include/bits/basic_string.tcc (basic_string): Ditto.
724 * include/std/std_memory.h (auto_ptr): Ditto.
725 * include/std/std_valarray.h (valarray): Ditto.
726 * include/bits/stl_algo.h: Added algorithm precondition
728 * include/bits/stl_algobase.h: Added algorithm precondition
730 * include/bits/stl_numeric.h: Ditto.
731 * include/ext/algorithm: Added algorithm precondition
733 (__is_heap): Moved away from here.
734 * include/bits/stl_heap.h: Added algorithm precondition
736 (__is_heap): Moved to the top of this file.
737 (__is_heap): Added iterator range overloads.
738 * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
739 with changes in std_memory.h.
740 * testsuite/23_containers/list/operators/4.cc: Don't verify
741 performance guarantees when in debug mode.
742 * testsuite/23_containers/bitset/invalidation/1.cc: New.
743 * testsuite/23_containers/deque/invalidation/1.cc: New.
744 * testsuite/23_containers/deque/invalidation/2.cc: New.
745 * testsuite/23_containers/deque/invalidation/3.cc: New.
746 * testsuite/23_containers/deque/invalidation/4.cc: New.
747 * testsuite/23_containers/list/invalidation/1.cc: New.
748 * testsuite/23_containers/list/invalidation/2.cc: New.
749 * testsuite/23_containers/list/invalidation/3.cc: New.
750 * testsuite/23_containers/list/invalidation/4.cc: New.
751 * testsuite/23_containers/map/invalidation/1.cc: New.
752 * testsuite/23_containers/map/invalidation/2.cc: New.
753 * testsuite/23_containers/multimap/invalidation/1.cc: New.
754 * testsuite/23_containers/multimap/invalidation/2.cc: New.
755 * testsuite/23_containers/multiset/invalidation/1.cc: New.
756 * testsuite/23_containers/multiset/invalidation/2.cc: New.
757 * testsuite/23_containers/set/invalidation/1.cc: New.
758 * testsuite/23_containers/set/invalidation/2.cc: New.
759 * testsuite/23_containers/vector/invalidation/1.cc: New.
760 * testsuite/23_containers/vector/invalidation/2.cc: New.
761 * testsuite/23_containers/vector/invalidation/3.cc: New.
762 * testsuite/23_containers/vector/invalidation/4.cc: New.
763 * testsuite/25_algorithms/heap.cc: Don't verify
764 performance guarantees when in debug mode.
765 * include/debug/bitset: New.
766 * include/debug/debug.h: New.
767 * include/debug/deque: New.
768 * include/debug/formatter.h: New.
769 * include/debug/hash_map: New.
770 * include/debug/hash_map.h: New.
771 * include/debug/hash_multimap.h: New.
772 * include/debug/hash_set: New.
773 * include/debug/hash_set.h: New.
774 * include/debug/hash_multiset.h: New.
775 * include/debug/list: New.
776 * include/debug/map: New.
777 * include/debug/map.h: New.
778 * include/debug/multimap.h: New.
779 * include/debug/multiset.h: New.
780 * include/debug/safe_base.h: New.
781 * include/debug/safe_iterator.h: New.
782 * include/debug/safe_iterator.tcc: New.
783 * include/debug/safe_sequence.h: New.
784 * include/debug/set: New.
785 * include/debug/set.h: New.
786 * include/debug/string: New.
787 * include/debug/vector: New.
789 * config/linker-map.gnu: Add debug mode symbols.
791 2003-11-11 Benjamin Kosnik <bkoz@redhat.com>
793 * src/string-inst.cc: Tweak namespaces.
794 * src/misc-inst.cc: Same.
795 * docs/html/debug.html: Edits.
796 * config/link-map.gnu: Remove cruft.
798 * include/bits/c++config: Add in namespace associations.
799 * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
801 * include/bits/deque.tcc: Same.
802 * include/bits/list.tcc: Same.
803 * include/bits/stl_bvector.h: Same.
804 * include/bits/stl_deque.h: Same.
805 * include/bits/stl_list.h: Same.
806 * include/bits/stl_map.h: Same.
807 * include/bits/stl_multimap.h: Same.
808 * include/bits/stl_multiset.h: Same.
809 * include/bits/stl_set.h: Same.
810 * include/bits/stl_vector.h: Same.
811 * include/bits/vector.tcc: Same.
813 * include/std/std_algorithm.h: Remove markup comments.
814 * include/std/std_functional.h: Same.
815 * include/std/std_iterator.h: Same.
816 * include/std/std_numeric.h: Same.
817 * include/std/std_utility.h: Same.
818 * include/bits/stl_queue.h: Formatting tweaks.
819 * include/bits/stl_stack.h: Same.
820 * include/std/std_deque.h: Include debugging version in debug mode.
821 * include/std/std_list.h: Same.
822 * include/std/std_map.h: Same.
823 * include/std/std_set.h: Same.
824 * include/std/std_vector.h: Same.
825 * include/std/std_queue.h: Use deque, vector.
826 * include/std/std_stack.h: Same.
828 2003-11-09 Paolo Carlini <pcarlini@suse.de>
830 * include/bits/locale_facets.tcc (_M_insert_int,
831 _M_insert_float): Move a couple of vars inside an if block.
833 2003-11-09 Paolo Carlini <pcarlini@suse.de>
836 * include/bits/locale_facets.tcc
837 (money_put::do_put(..., long double)): Fix conversion
838 specification as per DR 328 [WP].
839 * testsuite/22_locale/money_put/put/char/12971.cc: Add.
840 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
841 * docs/html/ext/howto.html: Add entry for DR 328.
843 2003-11-08 Paolo Carlini <pcarlini@suse.de>
846 * include/bits/list.tcc (merge): Implement resolution of
848 * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
851 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
854 2003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
856 * libsupc++/vec.cc: Conform to C++STYLE.
858 2003-11-07 Carlo Wood <carlo@alinoe.com>
861 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
862 (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
863 K, V, r and A qualifiers before processing them as a group.
864 * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
865 * testsuite/demangle/regression/cw-16.cc: New.
867 2003-11-07 Robert Millan <robertmh@gnu.org>
869 * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
870 * crossconfig.m4: Likewise.
871 * configure: Regenerate.
873 2003-11-07 Carlo Wood <carlo@alinoe.com>
875 * include/bits/demangle.h
876 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
877 string_type&, bool member_function_pointer_qualifiers):
878 Always separate the '[' of an array type with a space from
879 what is left of it, except when that is the closing bracket
880 of another array dimension.
882 2003-11-07 Carlo Wood <carlo@alinoe.com>
884 * include/bits/demangle.h
885 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
886 string_type&, bool) const): Made const.
887 (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
888 (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
889 std::ostream& operator<<(std::ostream&, qualifier const&),
890 std::ostream& operator<<(std::ostream&, qualifier_list const&),
891 qualifier_list<Allocator>::decode_qualifiers(string_type&,
892 string_type&, bool) const,
893 session<Allocator>::decode_type_with_postfix(string_type&,
894 string_type&, qualifier_list<Allocator>*))
895 Added and/or changed debug-only hooks and code.
897 2003-11-04 Jeffrey D. Oldham <oldham@codesourcery.com>
899 * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
900 immediately return. This reflects a C++ ABI change 2003 Nov 03.
901 (__cxa_vec_delete3): Likewise.
903 2003-11-03 Petur Runolfsson <peturr02@ru.is>
906 * include/bits/fstream.tcc: Delete _M_last_overflowed.
907 (basic_filebuf::basic_filebuf): Initialize _M_state_last.
908 (basic_filebuf::open, basic_filebuf::close): Assign
909 _M_state_beg to _M_state_cur and _M_state_last.
910 (basic_filebuf::close): Call _M_terminate_output to handle
911 unshift and flushing.
912 (basic_filebuf::underflow): Assign _M_state_last, throw
913 exception instead of calling abort when codecvt::max_length()
915 (basic_filebuf::seekoff): Use _M_state_last when calling
916 codecvt::length(), pass correct state to _M_seek.
917 (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
918 (basic_filebuf::_M_seek): Add __state_type parameter,
919 set _M_state_cur correctly, store the resulting state in
920 the return value and use _M_terminate_output to handle
921 flushing and unshift.
922 (basic_filebuf::_M_terminate_output): Flush contents of
923 output buffer, if any, then call codecvt::unshift as
924 needed and output the result.
925 (basic_filebuf::sync): Move here, don't modify _M_writing
928 * include/std/std_fstream.h
929 (basic_filebuf::_M_state_last): Declare it.
930 (basic_filebuf::_M_last_overflowed): Delete.
931 (basic_filebuf::_M_seek): Add __state_type parameter.
932 (basic_filebuf::sync): Declare only.
933 (basic_filebuf::_M_output_unshift): Delete.
934 (basic_filebuf::_M_terminate_output): Declare it.
936 * testsuite/testsuite_character.h:
937 Define character class and state class plus char_traits and
938 codecvt specializations for same for testing support for
941 * testsuite/27_io/basic_filebuf/close/12790-1.cc,
942 * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
943 * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
944 * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
945 * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
946 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
947 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
948 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
949 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
950 * testsuite/27_io/basic_filebuf/open/12790-1.cc,
951 * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
952 * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
953 * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
954 * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
955 * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
956 * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
957 * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
958 * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
959 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
960 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
961 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
962 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
963 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
964 * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
965 * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
966 * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
967 * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
968 * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
969 * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
970 * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
971 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
972 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
973 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
974 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
975 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
976 * testsuite/27_io/basic_filebuf/sync/char/1.cc,
977 * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
980 * testsuite/27_io/basic_filebuf/3.cc,
981 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
982 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
983 * testsuite/27_io/basic_fstream/3.cc,
984 * testsuite/27_io/basic_ifstream/3.cc,
985 * testsuite/27_io/basic_ofstream/3.cc:
986 Use streamoff as off_type and fpos<state_type> as pos_type.
988 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
989 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
990 Check that sync does *not* set _M_writing to false.
992 2003-11-03 Anthony Green <green@redhat.com>
994 * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
997 2003-11-03 Benjamin Kosnik <bkoz@redhat.com>
999 * include/bits/locale_facets.h (time_get::_M_extract_name): Add
1001 * include/bits/locale_facets.tcc: Same, use it to allow
1004 * include/bits/fstream.tcc: Spacing tweak.
1005 * include/bits/istream.tcc: Same.
1006 * include/bits/ostream.tcc: Same.
1008 2003-10-30 Paolo Carlini <pcarlini@suse.de>
1010 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
1011 __mod is only assigned, never used its value, remove it.
1013 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1015 * include/bits/locale_facets.tcc (time_get::do_get_year):
1016 Absolutely avoid dereferencing end iterators.
1017 (time_put::put): Minor clean up.
1019 * include/bits/locale_facets.tcc: Cosmetic reformattings.
1021 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1023 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1024 Revert the last commit, is not correct, sorry.
1026 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1028 * config/locale/generic/c_locale.cc: Add back <cmath> and
1031 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1034 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1036 * include/bits/locale_facets.tcc (time_put::put): Absolutely
1037 avoid dereferencing end iterators; clean up.
1039 * include/bits/locale_facets.tcc (num_get::_M_extract_float,
1040 num_get::_M_extract_int): Minor tweak.
1042 2003-10-29 Paolo Carlini <pcarlini@suse.de>
1044 * include/bits/locale_facets.tcc: Remove some unnecessary
1046 * config/locale/generic/c_locale.cc: Include <cerrno> here.
1047 * config/locale/gnu/c_locale.cc: Likewise.
1049 2003-10-28 Paolo Carlini <pcarlini@suse.de>
1051 * include/bits/locale_facets.tcc
1052 (money_get<>::do_get(..., string_type&)): Absolutely avoid
1053 dereferencing end iterators; general clean up.
1055 2003-10-28 Paolo Carlini <pcarlini@suse.de>
1057 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
1058 Absolutely avoid dereferencing end iterators.
1059 (time_get::_M_extract_name): Likewise.
1061 * include/bits/locale_facets.tcc
1062 (time_get::_M_extract_via_format, case 'e'): Don't try to
1063 be smart wrt returning the right __beg in case of parse
1064 error, time_get::_M_extract_num must be fixed instead.
1066 2003-10-27 Paolo Carlini <pcarlini@suse.de>
1069 * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
1070 * aclocal.m4: Regenerate.
1071 * configure: Regenerate.
1073 2003-10-27 Benjamin Kosnik <bkoz@redhat.com>
1075 * docs/html/17_intro/TODO: Add links.
1076 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1079 2003-10-27 Paolo Carlini <pcarlini@suse.de>
1082 * include/bits/locale_facets.tcc
1083 (time_get::_M_extract_via_format): Deal with code 'e'.
1084 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
1085 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
1087 * include/bits/locale_facets.tcc
1088 (time_get::_M_extract_via_format): Tweak to absolutely avoid
1089 dereferencing end iterators.
1091 * include/bits/locale_facets.h (__verify_grouping):
1092 Const-ify second parameter.
1093 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
1094 * src/locale-inst.cc (__verify_grouping): Ditto.
1096 2003-10-27 Paolo Carlini <pcarlini@suse.de>
1098 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1099 Various things: 1- Avoid absolutely end iterator dereferences;
1100 2- Improve performance-wise the code skipping leading zeros;
1101 3- Fix two bugs wrt early bail out in case of parsing errors
1102 (see testcases); 4- General clean up.
1103 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
1104 use __builtin_expect to favor base 10 inputs.
1105 * testsuite/22_locale/num_get/get/char/7.cc: New.
1106 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
1108 2003-10-26 Paolo Carlini <pcarlini@suse.de>
1110 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
1111 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
1113 2003-10-25 Paolo Carlini <pcarlini@suse.de>
1115 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
1116 __pos in only incremented, never used its value, remove it.
1118 2003-10-24 Robert Millan <robertmh@gnu.org>
1120 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
1122 * aclocal.m4: Regenerated.
1123 * configure: Regenerated.
1125 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1127 * include/bits/locale_facets.tcc (money_get::do_get(...,
1128 long double&): Properly size the temporary buffer.
1129 * testsuite/22_locale/money_get/get/char/11.cc: New.
1130 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
1132 * include/bits/locale_facets.tcc (num_put::_M_group_int,
1133 num_put::_M_group_float, money_put::do_put(..., const
1134 string_type&), collate::do_compare, collate::do_transform):
1135 Prefer basic_string::data() to c_str() when the '\0'
1136 terminator is not really needed.
1138 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1140 * include/bits/locale_facets.tcc (__verify_grouping):
1141 Prefer '=' to an unnecessary '&='.
1143 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1145 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1146 Tweak my fix for libstdc++/12657.
1148 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1150 * include/bits/locale_facets.tcc (money_get::do_get(...,
1151 string_type&): Minor tweak to the previous commit.
1153 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1155 * include/bits/locale_facets.tcc (money_get::do_get(...,
1156 string_type&): Disregard the previous commit: doesn't hurt but
1157 doesn't accomplish anything useful either. This is the right
1158 one, speeding up greatly the function in case of early fail.
1160 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1162 * include/bits/locale_facets.tcc (money_get::do_get(...,
1163 string_type&): Move an if block, thus minimizing the amount
1164 of code processed anyway when __tmp_units.size() == 0.
1166 2003-10-24 Paolo Carlini <pcarlini@suse.de>
1168 * include/bits/locale_facets.tcc
1169 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
1172 2003-10-23 Benjamin Kosnik <bkoz@redhat.com>
1174 * docs/html/documentation.html: Add a pointer to the doxygen style
1176 * docs/html/17_intro/TODO: Update.
1177 * docs/html/test.html: Add instructions for running a subset of
1180 2003-10-23 Paolo Carlini <pcarlini@suse.de>
1182 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
1183 string_type&)): Use find_first_not_of to strip leading
1184 zeros; if __tmp_units == "0" never prefix it with '-';
1185 always fail if __tmp_units is empty.
1186 * testsuite/22_locale/money_get/get/char/10.cc: New.
1187 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
1189 2003-10-23 Phil Edwards <phil@codesourcery.com>
1191 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
1194 2003-10-22 Paolo Carlini <pcarlini@suse.de>
1196 * include/bits/locale_facets.tcc (__int_to_char): Remove
1197 the const int parameter.
1198 (_M_insert_int): Update caller.
1199 * src/locale-inst.cc (__int_to_char): Update instantiations.
1201 2003-10-22 Benjamin Kosnik <bkoz@redhat.com>
1203 * include/bits/locale_facets.h: Correct byname facets for "C"
1205 * config/locale/generic/ctype_members.cc: Same.
1206 * config/locale/generic/messages_members.h: Same.
1207 * config/locale/gnu/ctype_members.cc: Same.
1208 * config/locale/gnu/messages_members.h: Same.
1209 * include/bits/codecvt.h: Same.
1210 * src/ctype.cc: Same.
1211 * testsuite/22_locale/codecvt_byname/1.cc: New.
1212 * testsuite/22_locale/collate/1.cc: Edit.
1213 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
1214 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
1215 * testsuite/22_locale/ctype/1.cc: Derivation tests.
1216 * testsuite/22_locale/ctype/11844.cc: Move...
1217 * testsuite/22_locale/ctype_base/11844.cc: ...here.
1218 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
1219 * testsuite/22_locale/ctype_byname/1.cc: Name.
1220 * testsuite/22_locale/messages_byname/1.cc: New.
1221 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
1222 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
1223 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
1224 * testsuite/22_locale/numpunct/1.cc: Edit.
1225 * testsuite/22_locale/numpunct_byname/2.cc: Move...
1226 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
1227 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
1228 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
1230 2003-10-22 Paolo Carlini <pcarlini@suse.de>
1233 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
1234 checking for the availability of int64_t.
1235 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
1236 * configure.ac: Call here.
1237 * acconfig.h: Add undef for the corresponding symbols.
1238 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
1239 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
1240 (__basic_file<char>::seekoff): Likewise, call lseek64 when
1241 available, otherwise lseek, checking the __off parameter.
1242 * include/bits/postypes.h: Typedef __streamoff_base_type
1243 to int64_t if available, otherwise long long.
1244 * aclocal.m4: Regenerate.
1245 * config.h.in: Likewise.
1246 * configure: Likewise.
1248 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
1249 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
1251 2003-10-22 Paolo Carlini <pcarlini@suse.de>
1254 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1255 Implement resolution of DR 292 (WP).
1256 * docs/html/ext/howto.html: Add entry for DR 292.
1258 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1260 * include/ext/mt_allocator.h: Change include to gthr.h.
1261 * include/ext/rope: Same. Add _Refcount_base definitions.
1262 * include/ext/pool_allocator.h: Adjust namespaces.
1263 * include/bits/stl_threads.h (_Refcount_base): Move.
1264 Put remaining into namespace __gnu_cxx.
1266 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1269 * include/bits/locale_facets.h (ctype<char>): Remove
1270 __ctype_abstract_base.
1271 (ctype<char>::do_is): Remove.
1272 (ctype<char>::do_scan_is): Remove.
1273 * src/ctype.cc: Same. Inline the rest.
1274 * testsuite/22_locale/ctype/is/char/9858.cc: New.
1275 * config/os/aix/ctype_noninline.h: Adjust ctor.
1276 * config/os/bsd/freebsd/ctype_noninline.h: Same.
1277 * config/os/bsd/netbsd/ctype_noninline.h: Same.
1278 * config/os/djgpp/ctype_noninline.h: Same.
1279 * config/os/generic/ctype_noninline.h: Same.
1280 * config/os/gnu-linux/ctype_noninline.h: Same.
1281 * config/os/hpux/ctype_noninline.h: Same.
1282 * config/os/irix/irix5.2/ctype_noninline.h: Same.
1283 * config/os/irix/irix6.5/ctype_noninline.h: Same.
1284 * config/os/mingw32/ctype_noninline.h: Same.
1285 * config/os/newlib/ctype_noninline.h: Same.
1286 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
1287 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
1288 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
1289 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
1290 * config/os/windiss/ctype_noninline.h: Same.
1292 2003-10-21 Paolo Carlini <pcarlini@suse.de>
1294 * src/locale.cc: Tweak a comment.
1295 * src/localename.cc: Move a comment.
1297 2003-10-20 Benjamin Kosnik <bkoz@redhat.com>
1300 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
1301 * testsuite_hooks.cc: Same.
1302 * 22_locale/numpunct/members/pod/1.cc: Edit.
1303 * 22_locale/numpunct/members/pod/2.cc: Same.
1304 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
1305 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
1306 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
1307 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
1308 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
1309 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
1310 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
1311 * 27_io/basic_istream/sentry/pod/1.cc: New.
1312 * 27_io/basic_ostream/sentry/pod/1.cc: New.
1313 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
1314 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
1316 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1318 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
1319 of external _MIPS_SIM_ABI32.
1321 2003-10-20 Phil Edwards <phil@codesourcery.com>
1323 * configure.ac: Fix comment typo.
1324 * configure.host: Add vxworks to host_os switch.
1325 * crossconfig.m4: Remove old commented os_include_dir variables
1326 left over from autotools transition.
1327 (*-vxworks): New stanza.
1328 (*-windiss): Add missing symbols.
1329 * configure: Regenerate.
1330 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
1331 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
1333 * config/os/windiss/os_defines.h: Define __C9X__.
1335 2003-10-19 David Edelsohn <edelsohn@gnu.org>
1338 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
1340 2003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
1342 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
1343 confusion of the use of the gthr API when __gthread_active_p()
1346 2003-10-17 Benjamin Kosnik <bkoz@redhat.com>
1348 * src/Makefile.am: Add new files.
1349 * src/Makefile.in: Regenerate.
1350 * src/globals.cc: Split into..
1351 * src/globals_io.cc: New.
1352 * src/globals_locale.cc: New.
1353 * src/ios.cc: Split into...
1354 * src/ios_init.cc: New.
1355 * src/ios_locale.cc: New.
1356 * src/locale-inst.cc: Split into..
1357 * src/wlocale-inst.cc: New.
1358 * src/locale-misc-inst.cc: New.
1359 * src/locale.cc, src/localename: Split into...
1360 * src/locale_facets.cc: New.
1361 * src/locale_init.cc: New.
1362 * src/wstring-inst.cc: Add copyright info.
1364 2003-10-16 Petur Runolfsson <peturr02@ru.is>
1369 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
1370 Change return value from streampos to streamoff.
1371 (__basic_file::seekpos): Delete.
1372 * config/io/basic_file_stdio.h: Same.
1373 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
1374 * include/Makefile.am (bits_headers): Add bits/postypes.h.
1375 * include/bits/char_traits.h: Include bits/postypes.h instead of
1377 * include/bits/fstream.tcc (basic_filebuf::open,
1378 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
1379 values, use == and != instead.
1380 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
1382 (basic_filebuf::imbue): Don't use ! on pos_type values, use
1383 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
1384 * include/bits/postypes.h: New file.
1385 Add __streamoff_base_type typedef, streamsize.
1386 (streamoff, streampos, wstreampos): Define typedefs, with
1387 streamoff defined as...
1388 (streamoff): New class. Document implementation defined
1390 (fpos): New implementation. Document implementation defined
1392 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
1393 explicit conversion from pos_type to off_type.
1394 * include/std/std_iosfwd.h: Include bits/postypes.h instead
1396 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
1397 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
1398 * testsuite/27_io/fpos/11450.cc: New test.
1399 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
1400 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
1401 * testsuite/27_io/types/3.cc: New test.
1403 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
1405 * configure.host: Remove fpos_include_dir.
1406 * configure.ac: Remove FPOS_INC_SRCDIR.
1407 * configure: Regenerate.
1408 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
1409 * aclocal.m4: Regenerate.
1410 * include/Makefile.am (host_headers): Remove fpos.h.
1411 (bits_headers): Add postypes.h.
1412 * include/Makefile.in: Regenerate.
1413 * config/os/gnu-linux/fposh: Remove.
1414 * config/os/generic/fpos.h: Remove.
1416 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
1417 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
1418 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
1419 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
1420 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
1421 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
1422 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
1423 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
1424 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
1425 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
1426 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
1427 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
1428 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
1429 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
1430 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
1431 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1432 * testsuite/27_io/objects/char/10.cc: Same.
1434 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1436 * src/locale.cc (locale::locale(const char*)): ... one
1437 more comparison missed in the previous commit.
1439 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
1441 * acconfig.h: Add HAVE_DRAND48.
1442 * crossconfig.m4: Remove ISATTY.
1443 * aclocal.m4: Regenerated.
1444 * config.h.in: Regenerated.
1445 * configure: Regenerated.
1447 2003-10-16 Bernardo Innocenti <bernie@develer.com>
1449 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
1450 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
1451 Document SMP safeness of asm macros.
1453 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1455 * src/locale.cc (locale::locale(const char*)): Tweak
1456 a couple of comparisons to use basic_string operators.
1458 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1461 * config/locale/gnu/monetary_members.cc
1462 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
1463 Don't leak memory if new throws.
1464 * src/locale.cc (locale::locale(const char*)): In order not
1465 to leak memory in case new throws, use a basic_string type
1466 for __res too and avoid strdup.
1468 2003-10-14 Jeff Bailey <jbailey@nisa.net>
1471 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
1472 * configure: Regenerate.
1474 2003-10-14 Carlo Wood <carlo@alinoe.com>
1477 * include/bits/demangle.h (session<Allocator>::
1478 decode_unqualified_name(string_type& output)): Fail on a
1479 <operator-name> when decoding <template-argument>.
1480 * testsuite/demangle/regression/cw-15.cc: New.
1482 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
1485 * include/bits/stl_algo.h (unique): Fix.
1486 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
1487 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
1488 * testsuite/25_algorithms/unique/2.cc: New.
1490 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
1492 * src/localename.cc (_M_replace_categories, M_replace_facet):
1493 Const-ify a couple of variables.
1495 2003-10-14 Petur Runolfsson <peturr02@ru.is>
1496 Andreas Tobler <a.tobler@schweiz.ch>
1498 * src/locale.cc (locale::_S_initialize): Workaround a confusion
1499 of the use of the gthr API when __gthread_active_p() returns true.
1501 2003-10-12 Petur Runolfsson <peturr02@ru.is>
1502 Paolo Carlini <pcarlini@unitus.it>
1505 * src/strstream.cc (pbackfail): Fix to use to_int_type.
1506 * testsuite/backward/11460.cc: New, from the PR.
1508 2003-10-12 Paolo Carlini <pcarlini@unitus.it>
1510 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1511 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
1512 * include/bits/basic_string.tcc: Likewise.
1513 * include/bits/ios_base.h: Likewise.
1514 * include/bits/istream.tcc: Likewise.
1515 * include/bits/locale_facets.tcc: Likewise.
1516 * include/bits/ostream.tcc: Likewise.
1517 * include/bits/stl_function.h: Likewise.
1518 * include/bits/stl_multiset.h: Likewise.
1519 * include/bits/stl_pair.h: Likewise.
1520 * include/bits/stl_set.h: Likewise.
1521 * include/bits/streambuf_iterator.h
1522 * include/std/std_iosfwd.h: Likewise.
1523 * include/std/std_istream.h: Likewise.
1524 * include/std/std_sstream.h: Likewise.
1525 * include/std/std_streambuf.h: Likewise.
1526 * src/ios.cc: Likewise.
1527 * include/bits/c++config:
1528 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
1529 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
1530 dg-error directive due to removal of a blank line.
1531 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1533 2003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
1534 Paolo Carlini <pcarlini@unitus.it>
1536 PR libstdc++/11844/11740 (cont)
1537 * config/os/generic/ctype_inline.h (ctype<char>::is):
1538 Generically, use a bitmasksize of 15 (instead of 10);
1539 Fix the logic to actually return (M & m) != 0 as per
1542 2003-10-11 Bernardo Innocenti <bernie@develer.com>
1544 * crossconfig.m4 (*-uclinux*): New target.
1545 * configure: Regenerate.
1547 2003-10-10 Paolo Carlini <pcarlini@unitus.it>
1549 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
1550 Avoid unnecessarily calling __builtin_alloca and dealing
1551 explicitly with width() smaller than zero.
1552 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
1553 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
1554 const char*), operator<<(basic_ostream<char, _Traits>&,
1555 const char*), operator<<(basic_ostream, const basic_string&)):
1558 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1560 * config/linker-map.gnu: Make more *_type_info bits visible.
1561 Move new/delete bits back into GLIBCXX space.
1563 * include/bits/locale_classes.h: Move _M_id out of line, so that
1564 locale::id::_S_highwater can be removed from the export list.
1565 * src/locale.cc (locale::id::_M_id): Define.
1567 2003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
1569 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
1572 2003-10-09 Paolo Carlini <pcarlini@unitus.it>
1575 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
1576 to conform to the requirements of 22.2.1.
1577 * config/os/bsd/freebsd/ctype_base.h: Likewise.
1578 * config/os/djgpp/ctype_base.h: Likewise.
1579 * config/os/generic/ctype_base.h: Likewise.
1580 * config/os/gnu-linux/ctype_base.h: Likewise.
1581 * config/os/hpux/ctype_base.h: Likewise.
1582 * config/os/irix/irix6.5/ctype_base.h: Likewise.
1583 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
1584 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
1585 * testsuite/22_locale/ctype/11844.cc: New.
1587 * config/locale/generic/ctype_members.cc (do_is):
1588 Generically, use a bitmasksize of 15 (instead of 10), since
1589 we don't know the numerical encoding of the various categories
1590 in the underlying /usr/include/ctype.h.
1592 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1594 * src/string-inst.cc: Prune.
1595 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1596 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1598 2003-10-09 Petur Runolfsson <peturr02@ru.is>
1600 * src/io-inst.cc: Don't include iostream.
1601 * include/bits/ios_base.h (ios_base::failure): Use string.
1602 * src/Makefile.am: Add ios_failure.cc.
1603 * src/Makefile.in: Regenerate.
1604 * src/ios.cc: Move ios_base::failure definitions to...
1605 * src/ios_failure.cc: ...here. New.
1607 2003-10-09 Petur Runolfsson <peturr02@ru.is>
1610 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1611 Move code needed for both seekoff and seekpos...
1612 (basic_filebuf::_M_seek): ...here. New function.
1613 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
1614 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
1615 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
1617 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
1619 2003-10-08 Paolo Carlini <pcarlini@unitus.it>
1621 * include/bits/locale_facets.tcc: More minor cosmetic
1622 changes and const-ifications of some variables.
1624 2003-10-07 Paolo Carlini <pcarlini@unitus.it>
1626 * include/bits/locale_facets.tcc: Minor cosmetic changes
1627 and const-ifications of some variables.
1629 * include/bits/locale_facets.tcc
1630 (money_get::do_get(..., string_type&)): Simplify an if-else.
1632 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
1635 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
1636 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
1637 * config/locale/generic/ctype_members.cc: Same.
1638 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
1640 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
1642 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
1643 Improve performance-wise: avoid one traits::copy, avoid
1644 the __builtin_alloca, streamline.
1646 2003-10-05 Paolo Carlini <pcarlini@unitus.it>
1648 * include/bits/locale_facets.tcc
1649 (num_put::do_put(..., bool)): Prefer ?: to if-else.
1650 (time_get::_M_extract_name): Qualify min with std::.
1651 (__pad<>::_S_pad): Constify two variables; simplify an
1652 if-else statement factoring out some code.
1654 * include/bits/locale_facets.tcc: Minor cosmetic changes.
1656 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1658 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1659 Constify a couple of variables.
1660 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
1661 ++__beg to *__beg++.
1663 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1664 Petur Runolfsson <peturr02@ru.is>
1666 * include/ext/stdio_sync_filebuf.h: Don't include the whole
1667 <fstream>, only <streambuf> and <cstdio>.
1669 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1672 * include/bits/fstream.tcc (imbue): In case a codecvt facet
1673 is not available, set _M_codecvt = 0.
1674 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
1676 2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
1679 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
1681 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1683 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
1684 * src/locale.cc: Define.
1685 * src/localename.cc: Use it.
1686 * config/locale/generic/time_members.h: Same.
1687 * config/locale/gnu/messages_members.h: Same.
1688 * config/locale/gnu/time_members.h: Same.
1690 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
1693 * include/bits/fstream.tcc (seekoff): Ignore the openmode
1695 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
1696 seekpos): Remove the openmode argument.
1697 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
1698 seekpos): Remove redundant placeholder for the openmode argument.
1699 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
1700 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
1701 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
1702 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
1703 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
1705 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1707 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
1708 (locale::facet::_S_get_c_locale): Same.
1710 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1712 * config/linker-map.gnu: Export _S_get_c_locale instead of
1715 2003-10-02 Petur Runolfsson <peturr02@ru.is>
1717 * config/locale/generic/c_locale.cc
1718 (category_names, locale::_S_categories): Const qualify.
1719 * config/locale/gnu/c_locale.cc: Same.
1720 * config/locale/generic/time_members.h (__timepunct::__timepunct):
1721 Copy string contents before assigning to _M_name_timepunct,
1722 qualify strcpy and strlen with std::.
1723 * config/locale/gnu/time_members.h: Same.
1724 * config/locale/gnu/messages_members.h (messages::messages):
1725 Copy string contents before assigning to _M_name_messages,
1726 qualify strcpy and strlen with std::.
1727 * config/os/gnu-linux/ctype_noninline.h
1728 (ctype<char>::classic_table()): Don't call locale::classic().
1729 * include/bits/locale_classes.h
1730 (locale::_S_categories): Const qualify.
1731 (locale::_S_once, locale::_S_initialize_once,
1732 locale::facet::_S_once, locale::facet::_S_initialize_once,
1733 locale::facet::_S_get_c_locale): Declare.
1734 (locale::_S_initialize): Don't define.
1735 (locale::facet::_S_c_locale): Make private.
1736 (locale::facet::_S_c_name): Same, const qualify.
1737 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
1738 parameters, add throw() specifier.
1739 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
1740 messages::_M_name_messages): Const qualify.
1742 (locale::_S_once, locale::facet::_S_once): Define.
1743 (locale::classic): Move initialization code...
1744 (locale::_S_initialize_once): ...here.
1745 (locale::_S_initialize): Call _S_initialize_once through
1747 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
1748 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
1749 __gthread_once before returning _S_c_locale.
1750 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
1751 Drop unused parameters, add throw() specifier, don't initialize
1752 locale::facet::_S_c_locale and _S_c_name.
1754 * config/locale/generic/messages_members.h:
1755 Replace _S_c_locale with _S_get_c_locale().
1756 * config/locale/gnu/c_locale.cc: Same.
1757 * config/locale/gnu/messages_members.h: Same.
1758 * config/locale/gnu/numeric_members.cc: Same.
1759 * config/locale/gnu/time_members.cc: Same.
1760 * config/os/gnu-linux/ctype_noninline.h: Same.
1761 * include/bits/locale_facets.h: Same.
1762 * include/bits/locale_facets.tcc: Same.
1763 * src/codecvt.cc: Same.
1764 * src/ctype.cc: Same.
1766 2003-10-02 Carlo Wood <carlo@alinoe.com>
1768 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
1769 Decode symbols that start with _GLOBAL_[ID]_ differently: the
1770 trailing part ends with a terminating zero and is not necessarily an
1772 * src/demangle.cc (): Same.
1773 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
1775 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
1777 * testsuite/22_locale/locale/cons/12438.cc: Use
1778 __gnu_test::try_named_locale("").
1780 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1782 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
1783 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
1785 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
1786 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
1788 * config.h.in, configure: Regenerate.
1789 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
1792 2003-10-01 Nathan Myers <ncm@cantrip.org>
1794 * include/bits/locale_facets.tcc (time_put::put): Avoid
1795 expensive *__s++, in favor of *__s, ++__s.
1797 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
1799 * include/bits/locale_facets.tcc (time_put::put): Minor
1800 tweak to the previous commit.
1802 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
1805 * include/bits/locale_facets.tcc (time_put::put): Deal
1806 with the three issues pointed out by the PR.
1807 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
1808 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
1809 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
1810 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
1811 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
1813 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1815 * include/bits/stl_algo.h: Minor cosmetic reformattings.
1817 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1819 * include/bits/stl_algo.h (search_n): Tweak, to spare the
1822 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1824 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
1825 qualify exception name.
1827 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1830 * include/bits/locale_facets.tcc (locale::combine): Don't
1831 leak memory if _M_replace_facet throws.
1832 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
1834 * include/bits/locale_classes.h (locale::locale(const locale&,
1835 _Facet*)): Tweak, use consistently _M_remove_reference.
1837 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1839 PR libstdc++/12352 (cont)
1840 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
1841 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
1843 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
1844 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
1845 !_M_caches, !_M_names.
1847 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1849 * configure.host: Handle Solaris 2.5 micro releases explicitly.
1850 Remove wildcards from Solaris 2.6, 7-9: there were no
1852 Treat Solaris 10 and up like 7-9.
1854 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1856 * include/bits/stl_algo.h (search_n): Improve the previous
1857 fix as suggested by Martin.
1859 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1862 * include/bits/istream.tcc (peek): Set eofbit if sgetc
1864 * testsuite/27_io/basic_istream/peek/char/12296.cc:
1867 2003-09-29 Nathan Myers <ncm@cantrip.org>
1868 Paolo Carlini <pcarlini@unitus.it>
1871 * include/bits/stl_algo.h (search_n):
1872 Use iterator_traits<>::difference_type for __n.
1873 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
1875 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1877 * testsuite/22_locale/locale/cons/12352.cc:
1878 Use __attribute__((unused)) for test.
1880 2003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
1882 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
1883 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
1884 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
1886 2003-09-26 Brad Spencer <spencer@infointeractive.com>
1888 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
1889 Explicitly qualify exceptions.
1890 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
1891 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1892 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1893 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1895 2003-09-25 Paolo Carlini <pcarlini@unitus.it>
1898 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
1899 size_t)): Don't leak if memory allocations for _M_facets,
1900 _M_caches, and _M_names fail.
1901 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
1902 (locale::_Impl::_M_replace_categories(const _Impl*,
1904 (locale::_Impl::_M_install_facet(const locale::id*,
1905 const facet*)): Ditto.
1906 * include/bits/locale_classes.h (locale::locale(const locale&,
1907 _Facet*)): Don't leak memory.
1908 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
1910 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
1911 bool)): Qualify with std:: strcpy, tweak.
1912 * include/bits/locale_classes.h
1913 (locale::_Impl::_M_check_same_name): Qualify strcmp.
1915 2003-09-25 Brad Spencer <spencer@infointeractive.com>
1918 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
1920 * aclocal.m4: Regenerate.
1921 * config.h.in: Regenerate.
1922 * configure: Regenerate.
1923 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
1924 * config/io/basic_file_stdio.cc: Guard unistd.h.
1925 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
1926 * include/c_std/std_cwchar.h: Same.
1927 * include/c_std/std_cwctype.h: Same.
1929 2003-09-25 Benjamin Kosnik <bkoz@redhat.com>
1932 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
1933 * config/locale/generic/ctype_members.cc: Same.
1934 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
1935 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
1937 * config/os/generic/ctype_inline.h: Update.
1939 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
1941 * src/Makefile.am (version_dep): New variable.
1942 (libstdc___la_DEPENDENCIES): Use it to add dependency on
1943 libstdc++-symbol.ver only when using symbol versioning.
1944 * src/Makefile.in: Regenerate.
1946 2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
1948 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
1949 * testsuite/testsuite_hooks.h: Same.
1950 * testsuite/*/*.cc: Same.
1952 2003-09-22 Petur Runolfsson <peturr02@ru.is>
1954 * include/bits/istream.tcc (basic_istream::read,
1955 basic_istream::readsome, basic_istream::putback,
1956 basic_istream::unget, operator>>(basic_istream, CharT)):
1957 Avoid redundant setstate(failbit) calls when sentry::operator bool()
1960 2003-09-22 Carlo Wood <carlo@alinoe.com>
1963 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
1964 char const*, int, int)): Remove unused identifier
1965 cv_qualifier for overloaded constructor.
1967 2003-09-18 Benjamin Kosnik <bkoz@redhat.com>
1970 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
1971 WARN_FLAGS, remove -Wno-format.
1972 * aclocal.m4: Regenerate.
1973 * configure: Regenerate.
1975 2003-09-18 Petur Runolfsson <peturr02@ru.is>
1977 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
1978 * config/io/basic_file_stdio.h: Same.
1979 * include/std/std_fstream.h (__ctype_type): Delete.
1980 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
1982 2003-09-17 Benjamin Kosnik <bkoz@redhat.com>
1985 * configure.host (abi_baseline_pair): Error out on solaris2
1986 configurations without a minor version number.
1988 2003-09-13 Phil Edwards <phil@codesourcery.com>
1990 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
1991 if man pages are on.
1992 * docs/doxygen/user.cfg.in: And here.
1994 2003-09-10 Daniel Jacobowitz <drow@mvista.com>
1995 Andreas Jaeger <aj@suse.de>
1998 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
1999 abi_check if cross compiling.
2000 * aclocal.m4: Regenerated.
2001 * configure: Regenerated.
2003 2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
2005 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
2006 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
2007 (__cxa_vec_new3): Likewise.
2009 2003-09-10 Petur Runolfsson <peturr02@ru.is>
2011 * include/bits/fstream.tcc (basic_filebuf::seekoff):
2012 Use codecvt::length to handle variable-width stateless encodings
2014 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
2015 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
2017 2003-09-10 Alan Modra <amodra@bigpond.net.au>
2019 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
2022 2003-09-09 Alan Modra <amodra@bigpond.net.au>
2024 * configure: Regenerate.
2026 2003-09-09 David Edelsohn <edelsohn@gnu.org>
2028 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
2029 qualifier from _S_synced_with_stdio.
2031 2003-09-09 Bernardo Innocenti <bernie@develer.com>
2033 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
2035 2003-09-04 Petur Runolfsson <peturr02@ru.is>
2038 * include/bits/fstream.tcc
2039 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
2040 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
2041 _M_ext_buf_size, _M_ext_next and _M_ext_end.
2042 (basic_filebuf::underflow): Handle variable-width stateless
2043 encodings (codecvt::encoding() == 0), including UTF-8.
2044 * include/std/std_fstream.h (basic_filebuf):
2045 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
2046 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
2047 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
2048 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
2049 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
2050 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
2051 * testsuite/27_io/objects/wchar_t/12.cc: New test.
2052 * testsuite/27_io/objects/wchar_t/13.cc: New test.
2054 2003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
2056 * docs/html/faq/index.html: Note that a namespace alias can't be
2057 used when specialising templates in extension namespace.
2058 * docs/html/faq/index.txt: Regenerate.
2060 2003-09-03 Petur Runolfsson <peturr02@ru.is>
2063 * include/ext/stdio_sync_filebuf.h
2064 (stdio_sync_filebuf::_M_unget_buf): Declare it.
2065 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
2066 (stdio_sync_filebuf::uflow): Store the returned character in
2068 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
2069 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
2070 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
2071 _M_unget_buf, if any, else eof().
2072 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
2073 _M_unget_buf, if any, else eof().
2074 * testsuite/27_io/objects/char/12048.cc: Rename to...
2075 * testsuite/27_io/objects/char/12048-1.cc: ...this.
2076 * testsuite/27_io/objects/char/12048-2.cc: New test.
2077 * testsuite/27_io/objects/char/12048-3.cc: New test.
2078 * testsuite/27_io/objects/char/12048-4.cc: New test.
2079 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
2080 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
2081 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
2082 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
2083 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
2084 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
2085 * testsuite/ext/stdio_sync_filebuf_char.cc
2086 (test02, test03, test04, test05): New tests.
2087 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
2088 (test02, test03, test04, test05): New tests.
2090 2003-09-03 Petur Runolfsson <peturr02@ru.is>
2092 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
2093 stringbuf or strstreambuf. Fix typos.
2095 2003-09-02 Phil Edwards <phil@codesourcery.com>
2097 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
2099 * config.h.in: Add _GLIBCXX_HOSTED.
2100 * libsupc++/eh_term_handler.cc: Test it here; initialize
2101 __terminate_handler to std::abort if freestanding.
2102 * aclocal.m4, configure: Regenerated.
2103 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
2105 2003-08-29 Nathan Myers <ncm@cantrip.org>
2108 * include/bits/locale_facets.tcc (__pad): delete dead code.
2110 2003-08-28 Alan Modra <amodra@bigpond.net.au>
2112 * configure.ac: Test $with_cross_host against $build_alias, not $build.
2113 * configure: Regenerate.
2115 2003-08-27 Petur Runolfsson <peturr02@ru.is>
2117 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
2118 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
2120 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
2122 * Makefile.am: Remove trailing whitespace. Remove needless
2123 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
2124 * include/Makefile.am: Likewise.
2125 * libmath/Makefile.am: Likewise.
2126 * libsupc++/Makefile.am: Likewise.
2127 * po/Makefile.am: Likewise.
2128 * src/Makefile.am: Likewise.
2129 * testsuite/Makefile.am: Likewise.
2131 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
2132 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2133 testsuite/Makefile.in: Regenerated.
2135 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
2137 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
2139 * aclocal.m4, configure: Regenerate.
2141 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
2143 * acinclude.m4: Include no-executables.m4.
2144 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
2145 * aclocal.m4: Regenerated.
2146 * configure: Regenerated.
2148 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
2150 * acinclude.m4: Don't call AC_ISC_POSIX.
2151 * aclocal.m4: Regenerated.
2152 * configure: Regenerated.
2154 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
2156 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
2157 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
2158 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
2159 used elsewhere in this file.
2160 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
2161 * configure.ac: ...called here to expand all conditionals.
2162 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
2163 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
2164 (install-freestanding-headers): New target, a subset of
2165 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
2167 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2168 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2169 src/Makefile.in, testsuite/Makefile.in: Regenerated.
2171 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
2173 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
2174 pathnames from generated tag file.
2176 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
2178 * Makefile.am: Add comment.
2179 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
2181 * configure.ac: Use them both here, instead of hardcoded lists.
2183 * fragment.am: Add STAMP varaible.
2184 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
2186 (stamp-*): Move file creation rule outside of 'if' branches to
2187 ensure the stamp-* files are actually updated. Use $(STAMP).
2188 * src/Makefile.am: Remove now-nonexistant variable.
2189 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
2191 * po/Makefile.am: Include same fragment as all the others.
2193 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2194 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
2196 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
2198 * testsuite/data/cin_unget-1.txt: New.
2199 * testsuite/27_io/objects/char/12048.cc: New.
2201 2003-08-25 Zack Weinberg <zack@codesourcery.com>
2203 * config/os/hpux/os_defines.h: Unconditionally define
2204 _GLIBCXX_GTHREAD_USE_WEAK to 0.
2206 2003-08-19 Geoffrey Keating <geoffk@apple.com>
2208 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
2209 crosses to Darwin targets.
2210 * configure: Regenerate.
2212 2003-08-19 Petur Runolfsson <peturr02@ru.is>
2214 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
2216 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
2218 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
2219 in the patch from 3 minutes ago. Boy, is my face red.
2220 * configure: At least I remembered to regenerate this.
2222 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
2224 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
2225 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
2226 things from the top level.
2227 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
2228 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
2229 (currently unused). Strip the fake-VPATH shell fragment from
2230 automake-generated rules, if present.
2231 * linkage.m4: Add comment.
2233 * fragment.am: New file, containing factored-out common settings.
2234 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
2235 * Makefile.am: Include fragment.am. Remove common variables.
2236 * include/Makefile.am: Likewise.
2237 * libmath/Makefile.am: Likewise.
2238 * libsupc++/Makefile.am: Likewise.
2239 * po/Makefile.am: Likewise. Print rules during check.
2240 * src/Makefile.am: Likewise.
2241 * testsuite/Makefile.am: Likewise.
2243 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2244 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2245 src/Makefile.in, testsuite/Makefile.in: Regenerate.
2247 2003-08-11 John Levon <levon@movementarian.org>
2249 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
2250 remaining places for the name change from GLIBCPP_FORCE_NEW
2251 to GLIBCXX_FORCE_NEW
2253 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
2255 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
2257 * include/bits/basic_ios.tcc: Same.
2258 * include/bits/istream.tcc: Same.
2259 * include/bits/locale_facets.h: Same.
2260 * include/bits/ostream.tcc: Same.
2261 * include/std/std_istream.h: Same.
2262 * include/std/std_ostream.h: Same.
2263 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
2265 * include/ext/rope: Remove build warning.
2267 2003-08-11 Andreas Jaeger <aj@suse.de>
2269 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
2271 * include/Makefile.in: Regenerated.
2273 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
2275 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
2276 when calling AC_PROG_CC.
2277 * aclocal.m4, configure: Regenerate.
2279 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
2281 * acinclude.m4: Properly quote variable which will be expanded
2282 inside makefiles. Use CXX instead of CC to extract compiler info.
2283 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
2284 correct form in PACKAGE.
2285 * aclocal.m4, configure: Regenerate.
2287 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
2289 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
2290 (check-abi-verbose): Same.
2291 * testsuite/testsuite_performance.h (report_performance): Same.
2293 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
2295 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2297 2003-08-07 Doug Gregor <dgregor@apple.com>
2299 * include/bits/char_traits.h (char_traits::not_eof): Match operand
2302 2003-08-07 Bernardo Innocenti <bernie@develer.com>
2305 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
2306 Replace variants with new BSET-based version.
2308 2003-08-07 Carlo Wood <carlo@alinoe.com>
2310 * include/bits/demangle.h: Do not use cctype functions that depend
2313 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
2315 * configure.in: Rename...
2316 * configure.ac: ...to this.
2317 * docs/html/17_intro/porting.texi: Update name.
2319 * docs/html/17_intro/porting.html: Regenerate.
2320 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2321 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2322 testsuite/Makefile.in: Regenerate (picks up new dependancy).
2324 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
2326 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
2327 pipe, open the window to let out the fumes, redo the option-handling
2328 logic to properly execute the detection test.
2329 * aclocal.m4, configure: Regenerate.
2331 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2333 Convert to new autotools.
2334 * acconfig.h: Update with correct names.
2335 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
2336 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
2337 * configure.in: Update. Split hardcoded cross-configury settings
2339 * crossconfig.m4: ...here. New file. Contents untouched.
2340 * acinclude.m4: Reorganize and rewrite as needed. Split large
2342 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
2344 * scripts/testsuite_flags.in: Update.
2346 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
2347 variables (already generated by automake).
2348 * include/Makefile.am: Ditto.
2349 * libmath/Makefile.am: Ditto.
2350 * libsupc++/Makefile.am: Ditto.
2351 * po/Makefile.am: Ditto.
2352 * src/Makefile.am: Ditto.
2354 * aclocal.m4: Regenerate using new versions.
2355 * config.h.in: Ditto.
2357 * Makefile.in: Ditto.
2358 * include/Makefile.in: Ditto.
2359 * libmath/Makefile.in: Ditto.
2360 * libsupc++/Makefile.in: Ditto.
2361 * po/Makefile.in: Ditto.
2362 * src/Makefile.in: Ditto.
2363 * testsuite/Makefile.in: Ditto.
2365 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2367 * po/libstdc++.pot: Re-extract/regenerate.
2369 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2371 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
2372 Remove unneeded variable assignments. Leave them for automake.
2373 * testsuite/lib/libstdc++-v3.exp: Rename...
2374 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
2376 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
2377 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
2380 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
2382 * docs/doxygen/guide.html: run_doxygen uses bash.
2383 * docs/doxygen/mainpage.html: We'll be shipping tag files.
2384 * docs/doxygen/run_doxygen: Tweaks and improvements.
2385 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
2386 * docs/html/install.html: Update autoconf/automake requirements.
2387 * docs/html/test.html: Add section describing DejaGNU support.
2388 * docs/html/17_intro/confdeps.dot: New file, generates...
2389 * docs/html/17_intro/confdeps.png: ...this new file.
2390 * docs/html/Makefile: Generated here.
2391 * docs/html/17_intro/configury.html: New file.
2393 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
2395 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
2396 * testsuite/lib/libstdc++-v3.exp: ...to this.
2397 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
2399 2003-07-31 Doug Gregor <dgregor@apple.com>
2401 Add user specialization tests.
2402 * testsuite/23_containers/deque/1.cc: New.
2403 * testsuite/23_containers/list/1.cc: New.
2404 * testsuite/23_containers/map/1.cc: New.
2405 * testsuite/23_containers/multimap/1.cc: New.
2406 * testsuite/23_containers/multiset/1.cc: New.
2407 * testsuite/23_containers/set/1.cc: New.
2408 * testsuite/23_containers/vector/1.cc: New.
2410 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
2412 Reshuffle 23_containers testsuite.
2413 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
2414 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
2415 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
2416 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
2417 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
2418 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
2419 vector_resize.cc: Split into...
2420 * 23_containers/bitset/cons/1.cc: New.
2421 * 23_containers/bitset/cons/6282.cc: New.
2422 * 23_containers/bitset/count/6124.cc: New.
2423 * 23_containers/bitset/operations/1.cc: New.
2424 * 23_containers/bitset/operations/2.cc: New.
2425 * 23_containers/bitset/test/1.cc: New.
2426 * 23_containers/bitset/to_ulong/1.cc: New.
2427 * 23_containers/deque/cons/1.cc: New.
2428 * 23_containers/deque/cons/2.cc: New.
2429 * 23_containers/deque/operators/1.cc: New.
2430 * 23_containers/list/capacity/1.cc: New.
2431 * 23_containers/list/cons/1.cc: New.
2432 * 23_containers/list/cons/2.cc: New.
2433 * 23_containers/list/cons/3.cc: New.
2434 * 23_containers/list/cons/4.cc: New.
2435 * 23_containers/list/cons/5.cc: New.
2436 * 23_containers/list/cons/6.cc: New.
2437 * 23_containers/list/cons/7.cc: New.
2438 * 23_containers/list/cons/8.cc: New.
2439 * 23_containers/list/cons/9.cc: New.
2440 * 23_containers/list/modifiers/1.cc: New.
2441 * 23_containers/list/modifiers/2.cc: New.
2442 * 23_containers/list/modifiers/3.cc: New.
2443 * 23_containers/list/operators/1.cc: New.
2444 * 23_containers/list/operators/2.cc: New.
2445 * 23_containers/list/operators/3.cc: New.
2446 * 23_containers/list/operators/4.cc: New.
2447 * 23_containers/map/insert/1.cc: New.
2448 * 23_containers/map/operators/1.cc: New.
2449 * 23_containers/map/operators/1_neg.cc: New.
2450 * 23_containers/multiset/insert/1.cc: New.
2451 * 23_containers/priority_queue/members/7161.cc: New.
2452 * 23_containers/queue/members/7157.cc: New.
2453 * 23_containers/set/operators/1_neg.cc: New.
2454 * 23_containers/stack/members/7158.cc: New.
2455 * 23_containers/vector/bool/1.cc: New.
2456 * 23_containers/vector/bool/6886.cc: New.
2457 * 23_containers/vector/capacity/1.cc: New.
2458 * 23_containers/vector/capacity/2.cc: New.
2459 * 23_containers/vector/capacity/8230.cc: New.
2460 * 23_containers/vector/cons/1.cc: New.
2461 * 23_containers/vector/cons/2.cc: New.
2462 * 23_containers/vector/cons/3.cc: New.
2463 * 23_containers/vector/cons/4.cc: New.
2464 * 23_containers/vector/cons/6513.cc: New.
2465 * 23_containers/vector/element_access/1.cc: New.
2466 * 23_containers/vector/modifiers/1.cc: New.
2467 * 23_containers/vector/modifiers/2.cc: New.
2468 * 23_containers/vector/resize/1.cc: New.
2470 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2472 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
2474 * testsuite/thread/pthread2.cc: Likewise.
2475 * testsuite/thread/pthread3.cc: Likewise.
2476 * testsuite/thread/pthread4.cc: Likewise.
2477 * testsuite/thread/pthread5.cc: Likewise.
2478 * testsuite/thread/pthread6.cc: Likewise.
2479 * testsuite/thread/pthread7-rope.cc: Likewise.
2481 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
2483 * include/bits/c++config: Partial reversion (comment placement) of
2486 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
2488 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
2489 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
2490 (_GLIBCXX_AT_AT): Remove.
2491 (__USE_MALLOC): Remove.
2492 * include/std/std_fstream.h: Modify.
2493 * include/bits/basic_ios.h: Same.
2494 * include/bits/valarray_array.h: Same.
2495 * include/c_std/std_cmath.h: Same.
2496 * include/c_std/cmath.tcc: Same.
2497 * include/std/std_vector.h: Same.
2498 * include/std/std_string.h: Same.
2499 * include/std/std_stack.h: Same.
2500 * include/std/std_queue.h: Same.
2501 * include/std/std_list.h: Same.
2502 * include/std/std_deque.h: Same.
2503 * include/std/std_streambuf.h: Same.
2504 * include/std/std_sstream.h: Same.
2505 * include/std/std_ostream.h: Same.
2506 * include/std/std_istream.h: Same.
2507 * include/bits/valarray_array.tcc: Same, format.
2509 * include/c/std_cctype.h: Fix include guards.
2510 * include/c/std_cerrno.h: Same.
2511 * include/c/std_cfloat.h: Same.
2512 * include/c/std_climits.h: Same.
2513 * include/c/std_clocale.h: Same.
2514 * include/c/std_cmath.h: Same.
2515 * include/c/std_csetjmp.h: Same.
2516 * include/c/std_csignal.h: Same.
2517 * include/c/std_cstdarg.h: Same.
2518 * include/c/std_cstddef.h: Same.
2519 * include/c/std_cstdio.h: Same.
2520 * include/c/std_cstdlib.h: Same.
2521 * include/c/std_cstring.h: Same.
2522 * include/c/std_ctime.h: Same.
2523 * include/c/std_cwchar.h: Same.
2524 * include/c/std_cwctype.h: Same.
2525 * include/c_std/cmath.tcc: Same.
2526 * include/c_std/std_cmath.h: Same.
2528 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
2531 * include/bits/stl_tree.h: Replace C-style casts with C++-style
2532 casts. Changes to avoid casting away constness. Eliminate
2533 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
2534 initialization lists. Move out implementation of __black_count()
2536 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
2537 Rename_Rb_tree_base_iterator::_M_increment() to
2538 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
2540 * config/linker-map.gnu: Add and change symbols here.
2542 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
2544 * docs/html/22_locale/howto.html: Use locale::classic() instead
2547 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
2549 * testsuite/testsuite_hooks.h: Remove list include.
2550 (func_callback): Define as unique type, not std::list.
2551 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
2552 * testsuite/libstdc++-v3.dg/dg.exp: Same.
2553 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
2554 * testsuite/23_containers/bitset_ctor.cc:
2555 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
2556 * testsuite/18_support/numeric_limits.cc: Same.
2557 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
2558 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
2559 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
2560 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
2561 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
2562 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
2563 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
2564 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
2565 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
2566 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
2567 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
2568 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
2569 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
2570 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
2571 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
2572 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
2573 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
2574 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
2575 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
2576 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
2577 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
2578 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
2579 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
2580 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
2581 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
2582 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
2583 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
2584 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
2585 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
2586 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
2587 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
2588 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
2589 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
2590 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
2591 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
2592 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
2593 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
2594 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
2595 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
2596 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
2597 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
2598 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
2599 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
2600 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
2601 * testsuite/23_containers/bitset_ctor.cc: Same.
2602 * testsuite/23_containers/bitset_shift.cc: Same.
2603 * testsuite/23_containers/vector_ctor.cc: Same.
2604 * testsuite/23_containers/vector_element_access.cc: Same.
2605 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
2606 * testsuite/24_iterators/iterator.cc: Same.
2607 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
2608 * testsuite/25_algorithms/lower_bound.cc: Same.
2609 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
2610 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
2611 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
2612 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
2613 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
2614 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
2615 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
2616 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
2617 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
2618 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
2619 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2622 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2624 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
2625 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
2626 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
2627 GLIBCPP to GLIBCXX (and explain as needed).
2629 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2633 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2635 * testsuite/22_locale/messages/members/char/1.cc,
2636 testsuite/22_locale/messages/members/char/2.cc,
2637 testsuite/22_locale/messages/members/char/3.cc,
2638 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
2639 the origin of LOCALEDIR.
2640 * testsuite/lib/libstdc++-v3.exp: New file.
2642 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
2644 * include/bits/char_traits.h: Update copyright, tweak.
2645 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
2648 2003-07-24 Matt Austern <austern@apple.com>
2650 * /include/bits/char_traits.h (class char_traits): Put all the
2651 real work into the new class template __gnu_cxx::char_traits.
2652 Gave generic definitions for member functions. Types are taken
2653 from the new class template __gnu_cxx::_Char_types.
2654 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
2655 file. Test of std::char_traits<short>, which serves as a test of
2656 the char_traits primary template.
2658 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
2660 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
2662 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
2664 * testsuite/23_containers/map_operators.cc: Conform to
2665 container requirement as value must be Assignable.
2667 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
2669 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
2670 tests not only generation of pch files, but also their use.
2671 * aclocal.m4, configure: Rebuilt.
2673 2003-07-23 Steve Ellcey <sje@cup.hp.com>
2675 * config/cpu/hppa/atomicity.h: Change
2676 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
2677 to match misc-inst.cc
2679 2003-07-23 Steve Ellcey <sje@cup.hp.com>
2681 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
2682 * include/c_std/std_cctype.h: Ditto.
2683 * include/c_std/std_cerrno.h: Ditto.
2684 * include/c_std/std_cfloat.h: Ditto.
2685 * include/c_std/std_climits.h: Ditto.
2686 * include/c_std/std_clocale.h: Ditto.
2687 * include/c_std/std_cmath.h: Ditto.
2688 * include/c_std/std_csetjmp.h: Ditto.
2689 * include/c_std/std_csignal.h: Ditto.
2690 * include/c_std/std_cstdarg.h: Ditto.
2691 * include/c_std/std_cstddef.h: Ditto.
2692 * include/c_std/std_cstdio.h: Ditto.
2693 * include/c_std/std_cstdlib.h: Ditto.
2694 * include/c_std/std_cstring.h: Ditto.
2695 * include/c_std/std_ctime.h: Ditto.
2696 * include/c_std/std_cwchar.h: Ditto.
2697 * include/c_std/std_cwctype.h: Ditto.
2698 * include/std/std_algorithm.h: Ditto.
2699 * include/std/std_bitset.h: Ditto.
2700 * include/std/std_complex.h: Ditto.
2701 * include/std/std_deque.h: Ditto.
2702 * include/std/std_fstream.h: Ditto.
2703 * include/std/std_functional.h: Ditto.
2704 * include/std/std_iomanip.h: Ditto.
2705 * include/std/std_ios.h: Ditto.
2706 * include/std/std_iosfwd.h: Ditto.
2707 * include/std/std_iostream.h: Ditto.
2708 * include/std/std_istream.h: Ditto.
2709 * include/std/std_iterator.h: Ditto.
2710 * include/std/std_limits.h: Ditto.
2711 * include/std/std_list.h: Ditto.
2712 * include/std/std_locale.h: Ditto.
2713 * include/std/std_map.h: Ditto.
2714 * include/std/std_memory.h: Ditto.
2715 * include/std/std_numeric.h: Ditto.
2716 * include/std/std_ostream.h: Ditto.
2717 * include/std/std_queue.h: Ditto.
2718 * include/std/std_set.h: Ditto.
2719 * include/std/std_sstream.h: Ditto.
2720 * include/std/std_stack.h: Ditto.
2721 * include/std/std_stdexcept.h: Ditto.
2722 * include/std/std_streambuf.h: Ditto.
2723 * include/std/std_string.h: Ditto.
2724 * include/std/std_utility.h: Ditto.
2725 * include/std/std_valarray.h: Ditto.
2726 * include/std/std_vector.h: Ditto.
2728 2003-07-22 Doug Gregor <dgregor@apple.com>
2730 * include/bits/basic_string.h (basic_string::insert): Deprecate
2733 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
2735 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
2737 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
2738 (test03): Include typeinfo for bad_cast.
2739 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2740 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2741 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2743 2003-07-21 Doug Gregor <dgregor@apple.com>
2745 * include/bits/boost_concept_check.h:
2746 (_EqualityComparableConcept::__constraints): Remove != from the
2747 list of constraints; it is not listed in Table 28 of the C++98
2750 2003-07-18 Andreas Jaeger <aj@suse.de>
2752 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
2753 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
2754 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
2755 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2757 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
2759 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
2760 * config/locale/generic/messages_members.h: Tweaks.
2761 * config/locale/generic/monetary_members.cc
2762 (moneypunct::_M_initialize_moneypunct): Use cache.
2763 (moneypunct::~moneypunct): Delete cache.
2764 * config/locale/generic/time_members.cc:
2765 (__timepunct::_M_initialize_timepunct): Use cache.
2766 * config/locale/generic/time_members.h:
2767 (__timepunct::~__timepunct): Delete cache.
2768 (__timepunct::__timepunct): Set cache.
2769 * config/locale/gnu/messages_members.h: Tweaks.
2770 * config/locale/gnu/monetary_members.cc:
2771 (moneypunct::_M_initialize_moneypunct): Use cache.
2772 (moneypunct::~moneypunct): Delete cache.
2773 * config/locale/gnu/time_members.cc:
2774 (__timepunct::_M_initialize_timepunct): Use cache.
2775 * config/locale/gnu/time_members.h:
2776 (__timepunct::~__timepunct): Delete cache.
2777 (__timepunct::__timepunct): Set cache.
2778 * include/bits/locale_facets.h (__timepunct_cache): New.
2779 (__moneypunct_cache): New.
2780 * include/bits/locale_facets.tcc: Tweak.
2781 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
2782 * src/locale-inst.cc: Instantiate caches.
2783 * src/globals.cc: Add "C" caches.
2784 * src/localename.cc: Use external "C" caches.
2786 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
2788 * docs/doxygen/guide.html: Fix typo.
2790 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2792 * include/ext/pod_char_traits.h: Add state template argument.
2794 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2796 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
2797 (num_get::_M_convert_int): To _M_insert_int.
2798 (num_get::_M_convert_float): To _M_insert_float.
2799 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2800 Use caches for ctype, num_get.
2801 (num_get::_M_extract_int): Same.
2802 (num_get::get(bool)): Same.
2803 (__verify_grouping): Use size_t.
2804 * src/locale-inst.cc: Update.
2805 * src/locale.cc: Adjust _S_atoms_in.
2807 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
2809 * docs/doxygen/mainpage.html: Move building/writing instructions...
2810 * docs/doxygen/guide.html: ...to here. New file.
2812 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
2814 * docs/html/ext/howto.html: Update URL for SGI STL docs.
2815 * docs/html/faq/index.html: Same.
2816 * docs/html/faq/index.txt: Regenerate.
2818 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
2821 * include/bits/locale_facets.tcc (money_get::do_get):
2822 Strip only _leading_ zeros.
2823 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
2824 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
2826 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2828 * include/ext/hash_map (class hash_multimap): Remove extra
2829 semicolons from __glibcxx_class_requires3 entries.
2830 * include/ext/hash_set (class hash_set): Ditto.
2831 (class hash_multiset): Ditto.
2833 2003-07-15 Petur Runolfsson <peturr02@ru.is>
2835 * include/bits/char_traits.h (char_traits<wchar_t>::move):
2836 Change last parameter from int_type to size_t.
2838 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2840 * include/bits/stl_algo.h (includes, set_union, set_intersection,
2841 set_difference, set_symmetric_difference, max_element, min_element,
2842 next_permutation, prev_permutation, find_first_of, find_end):
2844 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
2845 restrictions in docs.
2846 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
2848 * docs/doxygen/doxygroups.cc (setoperations): New group.
2850 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2852 * include/bits/basic_string.h: Document public functions.
2853 * docs/doxygen/TODO: Update c21 todo.
2855 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2857 * include/bits/stl_list.h: Document more functions.
2858 * docs/doxygen/TODO: Update c23 todo.
2860 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2862 * config/locale/gnu/c_locale.h (__convert_from_v): One more
2865 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2867 * include/bits/stl_tempbuf.h: Qualify free with std::.
2868 * src/locale.cc: Include <cstdlib>, qualify getenv.
2870 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2872 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2873 <cstdio>. Qualify names.
2874 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
2876 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2877 Nathan C. Myers <ncm-nospam@cantrip.org>
2880 * include/std/std_fstream.h (xsputn): Declare only.
2881 * include/bits/fstream.tcc (xsputn): Define, optimize for the
2882 always_noconv() case: when __n is sufficiently large flush
2883 the buffer and issue a direct write, if possible combining the
2884 two with writev in __basic_file<>::xsputn_2.
2885 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
2887 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
2889 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
2890 the availability of writev in <sys/uio.h>.
2891 * configure.in: Call here.
2892 * acconfig.h: Add undef for the corresponding symbol.
2893 * aclocal.m4: Regenerate.
2894 * configure: Regenerate.
2895 * config.h.in: Regenerate.
2896 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
2898 * include/std/std_fstream.h (sync): Constify a variable.
2900 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
2902 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
2903 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2905 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
2907 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2908 <cstring> and <cstdlib>. Qualify names.
2910 2003-07-13 Mark Mitchell <mark@codesourcery.com>
2912 * config/locale/generic/c_locale.h: Include <cstdlib> and
2914 * include/bits/boost_concept_check.h: Add this-> to unqualified
2916 * include/bits/deque.tcc: Likewise.
2917 * include/bits/locale_facets.h : Likewise.
2918 * include/bits/ostream.tcc: Likewise.
2919 * include/bits/stl_algo.h: Likewise.
2920 * include/bits/stl_bvector.h: Likewise.
2921 * include/bits/stl_deque.h: Likewise.
2922 * include/bits/stl_list.h: Likewise.
2923 * include/bits/stl_tree.h: Likewise.
2924 * include/bits/stl_vector.h: Likewise.
2925 * include/bits/vector.tcc: Likewise.
2926 * include/ext/rope: Likewise.
2927 * include/ext/ropeimpl.h: Likewise.
2928 * include/ext/stdio_filebuf.h: Likewise.
2930 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
2932 * include/bits/basic_ios.h (copyfmt): Document.
2933 * include/bits/ios_base.h (event, event_callback, register_callback,
2934 xalloc, iword, pword): Document.
2935 (imbue, ~ios_base): Update docs on callbacks.
2937 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
2939 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
2940 warning messages if the environment cannot support symbol versioning.
2941 (port_specific_symbol_file): It's plural, add an 's' on the end.
2942 * configure.host: Likewise.
2943 * src/Makefile.am: Likewise.
2944 * config/linker-map.gnu: Remove one semicolon, heh.
2945 * scripts/extract_symvers: Don't assume useful 'export' syntax.
2946 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
2947 * aclocal.m4, configure, src/Makefile.in: Regenerated.
2949 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
2951 * include/bits/locale_facets.tcc: Use function object for
2952 __use_cache instead of template function. Partially specialize for
2954 * include/bits/locale_classes.h: Update friend declaration for
2956 (_M_install_cache): No throw exception specs.
2957 * src/locale.cc: Remove __use_cache specializations.
2958 * include/ext/pod_char_traits.h (length): Tweak.
2959 * include/bits/locale_facets.h (__numpunct_cache): Remove
2961 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
2963 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
2964 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
2965 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
2966 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
2967 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
2968 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
2970 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
2972 * src/ios.cc (_M_grow_words): Fix spelling.
2974 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
2976 * include/bits/stl_tree.h: Move larger member functions in
2977 _Rb_tree_base_iterator and _Rb_tree_node to...
2978 * src/stl_tree.cc: Here.
2979 * src/Makefile.in: Add stl_tree.cc.
2980 * src/Makefile.in: Regenerated.
2981 * config/linker-map.gnu: Add symbols here.
2983 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2985 * testsuite/ext/pod_char_traits.cc: New.
2986 * include/ext/pod_char_traits.h: New.
2987 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
2988 * include/Makefile.in: Regenerate.
2989 * docs/html/21_strings/howto.html: Update.
2991 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
2993 * testsuite/performance/list_create_fill_sort.cc: New.
2995 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2997 * config/locale/generic/numeric_members.cc: Correct type info.
2998 * config/locale/gnu/numeric_members.cc: Same.
2999 * include/bits/locale_facets.h: Same.
3001 * include/bits/char_traits.h: Correct spacing.
3003 * src/locale.cc: Wrap to 80 col.
3005 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
3007 * include/std/std_complex.h: Partially revert last
3008 changes: cmath functions must not be qualified.
3010 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
3012 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
3013 2.11 with globbing backport fix.
3014 * aclocal.m4, configure: Regenerated.
3016 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
3018 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
3019 if output is at all possible (!_M_reading), cannot be active.
3021 * include/std/std_fstream.h: Tweak comments to doxygen style.
3023 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
3025 * include/bits/locale_classes.h: Fully qualify standard
3026 functions with std::, thus avoiding Koenig lookup.
3027 * include/bits/locale_facets.tcc: Likewise.
3028 * src/locale.cc: Likewise.
3029 * src/localename.cc: Likewise.
3031 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
3033 * include/bits/allocator_traits.h: Fix doxygen markup.
3034 * include/ext/mt_allocator.h: Likewise.
3036 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
3038 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
3040 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
3042 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
3043 requirement. Add port_specific_symbol_file variable.
3044 * configure.host: Add docs for port_specific_symbol_file.
3045 Clean up try_cpu block for x86.
3046 * config/linker-map.gnu: No more "last symbol can't have a
3047 semicolon" kaka. Add hook for port-specific symbols.
3048 * src/Makefile.am: Remove trailing whitespace.
3049 (libstdc++-symbol.ver): Detect the presence of port-specific
3050 symbols, and add them accordingly.
3052 * docs/html/17_intro/porting.texi: Bring up to date.
3054 * src/Makefile.in, aclocal.m4, configure,
3055 docs/html/17_intro/porting.html: Regenerated.
3057 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
3059 * scripts/create_testsuite_files: New file.
3060 * testsuite/Makefile.am (all-local, check-performance): Use it.
3061 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
3062 * testsuite/Makefile.in: Regenerated.
3064 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
3066 * testsuite/performance/fstream_seek_write.cc: Likewise.
3067 * testsuite/performance/ofstream_insert_float.cc: Likewise.
3068 * testsuite/performance/ofstream_insert_int.cc: Likewise.
3069 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
3071 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
3073 * include/bits/stl_list.h: Performance and memory usage
3074 improvements. In particular, the behaviour of the constructor and
3075 destructor as the list header node is no longer dynamically
3076 allocated/de-allocated.
3077 * include/bits/list.tcc: Likewise.
3079 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
3081 * include/std/std_complex.h: Fully qualify standard
3082 functions with std::, thus avoiding Koenig lookup.
3083 * include/std/std_memory.h: Likewise.
3084 * include/std/std_valarray.h: Likewise.
3086 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
3088 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
3089 variable for grandparent and use const
3091 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
3093 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
3094 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
3095 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
3096 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
3097 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
3098 * testsuite/27_io/objects/char/7.cc: Ditto
3099 * testsuite/27_io/objects/char/9661-1.cc: Ditto
3101 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
3103 * include/std/std_bitset.h: Fully qualify standard
3104 functions with std::, thus avoiding Koenig lookup.
3106 * include/std/std_fstream.h: Change comment to doxygen style.
3108 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
3110 * include/std/std_limits.h: More CPP->CXX changes.
3111 * scripts/check_survey.in: Likewise.
3113 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3115 Move from CPP to CXX.
3116 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
3117 * testsuite/Makefile.am: Same.
3118 * testsuite/Makefile.in: Regenerate.
3119 * po/Makefile.am: Same.
3120 * po/Makefile.in: Regenerate.
3121 * libsupc++/Makefile.am: Same.
3122 * libsupc++/Makefile.in: Regenerate.
3123 * libmath/Makefile.am: Same.
3124 * libmath/Makefile.in: Regenerate.
3125 * include/Makefile.am: Same.
3126 * include/Makefile.in: Regenerate.
3127 * src/Makefile.am: Same.
3128 * src/Makefile.in: Regenerate.
3130 * configure.host: Same.
3131 * configure.in: Same.
3132 * configure: Regenerate.
3133 * acinclude.m4: Same.
3135 * src: Change all files in this directory.
3137 * include: Same, standardize include guards.
3141 2003-07-04 Zack Weinberg <zack@codesourcery.com>
3143 * testsuite/22_locale/collate/compare/wchar_t/2.cc
3144 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
3145 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
3146 * testsuite/22_locale/collate/hash/wchar_t/2.cc
3147 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
3148 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
3149 * testsuite/22_locale/collate/transform/wchar_t/2.cc
3150 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
3151 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3152 XFAIL on all targets.
3154 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3156 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
3157 * aclocal.m4: Regenerate.
3158 * configure: Regenerate.
3160 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
3162 * include/bits/locale_facets.tcc (__int_to_char): Move common case
3165 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3166 Petur Runolfsson <peturr02@ru.is>
3168 * config/io/basic_file_stdio.cc: Revert.
3170 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3172 * include/bits/deque.tcc: Fully qualify standard
3173 functions with std::, thus avoiding Koenig lookup.
3174 * include/bits/gslice_array.h: Likewise.
3175 * include/bits/indirect_array.h: Likewise.
3176 * include/bits/list.tcc: Likewise.
3177 * include/bits/mask_array.h: Likewise.
3178 * include/bits/slice_array.h: Likewise.
3180 2003-07-04 Gawain Bolton <gbolton@free.fr>
3182 * include/bits/stl_tree.h: Performance and memory usage
3185 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3187 * Makefile.am: Replace PWD with PWD_COMMAND.
3188 * Makefile.in: Regenerated.
3189 * docs/html/Makefile: Likewise.
3191 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3193 * include/bits/valarray_array.h: Fully qualify standard
3194 functions with std::, thus avoiding Koenig lookup.
3195 * include/bits/vector.tcc: Likewise.
3197 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3199 * include/Makefile.am: Update target_ to host_.
3200 * include/Makefile.in: Regenerate.
3201 * src/Makefile.am: Same.
3202 * src/Makefile.in: Regenerate.
3204 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
3206 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3208 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
3209 --enable-libstdcxx-debug-flags.
3210 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
3211 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
3212 * aclocal.m4: Regenerate.
3214 * docs/html/configopts.html: Update.
3216 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3218 Revert the fix for libstdc++/11378.
3220 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3223 * include/std/std_fstream.h (xsputn): In the unbuffered case,
3224 provided always_noconv(), issue directly _M_file.xsputn.
3225 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
3227 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3229 * include/bits/stl_list.h: Fully qualify standard
3230 functions with std::, thus avoiding Koenig lookup.
3231 * include/bits/stl_queue.h: Likewise.
3232 * include/bits/stl_raw_storage_iter.h: Likewise.
3233 * include/bits/stl_tempbuf.h: Likewise.
3234 * include/bits/stl_tree.h: Likewise.
3235 * include/bits/stl_uninitialized.h: Likewise.
3236 * include/bits/stl_vector.h: Likewise.
3237 * include/ext/rope: Change includes order.
3239 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3241 * configure.host (fpos_include_dir): Fix.
3243 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
3245 * include/bits/stl_heap.h: Fully qualify standard
3246 functions with std::, thus avoiding Koenig lookup.
3247 * include/bits/stl_iterator_base_funcs.h: Likewise.
3249 * include/bits/stl_algo.h: Qualify __iterator_category too.
3250 * include/bits/stl_algobase.h: Likewise.
3251 * include/bits/stl_bvector.h: Likewise.
3253 * include/bits/stl_algo.h: Don't qualify the pair type.
3255 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3257 * include/Makefile.am (target_headers): Add fpos.h
3258 (bits_headers): Remove.
3259 * include/Makefile.in: Regenerate.
3260 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
3261 * configure: Regenerate.
3262 * configure.host: Add fpos_include_dir.
3263 * config/os/gnu-linux/fpos.h: New.
3264 * config/os/generic/fpos.h: Add.
3265 * include/bits/fpos.h: Remove.
3267 * config/io/c_io_stdio.h: Remove fpos_t typedef.
3269 * include/bits/fstream.tcc: Tweaks.
3270 * include/std/std_fstream.h: Same.
3272 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
3273 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
3274 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
3275 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
3276 * testsuite/27_io/fpos/1.cc: New.
3278 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3279 Petur Runolfsson <peturr02@ru.is>
3281 * include/std/std_streambuf.h: Remove _M_pos.
3282 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
3283 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
3284 use fread/fwrite instead of read/write.
3285 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
3286 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
3287 before reading again.
3288 * testsuite/27_io/objects/char/6.cc: Tweak.
3290 2003-07-03 David Edelsohn <edelsohn@gnu.org>
3292 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
3293 _GLIBCPP_USE_WCHAR_T.
3295 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
3297 * include/bits/basic_string.tcc (_M_replace_aux): Constify
3300 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
3302 * include/bits/stl_bvector.h: Fully qualify standard
3303 functions with std::, thus avoiding Koenig lookup.
3304 * include/bits/stl_construct.h: Likewise.
3305 * include/bits/stl_deque.h: Likewise.
3307 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
3309 * testsuite/22_locale/num_put/put/char/7.cc: Include
3310 <testsuite_hooks.h>, tweak.
3311 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
3313 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
3315 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
3316 check* targets, but not libs/programs).
3317 * testsuite/Makefile.in: Regenerate.
3319 2003-07-01 Roger Sayle <roger@eyesopen.com>
3321 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
3322 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
3323 * aclocal.m4: Regenerate.
3324 * configure: Regenerate.
3326 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
3328 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
3329 * aclocal.m4: Regenerated.
3330 * configure: Regenerated.
3332 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
3335 * include/bits/fstream.tcc (underflow): For encoding() == 0
3336 don't read more than __buflen chars.
3337 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
3338 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
3339 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
3340 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
3342 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
3344 * 22_locale/num_put/put/char/7.cc: New.
3345 * 22_locale/num_put/put/wchar_t/7.cc: New.
3347 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
3349 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
3350 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
3352 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
3354 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
3355 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
3356 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
3357 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
3358 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
3359 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
3360 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
3361 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
3362 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
3363 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
3364 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
3365 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
3366 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
3367 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
3368 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
3369 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
3370 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
3371 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
3372 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
3373 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
3374 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
3375 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
3376 * data/seekoff-1.tst: Remove.
3377 * data/seekoff-1io.tst: New.
3378 * data/seekoff-1out.tst: New.
3379 * data/seekoff-2.tst: Remove.
3380 * data/seekoff-2io.tst: New.
3381 * data/seekoff-2out.tst: New.
3383 * data/seekpos-1.tst: Remove.
3384 * data/seekpos-1io.tst: New.
3385 * data/seekpos-1out.tst: New.
3386 * data/seekpos-2.tst: Remove.
3387 * data/seekpos-2io.tst: New.
3388 * data/seekpos-2out.tst: New.
3389 * data/seekpos.txt: New.
3391 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
3393 * src/locale.cc (__use_cache<numpunct>): Move from here ...
3394 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
3397 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3399 * include/bits/stl_algobase.h: Fully qualify standard
3400 functions with std::, thus avoiding Koenig lookup.
3402 2003-06-30 Doug Gregor <dgregor@apple.com>
3404 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
3405 subscripting empty string.
3407 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
3409 * testsuite/Makefile.am (check-am): Do not override.
3410 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
3411 * testsuite/Makefile.in: Regenerate.
3413 2003-06-30 Doug Gregor <dgregor@apple.com>
3415 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
3416 Don't initialize an insert_iterator with a singular iterator.
3418 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
3420 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
3421 * aclocal.m4: Regenerate.
3422 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
3423 GLIBCPP_ENABLE_PCH, default to yes.
3424 * configure: Regenerate.
3425 * docs/html/configopts.html: Add --enable-pch.
3427 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
3429 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
3430 (libstdc++-v3-init): Also set LD_RUN_PATH.
3432 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3434 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
3435 from here to filebuf and stringbuf.
3436 (~basic_streambuf()): Don't set _M_mode.
3437 (basic_streambuf()): Don't set _M_mode.
3438 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
3439 (~basic_filebuf()): Clean up.
3440 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
3441 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
3442 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
3443 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
3444 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
3445 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
3446 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
3448 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3450 * include/std/std_fstream.h (_M_underflow): Remove.
3451 (uflow): Remove, inherited from streambuf.
3452 (underflow): Only declare.
3453 * include/bits/fstream.tcc (_M_underflow): Rename to
3454 underflow, to which is equivalent for __bump == false,
3456 * include/std/std_sstream.h (_M_underflow): Remove.
3457 (uflow): Remove, inherited from streambuf.
3458 (underflow): Only declare.
3459 * include/bits/sstream.tcc (_M_underflow): Rename to
3460 underflow, to which is equivalent for __bump == false,
3463 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3465 * include/bits/stl_algo.h: Fully qualify standard functions
3466 with std::, thus avoiding Koenig lookup.
3468 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3470 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
3471 Improve type correctness-wise.
3472 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
3474 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
3476 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
3479 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3481 * include/std/std_streambuf.h (uflow): According to
3482 27.5.2.4.3,p16, don't check gptr() < egptr().
3484 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
3487 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
3488 (seekpos): Likewise.
3489 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
3491 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
3494 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
3496 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
3497 output name to libstdc++-v3-performance.sum.
3498 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
3499 * testsuite/Makefile.in: Regenerate.
3501 2003-06-27 Matthias Klose <doko@debian.org>
3503 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
3504 output of abi-check in libstdc++-v3-abi.sum.
3505 * testsuite/Makefile.in: Regenerate.
3507 2003-06-27 Krister Walfridsson <cato@df.lth.se>
3509 * config/os/bsd/netbsd/ctype_noninline.h
3510 (_C_ctype_): Declare.
3511 (ctype<char>::classic_table): Return _C_ctype_ + 1.
3512 (ctype<char>::ctype): Use classic_table.
3514 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
3515 Nathan C. Myers <ncm-nospam@cantrip.org>
3518 * include/bits/fstream.tcc (_M_underflow): Properly estimate
3519 the worst-case number of external bytes for a given get area.
3520 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
3522 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
3523 Petur Runolfsson <peturr02@ru.is>
3526 * include/bits/fstream.tcc (overflow): Properly estimate the
3527 worst-case number of external bytes for a given put area
3528 (by using codecvt::max_length()).
3529 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
3530 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
3531 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
3532 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
3534 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
3536 * config/linker-map.gnu: Remove ; after __numpunct_cache.
3538 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3540 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
3541 to the imbued locale.
3542 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
3544 (num_put::_M_convert_float): Use.
3546 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3547 Jerry Quinn <jlquinn@optonline.net>
3549 * config/linker-map.gnu: Add __numpunct_cache.
3550 * config/locale/gnu/numeric_members.cc
3551 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
3552 all elements for "C" locale.
3553 (numpunct::~numpunct): Delete _M_data.
3554 * config/locale/generic/numeric_members.cc: Same.
3555 * include/bits/basic_ios.tcc
3556 (basic_ios::init): Remove __locale_cache bits.
3557 (basic_ios::_M_cache_locale): Same.
3558 * include/bits/ios_base.h: Same. Tweaks.
3559 * include/bits/locale_classes.h: Tweaks. Reorder classes.
3560 (__use_cache): Make friends with _Impl, locale.
3561 (_Impl::_M_caches): Add.
3562 (_Impl::_M_install_cache): Add.
3563 * include/bits/locale_facets.h (__numpunct_cache): New.
3564 (numpunct): Encapsulate data members in __numpunct_cache member,
3565 _M_data. Adjust virtuals.
3566 (numpunct::numpunct): New ctor for the same.
3567 (__locale_cache_base): Remove.
3568 (__locale_cache): Remove.
3569 * include/bits/locale_facets.tcc (__use_cache): New function,
3571 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
3572 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
3573 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
3574 * src/locale-inst.cc: Same. Add __numpunct_cache.
3575 * src/locale.cc: Tweak inlines.
3576 (__use_cache): Define specializations.
3577 * src/localename.cc: Use global bits.
3578 (_Impl::~Impl): Deal with __numpunct_cache destruction.
3579 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
3580 (_Impl::_M_init_facet): Take into account __numpunct_cache.
3581 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
3582 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3584 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
3585 Paolo Carlini <pcarlini@unitus.it>
3587 * testsuite/performance/filebuf_copy.cc: New, testing char
3590 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
3591 Nathan C. Myers <ncm-nospam@cantrip.org>
3593 * include/bits/fstream.tcc (_M_underflow): When the actual
3594 end of file is reached, set 'uncommitted' mode to allow a
3595 next write without an intervening seek (see C++98 27.8.1.1,2
3597 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
3599 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
3601 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3602 sputc): Move inline, from here...
3603 * include/std/std_streambuf.h: ... to here.
3605 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
3606 sputbackc, sungetc, sputc): Use __builtin_expect.
3608 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
3610 * docs/doxygen/mainpage.html: Use a useful title.
3612 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3614 * docs/html/documentation.html: Remove assignment info.
3615 * docs/html/17_intro/contribute.html: Edits.
3616 * docs/html/17_intro/libstdc++-assign.tx: Remove.
3618 * docs/html/test.html: Update.
3622 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3623 Ulrich Drepper <drepper@redhat.com>
3625 * testsuite/testsuite_performance.h: Tweak mallinfo.
3627 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
3628 Nathan C. Myers <ncm-nospam@cantrip.org>
3630 * include/std/std_fstream.h (_M_filepos): Remove.
3631 (_M_reading, _M_writing): New, encode the various I/O modes:
3632 'read', 'write' and 'uncommitted'.
3633 (sync): If there is something to flush, do it, then go to
3635 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
3636 with three different cases: __off > 0 (upon underflow),
3637 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
3639 (_M_underflow): Don't call overflow, set _M_reading to true
3641 (pbackfail): Set _M_reading to true on pback creation, tweak.
3642 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
3643 set _M_writing to true on success, tweak.
3644 (seekoff): Simplify, set _M_reading, _M_writing to false, call
3645 _M_set_buffer(-1) ('uncommitted').
3646 (open, close, setbuf): Set _M_reading, _M_writing to false and
3647 call _M_set_buffer(-1), tweak.
3648 (basic_filebuf): Don't set _M_buf_unified.
3649 (_M_destroy_internal_buffer): Don't call setg and setp.
3650 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
3651 _M_writing and _M_set_buffer(-1).
3652 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
3653 _M_out_lim, _M_buf_unified): Remove.
3654 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
3655 (setp): Don't set _M_out_lim.
3656 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
3657 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
3658 upon open the mode is 'uncommitted' and therefore the put area
3660 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
3661 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
3662 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
3663 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
3664 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
3665 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
3666 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3667 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
3668 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
3669 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
3670 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
3671 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
3672 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
3673 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
3674 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
3675 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
3676 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
3677 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
3678 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
3679 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
3681 * include/bits/fstream.tcc (showmanyc): Use only the
3682 documented derivation interface to basic_streambuf (gptr(),
3683 setg(), etc.) to work right with user specializations.
3684 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3685 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
3686 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
3688 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
3691 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
3693 * configure.host (freebsd*): Set abi_baseline_pair.
3694 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
3695 (at or near first release) to 3.3.
3696 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
3697 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
3698 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
3700 * include/ext/mt_allocator.h: Portability.
3701 * testsuite/testsuite_performance.h: Likewise.
3703 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
3705 * docs/html/17_intro/libstdc++-assign.txt: Update address.
3707 * testsuite/performance/ifstream_getline.cc: Fix.
3709 2003-06-23 Doug Gregor <dgregor@apple.com>
3711 * include/bits/boost_concept_check.h: Don't use _D or _R for type
3714 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
3715 Nathan C. Myers <ncm-nospam@cantrip.org>
3717 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
3718 is now used only for filebuf, when _M_buf_unified is true.
3719 epgtr() plays the role of _M_out_lim but it's only updated
3720 upon overflow, underflow, uflow, seekoff/pos.
3721 * include/bits/sstream.tcc (_M_underflow): New, implements
3722 stringbuf::underflow and uflow.
3723 (seekoff, seekpos): Tweak, use _M_update_egptr.
3724 * include/std/std_sstream.h (str): Rewrote, deal correctly
3725 with the new logic, in particular, when pptr() > egptr().
3726 (_M_sync): When __testout && !__testin set all the get area
3727 pointers to the current string end.
3728 (_M_update_egptr): New, internal function updating egptr()
3729 to the actual string end.
3730 (_M_underflow): New, declare.
3731 (underflow): Dispatch to _M_underflow(false).
3732 (uflow): Dispatch to _M_underflow(true).
3734 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
3735 seekpos): Use only the documented derivation interface to
3736 basic_streambuf (gptr(), setg(), etc.) to work right with
3737 user specializations.
3738 * include/std/std_sstream.h (str, _M_sync): Likewise.
3740 2003-06-20 Doug Gregor <dgregor@apple.com>
3742 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
3743 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
3744 dereference end iterator.
3745 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
3746 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
3747 index equal to the length of a string.
3748 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
3749 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
3750 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
3751 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
3752 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
3753 * testsuite/23_containers/list_modifiers.cc: Don't dereference
3754 singular reverse iterator.
3755 * testsuite/23_containers/vector_bool.cc: Don't increment singular
3757 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
3759 2003-06-20 Doug Gregor <dgregor@apple.com>
3761 * include/bits/basic_string.h (basic_string::replace): Dispatch
3762 _InputIterator version based on _Is_integer.
3763 * include/bits/basic_string.tcc (basic_string::replace):
3764 Renamed replace(iterator, iterator, size_type, _CharT) to
3766 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
3767 Test basic_string::assign(_InputIterator, _InputIterator),
3768 which calls basic_string::replace(iterator, iterator,
3769 _Input_iterator, _InputIterator).
3771 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
3773 * testsuite/testsuite_performance.h (resource_counter): Don't use
3774 mallinfo at the moment.
3776 2003-06-20 Matthias Klose <doko@debian.org>
3778 * configure.host: Set try_cpu to target_cpu for existing
3781 2003-06-19 Andreas Jaeger <aj@suse.de>
3783 * testsuite/Makefile.am (extract_symvers): Revert accidental
3785 * testsuite/Makefile.in: Regenerate.
3787 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
3788 * configure: Regenerated.
3790 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
3792 * include/std/std_sstream.h (_M_sync): Make non virtual.
3794 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
3796 * testsuite/testsuite_performance.h (time_counter): New.
3797 (resource_counter): New.
3798 (report_performance): New.
3799 (start_counters): New.
3800 (stop_counters): New.
3801 (clear_counters): New.
3802 * testsuite/performance/allocator.cc: Instrument.
3803 * testsuite/performance/cout_insert_int.cc: Same.
3804 * testsuite/performance/complex_norm.cc: Same.
3805 * testsuite/performance/filebuf_sputc.cc: New.
3806 * testsuite/performance/fstream_seek_write.cc: Same.
3807 * testsuite/performance/ifstream_getline.cc: Same.
3808 * testsuite/performance/map_create_fill.cc: Same.
3809 * testsuite/performance/ofstream_insert_float.cc: Same.
3810 * testsuite/performance/ofstream_insert_int.cc: Same.
3811 * testsuite/performance/string_append.cc: Convert.
3812 * scripts/check_performance: New.
3813 * testsuite/Makefile.am (check-performance): New.
3816 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
3817 Benjamin Kosnik <bkoz@redhat.com>
3819 * include/std/std_sstream.h (setbuf): Check __n >= 0.
3820 * include/bits/fstream.tcc (setbuf): Tweak.
3822 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
3824 * include/bits/sstream.tcc (seekoff): We can't seek beyond
3825 _M_out_lim, therefore _M_move_out_cur boils down to simply
3826 updating _M_out_cur.
3827 (seekpos): Likewise, clean up.
3829 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
3830 Paolo Carlini <pcarlini@unitus.it>
3832 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
3833 simply equivalent to the unbuffered case (0, 0) as far as
3834 _M_buf_size is concerned.
3836 2003-06-18 Andreas Jaeger <aj@suse.de>
3838 * testsuite/Makefile.am (new-abi-baseline): Create baseline
3840 (baseline_file): Use baseline_dir.
3841 (baseline_dir): New.
3842 (mkinstalldirs): New.
3844 * acinclude.m4: Rename baseline_file to baseline_dir, strip
3845 filename from baseline_dir.
3847 * testsuite/Makefile.in: Regenerated.
3848 * Makefile.in: Regenerated.
3849 * aclocal.m4: Regenerated.
3850 * configure: Regenerated.
3852 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3854 * configure.in: Missed check_survey bit.
3855 * configure: Regenerated.
3857 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3860 * config/abi/extract_symvers: Move to...
3861 * scripts/extract_symvers: ...here.
3862 * mkcheck.in: Move to..
3863 * scripts/check_survey.in: ...here.
3864 * testsuite_flags.in: Move to..
3865 * scripts/testsuite_flags.in: ...here.
3866 * configure.in: Change check and testsuite_flags locations.
3867 * configure: Regenerate.
3868 * testsuite/Makefile.am (current_symbols.txt): Change location.
3869 * testsuite/Makefile.in: Regenerate.
3870 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3871 location of testsuite_flags.
3872 * Makefile.am (check-script): Move..
3873 (check-script-install): Move...
3874 * testsuite/Makefile.am: ... here.
3875 * testsuite/Makefile.in: Regenerate.
3876 * Makefile.in: Regenerate.
3878 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3880 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
3882 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
3884 * Makefile.am (check-abi): Move...
3885 (new-abi-baseline): Move...
3886 * testsuite/Makefile.am: ...here.
3887 (new-abi-baseline): Conditionalize.
3888 (check-abi): Conditionalize.
3889 (check-abi-verbose): New.
3890 * Makefile.in: Regenerate.
3891 * testsuite/Makefile.in: Regenerate.
3892 * configure.in: Consolidate testsuite configure bits.
3893 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
3894 * configure: Regenerate.
3895 * aclocal.m4: Regenerate.
3896 * testsuite/abi_check.cc: Add --check-verbose.
3897 Only output detailed information if --check-verbose.
3899 2003-06-16 Andreas Jaeger <aj@suse.de>
3901 * testsuite/abi_check.cc: Create summary report.
3903 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
3905 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
3906 for systems with BUFSIZ != 8192.
3907 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3908 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
3911 2003-06-16 Andreas Jaeger <aj@suse.de>
3913 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
3914 check-abi multilib aware.
3915 * aclocal.m4: Regenerate.
3916 * configure: Regenerate.
3918 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
3919 Andreas Jaeger <aj@suse.de>
3921 * configure.host: Set x86_64 abi_baseline pair correctly.
3923 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
3925 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
3926 fix for missing seeks between gets and puts into...
3927 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
3928 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
3929 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
3930 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
3931 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
3932 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
3934 2003-06-15 Richard Henderson <rth@redhat.com>
3936 * config/linker-map.gnu: Export virtual function thunks for
3939 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
3941 * config/abi/i686-pc-linux-gnu: To..
3942 * config/abi/i486-linux-gnu: ...this.
3943 * config/abi/alphaev67-unknown-linux-gnu: To..
3944 * config/abi/alpha-linux-gnu: ...this.
3945 * config/abi/ia64-unknown-linux-gnu: To...
3946 * config/abi/ia64-linux-gnu: ...this.
3947 * config/abi/x86_64-unknown-linux-gnu: To...
3948 * config/abi/x86_64-linux-gnu: ...this.
3949 * config/abi/i386-unknown-freebsd4: To...
3950 * config/abi/i386-freebsd4: ...this.
3951 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
3953 * configure.host: abi_baseline_triplet to abi_baseline_pair.
3954 Simplify cpu bits so that abi_baseline_pair can use the same
3956 * acinclude.m4: Same.
3957 * aclocal.m4: Regenerate.
3958 * configure.in: Can't get enable_abi_check to yes unless native.
3959 * configure: Regenerate.
3961 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
3963 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
3964 fix for missing seeks between gets and puts into...
3965 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
3966 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
3967 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
3968 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
3969 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
3970 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
3971 for missing seeks between gets and puts.
3972 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
3973 * testsuite/data/seekoff-1.tst: New.
3974 * testsuite/data/seekoff-2.tst: New.
3975 * testsuite/data/seekpos-1.tst: New.
3976 * testsuite/data/seekpos-2.tst: New.
3978 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
3980 Avoid multi-processor bus contention on increment/decrement-and-
3981 test of the reference count in the empty-string object, by comparing
3982 addresses first, and never touching the reference count of the empty-
3984 * include/bits/basic_string.h:
3985 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
3987 (_Rep::_S_empty_rep()): New accessor.
3988 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
3989 a base class _Rep_base.
3990 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
3991 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
3992 since no longer must increment its refcount.
3993 * include/bits/basic_string.tcc:
3994 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
3995 return immediately. The former might be unnecessary. The latter
3996 prevents begin() and end() from cloning it unnecessarily.
3997 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3998 input_iterator_tag), _S_construct(_InIterator, _InIterator,
3999 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
4000 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
4001 (_M_mutate): Check for the empty string and treat it as shared.
4002 This is necessary here because _M_mutate is sometimes called with
4003 all-zero arguments; in all other uses of _M_is_shared, the test comes
4006 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
4008 * src/allocator-inst.cc: Explicitly instantiate.
4009 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
4011 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
4013 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4015 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
4016 * aclocal.m4: Regenerate.
4017 * Makefile.am (SUBDIRS): Remove libio.
4018 * Makefile.in: Regenerate.
4019 * configure.in: Same.
4020 * configure: Regenerate.
4021 * config/io/basic_file_libio.cc: Remove.
4022 * config/io/basic_file_libio.h: Remove.
4023 * config/io/c_io_libio_codecvt.c: Remove.
4024 * config/io/c_io_libio.h: Remove.
4026 * src/Makefile.am: Same.
4027 * src/Makefile.in: Regenerate.
4028 * docs/html/configopts.html: Edits.
4029 * docs/html/explanations.html: Edits.
4031 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4033 * include/bits/stl_alloc.h (__debug_alloc): Move out.
4034 (__malloc_alloc): Same.
4035 (__pool_alloc): Same.
4036 (__new_alloc): Same.
4038 * include/bits/allocator.h: ...this.
4039 * include/bits/stl_deque.h: Modify comment.
4040 * include/bits/stl_tree.h: Modify include.
4041 * include/std/std_memory.h: Same.
4042 * include/ext/rope: Same.
4043 * include/ext/slist: Same.
4044 * include/std/std_vector.h: Same.
4045 * include/std/std_stack.h: Same.
4046 * include/std/std_queue.h: Same.
4047 * include/std/std_list.h: Same.
4048 * include/std/std_deque.h: Same.
4049 * include/backward/alloc.h: Same.
4050 * include/ext/debug_allocator.h: New.
4051 * include/ext/malloc_allocator.h: New.
4052 * include/ext/pool_allocator.h: New.
4053 * include/ext/new_allocator.h: New.
4054 * include/bits/pthread_allocimpl.h: Remove.
4055 * include/bits/stl_pthread_alloc.h: Remove.
4056 * include/Makefile.am (ext_headers): Add.
4057 * include/Makefile.in: Regenerate.
4058 * src/stl-inst.cc: Use __gnu_cxx namespace.
4059 * src/stl-inst.cc: Move to...
4060 * src/allocator-inst.cc: Here.
4061 * src/Makefile.am (sources): Update.
4062 * src/Makefile.in: Regenerate.
4063 * config/linker-map.gnu: Remove __pool_alloc bits.
4064 * testsuite/ext/headers.cc: Add.
4065 * testsuite/ext/allocators.cc: Fixup.
4067 2003-06-11 Stefan Olsson <stefan@snon.net>
4068 Ola Rönnerup <fnolis@home.se>
4070 * include/Makefile.am (ext_headers): Add.
4071 * include/Makefile.in: Regenerate.
4072 * include/ext/mt_allocator.h: New file.
4074 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
4076 * include/bits/fstream.tcc (close): Clean up a bit.
4078 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
4080 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
4081 - the saved _M_in_cur, that is - cannot be null.
4082 (sync): Constify a variable.
4084 * include/std/std_streambuf.h: Tweak a comment.
4085 (in_avail): Constify a variable.
4087 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
4089 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
4090 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
4091 correctness of container::iterator typedefs. Fix whitespace.
4092 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
4094 * docs/html/documentation.html: Regenerate.
4096 * include/bits/basic_string.h, include/bits/basic_string.tcc,
4097 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
4098 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
4099 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
4100 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
4101 include/bits/stl_vector.h, include/bits/vector.tcc,
4102 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
4103 Change _Iter names to _Iterator, and __pos to __position.
4105 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
4106 include/bits/stl_multiset.h, include/bits/stl_set.h:
4107 Remove emacs markers.
4109 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
4111 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
4113 * include/bits/fstream.tcc (overflow): According to
4114 27.5.2.4.5, overflow() returns not_eof(eof()).
4115 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
4116 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
4118 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
4120 * include/bits/fstream.tcc (_M_underflow): Check overflow return
4121 value; tweak slightly.
4123 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
4125 * include/bits/fstream.tcc (_M_underflow): Do not special
4126 case the unbuffered case, which really means simply a one char
4128 (basic_filebuf): Initialize _M_buf_size.
4129 (setbuf): Unbuffered means _M_buf_size == 1, since only
4130 _M_buf_size - 1 == 0 chars are going to be used for the
4131 put area and 1 for the get area.
4132 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
4133 (~basic_streambuf): Tweak.
4134 (basic_streambuf): Do not initialize _M_buf_size.
4135 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
4136 (~basic_filebuf): Tweak.
4137 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
4138 unbuffered situation (i.e., put area pointers NULL).
4139 * include/bits/streambuf.tcc (sbumpc): Clean up.
4140 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
4141 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
4142 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
4143 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
4144 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
4145 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
4146 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
4148 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
4150 * acinclude.m4: Move all AM_CONDITIONAL calls out.
4151 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
4153 * configure.in: Centralize AM_CONDITIONALs so that they are always
4154 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
4155 * aclocal.m4, configure: Regenerated.
4157 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
4159 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
4161 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
4163 * include/bits/stl_iterator.h
4164 (reverse_iterator::reverse_iterator()): Apply DR235: default
4165 constructor default-initializes data member. Instantiated on a
4166 pointer type, the member has to end up equal to zero.
4168 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
4170 * include/bits/stl_alloc.h: Cleanups.
4171 * include/ext/functional: Same.
4172 * include/ext/hash_map: Same.
4173 * include/ext/hash_set: Same.
4174 * include/ext/iterator: Same.
4175 * include/ext/memory: Same.
4176 * include/ext/numeric: Same.
4177 * include/ext/rb_tree: Same.
4178 * include/ext/ropeimpl.h: Same.
4179 * include/ext/slist: Same.
4180 * include/ext/stdio_filebuf.h: Same.
4181 * include/ext/stdio_sync_filebuf.h: Same.
4182 * include/ext/stl_rope.h: Move to...
4183 * include/ext/rope: ...here.
4184 * include/ext/stl_hash_fun.h: Move to...
4185 * include/ext/hash_fun.h: ...here.
4186 * include/ext/stl_hashtable.h: Move to...
4187 * include/ext/hashtable.h: ...here.
4188 * include/backward/hashtable.h: Reflect new names.
4189 * include/Makefile.am: Same.
4190 * include/Makefile.in: Regenerated.
4192 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
4195 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
4196 * include/bits/stl_algobase.h: Tweak.
4197 * include/std/std_fstream.h: Move _M_buf_size to...
4198 * include/std/std_streambuf.h: ...here. Modify.
4199 * include/bits/streambuf.tcc: Same.
4200 * testsuite/testsuite_hooks.h: Tweak.
4201 * testsuite/testsuite_io.h (constraint_filebuf): New.
4202 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
4203 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
4204 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
4205 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
4206 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
4207 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
4208 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
4209 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
4210 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
4211 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
4212 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
4213 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
4214 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
4215 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
4216 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
4217 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
4218 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
4219 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
4220 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
4221 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
4222 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
4223 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
4224 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
4225 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
4226 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
4227 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
4228 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
4229 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
4230 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
4231 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
4232 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
4233 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
4234 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
4235 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
4236 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
4237 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
4238 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
4239 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
4240 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
4241 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
4242 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
4243 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
4244 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
4245 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
4246 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
4247 * testsuite/data/sgetc.txt: New.
4248 * testsuite/data/sgetn.txt: New.
4250 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
4253 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
4254 Deal with width() smaller than zero.
4255 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
4256 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
4257 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
4258 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
4259 operator<<(basic_ostream, const basic_string&)): Likewise.
4261 * testsuite/27_io/basic_istream/extractors_character/char/
4262 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4263 * testsuite/27_io/basic_ostream/inserters_character/char/
4264 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
4265 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
4266 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
4268 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4270 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
4271 .gch compilation works.
4272 * aclocal.m4, configure: Regenerate.
4273 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
4274 initialize PCHFLAGS.
4276 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
4278 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
4279 erase(iterator), erase(iterator, iterator), c_str,
4280 compare(const basic_string&)): Constify various variables.
4281 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
4282 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
4283 _S_create, resize, _M_replace, _M_replace_safe,
4284 append(const basic_string&), append(const basic_string&, size_type,
4285 size_type), append(const _CharT*, size_type), append(size_type,
4286 _CharT), operator+(const _CharT*, const basic_string&),
4287 operator+(_CharT, const basic_string&), replace(iterator, iterator,
4288 size_type, _CharT), find(const _CharT*, size_type, size_type),
4289 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
4290 rfind(_CharT, size_type), compare(size_type, size_type,
4291 const basic_string&), compare(size_type, size_type,
4292 const basic_string&, size_type, size_type), compare(const _CharT*),
4293 compare(size_type, size_type, const _CharT*), compare(size_type,
4294 size_type, const _CharT*, size_type)): Likewise.
4296 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
4298 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
4299 'if' branch less obscure.
4301 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
4304 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
4306 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
4307 (__atomic_add): likewise.
4309 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4311 * include/bits/sstream.tcc (pbackfail): Minor clean up and
4312 reformatting, consistent with basic_filebuf::pbackfail.
4314 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
4317 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
4318 __attribute__ ((__unused__)).
4319 * config/os/aix/atomicity.h: Likewise.
4321 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4324 * include/bits/fstream.tcc (pbackfail): If the pback buffer
4325 is already active don't try to store in it a second char.
4326 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
4328 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
4330 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4332 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
4335 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4337 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
4338 instead of unnecessarily taking the address of _M_pback.
4339 (xsgetn): Simplify slightly for a single char pback buffer.
4341 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4343 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
4344 variables and two 'if', clean up.
4346 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
4348 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
4349 not _M_out_end, since the former actually points to the string
4350 end (vs buffer end).
4351 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
4353 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
4355 * docs/doxygen/filter: New file.
4356 * docs/doxygen/filter.sed: New file.
4357 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
4358 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
4359 * docs/html/documentation.html: Fix links to doxygen pages.
4361 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
4363 * include/bits/fstream.tcc (_M_convert_to_external): Don't
4364 check for __ilen > 0.
4366 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
4369 * include/bits/stl_iterator.h (class __normal_iterator):
4370 Don't inherit from iterator, add missing typedefs.
4372 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
4374 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
4375 * testsuite/24_iterators/reverse_iterator/1.cc: New.
4376 * testsuite/24_iterators/reverse_iterator/2.cc: New.
4377 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
4380 2003-05-27 Steve Ellcey <sje@cup.hp.com>
4382 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
4384 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
4385 _LIBUNWIND_STD_ABI is set.
4387 2003-05-26 Brendan Kehoe <brendan@zen.org>
4389 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
4390 make sure the number of digits required after the decimal-point
4391 (if any) is exactly the value returned by frac_digits().
4392 * testsuite/22_locale/money_get/get/char/9.cc: New.
4393 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
4395 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
4397 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
4400 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
4403 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
4404 (_M_pback): No array necessary.
4405 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
4406 unbuffered case, coalesec into ...
4407 (basic_filebuf::overflow): ...this.
4408 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
4409 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
4411 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
4413 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
4414 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
4415 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
4416 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
4417 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
4418 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
4419 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
4420 libsupc++/eh_unex_handler.cc, libsupc++/exception,
4421 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
4422 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
4423 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
4424 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
4425 Replace "GNU CC" with "GCC".
4427 * include/backward/new.h: Replace "GNU CC" with "GCC".
4429 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
4432 * configure.in: Switch target to host, don't assume newlib.
4433 (target_alias): Remove.
4434 * configure: Regenerate.
4435 * acinclude.m4: Same.
4436 * aclocal.m4: Regenerate.
4437 * configure.target: Same. Rename to...
4438 * configure.host: This.
4440 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
4442 * include/std/std_fstream.h (_S_pback_size): Remove definition.
4443 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
4445 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
4446 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
4447 of _S_pback_size for systems with no COMDAT or weak support.
4448 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
4449 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
4450 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
4451 * testsuite/27_io/basic_fstream/3.cc: Likewise.
4452 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4453 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
4454 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
4455 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
4456 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
4458 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
4460 * include/bits/fstream.tcc (_M_underflow): Simplify:
4461 !__testout implies _M_filepos == _M_in_end, therefore
4462 the first _M_file.seekoff call is never issued.
4464 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
4466 * configure.in: Sort cross table.
4467 * configure: Regenerate.
4469 2003-05-22 Brad Spencer <spencer@infointeractive.com>
4472 * configure.in: Add Solaris cross bits.
4474 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4476 * libstdc++-v3/config/os/mingw32/os_defines.h
4477 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
4478 (NOMINMAX): Define. Update copyright year.
4480 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
4482 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
4484 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
4486 * docs/html/faq/index.html: Fix typo.
4487 * docs/html/faq/index.txt: Regenerate.
4489 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
4491 * docs/html/test.html: Fix markup.
4493 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4495 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
4497 Update copyright year.
4499 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
4501 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
4503 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
4505 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
4506 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
4508 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4510 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
4511 Cast via void* to avoid -Wcast-align warnings.
4512 (__default_alloc_template::_S_refill): Likewise.
4514 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
4516 * testsuite/README: Move to...
4517 * docs/html/test.html: ...here. Add documentation.
4518 * docs/html/install.html: Move testing bits out..
4519 * docs/html/documentation.html: Add separate testing link.
4520 * testsuite/performance: Add.
4521 * testsuite/performance/allocator.cc: New.
4522 * testsuite/performance/complex_norm.cc: New.
4523 * testsuite/performance/cout_insert_int.cc: New.
4524 * testsuite/performance/fstream_seek_write.cc: New.
4525 * testsuite/performance/ifstream_getline.cc: New.
4526 * testsuite/performance/map_create_fill.cc: New.
4527 * testsuite/performance/ofstream_insert_float.cc: New.
4528 * testsuite/performance/ofstream_insert_int.cc: New.
4529 * testsuite/performance/string_append.cc: New.
4530 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
4533 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
4536 * include/std/std_complex.h (pow): Tidy.
4538 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
4540 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
4541 that upon filebuf::close() 27.8.1.1,3 is enforced.
4543 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
4545 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
4547 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
4548 Nathan Myers <ncm@cantrip.org>
4550 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
4551 _M_convert_to_external only once (_M_buf_size is now the size of
4552 the put area + 1 for the overflow char of a full area); call
4553 _M_set_buffer instead of _M_set_indeterminate.
4554 (setbuf): Don't accept a buffer smaller than 2 chars.
4555 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
4556 instead of _M_set_determinate.
4557 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
4558 (seekoff): Likewise.
4559 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
4560 std::ios_base::openmode, bool, size_t),
4561 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
4563 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
4564 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
4566 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
4567 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
4568 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
4569 the put area is now BUFSIZ - 1.
4570 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
4571 that now the smallest _M_buf_size is 2 (still fails, for the same
4574 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
4576 * testsuite/thread/pthread4.cc: Tweak test.
4578 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
4580 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
4581 excess errors dg marker, use dg-errors instead.
4582 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
4583 * testsuite/20_util/auto_ptr_neg.cc: Same.
4585 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4587 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
4589 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
4590 Initialize _M_codecvt.
4591 (basic_filebuf::imbue): Same.
4592 (basic_filebuf::showmanyc): Use it.
4593 (basic_filebuf::underflow): Use it.
4594 (basic_filebuf::_M_convert_to_external): Use it.
4595 (basic_filebuf::seekoff): Use it.
4596 (basic_filebuf::imbue): Use it, tweaks.
4597 * include/bits/localefwd.h (__check_facet): New.
4598 * include/bits/locale_classes.h: Tweaks.
4599 * include/bits/locale_facets.tcc: Tweaks.
4600 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
4601 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
4602 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
4603 * include/bits/basic_ios.tcc: Same.
4604 * include/bits/istream.tcc: Same.
4605 * include/bits/ostream.tcc: Same.
4606 * include/std/std_streambuf.h: Same.
4607 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
4608 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
4609 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
4610 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
4611 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
4612 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
4614 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
4616 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
4617 unnecessary includes and unused string literals.
4618 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
4619 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
4620 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
4621 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
4623 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4625 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
4627 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
4629 * include/std/std_fstream.h (_M_convert_to_external): Change
4630 to return bool, take two less streamsize parameters.
4631 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
4632 consistently definition.
4633 (_M_overflow): Adjust call points.
4635 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4637 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
4639 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
4641 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
4642 * testsuite/Makefile.in: Regenerate.
4644 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
4646 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
4647 * testsuite/Makefile.in: Regenerate.
4649 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4652 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
4653 (acos): Handle integer argument.
4672 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
4673 (__enable_if): Likewise.
4674 * testsuite/26_numerics/cmath/overloads.C: New test.
4676 2003-05-10 Petur Runolfsson <peturr02@ru.is>
4681 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
4682 implementation, based on old wchar_t specialization, add support
4683 for codecvt::in() return value of codecvt_base::noconv, remove
4684 _M_file.sys_ungetc() call.
4685 * include/std/std_fstream.h (basic_file::underflow,
4686 basic_file::uflow, basic_file::_M_underflow): Remove
4687 specialization declarations, call _M_underflow from generic versions
4688 of underflow and uflow.
4689 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
4690 basic_file::_M_underflow): Remove specializations.
4691 * src/Makefile.am (sources): Remove fstream.cc.
4692 * src/Makefile.in: Regenerated.
4693 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
4694 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
4695 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
4696 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
4698 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
4700 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
4702 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
4704 (__basic_file::xsputn): Same.
4705 (__basic_file::seekoff): Same.
4706 (__basic_file::seekpos): Same.
4707 (__basic_file::showmanyc): Same.
4708 * config/io/basic_file_stdio.cc: Same.
4709 * include/std/std_fstream.h: Same.
4710 * include/bits/fstream.tcc: Same.
4711 * src/fstream.cc: Same.
4712 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
4714 2003-05-10 Petur Runolfsson <peturr02@ru.is>
4719 * include/ext/stdio_sync_filebuf.h: New file.
4720 (basic_stdiobuf): New.
4721 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
4722 * include/Makefile.in: Regenerate.
4723 * include/bits/ios_base.h (Init::_S_create_buffers,
4724 Init::_S_destroy_buffers): Remove declarations.
4725 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
4726 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
4727 * src/ios.cc (Init::_S_create_buffers,
4728 Init::_S_destroy_buffers): Remove.
4729 (Init::Init): Create and use syncronized buffers.
4730 (ios_base::sync_with_stdio): Destroy syncronized buffers,
4731 create and install unsyncronized buffers.
4732 * testsuite/27_io/objects/char/10.cc: New test.
4733 * testsuite/27_io/objects/char/9.cc: New test.
4734 * testsuite/27_io/objects/char/9661-1.cc: New test.
4735 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
4736 * testsuite/27_io/objects/char/9661-2_xin.in: New.
4737 * testsuite/27_io/objects/wchar_t/1.cc: New test.
4738 * testsuite/27_io/objects/wchar_t/10.cc: New test.
4739 * testsuite/27_io/objects/wchar_t/2.cc: New test.
4740 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
4741 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
4742 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
4743 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
4744 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
4745 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
4746 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
4747 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
4748 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
4749 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
4750 * testsuite/27_io/objects/wchar_t/5.cc: New test.
4751 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
4752 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
4753 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
4754 * testsuite/27_io/objects/wchar_t/6.cc: New test.
4755 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
4756 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
4757 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
4758 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
4759 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
4760 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
4761 * testsuite/27_io/objects/wchar_t/7.cc: New test.
4762 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
4763 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
4764 * testsuite/27_io/objects/wchar_t/8.cc: New test.
4765 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
4766 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
4767 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
4768 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
4769 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
4770 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
4771 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
4772 * testsuite/ext/stdiobuf_char.cc: New test.
4773 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
4775 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
4777 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
4778 unnecessary includes and unused string literals.
4779 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
4781 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
4783 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
4785 2003-05-07 Richard Henderson <rth@redhat.com>
4788 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
4789 (__cxa_end_catch): Likewise.
4790 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
4791 _Unwind_Resume_or_Rethrow.
4792 * libsupc++/eh_personality.cc (empty_exception_spec): New.
4793 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
4794 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
4795 exceptions. Don't push terminate/unexpected to cxa functions.
4796 (__cxa_call_unexpected): Remove foreign exception fixmes.
4798 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
4800 * testsuite/27_io/ios_base/cons: New.
4801 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
4802 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
4804 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
4806 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
4808 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
4809 there is no buffer or __testget == !__testinit.
4812 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
4813 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
4815 * include/std/std_fstream.h (_M_destroy_pback): Don't set
4816 unnecessarily _M_pback_cur_save and _M_pback_end_save.
4818 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
4820 * include/std/std_sstream.h (_M_sync): Minor tweak.
4822 * include/bits/fstream.tcc (close): No need to call
4823 _M_destroy_pback, setting _M_pback_init to false suffices
4826 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
4828 * include/bits/stl_algo.h: Enums as _S_.
4829 * include/bits/stl_tree.h: Same.
4830 * include/bits/stl_bvector.h: Same.
4831 * include/bits/ios_base.h: Same.
4832 * include/bits/stl_alloc.h: Same.
4833 * include/ext/stl_hashtable.h: Same.
4834 * src/ios.cc: And here.
4836 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
4837 * include/bits/sstream.tcc: Same.
4839 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
4841 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
4843 * include/bits/locale_facets.h (__num_base): Remove protected.
4844 Use _S_[io]* names for enumerations.
4845 (_S_format_int): Remove.
4846 * include/bits/locale_facets.tcc: Same.
4847 * src/locale.cc: Same.
4849 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
4851 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
4853 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
4854 * docs/html/faq/index.txt: Regenerated.
4856 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
4857 Matt Kraai <kraai@alumni.cmu.edu>
4859 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
4862 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
4864 * configure.target (mips*): Use the generic atomicity.h by default.
4866 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
4867 (Inspired by an alternate patch from Danny Smith.)
4869 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
4870 (_Swap_lock_struct<>): ...and the horse it rode in on.
4871 * src/globals.cc (_Swap_lock_struct<>): Likewise.
4872 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
4873 member to support...
4874 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
4875 visibility rules related to POSIX threads.
4876 * testsuite/thread/pthread7-rope.cc: New test.
4878 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
4880 * testsuite/21_strings/basic_string/find/char/3.cc: New
4881 file, testing basic_string<char>::find_first_not_of.
4882 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
4883 Likewise for basic_string<wchar_t>.
4885 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
4887 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
4889 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
4891 * include/Makefile.am (CLEANFILES): Remove PCH files in target
4893 * include/Makefile.in: Regenerate.
4895 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
4897 * include/std/std_sstream.h (str()): Tidy.
4899 2003-05-02 Nathan Myers <ncm@cantrip.org>
4900 Paolo Carlini <pcarlini@unitus.it>
4902 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
4904 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
4906 * include/bits/basic_string.h (swap): Remove redundant template
4907 parameters from declaration of non-template member function.
4909 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
4911 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
4912 * configure.in: Move libintl.h header test...
4913 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
4914 the NLS-related test results into one symbol.
4915 * src/functexcept.cc: Use it here.
4916 * aclocal.m4, config.h.in, configure: Regenerated.
4918 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4920 * include/bits/sstream.tcc (overflow): Instead of calling
4921 str(), then _M_string.reserve, thus copying the contents
4922 of the current buffer two times, just copy the latter in
4923 a temporary, then use the 'swap trick'.
4925 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4927 * include/std/std_sstream.h (str()): Revert the best of the
4928 previous 'improvement', incorrect due to the COW nature of
4929 v3 basic_string; simplify.
4931 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4933 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
4934 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
4936 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
4938 * testsuite/abi_check.cc (check_version): Update known versions.
4939 Check added symbols for version_name != base version. Add missing
4940 symbols to incompatible list.
4942 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
4944 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
4945 * aclocal.m4: Regenerated.
4946 * configure: Regenerated.
4948 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4950 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
4951 Const-ify some variables.
4952 (basic_streambuf::xsputn): Likewise; change the type of some
4953 variables to size_t.
4954 (__copy_streambufs): Change some variables to size_t.
4956 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4958 * include/std/std_sstream.h (str()): Avoid constructing
4959 a basic_string temporary not only when it would turn out
4960 to be zero-sized but also when identical to the current
4963 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4965 * include/ext/stdio_filebuf.h
4966 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
4967 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
4968 Shorten a bit (-10 lines) by factoring out some code.
4970 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
4972 * acinclude.m4: Add bit missing from previous patch.
4973 * aclocal.m4, configure: Regenerated.
4975 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
4977 * docs/doxygen/mainpage.html: Bring up to date.
4978 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
4980 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
4981 breaks everything. Don't scan them.
4982 * docs/html/documentation.html: Point to "Write after approval"
4985 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
4987 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
4988 of libc if message translations are being used. Fix info text in
4989 xieee_1003.1-2001 case.
4990 * aclocal.m4, configure: Regenerate.
4992 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
4993 Loren J. Rittle <ljrittle@acm.org>
4994 Martin v. Loewis <martin@v.loewis.de>
4996 * config/cpu/i386/atomicity.h: New file.
4998 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
5000 * include/bits/fstream.tcc (open): Change to single return.
5002 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
5004 * include/std/std_sstream.h (underflow): Change to single return.
5006 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5008 * include/std/std_streambuf.h (_M_buf): is currently
5009 used only for basic_filebuf, therefore move it there.
5010 (basic_streambuf(), ~basic_streambuf()): Adjust.
5011 * include/std/std_fstream.h (_M_buf): Moved here.
5012 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
5013 is actually redundant for basic_stringbuf.
5014 (_M_really_sync): Likewise.
5015 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
5016 * include/bits/sstream.tcc (seekoff): Adjust.
5018 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
5020 * src/localename.cc: Standardize exception strings.
5021 * src/locale.cc: Same.
5023 * include/bits/basic_string.tcc: Same.
5024 * include/bits/basic_ios.tcc: Same.
5025 * include/std/std_bitset.h: Same.
5026 * include/ext/ropeimpl.h: Same.
5027 * include/bits/stl_vector.h: Same.
5028 * include/bits/stl_deque.h: Same.
5029 * include/bits/stl_bvector.h: Same.
5030 * config/locale/generic/c_locale.cc: Same.
5031 * config/locale/gnu/c_locale.cc: Same.
5032 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
5034 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
5036 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5038 * include/std/std_streambuf.h (_M_buf_size): is currently
5039 used only for basic_filebuf, therefore move it there.
5040 (basic_streambuf(), ~basic_streambuf()): Adjust.
5041 * include/std/std_fstream.h (_M_buf_size): Moved here.
5042 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
5044 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5046 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
5047 _M_buf_size (synced input is now correctly dealt with
5048 elsewhere); when the output buffer is full don't fall back
5049 to a snextc-sputc loop, call overflow instead.
5051 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
5053 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
5054 the innermost 'if' by factoring out some code.
5056 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
5058 * configure.in: Test for libintl.h.
5059 * include/bits/c++config: Define __N for everybody.
5060 * include/bits/basic_string.h, include/bits/stl_bvector.h,
5061 include/bits/stl_deque.h, include/bits/stl_vector.h,
5062 include/std/std_bitset.h: Wrap all __throw* text with __N.
5063 * po/Makefile.am (pot): New rule, mostly working.
5064 * src/functexcept.cc: Call gettext on all __throw* arguments when
5065 -fexceptions is in effect.
5066 * po/Makefile.in, config.h.in, configure: Regenerate.
5068 2003-04-28 Petur Runolfsson <peturr02@ru.is>
5071 * include/bits/ios_base.h (Init::_S_ios_create,
5072 Init::_S_ios_destroy): Remove declarations.
5073 (Init::_S_create_buffers,
5074 Init::_S_destroy_buffers): Declare
5075 * src/ios.cc (Init::_S_ios_create): Remove
5076 (Init::_S_create_buffers): Create buffers and add to streams.
5077 (Init::_S_ios_destroy): Rename to...
5078 (Init::_S_destroy_buffers): this.
5079 (Init::Init): Only construct streams once.
5080 (Init::~Init): Flush streams, don't destroy them.
5081 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
5082 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
5083 * testsuite/27_io/objects/char/5.cc: New test.
5084 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
5085 * testsuite/27_io/objects/char/6.cc: New test.
5086 * testsuite/27_io/objects/char/7.cc: New test.
5088 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
5090 * testsuite/27_io/objects/char/8.cc: New test.
5092 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
5094 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
5095 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
5097 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
5099 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
5100 _M_destroy_pback. _M_pback_create to
5101 _M_create_pback. _M_underflow_common to
5102 _M_underflow. _M_really_overflow to _M_overflow.
5103 * include/bits/fstream.tcc: Same.
5104 * src/fstream.cc: Same.
5105 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
5106 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
5107 * include/bits/streambuf.tcc: Same.
5108 * include/bits/fstream.tcc: Same.
5109 * include/bits/sstream.tcc: Same.
5111 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
5113 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
5114 from fixed size array.
5115 (locale): Change _S_categories as well.
5117 * include/bits/locale_facets.tcc: Tweak.
5118 * config/locale/gnu/c_locale.cc: Assign _S_categories.
5119 * config/locale/generic/c_locale.cc: Same.
5120 * src/locale.cc: Tweak.
5121 * src/globals.cc: Change facet_name to name_vec, add names_c.
5122 * src/localename.cc: Use them.
5123 (locale::_Impl::~_Impl): Destroy _M_names.
5124 (locale::_Impl::_Impl): Create _M_names.
5126 2003-04-27 Andreas Schwab <schwab@suse.de>
5128 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
5129 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
5131 2003-04-27 Nathan Myers <ncm@cantrip.org>
5133 Move some basic_string members out of line because
5134 they are too big to reasonably be inline.
5135 * include/bits/basic_string.h
5136 (assign(const basic_string&, size_type, size_type),
5137 assign(const _CharT*, size_type),
5138 insert(size_type, const basic_string&, size_type, size_type),
5139 insert(size_type, const _CharT*, size_type),
5140 replace(size_type, size_type, const _CharT*, size_type)):
5141 Move from here to...
5142 * include/bits/basic_string.tcc: ...here.
5144 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
5146 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
5147 the innermost 'if' by factoring out some code.
5149 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
5151 * include/bits/streambuf.tcc (__copy_streambufs): Don't
5152 use in_avail(), simplify.
5154 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
5156 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
5157 in basic_stringbuf it's unused.
5159 * include/std/std_sstream.h (underflow): consistently use
5160 _M_in_cur, not gptr().
5162 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
5163 Phil Edwards <pme@gcc.gnu.org>
5165 * testsuite_flags.in: Guard against the possibility
5166 of having "xgcc" as a part of a folder name in the
5167 path to the GCC build folder.
5168 * testsuite/Makefile.am: Likewise.
5169 * testsuite/Makefile.in: Regenerated.
5171 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
5174 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
5175 exception specifications.
5176 (basic_filebuf::close): Same.
5177 (basic_filebuf::_M_pback_destroy): Same.
5178 (basic_filebuf::_M_destroy_internal_buffer): Same.
5179 (basic_filebuf): Remove __res_type typedef.
5180 * src/fstream.cc: Same.
5181 * include/bits/fstream.tcc
5182 (basic_filebuf::_M_convert_to_external): Simplify.
5183 (basic_filebuf::seekoff): Use has_facet before use_facet.
5184 (basic_filebuf::close): Add exception specification of throw().
5185 * testsuite/27_io/basic_filebuf/cons: New.
5186 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
5187 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
5188 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
5189 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
5191 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
5193 * include/bits/locale_classes.h
5194 (locale::_S_extra_categories_size): Remove.
5195 * src/locale.cc: Remove _S_extra_categories_size.
5196 * src/localename.cc: Same.
5197 * config/locale/gnu/c_locale.cc: Same.
5198 * config/locale/generic/c_locale.cc: Same.
5200 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
5202 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
5204 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
5206 * docs/html/17_intro/howto.html: Update some links.
5207 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
5208 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
5209 * docs/html/ext/howto.html: Link to demangler notes and API.
5210 * docs/html/faq/index.html: Remove trailing whitespace.
5211 (1.4, 2.4, 3.8, 4.1): Bring up to date.
5212 (5.6): Change to a bulleted list.
5214 * docs/html/faq/index.txt, docs/html/documentation.html,
5215 docs/html/17_intro/porting.html: Regenerate.
5217 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
5219 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
5220 belongs to basic_filebuf.
5221 * testsuite/27_io/basic_fstream/3.cc: Likewise.
5222 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
5223 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
5224 instantiation (now belongs to basic_filebuf).
5225 * testsuite/27_io/basic_iostream/3.cc: Likewise.
5226 * testsuite/27_io/basic_istream/3.cc: Likewise.
5227 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5228 _S_pback_size now belongs to basic_filebuf.
5229 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
5230 instantiation (now belongs to basic_filebuf).
5231 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
5232 belongs to basic_filebuf.
5233 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
5234 instantiation (now belongs to basic_filebuf).
5235 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
5236 _S_pback_size now belongs to basic_filebuf.
5237 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
5238 instantiation (now belongs to basic_filebuf).
5239 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
5241 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
5242 instantiation (now belongs to basic_filebuf).
5243 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
5245 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
5247 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
5248 * configure: Regenerated.
5250 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
5252 * config/locale/generic/c_locale.h (__convert_from_v): Use
5255 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
5257 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
5258 implementation only.
5259 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
5260 Comment and change to comply with DR 60 and the effect on gcount().
5261 * include/std/std_istream.h: Update comments.
5262 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
5263 comments about reasons for tests. Test sync() against gcount().
5264 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
5265 for effect on gcount().
5266 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
5267 for effect on gcount().
5269 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
5271 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
5274 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
5276 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
5277 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5278 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
5279 (basic_streambuf::basic_streambuf()): Adjust.
5280 * include/std/std_fstream.h (_S_pback_size, _M_pback,
5281 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
5282 _M_pback_create(), _M_pback_destroy()): Moved here
5283 from basic_streambuf.
5284 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
5286 (basic_filebuf::_S_pback_size): Add declaration.
5287 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
5290 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
5292 Consistently use _M_in_beg instead of eback(), _M_in_cur
5293 instead of gptr(), and so on.
5294 * include/bits/fstream.tcc (pbackfail, imbue): Here.
5295 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
5296 * include/bits/streambuf.tcc (sbumpc, sputbackc,
5297 __copy_streambufs): Ditto.
5298 * include/std/std_streambuf.h (sgetc): Ditto.
5300 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
5302 * include/bits/sstream.tcc (pbackfail, overflow):
5305 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
5307 * include/std/std_streambuf.h (uflow()): It's used only by
5308 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
5309 therefore do not consider the _M_buf_unified == true case.
5311 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
5313 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
5315 * docs/html/ext/howto.html ('LWG Issues'):
5316 Add issues 19, 90, 171, 231, 271.
5318 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
5320 * include/bits/sstream.tcc (pbackfail): Remove redundant
5321 NULL pointer check from test involving _M_in_*.
5322 (overflow, seekoff, seekpos): Const qualify bool variables.
5323 * include/std/std_sstream.h (underflow): Remove redundant
5324 NULL pointer check from test involving _M_in_*.
5325 (_M_really_sync): Const qualify bool variables.
5326 * src/fstream.cc (_M_underflow_common): Remove redundant
5327 NULL pointer check from test involving _M_in_*, const qualify
5330 * include/std/std_streambuf.h (sgetc): Remove redundant
5333 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
5335 According to 5.9 para 2 (second bullet) for pointers p, q
5336 pointing to the same type, with p == 0 and q == 0, (p < q)
5338 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
5339 seekoff): Remove redundant NULL pointer checks from tests
5340 involving _M_out_* and _M_in_*, const qualify bool variables.
5341 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
5342 qualify bool variables.
5343 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
5344 Remove redundant NULL pointer checks from tests involving
5345 _M_out_* and _M_in_*, const qualify bool variables.
5346 * include/std/std_fstream.h (sync): Likewise.
5347 (_M_is_indeterminate): Const qualify bool variables.
5348 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
5349 NULL pointer checks from tests involving _M_out_* and _M_in_*,
5350 const qualify bool variables.
5351 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
5354 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
5356 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
5357 C99 FP macros, if actually captured.
5359 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
5360 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5361 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5362 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5363 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
5365 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
5366 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
5367 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
5368 * include/c_std/std_cstdlib.h: Use new macros.
5369 * include/c_std/std_cstdio.h: Use new macros.
5370 * include/c_std/std_cwchar.h: Use new macros.
5372 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
5375 * include/bits/ostream.tcc: Catch all exceptions for formatted
5376 output, instead of std::exception and derivatives.
5377 * include/bits/istream.tcc: Same.
5378 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
5379 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
5380 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
5381 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
5382 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
5383 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
5386 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
5388 * include/bits/c++config: Minor cosmetic tweaks.
5390 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
5392 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
5393 * include/Makefile.am (pch_input): Find in ${target_builddir}.
5394 (pch_output): Rename to...
5395 (pch_output_builddir): ..this. Find in ${target_builddir}.
5396 (pch_source): Tweak.
5397 (pch_build): Key off a built file.
5398 (pch_output rule): Rename to...
5399 (pch_input rule): ...this. Produce ${pch_output_builddir}
5400 instead of ${pch_output}.
5401 (install-pch rule): Install ${pch_output_builddir}.
5402 * include/Makefile.in: Regenerated.
5404 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
5406 * include/std/std_streambuf.h (setp): _M_out_lim, being
5407 the end limit of used put area, is set equal to _M_out_beg.
5409 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
5411 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
5412 * aclocal.m4: Regenerated.
5413 * configure.in: Remove old demangler bits.
5415 * configure: Regenerate.
5416 * config.h.in: Regenerate.
5417 * include/Makefile.am (allstamps): Now allstamped.
5418 (allcreated): Define this.
5419 (all-local): Use 'em.
5420 Conditionally define pch_build, pch_install based on
5422 (${pch_output}): New rule.
5423 (install-pch): New rule.
5424 (install-headers): New rule.
5425 (install-data-local): Install headers and conditionally pch.
5426 * include/Makefile.in: Regenerate.
5427 * testsuite_flags.in (--build-cxx): Use pch file.
5429 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
5431 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
5433 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
5434 Paolo Carlini <pcarlini at unitus dot it>
5437 * docs/html/27_io/howto.html
5438 ('The buffering is screwing up my program!'): Explain that
5439 opening counts as an I/O operation.
5441 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
5443 * testsuite/thread/pthread1.cc: Enable for darwin test.
5444 * testsuite/thread/pthread2.cc: Same.
5445 * testsuite/thread/pthread3.cc: Same.
5446 * testsuite/thread/pthread4.cc: Same.
5447 * testsuite/thread/pthread5.cc: Same.
5448 * testsuite/thread/pthread6.cc: Same.
5450 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
5453 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
5454 Populate it with multiple legal ways to obtain the C99 float
5455 transcendentals. Use them instead of direct global reference.
5456 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
5457 * docs/html/17_intro/porting.texi
5458 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5459 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5460 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
5461 * config/os/bsd/freebsd/os_defines.h
5462 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5463 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5464 * testsuite/26_numerics/c_math_dynamic.cc: New file.
5466 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
5467 Benjamin Kosnik <bkoz@redhat.com>
5469 * config/os/generic/ctype_inline.h: Fix.
5471 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
5473 * testsuite/testsuite_hooks.h
5474 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
5475 Change to try_named_locale.
5476 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
5478 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
5480 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5481 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5482 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
5483 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
5484 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
5485 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
5486 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
5487 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
5488 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
5489 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
5490 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
5491 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
5492 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
5493 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
5494 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
5495 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5496 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5497 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5498 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
5499 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
5500 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
5501 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
5502 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
5503 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
5504 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
5505 * testsuite/22_locale/collate/compare/char/1.cc: Same.
5506 * testsuite/22_locale/collate/compare/char/2.cc: Same.
5507 * testsuite/22_locale/collate/compare/char/3.cc: Same.
5508 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
5509 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
5510 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
5511 * testsuite/22_locale/collate/hash/char/2.cc: Same.
5512 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
5513 * testsuite/22_locale/collate/transform/char/2.cc: Same.
5514 * testsuite/22_locale/collate/transform/char/3.cc: Same.
5515 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
5516 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
5517 * testsuite/22_locale/collate_byname/1.cc: Same.
5518 * testsuite/22_locale/ctype/is/char/2.cc: Same.
5519 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
5520 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
5521 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
5522 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
5523 * testsuite/22_locale/facet/2.cc: Same.
5524 * testsuite/22_locale/locale/cons/2.cc: Same.
5525 * testsuite/22_locale/locale/cons/4.cc: Same.
5526 * testsuite/22_locale/locale/cons/5.cc: Same.
5527 * testsuite/22_locale/locale/cons/7.cc: Same.
5528 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
5529 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
5530 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
5531 * testsuite/22_locale/messages/members/char/1.cc: Same.
5532 * testsuite/22_locale/messages/members/char/2.cc: Same.
5533 * testsuite/22_locale/messages/members/char/3.cc: Same.
5534 * testsuite/22_locale/messages_byname/1.cc: Same.
5535 * testsuite/22_locale/money_get/get/char/1.cc: Same.
5536 * testsuite/22_locale/money_get/get/char/2.cc: Same.
5537 * testsuite/22_locale/money_get/get/char/3.cc: Same.
5538 * testsuite/22_locale/money_get/get/char/4.cc: Same.
5539 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
5540 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
5541 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
5542 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
5543 * testsuite/22_locale/money_put/put/char/1.cc: Same.
5544 * testsuite/22_locale/money_put/put/char/2.cc: Same.
5545 * testsuite/22_locale/money_put/put/char/3.cc: Same.
5546 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
5547 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
5548 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
5549 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
5550 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
5551 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
5552 * testsuite/22_locale/num_get/get/char/1.cc: Same.
5553 * testsuite/22_locale/num_get/get/char/2.cc: Same.
5554 * testsuite/22_locale/num_get/get/char/3.cc: Same.
5555 * testsuite/22_locale/num_get/get/char/5.cc: Same.
5556 * testsuite/22_locale/num_get/get/char/6.cc: Same.
5557 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
5558 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
5559 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
5560 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
5561 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
5562 * testsuite/22_locale/num_put/put/char/1.cc: Same.
5563 * testsuite/22_locale/num_put/put/char/2.cc: Same.
5564 * testsuite/22_locale/num_put/put/char/3.cc: Same.
5565 * testsuite/22_locale/num_put/put/char/5.cc: Same.
5566 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
5567 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
5568 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
5569 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
5570 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
5571 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
5572 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
5573 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
5574 * testsuite/22_locale/numpunct_byname/1.cc: Same.
5575 * testsuite/22_locale/numpunct_byname/2.cc: Same.
5576 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
5577 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
5578 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
5579 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
5580 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
5581 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
5582 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
5583 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
5584 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
5585 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
5586 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
5587 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
5588 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
5589 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
5590 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
5591 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
5592 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
5593 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
5594 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
5595 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
5596 * testsuite/22_locale/time_put/put/char/1.cc: Same.
5597 * testsuite/22_locale/time_put/put/char/2.cc: Same.
5598 * testsuite/22_locale/time_put/put/char/3.cc: Same.
5599 * testsuite/22_locale/time_put/put/char/4.cc: Same.
5600 * testsuite/22_locale/time_put/put/char/5.cc: Same.
5601 * testsuite/22_locale/time_put/put/char/6.cc: Same.
5602 * testsuite/22_locale/time_put/put/char/7.cc: Same.
5603 * testsuite/22_locale/time_put/put/char/8.cc: Same.
5604 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
5605 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
5606 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
5607 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
5608 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
5609 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
5610 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
5611 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
5612 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
5613 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
5614 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
5615 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
5616 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
5618 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
5620 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
5621 solaris includes, not generic.
5623 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
5625 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
5627 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
5628 * include/bits/concept_check.h: Fix multi-line comment.
5629 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
5630 when target is *-*-freebsd*.
5632 2003-04-14 Nathan Myers <ncm@cantrip.org>
5633 Paolo Carlini <pcarlini@unitus.it>
5635 PR libstdc++/9701 (in_avail())
5636 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
5637 doesn't care if there is anything in some putback cell.
5638 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
5640 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
5641 unused string literals.
5643 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
5645 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
5646 _M_out_end, _M_set_indeterminate() does it.
5648 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5650 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
5652 2003-04-12 David Edelsohn <edelsohn@gnu.org>
5654 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5655 Change basic_streambuf instantiation to "unsigned char".
5656 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5658 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
5660 Remove _M_buf_size_opt, use directly _M_buf_size instead.
5661 * include/bits/fstream.tcc
5662 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
5663 references to _M_buf_size_opt.
5664 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
5665 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
5666 __bufsize to __in_avail and __size_opt to __buf_size.
5667 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
5668 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
5669 * include/std/std_streambuf.h (~basic_streambuf(),
5670 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
5671 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
5672 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
5673 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
5674 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
5675 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
5676 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
5677 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
5678 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
5679 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
5680 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
5681 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
5682 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
5684 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
5686 * include/ext/stdio_filebuf.h
5687 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
5688 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
5689 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
5690 since a stack-based buffer is used for small values of the size_t
5692 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
5693 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
5694 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
5696 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
5699 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
5700 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
5702 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5704 * testsuite/22_locale/locale/cons/3.cc: Split.
5705 * testsuite/22_locale/locale/cons/7222-c.cc: New.
5706 * testsuite/22_locale/locale/cons/7222-env.cc: New.
5707 Check before trying to create a locale from the environment.
5708 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
5709 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
5712 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5714 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
5715 locale to construct this hybrid locale, not the global locale.
5717 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5719 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
5720 instantiation for AIX.
5721 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5722 * testsuite/25_algorithms/min_max.cc: Same.
5724 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5726 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
5727 twice. Always set _M_cfile to 0 when stream was open.
5729 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5731 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
5732 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
5733 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
5734 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
5735 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
5736 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
5737 ifstream_members.cc, instantiations.cc, ios.cc,
5738 ios_base_callbacks.cc, ios_base_members_static-1.tst,
5739 ios_base_members_static.cc, ios_base_storage.cc,
5740 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
5741 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
5742 iostream.cc, iostream_members.cc, istream.cc,
5743 istream_exception.cc, istream_extractor_char.cc,
5744 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
5745 istream_extractor_other-2.tst, istream_extractor_other.cc,
5746 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
5747 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
5748 istream_sentry.cc, istream_unformatted-1.tst,
5749 istream_unformatted-1.txt, istream_unformatted.cc,
5750 istringstream.cc, istringstream_members.cc,
5751 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
5752 ofstream_members.cc, ostream.cc, ostream_exception.cc,
5753 ostream_fail.cc, ostream_inserter_arith.cc,
5754 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
5755 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
5756 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
5757 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
5758 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
5759 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
5760 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
5761 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
5762 wide_stream_objects.cc, istream_extractor_arith/01.cc,
5763 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
5764 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
5765 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
5766 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
5767 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
5769 * 27_io/basic_filebuf/1.cc: New.
5770 * 27_io/basic_filebuf/2.cc: New.
5771 * 27_io/basic_filebuf/3.cc: New.
5772 * 27_io/basic_filebuf/4.cc: New.
5773 * 27_io/basic_filebuf/close/char/1.cc: New.
5774 * 27_io/basic_filebuf/close/char/2.cc: New.
5775 * 27_io/basic_filebuf/close/char/3.cc: New.
5776 * 27_io/basic_filebuf/close/char/4879.cc: New.
5777 * 27_io/basic_filebuf/close/char/9964.cc: New.
5778 * 27_io/basic_filebuf/imbue/char/1.cc: New.
5779 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
5780 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
5781 * 27_io/basic_filebuf/is_open/char/1.cc: New.
5782 * 27_io/basic_filebuf/open/char/1.cc: New.
5783 * 27_io/basic_filebuf/open/char/2.cc: New.
5784 * 27_io/basic_filebuf/open/char/3.cc: New.
5785 * 27_io/basic_filebuf/open/char/9507.cc: New.
5786 * 27_io/basic_filebuf/overflow/char/1.cc: New.
5787 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
5788 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
5789 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
5790 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
5791 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
5792 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
5793 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
5794 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
5795 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
5796 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
5797 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
5798 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
5799 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
5800 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
5801 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
5802 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
5803 * 27_io/basic_filebuf/snextc/char/1.cc: New.
5804 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
5805 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
5806 * 27_io/basic_filebuf/sputc/char/1.cc: New.
5807 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
5808 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
5809 * 27_io/basic_filebuf/sputn/char/1.cc: New.
5810 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
5811 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
5812 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
5813 * 27_io/basic_filebuf/sync/char/1057.cc: New.
5814 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
5815 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
5816 * 27_io/basic_fstream/1.cc: New.
5817 * 27_io/basic_fstream/2.cc: New.
5818 * 27_io/basic_fstream/3.cc: New.
5819 * 27_io/basic_fstream/4.cc: New.
5820 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
5821 * 27_io/basic_ifstream/1.cc: New.
5822 * 27_io/basic_ifstream/2.cc: New.
5823 * 27_io/basic_ifstream/3.cc: New.
5824 * 27_io/basic_ifstream/4.cc: New.
5825 * 27_io/basic_ifstream/cons/char/1.cc: New.
5826 * 27_io/basic_ifstream/open/char/1.cc: New.
5827 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
5828 * 27_io/basic_ios/1.cc: New.
5829 * 27_io/basic_ios/2.cc: New.
5830 * 27_io/basic_ios/3.cc: New.
5831 * 27_io/basic_ios/4.cc: New.
5832 * 27_io/basic_ios/clear/char/1.cc: New.
5833 * 27_io/basic_ios/cons/char/1.cc: New.
5834 * 27_io/basic_ios/cons/char/2.cc: New.
5835 * 27_io/basic_ios/cons/char/3.cc: New.
5836 * 27_io/basic_ios/copyfmt/char/1.cc: New.
5837 * 27_io/basic_ios/copyfmt/char/2.cc: New.
5838 * 27_io/basic_ios/exceptions/char/1.cc: New.
5839 * 27_io/basic_ios/locales/char/1.cc: New.
5840 * 27_io/basic_iostream/1.cc: New.
5841 * 27_io/basic_iostream/2.cc: New.
5842 * 27_io/basic_iostream/3.cc: New.
5843 * 27_io/basic_iostream/4.cc: New.
5844 * 27_io/basic_istream/1.cc: New.
5845 * 27_io/basic_istream/2.cc: New.
5846 * 27_io/basic_istream/3.cc: New.
5847 * 27_io/basic_istream/4.cc: New.
5848 * 27_io/basic_istream/exceptions/char/9561.cc: New.
5849 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
5850 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
5851 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
5852 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
5853 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
5854 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
5855 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
5856 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
5857 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
5858 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
5859 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
5860 * 27_io/basic_istream/extractors_character/char/1.cc: New.
5861 * 27_io/basic_istream/extractors_character/char/2.cc: New.
5862 * 27_io/basic_istream/extractors_character/char/3.cc: New.
5863 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
5864 * 27_io/basic_istream/extractors_other/char/1.cc: New.
5865 * 27_io/basic_istream/extractors_other/char/2.cc: New.
5866 * 27_io/basic_istream/extractors_other/char/3.cc: New.
5867 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
5868 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
5869 * 27_io/basic_istream/get/char/1.cc: New.
5870 * 27_io/basic_istream/get/char/2.cc: New.
5871 * 27_io/basic_istream/getline/char/1.cc: New.
5872 * 27_io/basic_istream/getline/char/2.cc: New.
5873 * 27_io/basic_istream/getline/char/3.cc: New.
5874 * 27_io/basic_istream/ignore/char/1.cc: New.
5875 * 27_io/basic_istream/ignore/char/6360.cc: New.
5876 * 27_io/basic_istream/ignore/char/7220.cc: New.
5877 * 27_io/basic_istream/peek/char/1.cc: New.
5878 * 27_io/basic_istream/peek/char/6414.cc: New.
5879 * 27_io/basic_istream/putback/char/1.cc: New.
5880 * 27_io/basic_istream/read/char/1.cc: New.
5881 * 27_io/basic_istream/read/char/2.cc: New.
5882 * 27_io/basic_istream/read/char/3.cc: New.
5883 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
5884 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
5885 * 27_io/basic_istream/readsome/char/8258.cc: New.
5886 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
5887 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
5888 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
5889 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
5890 * 27_io/basic_istream/seekg/char/fstream.cc: New.
5891 * 27_io/basic_istream/seekg/char/sstream.cc: New.
5892 * 27_io/basic_istream/sentry/char/1.cc: New.
5893 * 27_io/basic_istream/sentry/char/2.cc: New.
5894 * 27_io/basic_istream/sentry/char/3.cc: New.
5895 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
5896 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
5897 * 27_io/basic_istream/tellg/char/1.cc: New.
5898 * 27_io/basic_istream/tellg/char/8348.cc: New.
5899 * 27_io/basic_istream/tellg/char/fstream.cc: New.
5900 * 27_io/basic_istream/tellg/char/sstream.cc: New.
5901 * 27_io/basic_istream/ws/char/1.cc: New.
5902 * 27_io/basic_istringstream/1.cc: New.
5903 * 27_io/basic_istringstream/2.cc: New.
5904 * 27_io/basic_istringstream/3.cc: New.
5905 * 27_io/basic_istringstream/4.cc: New.
5906 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
5907 * 27_io/basic_istringstream/str/char/1.cc: New.
5908 * 27_io/basic_ofstream/1.cc: New.
5909 * 27_io/basic_ofstream/2.cc: New.
5910 * 27_io/basic_ofstream/3.cc: New.
5911 * 27_io/basic_ofstream/4.cc: New.
5912 * 27_io/basic_ofstream/cons/char/2.cc: New.
5913 * 27_io/basic_ofstream/open/char/1.cc: New.
5914 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
5915 * 27_io/basic_ostream/1.cc: New.
5916 * 27_io/basic_ostream/2.cc: New.
5917 * 27_io/basic_ostream/3.cc: New.
5918 * 27_io/basic_ostream/4.cc: New.
5919 * 27_io/basic_ostream/cons/char/9827.cc: New.
5920 * 27_io/basic_ostream/endl/char/1.cc: New.
5921 * 27_io/basic_ostream/ends/char/1.cc: New.
5922 * 27_io/basic_ostream/ends/char/2.cc: New.
5923 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
5924 * 27_io/basic_ostream/flush/char/1.cc: New.
5925 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
5926 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
5927 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
5928 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
5929 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
5930 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
5931 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
5932 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
5933 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
5934 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
5935 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
5936 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
5937 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
5938 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
5939 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
5940 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
5941 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
5942 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
5943 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
5944 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
5945 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
5946 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
5947 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
5948 * 27_io/basic_ostream/sentry/char/1.cc: New.
5949 * 27_io/basic_ostream/sentry/char/2.cc: New.
5950 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
5951 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
5952 * 27_io/basic_ostream/tellp/char/1.cc: New.
5953 * 27_io/basic_ostream/tellp/char/2.cc: New.
5954 * 27_io/basic_ostringstream/1.cc: New.
5955 * 27_io/basic_ostringstream/2.cc: New.
5956 * 27_io/basic_ostringstream/3.cc: New.
5957 * 27_io/basic_ostringstream/4.cc: New.
5958 * 27_io/basic_ostringstream/cons/char/3.cc: New.
5959 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
5960 * 27_io/basic_ostringstream/str/char/1.cc: New.
5961 * 27_io/basic_ostringstream/str/char/2.cc: New.
5962 * 27_io/basic_streambuf/1.cc: New.
5963 * 27_io/basic_streambuf/2.cc: New.
5964 * 27_io/basic_streambuf/3.cc: New.
5965 * 27_io/basic_streambuf/cons/char/1.cc: New.
5966 * 27_io/basic_streambuf/imbue/char/1.cc: New.
5967 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
5968 * 27_io/basic_streambuf/overflow/char/1.cc: New.
5969 * 27_io/basic_streambuf/overflow/char/2.cc: New.
5970 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
5971 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
5972 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
5973 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
5974 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
5975 * 27_io/basic_streambuf/sputn/char/1.cc: New.
5976 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
5977 * 27_io/basic_streambuf/sync/char/1057.cc: New.
5978 * 27_io/basic_stringbuf/1.cc: New.
5979 * 27_io/basic_stringbuf/2.cc: New.
5980 * 27_io/basic_stringbuf/3.cc: New.
5981 * 27_io/basic_stringbuf/4.cc: New.
5982 * 27_io/basic_stringbuf/5.cc: New.
5983 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
5984 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
5985 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
5986 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
5987 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
5988 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
5989 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
5990 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
5991 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
5992 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
5993 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
5994 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
5995 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
5996 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
5997 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
5998 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
5999 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
6000 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
6001 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
6002 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
6003 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
6004 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
6005 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
6006 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
6007 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
6008 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
6009 * 27_io/basic_stringbuf/str/char/1.cc: New.
6010 * 27_io/basic_stringbuf/str/char/2.cc: New.
6011 * 27_io/basic_stringbuf/str/char/3.cc: New.
6012 * 27_io/basic_stringbuf/str/char/3955.cc: New.
6013 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
6014 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
6015 * 27_io/basic_stringstream/1.cc: New.
6016 * 27_io/basic_stringstream/2.cc: New.
6017 * 27_io/basic_stringstream/3.cc: New.
6018 * 27_io/basic_stringstream/4.cc: New.
6019 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
6020 * 27_io/basic_stringstream/str/char/1.cc: New.
6021 * 27_io/basic_stringstream/str/char/2.cc: New.
6022 * 27_io/basic_stringstream/str/char/3.cc: New.
6023 * 27_io/basic_stringstream/str/char/4.cc: New.
6024 * 27_io/fpos/1.cc: New.
6025 * 27_io/fpos/2.cc: New.
6026 * 27_io/fpos/3.cc: New.
6027 * 27_io/ios_base/callbacks/1.cc: New.
6028 * 27_io/ios_base/state/1.cc: New.
6029 * 27_io/ios_base/storage/1.cc: New.
6030 * 27_io/ios_base/storage/2.cc: New.
6031 * 27_io/ios_base/storage/3.cc: New.
6032 * 27_io/ios_base/sync_with_stdio/1.cc: New.
6033 * 27_io/ios_base/sync_with_stdio/2.cc: New.
6034 * 27_io/manipulators/adjustfield/char/1.cc: New.
6035 * 27_io/manipulators/adjustfield/char/2.cc: New.
6036 * 27_io/manipulators/basefield/char/1.cc: New.
6037 * 27_io/manipulators/standard/char/1.cc: New.
6038 * 27_io/manipulators/standard/char/2.cc: New.
6039 * 27_io/objects/char/1.cc: New.
6040 * 27_io/objects/char/2.cc: New.
6041 * 27_io/objects/char/2523-1_xin.cc: New.
6042 * 27_io/objects/char/2523-1_xin.in: New.
6043 * 27_io/objects/char/2523-2_xin.cc: New.
6044 * 27_io/objects/char/2523-2_xin.in: New.
6045 * 27_io/objects/char/3045.cc: New.
6046 * 27_io/objects/char/3647.cc: New.
6047 * 27_io/objects/char/3_xin.cc: New.
6048 * 27_io/objects/char/3_xin.in: New.
6049 * 27_io/objects/char/4_xin.cc: New.
6050 * 27_io/objects/char/4_xin.in: New.
6051 * 27_io/objects/char/5268.cc: New.
6052 * 27_io/objects/char/5280_xin.cc: New.
6053 * 27_io/objects/char/5280_xin.in: New.
6054 * 27_io/objects/char/6548_xin.cc: New.
6055 * 27_io/objects/char/6548_xin.in: New.
6056 * 27_io/objects/char/6648-1_xin.cc: New.
6057 * 27_io/objects/char/6648-1_xin.in: New.
6058 * 27_io/objects/char/6648-2_xin.cc: New.
6059 * 27_io/objects/char/6648-2_xin.in: New.
6060 * 27_io/objects/char/7744_xin.cc: New.
6061 * 27_io/objects/char/7744_xin.in: New.
6062 * 27_io/objects/wchar_t/1.cc: New.
6063 * 27_io/types/1.cc: New.
6064 * 27_io/types/2.cc: New.
6065 * data/filebuf_members-1.tst: New.
6066 * data/filebuf_members-1.txt: New.
6067 * data/filebuf_virtuals-1.tst: New.
6068 * data/filebuf_virtuals-1.txt: New.
6069 * data/filebuf_virtuals-2.tst: New.
6070 * data/filebuf_virtuals-3.tst: New.
6071 * data/ifstream_members-1.tst: New.
6072 * data/ifstream_members-1.txt: New.
6073 * data/ios_base_members_static-1.tst: New.
6074 * data/istream_extractor_other-1.tst: New.
6075 * data/istream_extractor_other-1.txt: New.
6076 * data/istream_extractor_other-2.tst: New.
6077 * data/istream_seeks-1.tst: New.
6078 * data/istream_seeks-1.txt: New.
6079 * data/istream_seeks-2.tst: New.
6080 * data/istream_seeks-3.tst: New.
6081 * data/istream_unformatted-1.tst: New.
6082 * data/istream_unformatted-1.txt: New.
6083 * data/ofstream_members-1.tst: New.
6084 * data/ostream_inserter_char-1.tst: New.
6085 * data/ostream_inserter_char-1.txt: New.
6086 * data/ostream_inserter_other-1.tst: New.
6087 * data/ostream_inserter_other-2.tst: New.
6088 * data/ostream_seeks-1.tst: New.
6090 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
6092 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
6093 requirement that __mode must be strict input or output.
6095 * include/std/std_streambuf.h (basic_streambuf::setp): Set
6098 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
6099 output string shouldn't core.
6100 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
6102 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
6104 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
6107 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
6109 * testsuite/data: New directory.
6110 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
6111 to copy files from the testsuite data directory.
6112 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
6113 testfiles containing _xin, which now means this is an interactive
6114 test and should be run with the interactive dejagnu hooks.
6115 * testsuite/Makefile.am: Remove testsuite_* files.
6116 * testsuite/Makefile.in: Regenerate.
6118 2003-04-09 Zack Weinberg <zack@codesourcery.com>
6120 * docs/html/install.html: Document complete list of locales
6121 required by test suite. Document procedure for installing
6122 said locales under Debian. Solicit instructions for other
6125 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
6127 * include/bits/sstream.tcc (overflow): Make sure operands of min
6128 and max have the same type.
6130 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
6133 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
6136 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
6138 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
6139 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6140 Don't set _M_out_end.
6141 (basic_filebuf::overflow): Replace _M_out_buf_size() with
6142 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
6143 * include/bits/sstream.tcc (basic_stringbuf::overflow):
6144 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
6145 * include/bits/streambuf.tcc (basic_streambuf::sputc):
6146 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
6147 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
6148 _M_out_end - _M_out_cur.
6149 (__copy_streambufs): Likewise.
6150 * include/std/std_fstream.h (_M_set_determinate): Set
6153 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
6155 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
6156 _M_convert_to_external, _M_really_overflow, seekoff): Fix
6157 test for synced buffer.
6158 * include/std/std_fstream.h (sync): Likewise.
6159 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6160 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
6162 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
6164 * include/std/std_sstream.h (basic_istringstream): Adjust
6166 (basic_ostringstream): Same.
6167 (basic_stringstream): Same.
6168 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
6169 (basic_ofstream): Same.
6170 (basic_fstream): Same.
6171 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
6172 that does not call init.
6173 * include/std/std_istream.h (basic_istream): Same.
6174 (basic_iostream): Construct istream, ostream uninitialized, use
6175 init to initialize just once. Add protected ctor that does not
6178 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
6179 Nathan Myers <ncm@cantrip.org>
6182 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
6184 (basic_filebuf<>::showmanyc): Use the information provided
6185 by codecvt and __basic_file<>::showmanyc_helper to implement
6186 a non-trivial showmanyc.
6187 * config/io/basic_file_stdio.h
6188 (__basic_file<>::showmanyc_helper): New, declare.
6189 * config/io/basic_file_stdio.cc
6190 (__basic_file<>::showmanyc_helper): Define.
6191 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
6192 (__basic_file<char>::open): Don't call fcntl().
6193 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
6194 GLIBCPP_CHECK_POLL): New macros.
6195 * configure.in: Call here.
6196 * acconfig.h: Add #undefs for the corresponding symbols.
6197 * aclocal.m4: Regenerate.
6198 * configure: Regenerate.
6199 * config.h.in: Regenerate.
6201 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
6203 * config/linker-map.gnu: Remove string export restrictions.
6205 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
6207 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
6208 find_first_of, find_last_of and find_last_not_of tests.
6209 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
6210 tests here, new file.
6211 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
6212 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
6213 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
6214 wchar_t find_first_of tests here, new file.
6215 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
6217 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
6219 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
6220 wchar_t find_last_of tests here.
6221 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
6222 wchar_t find_last_not_of tests here.
6224 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
6226 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
6227 Correct return value.
6229 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
6232 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
6233 * include/std/std_complex.h (norm): Use faster,
6234 less accurate computation for builtin float types under --fast-math.
6236 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
6238 * testsuite/testsuite_hooks.h: Fix warning nits.
6240 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
6242 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
6243 Only .set mips2 for the o32 ABI.
6245 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
6247 * testsuite/21_strings/char_traits/requirements/char/1.cc:
6248 Test char not wchar_t.
6250 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
6252 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
6253 Correct size, taking into account sizeof(wchar_t).
6255 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
6257 Reshuffle 21_strings testsuite.
6258 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
6259 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
6260 element_access.cc, operations.cc, char_traits_requirements.cc,
6261 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
6262 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
6263 wchar_t tests as follows.
6264 * 21_strings/basic_string/append/char/1.cc: New.
6265 * 21_strings/basic_string/append/wchar_t/1.cc: New.
6266 * 21_strings/basic_string/assign/char/1.cc: New.
6267 * 21_strings/basic_string/assign/char/2.cc: New.
6268 * 21_strings/basic_string/assign/char/3.cc: New.
6269 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
6270 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
6271 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
6272 * 21_strings/basic_string/capacity/1.cc: New.
6273 * 21_strings/basic_string/capacity/char/1.cc: New.
6274 * 21_strings/basic_string/capacity/char/2.cc: New.
6275 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
6276 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
6277 * 21_strings/basic_string/compare/char/1.cc: New.
6278 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
6279 * 21_strings/basic_string/cons/char/1.cc: New.
6280 * 21_strings/basic_string/cons/char/2.cc: New.
6281 * 21_strings/basic_string/cons/char/3.cc: New.
6282 * 21_strings/basic_string/cons/char/4.cc: New.
6283 * 21_strings/basic_string/cons/char/5.cc: New.
6284 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
6285 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
6286 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
6287 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
6288 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
6289 * 21_strings/basic_string/element_access/char/1.cc: New.
6290 * 21_strings/basic_string/element_access/char/2.cc: New.
6291 * 21_strings/basic_string/element_access/char/3.cc: New.
6292 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
6293 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
6294 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
6295 * 21_strings/basic_string/find/char/1.cc: New.
6296 * 21_strings/basic_string/find/wchar_t/1.cc: New.
6297 * 21_strings/basic_string/insert/char/1.cc: New.
6298 * 21_strings/basic_string/insert/char/2.cc: New.
6299 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
6300 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
6301 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
6302 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
6303 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
6304 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
6305 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
6306 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
6307 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
6308 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
6309 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
6310 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
6311 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
6312 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
6313 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
6314 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
6315 * 21_strings/basic_string/operators/char/1.cc: New.
6316 * 21_strings/basic_string/operators/char/2.cc: New.
6317 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
6318 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
6319 * 21_strings/basic_string/replace/char/1.cc: New.
6320 * 21_strings/basic_string/replace/char/2.cc: New.
6321 * 21_strings/basic_string/replace/char/3.cc: New.
6322 * 21_strings/basic_string/replace/char/4.cc: New.
6323 * 21_strings/basic_string/replace/char/5.cc: New.
6324 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
6325 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
6326 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
6327 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
6328 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
6329 * 21_strings/basic_string/rfind/char/1.cc: New.
6330 * 21_strings/basic_string/rfind/char/2.cc: New.
6331 * 21_strings/basic_string/rfind/char/3.cc: New.
6332 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
6333 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
6334 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
6335 * 21_strings/basic_string/substr/char/1.cc: New.
6336 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
6337 * 21_strings/c_strings/char/1.cc: New.
6338 * 21_strings/c_strings/char/2.cc: New.
6339 * 21_strings/c_strings/wchar_t/1.cc: New.
6340 * 21_strings/c_strings/wchar_t/2.cc: New.
6341 * 21_strings/char_traits/requirements/char/1.cc: New.
6342 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
6343 * 21_strings/char_traits/typedefs/char/1.cc: New.
6345 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
6346 Petur Runolfsson <peturr02@ru.is>
6349 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
6350 basic_filebuf<wchar_t>::_M_underflow_common):
6351 if (gptr() < egptr()) return *gptr().
6352 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
6354 * testsuite/27_io/filebuf_members.cc (test_04): Minor
6355 changes: unlink fifo before making it, fix spelling error.
6357 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
6359 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
6360 * testsuite/Makefile.in: Regenerate.
6361 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
6364 2003-03-17 Petur Runolfsson <peturr02@ru.is>
6367 * include/bits/fstream.tcc (basic_filebuf::close):
6368 Always close file, even when write fails.
6369 * testsuite/27_io/filebuf_members.cc (test_07): New test.
6371 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
6373 * libsupc++/Makefile.am (C_COMPILE): Remove.
6374 (LTCOMPILE): Likewise.
6375 * libsupc++/Makefile.in: Regenerate.
6377 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
6379 * testsuite/23_containers/bitset_members.cc: Add test variable.
6380 * testsuite/23_containers/map_insert.cc: Same.
6381 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
6382 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
6383 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
6384 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
6385 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
6386 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
6387 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
6388 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
6389 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
6390 * testsuite/27_io/istream_exception.cc: Same.
6391 * testsuite/27_io/filebuf_virtuals.cc: Same.
6392 * testsuite/27_io/stringbuf_virtuals.cc: Same.
6393 * testsuite/27_io/ostream_inserter_arith.cc: Same.
6394 * testsuite/26_numerics/valarray_operators.cc: Same.
6395 * testsuite/26_numerics/slice.cc: Same.
6396 * testsuite/26_numerics/slice_array_assignment.cc: Same.
6397 * testsuite/24_iterators/istream_iterator.cc: Same.
6398 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
6400 2003-03-14 Petur Runolfsson <peturr02@ru.is>
6404 * config/locale/generic/ctype_members.cc,
6405 * config/locale/gnu/ctype_members.cc
6406 (ctype<wchar_t>::do_widen(char)): Cast argument to
6407 unsigned char before passing to btowc.
6408 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
6409 Convert characters with btowc instead of mbsrtowcs.
6410 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
6412 Convert characters with wctob instead of wcsrtombs.
6413 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
6414 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
6415 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
6417 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
6419 * include/stdc++.h: New.
6420 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
6421 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
6422 * include/Makefile.in: Regenerate.
6423 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
6424 (--cxxflags): Put -g -O2 here.
6425 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
6427 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
6429 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
6430 missing named locale.
6432 2003-03-14 Andreas Schwab <schwab@suse.de>
6434 * configure.in: Only append to makefiles that are newly created to
6435 avoid multiple multi-do/multi-clean rules.
6436 * configure: Rebuilt.
6438 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
6440 * docs/html/configopts.html, docs/html/documentation.html,
6441 docs/html/explanations.html, docs/html/install.html,
6442 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
6443 invalid XHTML and make page header style consistent.
6445 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
6447 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
6448 * docs/html/faq/index.txt: Regenerate.
6449 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
6451 2003-03-12 Andreas Schwab <schwab@suse.de>
6453 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
6454 glibcpp_toolexeclibdir.
6455 * aclocal.m4, configure: Rebuilt.
6457 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
6459 * docs/html/faq/index.html: Update text about location of headers.
6460 * docs/html/faq/index.txt: Regenerate.
6462 2003-03-11 Carlo Wood <carlo@alinoe.com>
6464 * include/bits/demangle.h: Prepend accessors of
6465 class qualifier with 'get_' in order to fix warnings
6466 when compiling with -Wshadow.
6468 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
6470 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
6472 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
6474 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
6475 report lack of setenv().
6477 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6479 * config/io/basic_file_stdio.cc: include <unistd.h>.
6481 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6482 Nathan Myers <ncm@cantrip.org>
6485 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
6486 seekoff, seekpos): Add a boolean parameter __stdio.
6487 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
6488 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
6489 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
6491 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
6492 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
6493 * include/std/std_fstream.h (sync): Likewise.
6494 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
6495 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
6496 libstdc++/8399 commit involving isatty(0).
6497 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
6498 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
6499 * configure.in: Remove call.
6500 * aclocal.m4: Regenerate.
6501 * config.h.in: Regenerate.
6502 * configure: Regenerate.
6503 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
6505 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6508 * include/bits/fstream.tcc (overflow): don't write EOF to file.
6509 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
6511 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6514 * include/bits/basic_ios.h (_M_setstate): New.
6515 * include/bits/ostream.tcc (operator<<): Use it.
6516 * include/bits/istream.tcc (operator>>): Use it.
6517 * include/std/std_ostream.h (operator<<): Make friends.
6518 * include/std/std_istream.h (operator>>): Make friends.
6519 * testsuite/27_io/ostream_exception.cc,
6520 testsuite/27_io/istream_exception.cc: New tests.
6522 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
6524 * include/bits/locale_facets.tcc: Fix typo.
6526 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
6528 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
6530 * config/locale/generic/c_locale.cc
6531 (locale::facet::_S_create_c_locale): Throw runtime exception when
6532 unsupported language is specified.
6533 * testsuite/testsuite_hooks.h
6534 (run_test_wrapped_generic_locale_exception_catcher): New function.
6535 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
6536 Suppress runtime exception thrown by generic implementation.
6537 (run_tests_wrapped_env): Likewise.
6538 (run_test_wrapped_generic_locale_exception_catcher): New function.
6539 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
6540 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
6541 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
6542 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
6543 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
6544 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
6545 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
6546 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
6547 * testsuite/22_locale/facet/2.cc: New test wrap.
6548 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
6549 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
6550 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
6551 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
6552 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
6553 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
6554 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
6555 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
6556 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
6557 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
6558 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
6559 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
6560 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
6561 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
6562 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
6563 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
6564 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
6565 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
6566 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
6567 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
6568 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
6569 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
6570 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
6571 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
6572 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
6573 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
6574 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
6575 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
6576 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
6577 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
6578 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
6579 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
6580 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
6581 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
6582 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
6583 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
6584 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
6585 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
6586 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
6587 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
6588 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
6589 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
6590 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
6591 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
6592 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
6593 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
6594 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
6595 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
6596 * testsuite/27_io/ios_members.cc: New test wrap.
6597 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
6599 * testsuite/27_io/streambuf_members.cc: New test wrap.
6600 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
6602 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
6603 Petur Runolfsson <peturr02@ru.is>
6606 * include/bits/streambuf.tcc (__copy_streambufs): Use
6607 sgetn-sputn only when sputn cannot fail, otherwise fall back
6608 to safe snextc-sputc.
6609 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
6611 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6613 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
6614 locale cache for truename and falsename.
6616 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6618 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
6619 _M_word_size initialization.
6621 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6623 * include/bits/fstream.tcc (_M_convert_to_external):
6624 Set __elen to zero if codecvt::out eventually fails.
6626 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6629 * include/bits/fstream.tcc (_M_really_overflow): Check
6630 for _M_convert_to_external possible failures.
6631 * include/std/std_fstream.h (sync): Check _M_really_overflow
6632 return value and return -1 in case of failure.
6633 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
6635 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6638 * include/bits/istream.tcc (operator>>(_CharT*),
6639 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
6640 * testsuite/27_io/stringstream.cc (test02): Add.
6642 * include/bits/istream.tcc (operator>>(_CharT*)):
6643 Assign a char_type to *__s.
6645 2003-03-07 Petur Runolfsson <peturr02@ru.is>
6648 * include/bits/locale_facets.tcc
6649 (collate::do_compare, collate::do_transform):
6650 Handle nul characters in input.
6651 * testsuite/22_locale/collate/compare/char/3.cc: New test.
6652 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
6653 * testsuite/22_locale/collate/transform/char/3.cc: New test.
6654 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
6656 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
6658 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
6660 * testsuite/27_io/ostream_fail.cc: New test.
6662 2003-03-07 Matthias Klose <doko@debian.org>
6664 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
6665 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
6666 * Makefile.in: Regenerate.
6667 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
6669 AM_MAKEFLAGS: Pass gxx_include_dir.
6670 * libsupc++/Makefile.in: Regenerate.
6672 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
6674 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
6675 mask. Test setting small-numbered pword and iword slots. Test
6676 behavior at limit of numeric_limits::max. Check that values are
6677 still good after failures.
6679 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
6681 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
6682 (ios_base::ios_base): Set _M_word, _M_word_size.
6683 (ios_base::~ios_base): Remove redundant test.
6684 * testsuite/27_io/ios_base_storage.cc (test03): New.
6686 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
6688 * src/strstream.cc, include/bits/basic_string.tcc: Remove
6689 incorrect whitespace added in my previous change.
6691 2003-03-05 Carlo Wood <carlo@alinoe.com>
6693 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
6694 _S_initialized() in order to allow debugging libraries to detect
6695 when the std streams are initialized from an overloaded operator
6698 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
6700 * libsupc++/demangle.h: Move to..
6701 * include/bits/demangle.h: ...here.
6702 * src/demangle.cc: Adjust include.
6703 * include/Makefile.am (bits_headers): Add.
6704 * include/Makefile.in: Regenerate.
6706 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
6708 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
6710 * config/linker-map.gnu: Filter typeinfo and vtable info.
6712 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
6714 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
6715 new failure. Throw exception if badbit and exception mask when ix
6716 >= numeric_limits<int>::max().
6718 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
6720 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
6721 min and max have the same type.
6722 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
6724 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
6726 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
6727 * include/Makefile.in: Regenerate.
6729 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
6731 * testsuite/abi_check.cc (report_symbol_info): Add version info.
6733 * config/linker-map.gnu: Hide more stuff.
6734 * include/Makefile.am: Cleanups.
6735 * include/Makefile.in: Regenerate.
6737 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
6739 * config/locale/generic/messages_members.h (messages::messages):
6740 Remove name from unused parameter.
6742 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
6744 * src/Makefile.am (sources): Add demangle.cc.
6747 * src/Makefile.in: Regenerate.
6748 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
6749 * libsupc++/Makefile.in: Regenerate.
6751 * testsuite/testsuite_hooks.h
6752 (__gnu_cxx_test::verify_demangle): New.
6753 * testsuite/testsuite_hooks.cc: Define.
6755 2003-02-27 Carlo Wood <carlo@alinoe.com>
6757 * src/demangle.cc: New.
6758 * libsupc++/demangle.h: New.
6760 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
6761 Carlo Wood <carlo@alinoe.com>
6763 * testsuite/demangle/abi_examples/01.cc: New.
6764 * testsuite/demangle/abi_examples/02.cc: New.
6765 * testsuite/demangle/abi_examples/03.cc: New.
6766 * testsuite/demangle/abi_examples/04.cc: New.
6767 * testsuite/demangle/abi_examples/05.cc: New.
6768 * testsuite/demangle/abi_examples/06.cc: New.
6769 * testsuite/demangle/abi_examples/07.cc: New.
6770 * testsuite/demangle/abi_examples/08.cc: New.
6771 * testsuite/demangle/abi_examples/09.cc: New.
6772 * testsuite/demangle/abi_examples/10.cc: New.
6773 * testsuite/demangle/abi_examples/11.cc: New.
6774 * testsuite/demangle/abi_examples/12.cc: New.
6775 * testsuite/demangle/abi_examples/13.cc: New.
6776 * testsuite/demangle/abi_examples/14.cc: New.
6777 * testsuite/demangle/abi_examples/15.cc: New.
6778 * testsuite/demangle/abi_examples/16.cc: New.
6779 * testsuite/demangle/abi_examples/17.cc: New.
6780 * testsuite/demangle/abi_examples/18.cc: New.
6781 * testsuite/demangle/abi_examples/19.cc: New.
6782 * testsuite/demangle/abi_examples/20.cc: New.
6783 * testsuite/demangle/abi_examples/21.cc: New.
6784 * testsuite/demangle/abi_examples/22.cc: New.
6785 * testsuite/demangle/abi_examples/23.cc: New.
6786 * testsuite/demangle/abi_examples/24.cc: New.
6787 * testsuite/demangle/abi_examples/25.cc: New.
6788 * testsuite/demangle/abi_examples/26.cc: New.
6789 * testsuite/demangle/abi_text/01.cc: New.
6790 * testsuite/demangle/abi_text/02.cc: New.
6791 * testsuite/demangle/abi_text/03.cc: New.
6792 * testsuite/demangle/abi_text/04.cc: New.
6793 * testsuite/demangle/abi_text/05.cc: New.
6794 * testsuite/demangle/abi_text/06.cc: New.
6795 * testsuite/demangle/abi_text/07.cc: New.
6796 * testsuite/demangle/abi_text/08.cc: New.
6797 * testsuite/demangle/abi_text/09.cc: New.
6798 * testsuite/demangle/abi_text/10.cc: New.
6799 * testsuite/demangle/abi_text/11.cc: New.
6800 * testsuite/demangle/abi_text/12.cc: New.
6801 * testsuite/demangle/abi_text/13.cc: New.
6802 * testsuite/demangle/abi_text/14.cc: New.
6803 * testsuite/demangle/regression/3111-1.cc: New.
6804 * testsuite/demangle/regression/3111-2.cc: New.
6805 * testsuite/demangle/regression/7986-01.cc: New.
6806 * testsuite/demangle/regression/7986-02.cc: New.
6807 * testsuite/demangle/regression/7986-03.cc: New.
6808 * testsuite/demangle/regression/7986-04.cc: New.
6809 * testsuite/demangle/regression/7986-05.cc: New.
6810 * testsuite/demangle/regression/7986-06.cc: New.
6811 * testsuite/demangle/regression/7986-07.cc: New.
6812 * testsuite/demangle/regression/7986-08.cc: New.
6813 * testsuite/demangle/regression/7986-09.cc: New.
6814 * testsuite/demangle/regression/7986-10.cc: New.
6815 * testsuite/demangle/regression/7986-11.cc: New.
6816 * testsuite/demangle/regression/7986-12.cc: New.
6817 * testsuite/demangle/regression/7986.cc: New.
6818 * testsuite/demangle/regression/8897.cc: New.
6819 * testsuite/demangle/regression/cw-01.cc: New.
6820 * testsuite/demangle/regression/cw-02.cc: New.
6821 * testsuite/demangle/regression/cw-03.cc: New.
6822 * testsuite/demangle/regression/cw-04.cc: New.
6823 * testsuite/demangle/regression/cw-05.cc: New.
6824 * testsuite/demangle/regression/cw-06.cc: New.
6825 * testsuite/demangle/regression/cw-07.cc: New.
6826 * testsuite/demangle/regression/cw-08.cc: New.
6827 * testsuite/demangle/regression/cw-09.cc: New.
6828 * testsuite/demangle/regression/cw-10.cc: New.
6829 * testsuite/demangle/regression/cw-11.cc: New.
6830 * testsuite/demangle/regression/cw-12.cc: New.
6831 * testsuite/demangle/regression/cw-13.cc: New.
6832 * testsuite/demangle/regression/cw-14.cc: New.
6833 * testsuite/demangle/regression/old.cc: New.
6835 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
6837 * docs/doxygen/Intro.3: Update with new (proper) names.
6838 * docs/doxygen/TODO: Update.
6839 * docs/doxygen/run_doxygen: More comments, fix up man pages.
6840 Fake entries for standard typedefs.
6841 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
6842 * docs/html/documentation.html: Top-level man page is now called
6844 * include/std/std_limits.h: Doxygenate.
6846 2003-02-25 Scott Snyder <snyder@fnal.gov>
6849 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
6850 Correct documentation.
6851 * include/bits/stl_multimap.h (lower_bound, upper_bound,
6852 equal_range): Likewise.
6854 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
6858 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
6859 __bump is true (uflow), always increment the read pointer
6860 (_M_in_cur) before returning successfully.
6861 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
6863 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
6864 Nathan Myers <ncm@cantrip.org>
6866 PR libstdc++/9404, PR libstdc++/9701 (partial)
6867 (aka pptr == epptr implies overflow)
6868 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6869 Consistently, _M_out_end points to the end of the buffer just
6871 (overflow): Tweak to use _M_out_buf_size().
6872 (_M_convert_to_external): The role of the old _M_out_end is
6873 now played by _M_out_lim.
6874 (_M_really_overflow): Likewise.
6875 (seekoff): Likewise.
6876 (setbuf): _M_out_end points to the end of the external buffer.
6877 * include/bits/sstream.tcc (overflow): Rewrote, taking into
6878 account the resolution of DR 169 (TC).
6879 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
6880 (seekpos): Use _M_string.capacity(); tweak.
6881 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
6882 * include/std/std_fstream.h (sync): The role of the old
6883 _M_out_end is now played by _M_out_lim.
6884 (_M_set_indeterminate): Use _M_set_determinate.
6885 (_M_set_determinate): _M_out_end is now _M_out_lim.
6886 (_M_is_indeterminate): Likewise.
6887 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
6888 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
6889 which have the information readily available as _M_string.capacity();
6890 for ate and app modes, pass the string size to _M_really_sync.
6891 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
6892 point to the end of the buffer (i.e., epptr) and to the string end,
6894 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
6895 which points to the right limit of the used put area.
6896 (_M_out_cur_move): The role of the old _M_out_end is now played
6898 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
6899 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
6901 (basic_streambuf()): Initialize _M_out_lim too.
6902 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
6903 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
6904 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
6906 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
6908 * testsuite/27_io/ios_base_storage.cc (main): Call
6911 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
6913 * include/bits/locale_facets.tcc (_M_convert_float): Replace
6914 numpunct facet accesses with data from __locale_cache.
6916 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
6918 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
6919 * docs/html/faq/index.txt: Regenerate.
6921 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
6923 * config/linker-map.gnu: Also export locking symbols needed for the
6924 generic atomicity.h case.
6926 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
6928 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6930 * configure: Rebuilt.
6932 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
6934 * include/bits/sstream.tcc (overflow): According to
6935 27.7.1.3, p5, actual output is performed by sputc(c).
6937 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
6940 * include/bits/stl_alloc.h: Remove all traces of assert().
6942 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
6944 * include/std/std_sstream.h (str()): the size of the
6945 current string may be different from the initial one
6946 whenever _M_out_end > _M_out_beg.
6947 * testsuite/27_io/stringbuf_members.cc (test07): Add.
6949 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
6952 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
6954 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
6956 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
6957 * testsuite/27_io/ios_members.cc (test03): New.
6959 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
6961 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
6962 (basic_ios::_M_cache_facets): Move into above.
6963 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
6965 (basic_ios::imbue): Force locale cache to be built.
6966 (basic_ios::_M_init): Create and initialize locale cache.
6967 * include/bits/ios_base.h (__locale_cache_base): Declare.
6968 (ios_base::_M_locale_cache): New.
6969 (ios_base::_M_cache): Define.
6970 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
6972 (__locale_cache_base,__locale_cache<_CharT>): New classes.
6973 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
6974 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
6975 cache literal string, grouping flag, thousands separator.
6976 (__locale_cache<_CharT>::__locale_cache): New.
6977 (__locale_cache<_CharT>::_M_init): New.
6978 * src/ios.cc: Clear _M_locale_cache in constructor.
6979 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
6982 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6984 * src/locale-inst.cc: Do not include <cassert>.
6985 * src/locale.cc: Likewise.
6987 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6990 * include/std/std_fstream.h: Declare underflow and uflow
6991 specializations, change generic definitions to do nothing.
6992 * src/fstream.cc: Add underflow and uflow specializations.
6994 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6997 * include/bits/fstream.tcc (_M_convert_to_external):
6998 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
6999 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
7001 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
7003 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
7004 * include/bits/basic_ios.tcc: Guard use of extern template.
7005 * include/std/std_iomanip.h: Same.
7006 * include/bits/streambuf.tcc: Same.
7007 * include/bits/stl_alloc.h: Same.
7008 * include/bits/locale_facets.tcc: Same.
7009 * include/bits/ostream.tcc: Same.
7010 * include/bits/istream.tcc: Same.
7011 * include/bits/fstream.tcc: Same.
7012 * include/bits/basic_string.tcc: Same.
7014 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
7016 * include/bits/ostream.tcc (sentry::sentry): Improve
7017 performance-wise the fix for libstdc++/9563.
7019 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
7021 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
7022 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
7023 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
7024 when we don't have static mutex initialization.
7025 (__exchange_and_add): Use _Atomic_add_mutex_once.
7026 * src/misc-inst.cc: Definitions of all the above.
7028 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
7031 * include/bits/ostream.tcc (sentry::sentry): Check
7032 the state of the stream after the preparation.
7033 * testsuite/27_io/ostream_sentry.cc (test02): Add.
7035 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
7037 * include/Makefile.am (stamp-std-precompile): Add rule.
7038 * include/Makefile.in: Regenerated.
7040 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
7041 Benjamin Kosnik <benjamin@redhat.com>
7043 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
7044 Add indexes into this array.
7045 (__num_base::_S_atoms): To _S_atoms_in.
7046 (num_put::_M_insert): Rename to _M_pad.
7047 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
7048 (num_put::_M_widen_int): Rename to _M_group_int.
7049 (num_put::_M_widen_float): Rename to _M_group_float.
7050 * include/bits/locale_facets.tcc (__int_to_char): New inline
7051 function and adapter functions.
7052 (num_put::_M_group_int): Streamline.
7053 (num_put::_M_group_float): Streamline.
7054 (num_put::_M_convert_int): Remove unused parameter names. Choose
7055 large enough buffer for text. Use __int_to_char instead of
7056 __convert_from_v. Formatted text is now at the end of the buffer.
7057 (num_put::_M_convert_float): Preliminary fixups.
7058 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
7059 (__int_to_char<unsigned long long>): Same.
7060 (__int_to_char<char, unsigned long>): New.
7061 (__int_to_char<char, unsigned long long>): New.
7062 (__int_to_char<wchar_t, unsigned long>): New.
7063 (__int_to_char<wchar_t, unsigned long long>): New.
7065 2003-02-11 Scott Snyder <snyder@fnal.gov>
7068 * include/bits/fstream.tcc (seekoff): Avoid operator+
7071 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
7074 * include/ext/stdio_filebuf.h
7075 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
7076 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
7077 Change to take a __size parameter of type size_t, not
7078 of type (template parameter dependent) int_type.
7079 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
7080 size vars to size_t.
7081 * testsuite/ext/stdio_filebuf.cc: Add.
7083 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
7084 Petur Runolfsson <peturr02@ru.is>
7087 * include/bits/streambuf.tcc (__copy_streambufs):
7088 Don't conditionalize the copy to __testput.
7089 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
7091 2002-02-11 DJ Delorie <dj@redhat.com>
7093 * acinclude.m4: Check for native targets that can't link at
7094 this point in the build.
7095 * aclocal.m4: Regenerate.
7096 * configure: Regenerate.
7098 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7100 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
7102 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
7105 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
7107 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
7108 unsigned char platforms.
7110 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
7113 * include/std/std_istream.h
7114 (basic_istream::sentry::operator bool()): Make const.
7115 * include/std/std_ostream.h
7116 (basic_ostream::sentry::operator bool()): Likewise.
7117 * testsuite/27_io/istream_sentry.cc (test03): Add.
7118 * testsuite/27_io/ostream_sentry.cc: Add.
7120 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
7123 Implement resolution of DR 231 (Ready)
7124 * include/bits/locale_facets.h (__num_base::_S_format_float):
7125 Change declaration: return void, remove __prec parameter.
7126 * src/locale.cc (__num_base::_S_format_float): Implement
7127 resolution of DR 231.
7128 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
7129 Tweak uses. Check for negative precision.
7130 * testsuite/22_locale/num_put/put/char/6.cc: Add
7131 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
7133 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
7135 * config/io/basic_file_libio.h: Fixups.
7136 * config/io/c_io_libio.h: Same.
7137 * libio/Makefile.am: Same.
7138 * libio/Makefile.in: Regenerated.
7140 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
7142 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
7143 Explicitly use the "C" locale.
7144 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
7146 2003-02-06 Petur Runolfsson <peturr02@ru.is>
7150 PR libstdc++/9028 (partial)
7156 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
7157 codecvt<wchar_t, char, mbstate_t>::do_length,
7158 codecvt<wchar_t, char, mbstate_t>::do_max_length):
7160 * config/locale/generic/codecvt_members.cc: ...here.
7161 * config/locale/gnu/codecvt_members.cc: ...and here.
7163 * config/locale/generic/codecvt_members.cc,
7164 * config/locale/gnu/codecvt_members.cc
7165 (codecvt<wchar_t, char, mbstate_t>::do_encoding
7166 codecvt<wchar_t, char, mbstate_t>::do_in,
7167 codecvt<wchar_t, char, mbstate_t>::do_length,
7168 codecvt<wchar_t, char, mbstate_t>::do_max_length,
7169 codecvt<wchar_t, char, mbstate_t>::do_out):
7170 New implementation that handles stateless encodings,
7173 * config/locale/generic/codecvt_members.cc,
7174 * config/locale/gnu/codecvt_members.cc,
7175 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
7176 * include/bits/codecvt.h,
7178 (codecvt::length, codecvt::do_length):
7179 Change type of first argument of length and do_length from
7180 'const state_type&' to 'state_type&' according to DR 75.
7182 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
7183 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
7184 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
7185 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
7186 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
7187 Cleanup and check for correct return value from encoding
7189 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
7190 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
7191 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
7192 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
7193 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
7194 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
7195 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
7196 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
7197 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
7198 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
7199 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
7200 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
7201 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
7202 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
7203 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
7204 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
7205 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
7206 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
7207 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
7208 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
7209 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
7210 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
7211 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
7212 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
7213 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
7214 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
7215 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
7216 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
7217 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
7218 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
7219 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
7220 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
7221 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
7222 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
7223 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
7224 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
7225 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
7227 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
7229 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
7230 (money_put::do_put): Same.
7232 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
7234 * include/bits/ios_base.h (ios_base): Document reserved storage.
7236 * include/bits/locale_facets.h: (struct __pad): Comment on
7238 (__verify_grouping): Same.
7239 (__add_grouping): Same.
7240 * include/bits/locale_facets.tcc (__verify_grouping): Move
7241 comments to declaration.
7242 (__add_grouping): Same.
7244 * include/bits/locale_facets.tcc:
7245 (__write<_CharT, _OutIter>): New function.
7246 (__write<_CharT>): New function specialization.
7247 (num_put::_M_insert): Remove explicit loop over iterator. Use
7249 (num_put::_M_widen_float): Remove __basefield.
7250 (num_put::_M_widen_int): Move __basefield to within grouping block.
7252 * include/bits/streambuf_iterator.h: Include <streambuf>.
7253 (ostreambuf_iterator::_M_put): Add.
7255 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
7257 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
7259 2003-02-04 Nathan Myers <ncm@cantrip.org>
7261 * testsuite/25_algorithms/min_max.cc (test02): Add.
7263 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
7265 PR libstdc++/9439, PR libstdc++/9425
7266 * config/io/basic_file_stdio.cc
7267 (__basic_file<char>::seekoff, seekpos): Return -1L if
7269 * include/bits/fstream.tcc (basic_filebuf::seekoff):
7270 Check _M_file.seekoff return value; always return
7271 pos_type(off_type(-1)) in case of failure.
7272 (basic_filebuf::pbackfail): Check this->seekoff return
7273 value and return traits_type::eof() in case of failure.
7274 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
7276 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
7278 * include/std/std_ostream.h (ostream::_M_write): Declare.
7279 * ostream.tcc (ostream::_M_write): Define.
7280 (basic_ostream::write): Use it.
7281 (operator<<(basic_ostream, _CharT)): Ditto.
7282 (operator<<(basic_ostream, char)): Ditto.
7283 (operator<<(basic_ostream, _CharT*)): Ditto.
7284 (operator<<(basic_ostream, char*)): Ditto.
7285 (operator<<(basic_ostream, basic_string)): Ditto.
7287 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
7289 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
7291 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
7293 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
7294 add HTML comment about updating links if numbering changes.
7296 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
7299 * include/bits/streambuf.tcc (sputbackc): Access
7300 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
7301 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
7303 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
7306 * include/bits/fstream.tcc (open): If the 'ate' repositioning
7307 operation fails, calls close _and_ returns a null pointer
7308 to indicate failure (27.8.1.3,4).
7309 * testsuite/27_io/filebuf_members.cc (test_06): Add.
7311 2003-02-04 Petur Runolfsson <peturr02@ru.is>
7313 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
7315 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
7317 * docs/html/27_io/howto.html: New section on stdio_filebuf.
7318 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
7319 * docs/html/documentation.html: Regenerate.
7321 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
7323 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
7324 * docs/html/17_intro/porting.html: Regenerate.
7326 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
7327 Phil Edwards <pme@gcc.gnu.org>
7329 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
7330 numeric_limits for bits-per-word values.
7331 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
7332 Use __builtin_popcountl instead.
7333 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
7334 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
7335 Use __builtin_ctzl instead.
7336 (_S_bit_count, _S_first_one): Remove.
7337 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
7338 * src/Makefile.am (sources): Remove bitset.cc.
7339 * src/bitset.cc: Delete file.
7340 * src/Makefile.in: Regenerate.
7342 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
7344 PR libstdc++/9527, PR libstdc++/8713
7345 * docs/html/install.html: Mention glibc version requirement.
7346 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
7347 with 3.2.1+ (formatting bugfixes).
7348 * docs/html/faq/index.txt: Regenerate.
7350 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7353 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
7356 * include/bits/valarray_before.h (__not_equal_to): Use != instead
7359 * testsuite/26_numerics/valarray_operators.cc: New test.
7361 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
7363 * docs/html/faq/index.html: Correct link to libg++ information.
7364 * docs/html/faq/index.txt: Regenerated.
7366 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
7367 Benjamin Kosnik <bkoz@redhat.com>
7369 Const correctness issue:
7370 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
7371 * include/bits/locale_classes.h
7372 (locale::_Impl::_M_facets): Change type to const facet**.
7373 (locale::_Impl::_M_install_facet): Change declaration to
7375 (locale::facet::_M_references): Make mutable.
7376 (locale::facet::_M_add_reference): Declare const.
7377 (locale::facet::_M_remove_reference): Likewise.
7378 * include/bits/locale_facets.tcc
7379 (use_facet(const locale&)): Tweak for const facet** _M_facets.
7380 (has_facet(const locale&)): Likewise.
7382 (locale::facet::_M_add_reference): Adjust definition.
7383 (locale::facet::_M_remove_reference): Likewise.
7385 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
7386 const facet** _M_facets.
7387 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
7388 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
7389 (locale::_Impl::_M_install_facet): Adjust definition to take
7390 const facet* and for const facet** _M_facets.
7391 * testsuite/22_locale/locale/cons/8.cc: Add.
7393 2003-01-29 Mark Mitchell <mark@codesourcery.com>
7395 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
7396 Use __FLT_HAS_INIFINITY__ to initialize.
7397 (numeric_limits<float>::has_quiet_NaN): Likewise.
7398 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
7400 (numeric_limits<double>::has_quiet_NaN): Likewise.
7401 (numeric_limits<long double>::has_infinity): Use
7402 __LDBL_HAS_INIFINITY__ to initialize.
7403 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
7405 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
7408 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
7409 with bases which are very ambiguous.
7411 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
7413 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
7414 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
7415 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
7416 * src/Makefile.in: Regenerate.
7417 * libsupc++/Makefile.in: Regenerate.
7419 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
7421 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
7422 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
7423 version_specific_libs is enabled.
7424 * aclocal.m4, configure: Rebuilt.
7426 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
7428 * include/bits/valarray_meta.h: Remove, split into ...
7429 * include/bits/valarray_before.h: ... this, and ...
7430 * include/bits/valarray_after.h: ... this.
7431 * include/std/std_valarray.h: Adjust.
7432 * include/Makefile.am (bits_headers): Adjust.
7433 * include/Makefile.in: Regenerate.
7435 2003-01-24 Andreas Schwab <schwab@suse.de>
7437 * config/linker-map.gnu: Fix for size_t variance.
7439 2003-01-23 Petur Runolfsson <peturr02@ru.is>
7442 * include/std/std_streambuf.h
7443 (basic_streambuf::basic_streambuf,
7444 basic_streambuf::~basic_streambuf,
7445 basic_streambuf::getloc, basic_streambuf::imbue):
7446 Remove _M_buf_locale_init
7447 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
7448 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
7449 * testsuite/27_io/streambuf_members.cc (test08): Add.
7450 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
7452 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
7454 Revert include ordering.
7455 * config/locale/generic/c_locale.h: Add include guards.
7456 * config/locale/gnu/c_locale.h: Same.
7457 * include/bits/locale_classes.h: Remove cctype include.
7458 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
7459 * include/std/std_fstream.h: Remove streambuf include.
7460 * include/std/std_sstream.h: Remove streambuf include.
7462 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
7464 * configure.in (libtool_VERSION): To 6:0:0.
7465 * configure: Regenerated.
7466 * config/linker-map.gnu: Clean.
7468 * src/misc-inst.cc: Remove instantiations.
7470 * include/bits/stl_alloc.h (__malloc_alloc_template):
7472 (__default_alloc_template): To __pool_alloc.
7473 * src/stl-inst.cc: Same.
7474 * include/backward/alloc.h: Update.
7475 * testsuite/ext/allocators.cc: Update.
7477 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
7478 really try to remove these if possible.
7479 * src/locale.cc (std): Same.
7481 * testsuite/abi_check.cc (check_version): Add.
7483 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
7484 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
7485 Mark Mitchell <mark@codesourcery.com>
7488 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
7489 (basic_filebuf::underflow): Declare.
7492 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
7494 * include/bits/locale_facets.h: Move non-facet classes requiring
7496 * include/bits/locale_classes.h: New.
7497 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
7498 * include/bits/Makefile.in: Regenerate.
7500 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
7501 * config/locale/gnu/c_locale.h: ...here.
7502 * config/locale/generic/c_locale.h: Same.
7504 * include/bits/locale_facets.tcc: Move declarations to...
7505 * include/bits/locale_facets.h: ...here.
7506 * include/bits/basic_ios.h: Tweak includes accordingly.
7507 * include/std/std_sstream.h: Add streambuf include.
7508 * include/std/std_fstream.h: Ditto.
7509 * include/std/std_locale.h: Add locale_classes.h include.
7510 * include/std/std_iosfwd.h: Tweak.
7511 * src/concept-inst.cc: Add iterator include.
7513 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
7514 bits as unexported in the future.
7516 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
7518 Reshuffle 22_locale testsuite.
7519 * 22_locale/(codecvt.cc money_get.cc
7520 codecvt_members_char_char.cc money_get_members_char.cc
7521 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
7522 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
7523 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
7524 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
7525 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
7526 money_put_members_char.cc ctor_copy_dtor.cc
7527 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
7528 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
7529 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
7530 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
7531 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
7532 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
7533 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
7534 operators.cc ctype_widen_char.cc static_members.cc
7535 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
7536 global_templates.cc time_get_members_wchar_t.cc, members.cc,
7537 time_put.cc, messages_byname.cc, time_put_members_char.cc,
7538 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
7539 Split up into individual test cases...
7540 * 22_locale/codecvt/1.cc: New.
7541 * 22_locale/codecvt/2.cc: New.
7542 * 22_locale/codecvt/always_noconv/char/1.cc: New.
7543 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
7544 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
7545 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
7546 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
7547 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
7548 * 22_locale/codecvt/encoding/char/1.cc: New.
7549 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
7550 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
7551 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
7552 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
7553 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
7554 * 22_locale/codecvt/in/char/1.cc: New.
7555 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
7556 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
7557 * 22_locale/codecvt/in/wchar_t/1.cc: New.
7558 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
7559 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
7560 * 22_locale/codecvt/length/char/1.cc: New.
7561 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
7562 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
7563 * 22_locale/codecvt/length/wchar_t/1.cc: New.
7564 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
7565 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
7566 * 22_locale/codecvt/max_length/char/1.cc: New.
7567 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
7568 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
7569 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
7570 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
7571 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
7572 * 22_locale/codecvt/out/char/1.cc: New.
7573 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
7574 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
7575 * 22_locale/codecvt/out/wchar_t/1.cc: New.
7576 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
7577 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
7578 * 22_locale/codecvt/unicode/char.cc: New.
7579 * 22_locale/codecvt/unicode/wchar_t.cc: New.
7580 * 22_locale/codecvt/unshift/char/1.cc: New.
7581 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
7582 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
7583 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
7584 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
7585 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
7586 * 22_locale/collate/1.cc: New.
7587 * 22_locale/collate/2.cc: New.
7588 * 22_locale/collate/compare/char/1.cc: New.
7589 * 22_locale/collate/compare/char/2.cc: New.
7590 * 22_locale/collate/compare/char/wrapped_env.cc: New.
7591 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
7592 * 22_locale/collate/compare/wchar_t/1.cc: New.
7593 * 22_locale/collate/compare/wchar_t/2.cc: New.
7594 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
7595 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
7596 * 22_locale/collate/hash/char/1.cc: New.
7597 * 22_locale/collate/hash/char/2.cc: New.
7598 * 22_locale/collate/hash/char/wrapped_env.cc: New.
7599 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
7600 * 22_locale/collate/hash/wchar_t/1.cc: New.
7601 * 22_locale/collate/hash/wchar_t/2.cc: New.
7602 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
7603 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
7604 * 22_locale/collate/transform/char/2.cc: New.
7605 * 22_locale/collate/transform/char/wrapped_env.cc: New.
7606 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
7607 * 22_locale/collate/transform/wchar_t/2.cc: New.
7608 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
7609 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
7610 * 22_locale/collate_byname/1.cc: New.
7611 * 22_locale/ctype/1.cc: New.
7612 * 22_locale/ctype/2.cc: New.
7613 * 22_locale/ctype/cons/char/1.cc: New.
7614 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
7615 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
7616 * 22_locale/ctype/is/char/1.cc: New.
7617 * 22_locale/ctype/is/char/2.cc: New.
7618 * 22_locale/ctype/is/char/3.cc: New.
7619 * 22_locale/ctype/is/char/wrapped_env.cc: New.
7620 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
7621 * 22_locale/ctype/is/wchar_t/1.cc: New.
7622 * 22_locale/ctype/is/wchar_t/2.cc: New.
7623 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
7624 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
7625 * 22_locale/ctype/narrow/char/1.cc: New.
7626 * 22_locale/ctype/narrow/char/2.cc: New.
7627 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
7628 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
7629 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
7630 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
7631 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
7632 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
7633 * 22_locale/ctype/scan/char/1.cc: New.
7634 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
7635 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
7636 * 22_locale/ctype/scan/wchar_t/1.cc: New.
7637 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
7638 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
7639 * 22_locale/ctype/to/char/1.cc: New.
7640 * 22_locale/ctype/to/char/wrapped_env.cc: New.
7641 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
7642 * 22_locale/ctype/to/wchar_t/1.cc: New.
7643 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
7644 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
7645 * 22_locale/ctype/widen/char/1.cc: New.
7646 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
7647 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
7648 * 22_locale/ctype/widen/wchar_t/1.cc: New.
7649 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
7650 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
7651 * 22_locale/facet/1.cc: New.
7652 * 22_locale/facet/2.cc: New.
7653 * 22_locale/global_templates/1.cc: New.
7654 * 22_locale/locale/cons/1.cc: New.
7655 * 22_locale/locale/cons/2.cc: New.
7656 * 22_locale/locale/cons/3.cc: New.
7657 * 22_locale/locale/cons/4.cc: New.
7658 * 22_locale/locale/cons/5.cc: New.
7659 * 22_locale/locale/cons/6.cc: New.
7660 * 22_locale/locale/cons/7.cc: New.
7661 * 22_locale/locale/global_locale_objects/1.cc: New.
7662 * 22_locale/locale/global_locale_objects/2.cc: New.
7663 * 22_locale/locale/global_locale_objects/3.cc: New.
7664 * 22_locale/locale/operations/1.cc: New.
7665 * 22_locale/locale/operations/2.cc: New.
7666 * 22_locale/messages/1.cc: New.
7667 * 22_locale/messages/2.cc: New.
7668 * 22_locale/messages/members/char/1.cc: New.
7669 * 22_locale/messages/members/char/2.cc: New.
7670 * 22_locale/messages/members/char/3.cc: New.
7671 * 22_locale/messages/members/char/wrapped_env.cc: New.
7672 * 22_locale/messages/members/char/wrapped_locale.cc: New.
7673 * 22_locale/messages_byname/1.cc: New.
7674 * 22_locale/money_get/1.cc: New.
7675 * 22_locale/money_get/2.cc: New.
7676 * 22_locale/money_get/get/char/1.cc: New.
7677 * 22_locale/money_get/get/char/2.cc: New.
7678 * 22_locale/money_get/get/char/3.cc: New.
7679 * 22_locale/money_get/get/char/4.cc: New.
7680 * 22_locale/money_get/get/char/5.cc: New.
7681 * 22_locale/money_get/get/char/6.cc: New.
7682 * 22_locale/money_get/get/char/7.cc: New.
7683 * 22_locale/money_get/get/char/8.cc: New.
7684 * 22_locale/money_get/get/char/wrapped_env.cc: New.
7685 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
7686 * 22_locale/money_get/get/wchar_t/1.cc: New.
7687 * 22_locale/money_get/get/wchar_t/2.cc: New.
7688 * 22_locale/money_get/get/wchar_t/3.cc: New.
7689 * 22_locale/money_get/get/wchar_t/4.cc: New.
7690 * 22_locale/money_get/get/wchar_t/5.cc: New.
7691 * 22_locale/money_get/get/wchar_t/6.cc: New.
7692 * 22_locale/money_get/get/wchar_t/7.cc: New.
7693 * 22_locale/money_get/get/wchar_t/8.cc: New.
7694 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
7695 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
7696 * 22_locale/money_put/1.cc: New.
7697 * 22_locale/money_put/2.cc: New.
7698 * 22_locale/money_put/put/char/1.cc: New.
7699 * 22_locale/money_put/put/char/2.cc: New.
7700 * 22_locale/money_put/put/char/3.cc: New.
7701 * 22_locale/money_put/put/char/4.cc: New.
7702 * 22_locale/money_put/put/char/5.cc: New.
7703 * 22_locale/money_put/put/char/6.cc: New.
7704 * 22_locale/money_put/put/char/wrapped_env.cc: New.
7705 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
7706 * 22_locale/money_put/put/wchar_t/1.cc: New.
7707 * 22_locale/money_put/put/wchar_t/2.cc: New.
7708 * 22_locale/money_put/put/wchar_t/3.cc: New.
7709 * 22_locale/money_put/put/wchar_t/4.cc: New.
7710 * 22_locale/money_put/put/wchar_t/5.cc: New.
7711 * 22_locale/money_put/put/wchar_t/6.cc: New.
7712 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
7713 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
7714 * 22_locale/moneypunct/1.cc: New.
7715 * 22_locale/moneypunct/2.cc: New.
7716 * 22_locale/moneypunct/3.cc: New.
7717 * 22_locale/moneypunct/members/char/1.cc: New.
7718 * 22_locale/moneypunct/members/char/2.cc: New.
7719 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
7720 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
7721 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
7722 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
7723 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
7724 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
7725 * 22_locale/moneypunct_byname/1.cc: New.
7726 * 22_locale/num_get/1.cc: New.
7727 * 22_locale/num_get/2.cc: New.
7728 * 22_locale/num_get/get/char/1.cc: New.
7729 * 22_locale/num_get/get/char/2.cc: New.
7730 * 22_locale/num_get/get/char/3.cc: New.
7731 * 22_locale/num_get/get/char/4.cc: New.
7732 * 22_locale/num_get/get/char/5.cc: New.
7733 * 22_locale/num_get/get/char/6.cc: New.
7734 * 22_locale/num_get/get/char/wrapped_env.cc: New.
7735 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
7736 * 22_locale/num_get/get/wchar_t/1.cc: New.
7737 * 22_locale/num_get/get/wchar_t/2.cc: New.
7738 * 22_locale/num_get/get/wchar_t/3.cc: New.
7739 * 22_locale/num_get/get/wchar_t/4.cc: New.
7740 * 22_locale/num_get/get/wchar_t/5.cc: New.
7741 * 22_locale/num_get/get/wchar_t/6.cc: New.
7742 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
7743 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
7744 * 22_locale/num_put/1.cc: New.
7745 * 22_locale/num_put/2.cc: New.
7746 * 22_locale/num_put/put/char/1.cc: New.
7747 * 22_locale/num_put/put/char/2.cc: New.
7748 * 22_locale/num_put/put/char/3.cc: New.
7749 * 22_locale/num_put/put/char/4.cc: New.
7750 * 22_locale/num_put/put/char/5.cc: New.
7751 * 22_locale/num_put/put/char/wrapped_env.cc: New.
7752 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
7753 * 22_locale/num_put/put/wchar_t/1.cc: New.
7754 * 22_locale/num_put/put/wchar_t/2.cc: New.
7755 * 22_locale/num_put/put/wchar_t/3.cc: New.
7756 * 22_locale/num_put/put/wchar_t/4.cc: New.
7757 * 22_locale/num_put/put/wchar_t/5.cc: New.
7758 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
7759 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
7760 * 22_locale/numpunct/1.cc: New.
7761 * 22_locale/numpunct/2.cc: New.
7762 * 22_locale/numpunct/members/char/1.cc: New.
7763 * 22_locale/numpunct/members/char/2.cc: New.
7764 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
7765 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
7766 * 22_locale/numpunct/members/wchar_t/1.cc: New.
7767 * 22_locale/numpunct/members/wchar_t/2.cc: New.
7768 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
7769 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
7770 * 22_locale/numpunct_byname/1.cc: New.
7771 * 22_locale/numpunct_byname/2.cc: New.
7772 * 22_locale/time_get/1.cc: New.
7773 * 22_locale/time_get/2.cc: New.
7774 * 22_locale/time_get/date_order/char/1.cc: New.
7775 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
7776 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
7777 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
7778 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
7779 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
7780 * 22_locale/time_get/get_date/char/1.cc: New.
7781 * 22_locale/time_get/get_date/char/2.cc: New.
7782 * 22_locale/time_get/get_date/char/3.cc: New.
7783 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
7784 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
7785 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
7786 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
7787 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
7788 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
7789 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
7790 * 22_locale/time_get/get_monthname/char/1.cc: New.
7791 * 22_locale/time_get/get_monthname/char/2.cc: New.
7792 * 22_locale/time_get/get_monthname/char/3.cc: New.
7793 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
7794 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
7795 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
7796 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
7797 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
7798 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
7799 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
7800 * 22_locale/time_get/get_time/char/1.cc: New.
7801 * 22_locale/time_get/get_time/char/2.cc: New.
7802 * 22_locale/time_get/get_time/char/3.cc: New.
7803 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
7804 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
7805 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
7806 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
7807 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
7808 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
7809 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
7810 * 22_locale/time_get/get_weekday/char/1.cc: New.
7811 * 22_locale/time_get/get_weekday/char/2.cc: New.
7812 * 22_locale/time_get/get_weekday/char/3.cc: New.
7813 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
7814 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
7815 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
7816 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
7817 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
7818 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
7819 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
7820 * 22_locale/time_get/get_year/char/1.cc: New.
7821 * 22_locale/time_get/get_year/char/3.cc: New.
7822 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
7823 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
7824 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
7825 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
7826 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
7827 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
7828 * 22_locale/time_put/1.cc: New.
7829 * 22_locale/time_put/2.cc: New.
7830 * 22_locale/time_put/put/char/1.cc: New.
7831 * 22_locale/time_put/put/char/10.cc: New.
7832 * 22_locale/time_put/put/char/2.cc: New.
7833 * 22_locale/time_put/put/char/3.cc: New.
7834 * 22_locale/time_put/put/char/4.cc: New.
7835 * 22_locale/time_put/put/char/5.cc: New.
7836 * 22_locale/time_put/put/char/6.cc: New.
7837 * 22_locale/time_put/put/char/7.cc: New.
7838 * 22_locale/time_put/put/char/8.cc: New.
7839 * 22_locale/time_put/put/char/9.cc: New.
7840 * 22_locale/time_put/put/char/wrapped_env.cc: New.
7841 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
7842 * 22_locale/time_put/put/wchar_t/1.cc: New.
7843 * 22_locale/time_put/put/wchar_t/10.cc: New.
7844 * 22_locale/time_put/put/wchar_t/2.cc: New.
7845 * 22_locale/time_put/put/wchar_t/3.cc: New.
7846 * 22_locale/time_put/put/wchar_t/4.cc: New.
7847 * 22_locale/time_put/put/wchar_t/5.cc: New.
7848 * 22_locale/time_put/put/wchar_t/6.cc: New.
7849 * 22_locale/time_put/put/wchar_t/7.cc: New.
7850 * 22_locale/time_put/put/wchar_t/8.cc: New.
7851 * 22_locale/time_put/put/wchar_t/9.cc: New.
7852 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
7853 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
7855 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
7857 * config/locale/generic/messages_members.h
7858 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
7859 unqualified members of base clasess.
7861 2003-01-16 Mark Mitchell <mark@codesourcery.com>
7862 Jeffrey Oldham <oldham@codesourcery.com>
7864 * config/locale/gnu/messages_members.h: Use this-> to refer to
7865 unqualified members of base clasess.
7866 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
7867 * include/bits/codecvt.h: Likewise.
7868 * include/bits/deque.tcc: Likewise.
7869 * include/bits/fstream.tcc: Likewise.
7870 * include/bits/istream.tcc: Likewise.
7871 * include/bits/list.tcc: Likewise.
7872 * include/bits/locale_facets.h: Likewise.
7873 * include/bits/ostream.tcc: Likewise.
7874 * include/bits/sstream.tcc: Likewise.
7875 * include/bits/stl_bvector.h: Likewise.
7876 * include/bits/stl_deque.h: Likewise.
7877 * include/bits/stl_list.h: Likewise.
7878 * include/bits/stl_tree.h: Likewise.
7879 * include/bits/stl_vector.h: Likewise.
7880 * include/bits/vector.tcc: Likewise.
7881 * include/ext/ropeimpl.h: Likewise.
7882 * include/ext/stdio_filebuf.h: Likewise.
7883 * include/ext/stl_rope.h: Likewise.
7884 * include/std/std_fstream.h: Likewise.
7885 * include/std/std_sstream.h: Likewise.
7887 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
7889 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
7891 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
7893 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
7894 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
7895 * aclocal.m4: Regenerate.
7896 * configure: Regenerate.
7897 * testsuite/Makefile.am (all-local): Add conditional rule to
7898 generate testsuite_wchar_t.
7899 * testsuite/Makefile.in: Regenerate.
7900 * testsuite/lib/libstdc++-v3-dg.exp
7901 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
7902 testsuite_wchar_t is not present in the build directory.
7903 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
7904 Remove setulimit bits.
7905 * testsuite/26_numerics/complex_value.cc: Set to noopts.
7906 * testsuite/Makefile.am (CLEANFILES): Add.
7907 * testsuite/Makefile.in: Regenerate.
7909 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7911 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
7914 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
7916 Further conform g++'s __vmi_class_type_info to the C++ ABI
7918 * libsupc++/cxxabi.h
7919 (__vmi_class_type_info::__flags_masks): Remove enumerations not
7920 required by the specification.
7922 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
7924 Renames, namespaces for testsuite utilities.
7925 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
7926 (gnu_allocator_tracker): Rename to allocation_tracker.
7927 (gnu_new_allocator): Rename to tracker_alloc.
7928 (__set_testsuite_memlimit): Rename to set_memory_limits.
7929 (gnu_assignment_operator): Rename to assignment_operator.
7930 (gnu_destructor): Rename to destructor.
7931 (gnu_copy_tracker): Rename to copy_tracker.
7932 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
7933 (run_tests_wrapped_locale): New.
7934 (run_tests_wrapped_env): New.
7935 * testsuite/testsuite_hooks.cc: Same.
7936 (class locale_data): Add.
7937 (class enviornment_variable): Add.
7938 (class not_found): Add.
7939 * testsuite/testsuite_allocator.h: Same.
7940 * testsuite/testsuite_allocator.cc: Same.
7941 * testsuite/23_containers/deque_ctor.cc
7942 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
7944 Change gnu_new_allocator to tracker_alloc.
7945 Change gnu_counting_struct to counter.
7946 Change gnu_copy_tracker to copy_tracker.
7947 Change gnu_copy_constructor to copy_constructor.
7948 Change gnu_assignment_operator to assignment_operator.
7950 * testsuite/23_containers/vector_capacity.cc: Same.
7951 * testsuite/23_containers/vector_ctor.cc (test01): Same.
7952 * testsuite/23_containers/list_modifiers.cc: Change
7953 gnu_copy_tracker to copy_tracker.
7954 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
7955 __set_testsuite_memlimit to set_memory_limits.
7956 * testsuite/21_strings/insert.cc (main): Same.
7957 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
7958 * testsuite/27_io/stringstream.cc: Same.
7959 * testsuite/27_io/stringbuf.cc: Same.
7960 * testsuite/27_io/streambuf.cc: Same.
7961 * testsuite/27_io/ostream.cc: Same.
7962 * testsuite/27_io/istream.cc: Same.
7963 * testsuite/27_io/fstream.cc: Same.
7964 * testsuite/lib/libstdc++-v3-dg.exp
7965 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
7966 three levels deeper in glob patterns.
7968 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
7970 * docs/doxygen/tables.html: Finished now.
7971 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
7972 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
7975 * include/bits/deque.tcc, include/bits/stl_alloc.h,
7976 include/bits/stl_deque.h, include/bits/stl_list.h,
7977 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
7980 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
7982 * configure.in: Revert.
7983 * configure: Regenerate.
7985 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
7987 * include/Makefile.am (install-data-local): Prepend
7988 $(DESTDIR) to destination paths in all (un)installation
7989 commands. Use ${c_base_builddir} and ${std_builddir}
7990 as destination subdirectories to achieve consistency with
7991 preceding mkinstalldirs commands. No effect because both
7992 variables contain "." only.
7993 * include/Makefile.in: Regenerate.
7995 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
7997 * include/Makefile.am (stamp-*): Add checks for existing stamps.
7998 * include/Makefile.in: Regenerate.
8000 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
8001 * aclocal.m4: Regenerate.
8003 * configure.in: Don't add new multi-do rules every time the
8004 directory is reconfigured.
8005 * configure: Regenerate.
8007 2003-01-08 Brad Spencer <spencer@infointeractive.com>
8008 Nathan Myers <ncm@cantrip.org>
8010 * src/Makefile.am (stamp-debug): Clean.
8011 * src/Makefile.in: Regenerate.
8013 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
8016 * Makefile.am (distclean-multi): Fix.
8017 * Makefile.in: Regenerate.
8019 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
8021 * include/bits/locale_facets.h (messages): Move ctor, dtor
8023 (__timepunct): Same.
8024 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
8025 definitions. Conditionalize for GNU systems.
8026 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
8028 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
8029 definitions. Conditionalize for GNU systems.
8030 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
8032 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
8033 * src/locale.cc: Define.
8034 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
8036 * config/locale/gnu/time_members.h: Use it.
8037 * config/locale/gnu/messages_members.h: Use it.
8038 * config/linker-map.gnu: Add locale::facets details.
8039 * include/Makefile.am (target_headers_extra): Add time_members.h.
8040 * include/Makefile.in: Regenerate.
8041 * acinclude.m4: Export CTIME_H.
8042 * aclocal.m4: Regenerate.
8043 * configure: Regnerate.
8045 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
8048 (codecvt<char, char, mbstate_t>::do_in, do_out):
8049 Tweak parameters to avoid unused parameter warnings.
8051 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
8054 * include/bits/locale_facets.cc (num_put::_M_convert_float):
8055 Limit __prec to digits10 + 2, not digits10 + 1, taking into
8056 account the possibility of %{g,G} conversion specifiers
8057 inside _S_format_float.
8058 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
8060 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8062 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
8063 libstdc++-v3-list-sourcefiles): Additionally handle files one
8064 level deeper in glob patterns.
8066 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
8067 * testsuite/27_io/istream_extractor_arith/01.cc,
8068 testsuite/27_io/istream_extractor_arith/02.cc,
8069 testsuite/27_io/istream_extractor_arith/03.cc,
8070 testsuite/27_io/istream_extractor_arith/06.cc,
8071 testsuite/27_io/istream_extractor_arith/07.cc,
8072 testsuite/27_io/istream_extractor_arith/08.cc,
8073 testsuite/27_io/istream_extractor_arith/09.cc,
8074 testsuite/27_io/istream_extractor_arith/10.cc,
8075 testsuite/27_io/istream_extractor_arith/11.cc,
8076 testsuite/27_io/istream_extractor_arith/12.cc,
8077 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
8078 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
8081 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
8085 (codecvt<char, char, mbstate_t>::do_in, do_out):
8086 Implement the resolution of DR19 (TC).
8087 * testsuite/22_locale/codecvt_members_char_char.cc
8090 2003-01-02 Jason Merrill <jason@redhat.com>
8092 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
8093 *__mem is also an output.
8094 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.