1 2003-11-24 Paolo Carlini <pcarlini@suse.de>
3 * src/locale_init.cc: Cosmetic reformatting.
5 2003-11-23 Paolo Carlini <pcarlini@suse.de>
7 * include/bits/locale_facets.tcc (__add_grouping):
10 2003-11-23 Paolo Carlini <pcarlini@suse.de>
12 * include/bits/locale_facets.tcc (_M_extract_float,
13 _M_extract_int): Remove a wrong comment and simplify
14 the corresponding code using char_traits::find().
16 2003-11-22 Paolo Carlini <pcarlini@suse.de>
18 * config/locale/gnu/monetary_members.cc
19 (money_base::_S_construct_pattern): Factor out two assignments.
21 2003-11-22 Paolo Carlini <pcarlini@suse.de>
23 * include/bits/istream.tcc (getline(basic_string<>&)):
24 Fix error in comment of the previous commit.
26 2003-11-22 Paolo Carlini <pcarlini@suse.de>
29 * include/bits/istream.tcc (operator>>(basic_string<>&),
30 getline(basic_string<>&)): Implement resolution of DR 91 [WP];
31 fix some minor issues with the exit conditions.
32 * docs/html/ext/howto.html: Add an entry for DR 91.
34 2003-11-21 Paolo Carlini <pcarlini@suse.de>
36 * config/locale/gnu/monetary_members.cc
37 (money_base::_S_construct_pattern): Factor out an assignment.
39 2003-11-21 Paolo Carlini <pcarlini@suse.de>
41 PR libstdc++/12882 (partial)
42 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
44 * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
45 and ftello64 if available.
46 * aclocal.m4: Regenerate.
49 2003-11-20 Benjamin Kosnik <bkoz@redhat.com>
51 * include/debug/formatter.h: Use _Tp as template argument.
52 * src/debug.cc: Same, instantiate std::size_t.
54 2003-11-20 Benjamin Kosnik <bkoz@redhat.com>
57 * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
58 * src/debug.cc (__gnu_debug): Format.
59 (_Error_formatter::_M_format_word): Define, use, instantiate.
61 2003-11-20 Paolo Carlini <pcarlini@suse.de>
64 * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
65 Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
66 former is very fast, but stops if encounters a NUL.
67 * testsuite/performance/wchar_t_out.cc: New, from the PR.
69 2003-11-19 Paolo Carlini <pcarlini@suse.de>
71 * config/locale/gnu/codecvt_members.cc (do_out): If
72 we can upper bound the total number of external chars
73 to something smaller than __to_end - __to, avoid the
74 temporary buffer, the memcopy and simplify the loop.
75 * config/locale/generic/codecvt_members.cc (do_out):
78 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
80 * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
81 * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
84 2003-11-18 Jonathan Wakely <redi@gcc.gnu.org>
86 * docs/html/configopts.html, docs/html/debug.html,
87 docs/html/documentation.html, docs/html/explanations.html,
88 docs/html/install.html, docs/html/17_intro/contribute.html,
89 docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
90 docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
91 docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
92 docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
93 docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
94 docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
95 docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
96 docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
97 docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
99 2003-11-18 Paolo Carlini <pcarlini@suse.de>
102 * include/bits/fstream.tcc (imbue): For encodings != -1 it's
103 always ok to imbue a new locale, provided seekoff(0, cur, ...)
104 doesn't fail, of course.
105 (underflow): In order for the above to work, deal gracefully
106 with _M_codecvt->in returning codecvt_base::error while
107 (__ilen = __iend - this->eback()) > 0: it just means __ilen
108 correctly converted internal characters before an error.
109 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
111 2003-11-17 Paolo Carlini <pcarlini@suse.de>
113 * include/bits/locale_facets.tcc: Fix typo in comment.
115 2003-11-17 Paolo Carlini <pcarlini@suse.de>
117 * testsuite/22_locale/num_put/put/char/8.cc: New test,
118 summarizing the discussion ensuing libstdc++/12988.
119 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
121 2003-11-15 Paolo Carlini <pcarlini@suse.de>
123 * include/std/std_fstream.h: Tweak a comment.
125 2003-11-15 Roger Sayle <roger@eyesopen.com>
127 * include/c_std/std_cmath.h: Don't import C99's float transcendentals
128 into the __gnu_cxx::__c99_binding namespace.
129 (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
130 ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
131 GCC's math builtins, i.e. __builtin_foo.
132 * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
133 ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
134 ldexpf, ldexpl, modff, modfl): Provide stub implementations.
136 2003-11-14 Paolo Carlini <pcarlini@suse.de>
138 * testsuite/22_locale/locale/cons/12352.cc: Use
139 __gnu_test::try_named_locale.
141 2003-11-14 Paolo Carlini <pcarlini@suse.de>
143 * docs/html/ext/howto.html: Add entries for DR 63, 75
144 and 305; tweak entries for DR 60 and 328.
146 2003-11-13 Douglas Gregor <gregod@cs.rpi.edu>
148 * docs/html/debug.html: Users are allowed to specialize in
149 namespace __gnu_debug, unlike in the Apple version of the debug
150 mode. Clear up a confusing double-negative. Note that
151 std::basic_string does provide extra debugging capabilities, but
153 * include/bits/basic_string.tcc: Make sure there's never an
154 ambiguity when calling __is_null_pointer.
155 * include/debug/deque: (deque::erase) Properly handle invalidation
156 when erasing at the end of the deque.
157 * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
158 (vector::clear): Set the guaranteed capacity to 0.
159 * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
160 iterator invalidation when erasing at the end of the deque.
162 2003-11-13 Paolo Carlini <pcarlini@suse.de>
163 Petur Runolfsson <peturr02@ru.is>
166 * include/bits/fstream.tcc (imbue): Don't touch the stored
168 * include/std/std_streambuf.h (imbue): According to the
169 standard, base class version does nothing.
170 (pubimbue): Store the locale.
171 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
172 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
173 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
174 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
175 * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
176 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
177 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
178 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
180 2003-11-13 Petur Runolfsson <peturr02@ru.is>
183 * include/bits/ostream.tcc
184 (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
185 basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
186 basic_ostream::operator<<(ios_base& (*)(ios_base&))):
187 Implement the resolution of DR 60 (TC): These are not formatted
188 output functions so don't construct sentry objects and don't
190 (basic_ostream::put, basic_ostream::write): Implement the
191 resolution of DR 63 (TC) by catching exceptions and setting
193 (basic_ostream::flush): Implement the resolution of DR 60 (TC):
194 This is not an unformatted output function so don't construct
196 * testsuite/testsuite_io.h (sync_streambuf): Define.
197 * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
198 * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
199 * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
200 * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
202 2003-11-13 Paolo Carlini <pcarlini@suse.de>
204 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
205 Fix, closely following the testcase included in the PR.
206 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
207 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
208 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
210 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
212 * docs/html/17_intro/configury.html: XHTML tweak.
214 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
216 * docs/html/debug_mode.html: XHTML fixes.
218 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
220 * docs/html/debug_mode.html: Update.
221 * docs/html/17_intro/TODO: Update.
223 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
225 * include/bits/c++config: Move using directive...
226 * include/debug/formatter.h: ...here.
228 2003-11-12 Carlo Wood <carlo@alinoe.com>
232 (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
233 (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
234 (session<Allocator>::next_peek() const): Added.
235 (decode_non_negative_decimal_integer(string_type&)):
236 Renamed from decode_decimal_integer(string_type&).
237 (session<Allocator>::decode_nested_name):
238 Decode <template_param> as well.
239 (session<Allocator>::add_substitution):
240 Handle <template-param> for <nested-name>'s.
241 (enum xary_nt): Added.
242 (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
243 (symbol_name_table_c): Updated for `entry_st::type' and additional
244 operators (unary `operator+' and `sizeof(type)').
245 (offset_table_c): Updated for new operators (causing a new hash map).
246 (decode_operator_name): Match the updated hash map.
247 (session<Allocator>::decode_expression):
248 Support for `sizeof ([typename] type)' (st),
249 dependent names (sr) and casting operator (cv). Handle
250 `entry_st::type'. Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
251 and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
252 (session<Allocator>::decode_type_with_postfix):
253 Support `extern "C"' function types (FY).
254 * testsuite/demangle/regression/cw-16.cc: Added tests for the
256 * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
259 2003-11-11 Paolo Carlini <pcarlini@suse.de>
262 * include/bits/fstream.tcc (setbuf): Don't do anything
263 after open(), in particular don't discard data.
264 (_M_allocate_internal_buffer): Tweak to not allocate memory
265 in case the buffer is provided by the user via setbuf.
266 * include/ext/stdio_filebuf.h: Tweak comment.
267 * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
268 * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
269 * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
270 setbuf does nothing after open().
271 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
273 2003-11-11 Doug Gregor <gregod@cs.rpi.edu>
275 * docs/html/debug.html: Document libstdc++ debug mode.
276 * docs/html/debug_mode.html: Document libstdc++ debug mode design.
277 * docs/html/test.html: Document how to test under debug mode.
278 * docs/html/17_intro/howto.html: Document debug-mode macros.
279 * include/Makefile.am: Install debug-mode headers.
280 * src/Makefile.am: Include debug.cc.
281 * include/bits/basic_string.tcc:
282 (basic_string::_S_construct): Fix NULL pointer check.
283 (__is_null_pointer): New.
284 Add precondition annotations.
285 * include/bits/stream_iterator.h (istream_iterator,
286 ostream_iterator): Added precondition annotations.
287 * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
288 * include/bits/stl_queue.h (queue, priority_queue): Ditto.
289 * include/bits/stl_stack.h (stack): Ditto.
290 * include/bits/basic_string.h (basic_string): Ditto.
291 * include/bits/basic_string.tcc (basic_string): Ditto.
292 * include/std/std_memory.h (auto_ptr): Ditto.
293 * include/std/std_valarray.h (valarray): Ditto.
294 * include/bits/stl_algo.h: Added algorithm precondition
296 * include/bits/stl_algobase.h: Added algorithm precondition
298 * include/bits/stl_numeric.h: Ditto.
299 * include/ext/algorithm: Added algorithm precondition
301 (__is_heap): Moved away from here.
302 * include/bits/stl_heap.h: Added algorithm precondition
304 (__is_heap): Moved to the top of this file.
305 (__is_heap): Added iterator range overloads.
306 * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
307 with changes in std_memory.h.
308 * testsuite/23_containers/list/operators/4.cc: Don't verify
309 performance guarantees when in debug mode.
310 * testsuite/23_containers/bitset/invalidation/1.cc: New.
311 * testsuite/23_containers/deque/invalidation/1.cc: New.
312 * testsuite/23_containers/deque/invalidation/2.cc: New.
313 * testsuite/23_containers/deque/invalidation/3.cc: New.
314 * testsuite/23_containers/deque/invalidation/4.cc: New.
315 * testsuite/23_containers/list/invalidation/1.cc: New.
316 * testsuite/23_containers/list/invalidation/2.cc: New.
317 * testsuite/23_containers/list/invalidation/3.cc: New.
318 * testsuite/23_containers/list/invalidation/4.cc: New.
319 * testsuite/23_containers/map/invalidation/1.cc: New.
320 * testsuite/23_containers/map/invalidation/2.cc: New.
321 * testsuite/23_containers/multimap/invalidation/1.cc: New.
322 * testsuite/23_containers/multimap/invalidation/2.cc: New.
323 * testsuite/23_containers/multiset/invalidation/1.cc: New.
324 * testsuite/23_containers/multiset/invalidation/2.cc: New.
325 * testsuite/23_containers/set/invalidation/1.cc: New.
326 * testsuite/23_containers/set/invalidation/2.cc: New.
327 * testsuite/23_containers/vector/invalidation/1.cc: New.
328 * testsuite/23_containers/vector/invalidation/2.cc: New.
329 * testsuite/23_containers/vector/invalidation/3.cc: New.
330 * testsuite/23_containers/vector/invalidation/4.cc: New.
331 * testsuite/25_algorithms/heap.cc: Don't verify
332 performance guarantees when in debug mode.
333 * include/debug/bitset: New.
334 * include/debug/debug.h: New.
335 * include/debug/deque: New.
336 * include/debug/formatter.h: New.
337 * include/debug/hash_map: New.
338 * include/debug/hash_map.h: New.
339 * include/debug/hash_multimap.h: New.
340 * include/debug/hash_set: New.
341 * include/debug/hash_set.h: New.
342 * include/debug/hash_multiset.h: New.
343 * include/debug/list: New.
344 * include/debug/map: New.
345 * include/debug/map.h: New.
346 * include/debug/multimap.h: New.
347 * include/debug/multiset.h: New.
348 * include/debug/safe_base.h: New.
349 * include/debug/safe_iterator.h: New.
350 * include/debug/safe_iterator.tcc: New.
351 * include/debug/safe_sequence.h: New.
352 * include/debug/set: New.
353 * include/debug/set.h: New.
354 * include/debug/string: New.
355 * include/debug/vector: New.
357 * config/linker-map.gnu: Add debug mode symbols.
359 2003-11-11 Benjamin Kosnik <bkoz@redhat.com>
361 * src/string-inst.cc: Tweak namespaces.
362 * src/misc-inst.cc: Same.
363 * docs/html/debug.html: Edits.
364 * config/link-map.gnu: Remove cruft.
366 * include/bits/c++config: Add in namespace associations.
367 * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
369 * include/bits/deque.tcc: Same.
370 * include/bits/list.tcc: Same.
371 * include/bits/stl_bvector.h: Same.
372 * include/bits/stl_deque.h: Same.
373 * include/bits/stl_list.h: Same.
374 * include/bits/stl_map.h: Same.
375 * include/bits/stl_multimap.h: Same.
376 * include/bits/stl_multiset.h: Same.
377 * include/bits/stl_set.h: Same.
378 * include/bits/stl_vector.h: Same.
379 * include/bits/vector.tcc: Same.
381 * include/std/std_algorithm.h: Remove markup comments.
382 * include/std/std_functional.h: Same.
383 * include/std/std_iterator.h: Same.
384 * include/std/std_numeric.h: Same.
385 * include/std/std_utility.h: Same.
386 * include/bits/stl_queue.h: Formatting tweaks.
387 * include/bits/stl_stack.h: Same.
388 * include/std/std_deque.h: Include debugging version in debug mode.
389 * include/std/std_list.h: Same.
390 * include/std/std_map.h: Same.
391 * include/std/std_set.h: Same.
392 * include/std/std_vector.h: Same.
393 * include/std/std_queue.h: Use deque, vector.
394 * include/std/std_stack.h: Same.
396 2003-11-09 Paolo Carlini <pcarlini@suse.de>
398 * include/bits/locale_facets.tcc (_M_insert_int,
399 _M_insert_float): Move a couple of vars inside an if block.
401 2003-11-09 Paolo Carlini <pcarlini@suse.de>
404 * include/bits/locale_facets.tcc
405 (money_put::do_put(..., long double)): Fix conversion
406 specification as per DR 328 [WP].
407 * testsuite/22_locale/money_put/put/char/12971.cc: Add.
408 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
409 * docs/html/ext/howto.html: Add entry for DR 328.
411 2003-11-08 Paolo Carlini <pcarlini@suse.de>
414 * include/bits/list.tcc (merge): Implement resolution of
416 * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
419 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
422 2003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
424 * libsupc++/vec.cc: Conform to C++STYLE.
426 2003-11-07 Carlo Wood <carlo@alinoe.com>
429 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
430 (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
431 K, V, r and A qualifiers before processing them as a group.
432 * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
433 * testsuite/demangle/regression/cw-16.cc: New.
435 2003-11-07 Robert Millan <robertmh@gnu.org>
437 * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
438 * crossconfig.m4: Likewise.
439 * configure: Regenerate.
441 2003-11-07 Carlo Wood <carlo@alinoe.com>
443 * include/bits/demangle.h
444 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
445 string_type&, bool member_function_pointer_qualifiers):
446 Always separate the '[' of an array type with a space from
447 what is left of it, except when that is the closing bracket
448 of another array dimension.
450 2003-11-07 Carlo Wood <carlo@alinoe.com>
452 * include/bits/demangle.h
453 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
454 string_type&, bool) const): Made const.
455 (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
456 (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
457 std::ostream& operator<<(std::ostream&, qualifier const&),
458 std::ostream& operator<<(std::ostream&, qualifier_list const&),
459 qualifier_list<Allocator>::decode_qualifiers(string_type&,
460 string_type&, bool) const,
461 session<Allocator>::decode_type_with_postfix(string_type&,
462 string_type&, qualifier_list<Allocator>*))
463 Added and/or changed debug-only hooks and code.
465 2003-11-04 Jeffrey D. Oldham <oldham@codesourcery.com>
467 * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
468 immediately return. This reflects a C++ ABI change 2003 Nov 03.
469 (__cxa_vec_delete3): Likewise.
471 2003-11-03 Petur Runolfsson <peturr02@ru.is>
474 * include/bits/fstream.tcc: Delete _M_last_overflowed.
475 (basic_filebuf::basic_filebuf): Initialize _M_state_last.
476 (basic_filebuf::open, basic_filebuf::close): Assign
477 _M_state_beg to _M_state_cur and _M_state_last.
478 (basic_filebuf::close): Call _M_terminate_output to handle
479 unshift and flushing.
480 (basic_filebuf::underflow): Assign _M_state_last, throw
481 exception instead of calling abort when codecvt::max_length()
483 (basic_filebuf::seekoff): Use _M_state_last when calling
484 codecvt::length(), pass correct state to _M_seek.
485 (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
486 (basic_filebuf::_M_seek): Add __state_type parameter,
487 set _M_state_cur correctly, store the resulting state in
488 the return value and use _M_terminate_output to handle
489 flushing and unshift.
490 (basic_filebuf::_M_terminate_output): Flush contents of
491 output buffer, if any, then call codecvt::unshift as
492 needed and output the result.
493 (basic_filebuf::sync): Move here, don't modify _M_writing
496 * include/std/std_fstream.h
497 (basic_filebuf::_M_state_last): Declare it.
498 (basic_filebuf::_M_last_overflowed): Delete.
499 (basic_filebuf::_M_seek): Add __state_type parameter.
500 (basic_filebuf::sync): Declare only.
501 (basic_filebuf::_M_output_unshift): Delete.
502 (basic_filebuf::_M_terminate_output): Declare it.
504 * testsuite/testsuite_character.h:
505 Define character class and state class plus char_traits and
506 codecvt specializations for same for testing support for
509 * testsuite/27_io/basic_filebuf/close/12790-1.cc,
510 * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
511 * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
512 * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
513 * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
514 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
515 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
516 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
517 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
518 * testsuite/27_io/basic_filebuf/open/12790-1.cc,
519 * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
520 * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
521 * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
522 * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
523 * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
524 * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
525 * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
526 * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
527 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
528 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
529 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
530 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
531 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
532 * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
533 * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
534 * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
535 * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
536 * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
537 * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
538 * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
539 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
540 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
541 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
542 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
543 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
544 * testsuite/27_io/basic_filebuf/sync/char/1.cc,
545 * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
548 * testsuite/27_io/basic_filebuf/3.cc,
549 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
550 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
551 * testsuite/27_io/basic_fstream/3.cc,
552 * testsuite/27_io/basic_ifstream/3.cc,
553 * testsuite/27_io/basic_ofstream/3.cc:
554 Use streamoff as off_type and fpos<state_type> as pos_type.
556 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
557 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
558 Check that sync does *not* set _M_writing to false.
560 2003-11-03 Anthony Green <green@redhat.com>
562 * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
565 2003-11-03 Benjamin Kosnik <bkoz@redhat.com>
567 * include/bits/locale_facets.h (time_get::_M_extract_name): Add
569 * include/bits/locale_facets.tcc: Same, use it to allow
572 * include/bits/fstream.tcc: Spacing tweak.
573 * include/bits/istream.tcc: Same.
574 * include/bits/ostream.tcc: Same.
576 2003-10-30 Paolo Carlini <pcarlini@suse.de>
578 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
579 __mod is only assigned, never used its value, remove it.
581 2003-10-29 Paolo Carlini <pcarlini@suse.de>
583 * include/bits/locale_facets.tcc (time_get::do_get_year):
584 Absolutely avoid dereferencing end iterators.
585 (time_put::put): Minor clean up.
587 * include/bits/locale_facets.tcc: Cosmetic reformattings.
589 2003-10-29 Paolo Carlini <pcarlini@suse.de>
591 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
592 Revert the last commit, is not correct, sorry.
594 2003-10-29 Paolo Carlini <pcarlini@suse.de>
596 * config/locale/generic/c_locale.cc: Add back <cmath> and
599 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
602 2003-10-29 Paolo Carlini <pcarlini@suse.de>
604 * include/bits/locale_facets.tcc (time_put::put): Absolutely
605 avoid dereferencing end iterators; clean up.
607 * include/bits/locale_facets.tcc (num_get::_M_extract_float,
608 num_get::_M_extract_int): Minor tweak.
610 2003-10-29 Paolo Carlini <pcarlini@suse.de>
612 * include/bits/locale_facets.tcc: Remove some unnecessary
614 * config/locale/generic/c_locale.cc: Include <cerrno> here.
615 * config/locale/gnu/c_locale.cc: Likewise.
617 2003-10-28 Paolo Carlini <pcarlini@suse.de>
619 * include/bits/locale_facets.tcc
620 (money_get<>::do_get(..., string_type&)): Absolutely avoid
621 dereferencing end iterators; general clean up.
623 2003-10-28 Paolo Carlini <pcarlini@suse.de>
625 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
626 Absolutely avoid dereferencing end iterators.
627 (time_get::_M_extract_name): Likewise.
629 * include/bits/locale_facets.tcc
630 (time_get::_M_extract_via_format, case 'e'): Don't try to
631 be smart wrt returning the right __beg in case of parse
632 error, time_get::_M_extract_num must be fixed instead.
634 2003-10-27 Paolo Carlini <pcarlini@suse.de>
637 * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
638 * aclocal.m4: Regenerate.
639 * configure: Regenerate.
641 2003-10-27 Benjamin Kosnik <bkoz@redhat.com>
643 * docs/html/17_intro/TODO: Add links.
644 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
647 2003-10-27 Paolo Carlini <pcarlini@suse.de>
650 * include/bits/locale_facets.tcc
651 (time_get::_M_extract_via_format): Deal with code 'e'.
652 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
653 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
655 * include/bits/locale_facets.tcc
656 (time_get::_M_extract_via_format): Tweak to absolutely avoid
657 dereferencing end iterators.
659 * include/bits/locale_facets.h (__verify_grouping):
660 Const-ify second parameter.
661 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
662 * src/locale-inst.cc (__verify_grouping): Ditto.
664 2003-10-27 Paolo Carlini <pcarlini@suse.de>
666 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
667 Various things: 1- Avoid absolutely end iterator dereferences;
668 2- Improve performance-wise the code skipping leading zeros;
669 3- Fix two bugs wrt early bail out in case of parsing errors
670 (see testcases); 4- General clean up.
671 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
672 use __builtin_expect to favor base 10 inputs.
673 * testsuite/22_locale/num_get/get/char/7.cc: New.
674 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
676 2003-10-26 Paolo Carlini <pcarlini@suse.de>
678 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
679 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
681 2003-10-25 Paolo Carlini <pcarlini@suse.de>
683 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
684 __pos in only incremented, never used its value, remove it.
686 2003-10-24 Robert Millan <robertmh@gnu.org>
688 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
690 * aclocal.m4: Regenerated.
691 * configure: Regenerated.
693 2003-10-24 Paolo Carlini <pcarlini@suse.de>
695 * include/bits/locale_facets.tcc (money_get::do_get(...,
696 long double&): Properly size the temporary buffer.
697 * testsuite/22_locale/money_get/get/char/11.cc: New.
698 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
700 * include/bits/locale_facets.tcc (num_put::_M_group_int,
701 num_put::_M_group_float, money_put::do_put(..., const
702 string_type&), collate::do_compare, collate::do_transform):
703 Prefer basic_string::data() to c_str() when the '\0'
704 terminator is not really needed.
706 2003-10-24 Paolo Carlini <pcarlini@suse.de>
708 * include/bits/locale_facets.tcc (__verify_grouping):
709 Prefer '=' to an unnecessary '&='.
711 2003-10-24 Paolo Carlini <pcarlini@suse.de>
713 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
714 Tweak my fix for libstdc++/12657.
716 2003-10-24 Paolo Carlini <pcarlini@suse.de>
718 * include/bits/locale_facets.tcc (money_get::do_get(...,
719 string_type&): Minor tweak to the previous commit.
721 2003-10-24 Paolo Carlini <pcarlini@suse.de>
723 * include/bits/locale_facets.tcc (money_get::do_get(...,
724 string_type&): Disregard the previous commit: doesn't hurt but
725 doesn't accomplish anything useful either. This is the right
726 one, speeding up greatly the function in case of early fail.
728 2003-10-24 Paolo Carlini <pcarlini@suse.de>
730 * include/bits/locale_facets.tcc (money_get::do_get(...,
731 string_type&): Move an if block, thus minimizing the amount
732 of code processed anyway when __tmp_units.size() == 0.
734 2003-10-24 Paolo Carlini <pcarlini@suse.de>
736 * include/bits/locale_facets.tcc
737 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
740 2003-10-23 Benjamin Kosnik <bkoz@redhat.com>
742 * docs/html/documentation.html: Add a pointer to the doxygen style
744 * docs/html/17_intro/TODO: Update.
745 * docs/html/test.html: Add instructions for running a subset of
748 2003-10-23 Paolo Carlini <pcarlini@suse.de>
750 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
751 string_type&)): Use find_first_not_of to strip leading
752 zeros; if __tmp_units == "0" never prefix it with '-';
753 always fail if __tmp_units is empty.
754 * testsuite/22_locale/money_get/get/char/10.cc: New.
755 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
757 2003-10-23 Phil Edwards <phil@codesourcery.com>
759 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
762 2003-10-22 Paolo Carlini <pcarlini@suse.de>
764 * include/bits/locale_facets.tcc (__int_to_char): Remove
765 the const int parameter.
766 (_M_insert_int): Update caller.
767 * src/locale-inst.cc (__int_to_char): Update instantiations.
769 2003-10-22 Benjamin Kosnik <bkoz@redhat.com>
771 * include/bits/locale_facets.h: Correct byname facets for "C"
773 * config/locale/generic/ctype_members.cc: Same.
774 * config/locale/generic/messages_members.h: Same.
775 * config/locale/gnu/ctype_members.cc: Same.
776 * config/locale/gnu/messages_members.h: Same.
777 * include/bits/codecvt.h: Same.
778 * src/ctype.cc: Same.
779 * testsuite/22_locale/codecvt_byname/1.cc: New.
780 * testsuite/22_locale/collate/1.cc: Edit.
781 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
782 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
783 * testsuite/22_locale/ctype/1.cc: Derivation tests.
784 * testsuite/22_locale/ctype/11844.cc: Move...
785 * testsuite/22_locale/ctype_base/11844.cc: ...here.
786 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
787 * testsuite/22_locale/ctype_byname/1.cc: Name.
788 * testsuite/22_locale/messages_byname/1.cc: New.
789 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
790 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
791 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
792 * testsuite/22_locale/numpunct/1.cc: Edit.
793 * testsuite/22_locale/numpunct_byname/2.cc: Move...
794 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
795 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
796 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
798 2003-10-22 Paolo Carlini <pcarlini@suse.de>
801 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
802 checking for the availability of int64_t.
803 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
804 * configure.ac: Call here.
805 * acconfig.h: Add undef for the corresponding symbols.
806 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
807 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
808 (__basic_file<char>::seekoff): Likewise, call lseek64 when
809 available, otherwise lseek, checking the __off parameter.
810 * include/bits/postypes.h: Typedef __streamoff_base_type
811 to int64_t if available, otherwise long long.
812 * aclocal.m4: Regenerate.
813 * config.h.in: Likewise.
814 * configure: Likewise.
816 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
817 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
819 2003-10-22 Paolo Carlini <pcarlini@suse.de>
822 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
823 Implement resolution of DR 292 (WP).
824 * docs/html/ext/howto.html: Add entry for DR 292.
826 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
828 * include/ext/mt_allocator.h: Change include to gthr.h.
829 * include/ext/rope: Same. Add _Refcount_base definitions.
830 * include/ext/pool_allocator.h: Adjust namespaces.
831 * include/bits/stl_threads.h (_Refcount_base): Move.
832 Put remaining into namespace __gnu_cxx.
834 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
837 * include/bits/locale_facets.h (ctype<char>): Remove
838 __ctype_abstract_base.
839 (ctype<char>::do_is): Remove.
840 (ctype<char>::do_scan_is): Remove.
841 * src/ctype.cc: Same. Inline the rest.
842 * testsuite/22_locale/ctype/is/char/9858.cc: New.
843 * config/os/aix/ctype_noninline.h: Adjust ctor.
844 * config/os/bsd/freebsd/ctype_noninline.h: Same.
845 * config/os/bsd/netbsd/ctype_noninline.h: Same.
846 * config/os/djgpp/ctype_noninline.h: Same.
847 * config/os/generic/ctype_noninline.h: Same.
848 * config/os/gnu-linux/ctype_noninline.h: Same.
849 * config/os/hpux/ctype_noninline.h: Same.
850 * config/os/irix/irix5.2/ctype_noninline.h: Same.
851 * config/os/irix/irix6.5/ctype_noninline.h: Same.
852 * config/os/mingw32/ctype_noninline.h: Same.
853 * config/os/newlib/ctype_noninline.h: Same.
854 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
855 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
856 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
857 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
858 * config/os/windiss/ctype_noninline.h: Same.
860 2003-10-21 Paolo Carlini <pcarlini@suse.de>
862 * src/locale.cc: Tweak a comment.
863 * src/localename.cc: Move a comment.
865 2003-10-20 Benjamin Kosnik <bkoz@redhat.com>
868 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
869 * testsuite_hooks.cc: Same.
870 * 22_locale/numpunct/members/pod/1.cc: Edit.
871 * 22_locale/numpunct/members/pod/2.cc: Same.
872 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
873 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
874 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
875 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
876 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
877 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
878 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
879 * 27_io/basic_istream/sentry/pod/1.cc: New.
880 * 27_io/basic_ostream/sentry/pod/1.cc: New.
881 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
882 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
884 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
886 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
887 of external _MIPS_SIM_ABI32.
889 2003-10-20 Phil Edwards <phil@codesourcery.com>
891 * configure.ac: Fix comment typo.
892 * configure.host: Add vxworks to host_os switch.
893 * crossconfig.m4: Remove old commented os_include_dir variables
894 left over from autotools transition.
895 (*-vxworks): New stanza.
896 (*-windiss): Add missing symbols.
897 * configure: Regenerate.
898 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
899 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
901 * config/os/windiss/os_defines.h: Define __C9X__.
903 2003-10-19 David Edelsohn <edelsohn@gnu.org>
906 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
908 2003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
910 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
911 confusion of the use of the gthr API when __gthread_active_p()
914 2003-10-17 Benjamin Kosnik <bkoz@redhat.com>
916 * src/Makefile.am: Add new files.
917 * src/Makefile.in: Regenerate.
918 * src/globals.cc: Split into..
919 * src/globals_io.cc: New.
920 * src/globals_locale.cc: New.
921 * src/ios.cc: Split into...
922 * src/ios_init.cc: New.
923 * src/ios_locale.cc: New.
924 * src/locale-inst.cc: Split into..
925 * src/wlocale-inst.cc: New.
926 * src/locale-misc-inst.cc: New.
927 * src/locale.cc, src/localename: Split into...
928 * src/locale_facets.cc: New.
929 * src/locale_init.cc: New.
930 * src/wstring-inst.cc: Add copyright info.
932 2003-10-16 Petur Runolfsson <peturr02@ru.is>
937 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
938 Change return value from streampos to streamoff.
939 (__basic_file::seekpos): Delete.
940 * config/io/basic_file_stdio.h: Same.
941 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
942 * include/Makefile.am (bits_headers): Add bits/postypes.h.
943 * include/bits/char_traits.h: Include bits/postypes.h instead of
945 * include/bits/fstream.tcc (basic_filebuf::open,
946 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
947 values, use == and != instead.
948 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
950 (basic_filebuf::imbue): Don't use ! on pos_type values, use
951 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
952 * include/bits/postypes.h: New file.
953 Add __streamoff_base_type typedef, streamsize.
954 (streamoff, streampos, wstreampos): Define typedefs, with
955 streamoff defined as...
956 (streamoff): New class. Document implementation defined
958 (fpos): New implementation. Document implementation defined
960 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
961 explicit conversion from pos_type to off_type.
962 * include/std/std_iosfwd.h: Include bits/postypes.h instead
964 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
965 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
966 * testsuite/27_io/fpos/11450.cc: New test.
967 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
968 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
969 * testsuite/27_io/types/3.cc: New test.
971 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
973 * configure.host: Remove fpos_include_dir.
974 * configure.ac: Remove FPOS_INC_SRCDIR.
975 * configure: Regenerate.
976 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
977 * aclocal.m4: Regenerate.
978 * include/Makefile.am (host_headers): Remove fpos.h.
979 (bits_headers): Add postypes.h.
980 * include/Makefile.in: Regenerate.
981 * config/os/gnu-linux/fposh: Remove.
982 * config/os/generic/fpos.h: Remove.
984 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
985 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
986 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
987 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
988 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
989 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
990 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
991 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
992 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
993 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
994 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
995 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
996 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
997 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
998 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
999 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1000 * testsuite/27_io/objects/char/10.cc: Same.
1002 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1004 * src/locale.cc (locale::locale(const char*)): ... one
1005 more comparison missed in the previous commit.
1007 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
1009 * acconfig.h: Add HAVE_DRAND48.
1010 * crossconfig.m4: Remove ISATTY.
1011 * aclocal.m4: Regenerated.
1012 * config.h.in: Regenerated.
1013 * configure: Regenerated.
1015 2003-10-16 Bernardo Innocenti <bernie@develer.com>
1017 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
1018 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
1019 Document SMP safeness of asm macros.
1021 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1023 * src/locale.cc (locale::locale(const char*)): Tweak
1024 a couple of comparisons to use basic_string operators.
1026 2003-10-16 Paolo Carlini <pcarlini@suse.de>
1029 * config/locale/gnu/monetary_members.cc
1030 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
1031 Don't leak memory if new throws.
1032 * src/locale.cc (locale::locale(const char*)): In order not
1033 to leak memory in case new throws, use a basic_string type
1034 for __res too and avoid strdup.
1036 2003-10-14 Jeff Bailey <jbailey@nisa.net>
1039 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
1040 * configure: Regenerate.
1042 2003-10-14 Carlo Wood <carlo@alinoe.com>
1045 * include/bits/demangle.h (session<Allocator>::
1046 decode_unqualified_name(string_type& output)): Fail on a
1047 <operator-name> when decoding <template-argument>.
1048 * testsuite/demangle/regression/cw-15.cc: New.
1050 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
1053 * include/bits/stl_algo.h (unique): Fix.
1054 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
1055 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
1056 * testsuite/25_algorithms/unique/2.cc: New.
1058 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
1060 * src/localename.cc (_M_replace_categories, M_replace_facet):
1061 Const-ify a couple of variables.
1063 2003-10-14 Petur Runolfsson <peturr02@ru.is>
1064 Andreas Tobler <a.tobler@schweiz.ch>
1066 * src/locale.cc (locale::_S_initialize): Workaround a confusion
1067 of the use of the gthr API when __gthread_active_p() returns true.
1069 2003-10-12 Petur Runolfsson <peturr02@ru.is>
1070 Paolo Carlini <pcarlini@unitus.it>
1073 * src/strstream.cc (pbackfail): Fix to use to_int_type.
1074 * testsuite/backward/11460.cc: New, from the PR.
1076 2003-10-12 Paolo Carlini <pcarlini@unitus.it>
1078 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1079 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
1080 * include/bits/basic_string.tcc: Likewise.
1081 * include/bits/ios_base.h: Likewise.
1082 * include/bits/istream.tcc: Likewise.
1083 * include/bits/locale_facets.tcc: Likewise.
1084 * include/bits/ostream.tcc: Likewise.
1085 * include/bits/stl_function.h: Likewise.
1086 * include/bits/stl_multiset.h: Likewise.
1087 * include/bits/stl_pair.h: Likewise.
1088 * include/bits/stl_set.h: Likewise.
1089 * include/bits/streambuf_iterator.h
1090 * include/std/std_iosfwd.h: Likewise.
1091 * include/std/std_istream.h: Likewise.
1092 * include/std/std_sstream.h: Likewise.
1093 * include/std/std_streambuf.h: Likewise.
1094 * src/ios.cc: Likewise.
1095 * include/bits/c++config:
1096 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
1097 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
1098 dg-error directive due to removal of a blank line.
1099 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1101 2003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
1102 Paolo Carlini <pcarlini@unitus.it>
1104 PR libstdc++/11844/11740 (cont)
1105 * config/os/generic/ctype_inline.h (ctype<char>::is):
1106 Generically, use a bitmasksize of 15 (instead of 10);
1107 Fix the logic to actually return (M & m) != 0 as per
1110 2003-10-11 Bernardo Innocenti <bernie@develer.com>
1112 * crossconfig.m4 (*-uclinux*): New target.
1113 * configure: Regenerate.
1115 2003-10-10 Paolo Carlini <pcarlini@unitus.it>
1117 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
1118 Avoid unnecessarily calling __builtin_alloca and dealing
1119 explicitly with width() smaller than zero.
1120 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
1121 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
1122 const char*), operator<<(basic_ostream<char, _Traits>&,
1123 const char*), operator<<(basic_ostream, const basic_string&)):
1126 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1128 * config/linker-map.gnu: Make more *_type_info bits visible.
1129 Move new/delete bits back into GLIBCXX space.
1131 * include/bits/locale_classes.h: Move _M_id out of line, so that
1132 locale::id::_S_highwater can be removed from the export list.
1133 * src/locale.cc (locale::id::_M_id): Define.
1135 2003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
1137 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
1140 2003-10-09 Paolo Carlini <pcarlini@unitus.it>
1143 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
1144 to conform to the requirements of 22.2.1.
1145 * config/os/bsd/freebsd/ctype_base.h: Likewise.
1146 * config/os/djgpp/ctype_base.h: Likewise.
1147 * config/os/generic/ctype_base.h: Likewise.
1148 * config/os/gnu-linux/ctype_base.h: Likewise.
1149 * config/os/hpux/ctype_base.h: Likewise.
1150 * config/os/irix/irix6.5/ctype_base.h: Likewise.
1151 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
1152 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
1153 * testsuite/22_locale/ctype/11844.cc: New.
1155 * config/locale/generic/ctype_members.cc (do_is):
1156 Generically, use a bitmasksize of 15 (instead of 10), since
1157 we don't know the numerical encoding of the various categories
1158 in the underlying /usr/include/ctype.h.
1160 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1162 * src/string-inst.cc: Prune.
1163 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1164 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1166 2003-10-09 Petur Runolfsson <peturr02@ru.is>
1168 * src/io-inst.cc: Don't include iostream.
1169 * include/bits/ios_base.h (ios_base::failure): Use string.
1170 * src/Makefile.am: Add ios_failure.cc.
1171 * src/Makefile.in: Regenerate.
1172 * src/ios.cc: Move ios_base::failure definitions to...
1173 * src/ios_failure.cc: ...here. New.
1175 2003-10-09 Petur Runolfsson <peturr02@ru.is>
1178 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1179 Move code needed for both seekoff and seekpos...
1180 (basic_filebuf::_M_seek): ...here. New function.
1181 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
1182 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
1183 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
1185 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
1187 2003-10-08 Paolo Carlini <pcarlini@unitus.it>
1189 * include/bits/locale_facets.tcc: More minor cosmetic
1190 changes and const-ifications of some variables.
1192 2003-10-07 Paolo Carlini <pcarlini@unitus.it>
1194 * include/bits/locale_facets.tcc: Minor cosmetic changes
1195 and const-ifications of some variables.
1197 * include/bits/locale_facets.tcc
1198 (money_get::do_get(..., string_type&)): Simplify an if-else.
1200 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
1203 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
1204 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
1205 * config/locale/generic/ctype_members.cc: Same.
1206 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
1208 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
1210 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
1211 Improve performance-wise: avoid one traits::copy, avoid
1212 the __builtin_alloca, streamline.
1214 2003-10-05 Paolo Carlini <pcarlini@unitus.it>
1216 * include/bits/locale_facets.tcc
1217 (num_put::do_put(..., bool)): Prefer ?: to if-else.
1218 (time_get::_M_extract_name): Qualify min with std::.
1219 (__pad<>::_S_pad): Constify two variables; simplify an
1220 if-else statement factoring out some code.
1222 * include/bits/locale_facets.tcc: Minor cosmetic changes.
1224 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1226 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1227 Constify a couple of variables.
1228 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
1229 ++__beg to *__beg++.
1231 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1232 Petur Runolfsson <peturr02@ru.is>
1234 * include/ext/stdio_sync_filebuf.h: Don't include the whole
1235 <fstream>, only <streambuf> and <cstdio>.
1237 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1240 * include/bits/fstream.tcc (imbue): In case a codecvt facet
1241 is not available, set _M_codecvt = 0.
1242 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
1244 2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
1247 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
1249 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1251 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
1252 * src/locale.cc: Define.
1253 * src/localename.cc: Use it.
1254 * config/locale/generic/time_members.h: Same.
1255 * config/locale/gnu/messages_members.h: Same.
1256 * config/locale/gnu/time_members.h: Same.
1258 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
1261 * include/bits/fstream.tcc (seekoff): Ignore the openmode
1263 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
1264 seekpos): Remove the openmode argument.
1265 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
1266 seekpos): Remove redundant placeholder for the openmode argument.
1267 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
1268 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
1269 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
1270 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
1271 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
1273 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1275 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
1276 (locale::facet::_S_get_c_locale): Same.
1278 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1280 * config/linker-map.gnu: Export _S_get_c_locale instead of
1283 2003-10-02 Petur Runolfsson <peturr02@ru.is>
1285 * config/locale/generic/c_locale.cc
1286 (category_names, locale::_S_categories): Const qualify.
1287 * config/locale/gnu/c_locale.cc: Same.
1288 * config/locale/generic/time_members.h (__timepunct::__timepunct):
1289 Copy string contents before assigning to _M_name_timepunct,
1290 qualify strcpy and strlen with std::.
1291 * config/locale/gnu/time_members.h: Same.
1292 * config/locale/gnu/messages_members.h (messages::messages):
1293 Copy string contents before assigning to _M_name_messages,
1294 qualify strcpy and strlen with std::.
1295 * config/os/gnu-linux/ctype_noninline.h
1296 (ctype<char>::classic_table()): Don't call locale::classic().
1297 * include/bits/locale_classes.h
1298 (locale::_S_categories): Const qualify.
1299 (locale::_S_once, locale::_S_initialize_once,
1300 locale::facet::_S_once, locale::facet::_S_initialize_once,
1301 locale::facet::_S_get_c_locale): Declare.
1302 (locale::_S_initialize): Don't define.
1303 (locale::facet::_S_c_locale): Make private.
1304 (locale::facet::_S_c_name): Same, const qualify.
1305 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
1306 parameters, add throw() specifier.
1307 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
1308 messages::_M_name_messages): Const qualify.
1310 (locale::_S_once, locale::facet::_S_once): Define.
1311 (locale::classic): Move initialization code...
1312 (locale::_S_initialize_once): ...here.
1313 (locale::_S_initialize): Call _S_initialize_once through
1315 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
1316 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
1317 __gthread_once before returning _S_c_locale.
1318 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
1319 Drop unused parameters, add throw() specifier, don't initialize
1320 locale::facet::_S_c_locale and _S_c_name.
1322 * config/locale/generic/messages_members.h:
1323 Replace _S_c_locale with _S_get_c_locale().
1324 * config/locale/gnu/c_locale.cc: Same.
1325 * config/locale/gnu/messages_members.h: Same.
1326 * config/locale/gnu/numeric_members.cc: Same.
1327 * config/locale/gnu/time_members.cc: Same.
1328 * config/os/gnu-linux/ctype_noninline.h: Same.
1329 * include/bits/locale_facets.h: Same.
1330 * include/bits/locale_facets.tcc: Same.
1331 * src/codecvt.cc: Same.
1332 * src/ctype.cc: Same.
1334 2003-10-02 Carlo Wood <carlo@alinoe.com>
1336 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
1337 Decode symbols that start with _GLOBAL_[ID]_ differently: the
1338 trailing part ends with a terminating zero and is not necessarily an
1340 * src/demangle.cc (): Same.
1341 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
1343 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
1345 * testsuite/22_locale/locale/cons/12438.cc: Use
1346 __gnu_test::try_named_locale("").
1348 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1350 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
1351 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
1353 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
1354 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
1356 * config.h.in, configure: Regenerate.
1357 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
1360 2003-10-01 Nathan Myers <ncm@cantrip.org>
1362 * include/bits/locale_facets.tcc (time_put::put): Avoid
1363 expensive *__s++, in favor of *__s, ++__s.
1365 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
1367 * include/bits/locale_facets.tcc (time_put::put): Minor
1368 tweak to the previous commit.
1370 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
1373 * include/bits/locale_facets.tcc (time_put::put): Deal
1374 with the three issues pointed out by the PR.
1375 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
1376 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
1377 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
1378 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
1379 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
1381 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1383 * include/bits/stl_algo.h: Minor cosmetic reformattings.
1385 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1387 * include/bits/stl_algo.h (search_n): Tweak, to spare the
1390 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1392 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
1393 qualify exception name.
1395 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1398 * include/bits/locale_facets.tcc (locale::combine): Don't
1399 leak memory if _M_replace_facet throws.
1400 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
1402 * include/bits/locale_classes.h (locale::locale(const locale&,
1403 _Facet*)): Tweak, use consistently _M_remove_reference.
1405 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1407 PR libstdc++/12352 (cont)
1408 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
1409 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
1411 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
1412 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
1413 !_M_caches, !_M_names.
1415 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1417 * configure.host: Handle Solaris 2.5 micro releases explicitly.
1418 Remove wildcards from Solaris 2.6, 7-9: there were no
1420 Treat Solaris 10 and up like 7-9.
1422 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1424 * include/bits/stl_algo.h (search_n): Improve the previous
1425 fix as suggested by Martin.
1427 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1430 * include/bits/istream.tcc (peek): Set eofbit if sgetc
1432 * testsuite/27_io/basic_istream/peek/char/12296.cc:
1435 2003-09-29 Nathan Myers <ncm@cantrip.org>
1436 Paolo Carlini <pcarlini@unitus.it>
1439 * include/bits/stl_algo.h (search_n):
1440 Use iterator_traits<>::difference_type for __n.
1441 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
1443 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1445 * testsuite/22_locale/locale/cons/12352.cc:
1446 Use __attribute__((unused)) for test.
1448 2003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
1450 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
1451 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
1452 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
1454 2003-09-26 Brad Spencer <spencer@infointeractive.com>
1456 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
1457 Explicitly qualify exceptions.
1458 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
1459 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1460 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1461 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1463 2003-09-25 Paolo Carlini <pcarlini@unitus.it>
1466 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
1467 size_t)): Don't leak if memory allocations for _M_facets,
1468 _M_caches, and _M_names fail.
1469 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
1470 (locale::_Impl::_M_replace_categories(const _Impl*,
1472 (locale::_Impl::_M_install_facet(const locale::id*,
1473 const facet*)): Ditto.
1474 * include/bits/locale_classes.h (locale::locale(const locale&,
1475 _Facet*)): Don't leak memory.
1476 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
1478 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
1479 bool)): Qualify with std:: strcpy, tweak.
1480 * include/bits/locale_classes.h
1481 (locale::_Impl::_M_check_same_name): Qualify strcmp.
1483 2003-09-25 Brad Spencer <spencer@infointeractive.com>
1486 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
1488 * aclocal.m4: Regenerate.
1489 * config.h.in: Regenerate.
1490 * configure: Regenerate.
1491 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
1492 * config/io/basic_file_stdio.cc: Guard unistd.h.
1493 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
1494 * include/c_std/std_cwchar.h: Same.
1495 * include/c_std/std_cwctype.h: Same.
1497 2003-09-25 Benjamin Kosnik <bkoz@redhat.com>
1500 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
1501 * config/locale/generic/ctype_members.cc: Same.
1502 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
1503 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
1505 * config/os/generic/ctype_inline.h: Update.
1507 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
1509 * src/Makefile.am (version_dep): New variable.
1510 (libstdc___la_DEPENDENCIES): Use it to add dependency on
1511 libstdc++-symbol.ver only when using symbol versioning.
1512 * src/Makefile.in: Regenerate.
1514 2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
1516 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
1517 * testsuite/testsuite_hooks.h: Same.
1518 * testsuite/*/*.cc: Same.
1520 2003-09-22 Petur Runolfsson <peturr02@ru.is>
1522 * include/bits/istream.tcc (basic_istream::read,
1523 basic_istream::readsome, basic_istream::putback,
1524 basic_istream::unget, operator>>(basic_istream, CharT)):
1525 Avoid redundant setstate(failbit) calls when sentry::operator bool()
1528 2003-09-22 Carlo Wood <carlo@alinoe.com>
1531 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
1532 char const*, int, int)): Remove unused identifier
1533 cv_qualifier for overloaded constructor.
1535 2003-09-18 Benjamin Kosnik <bkoz@redhat.com>
1538 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
1539 WARN_FLAGS, remove -Wno-format.
1540 * aclocal.m4: Regenerate.
1541 * configure: Regenerate.
1543 2003-09-18 Petur Runolfsson <peturr02@ru.is>
1545 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
1546 * config/io/basic_file_stdio.h: Same.
1547 * include/std/std_fstream.h (__ctype_type): Delete.
1548 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
1550 2003-09-17 Benjamin Kosnik <bkoz@redhat.com>
1553 * configure.host (abi_baseline_pair): Error out on solaris2
1554 configurations without a minor version number.
1556 2003-09-13 Phil Edwards <phil@codesourcery.com>
1558 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
1559 if man pages are on.
1560 * docs/doxygen/user.cfg.in: And here.
1562 2003-09-10 Daniel Jacobowitz <drow@mvista.com>
1563 Andreas Jaeger <aj@suse.de>
1566 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
1567 abi_check if cross compiling.
1568 * aclocal.m4: Regenerated.
1569 * configure: Regenerated.
1571 2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
1573 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
1574 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
1575 (__cxa_vec_new3): Likewise.
1577 2003-09-10 Petur Runolfsson <peturr02@ru.is>
1579 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1580 Use codecvt::length to handle variable-width stateless encodings
1582 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
1583 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
1585 2003-09-10 Alan Modra <amodra@bigpond.net.au>
1587 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
1590 2003-09-09 Alan Modra <amodra@bigpond.net.au>
1592 * configure: Regenerate.
1594 2003-09-09 David Edelsohn <edelsohn@gnu.org>
1596 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
1597 qualifier from _S_synced_with_stdio.
1599 2003-09-09 Bernardo Innocenti <bernie@develer.com>
1601 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
1603 2003-09-04 Petur Runolfsson <peturr02@ru.is>
1606 * include/bits/fstream.tcc
1607 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
1608 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
1609 _M_ext_buf_size, _M_ext_next and _M_ext_end.
1610 (basic_filebuf::underflow): Handle variable-width stateless
1611 encodings (codecvt::encoding() == 0), including UTF-8.
1612 * include/std/std_fstream.h (basic_filebuf):
1613 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
1614 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
1615 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
1616 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
1617 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
1618 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
1619 * testsuite/27_io/objects/wchar_t/12.cc: New test.
1620 * testsuite/27_io/objects/wchar_t/13.cc: New test.
1622 2003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
1624 * docs/html/faq/index.html: Note that a namespace alias can't be
1625 used when specialising templates in extension namespace.
1626 * docs/html/faq/index.txt: Regenerate.
1628 2003-09-03 Petur Runolfsson <peturr02@ru.is>
1631 * include/ext/stdio_sync_filebuf.h
1632 (stdio_sync_filebuf::_M_unget_buf): Declare it.
1633 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
1634 (stdio_sync_filebuf::uflow): Store the returned character in
1636 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
1637 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
1638 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
1639 _M_unget_buf, if any, else eof().
1640 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
1641 _M_unget_buf, if any, else eof().
1642 * testsuite/27_io/objects/char/12048.cc: Rename to...
1643 * testsuite/27_io/objects/char/12048-1.cc: ...this.
1644 * testsuite/27_io/objects/char/12048-2.cc: New test.
1645 * testsuite/27_io/objects/char/12048-3.cc: New test.
1646 * testsuite/27_io/objects/char/12048-4.cc: New test.
1647 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
1648 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
1649 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
1650 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
1651 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
1652 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
1653 * testsuite/ext/stdio_sync_filebuf_char.cc
1654 (test02, test03, test04, test05): New tests.
1655 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
1656 (test02, test03, test04, test05): New tests.
1658 2003-09-03 Petur Runolfsson <peturr02@ru.is>
1660 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
1661 stringbuf or strstreambuf. Fix typos.
1663 2003-09-02 Phil Edwards <phil@codesourcery.com>
1665 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
1667 * config.h.in: Add _GLIBCXX_HOSTED.
1668 * libsupc++/eh_term_handler.cc: Test it here; initialize
1669 __terminate_handler to std::abort if freestanding.
1670 * aclocal.m4, configure: Regenerated.
1671 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
1673 2003-08-29 Nathan Myers <ncm@cantrip.org>
1676 * include/bits/locale_facets.tcc (__pad): delete dead code.
1678 2003-08-28 Alan Modra <amodra@bigpond.net.au>
1680 * configure.ac: Test $with_cross_host against $build_alias, not $build.
1681 * configure: Regenerate.
1683 2003-08-27 Petur Runolfsson <peturr02@ru.is>
1685 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
1686 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
1688 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1690 * Makefile.am: Remove trailing whitespace. Remove needless
1691 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
1692 * include/Makefile.am: Likewise.
1693 * libmath/Makefile.am: Likewise.
1694 * libsupc++/Makefile.am: Likewise.
1695 * po/Makefile.am: Likewise.
1696 * src/Makefile.am: Likewise.
1697 * testsuite/Makefile.am: Likewise.
1699 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
1700 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1701 testsuite/Makefile.in: Regenerated.
1703 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1705 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
1707 * aclocal.m4, configure: Regenerate.
1709 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
1711 * acinclude.m4: Include no-executables.m4.
1712 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
1713 * aclocal.m4: Regenerated.
1714 * configure: Regenerated.
1716 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
1718 * acinclude.m4: Don't call AC_ISC_POSIX.
1719 * aclocal.m4: Regenerated.
1720 * configure: Regenerated.
1722 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1724 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
1725 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
1726 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
1727 used elsewhere in this file.
1728 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
1729 * configure.ac: ...called here to expand all conditionals.
1730 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
1731 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
1732 (install-freestanding-headers): New target, a subset of
1733 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
1735 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1736 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1737 src/Makefile.in, testsuite/Makefile.in: Regenerated.
1739 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
1741 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
1742 pathnames from generated tag file.
1744 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
1746 * Makefile.am: Add comment.
1747 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
1749 * configure.ac: Use them both here, instead of hardcoded lists.
1751 * fragment.am: Add STAMP varaible.
1752 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
1754 (stamp-*): Move file creation rule outside of 'if' branches to
1755 ensure the stamp-* files are actually updated. Use $(STAMP).
1756 * src/Makefile.am: Remove now-nonexistant variable.
1757 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
1759 * po/Makefile.am: Include same fragment as all the others.
1761 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1762 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
1764 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
1766 * testsuite/data/cin_unget-1.txt: New.
1767 * testsuite/27_io/objects/char/12048.cc: New.
1769 2003-08-25 Zack Weinberg <zack@codesourcery.com>
1771 * config/os/hpux/os_defines.h: Unconditionally define
1772 _GLIBCXX_GTHREAD_USE_WEAK to 0.
1774 2003-08-19 Geoffrey Keating <geoffk@apple.com>
1776 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
1777 crosses to Darwin targets.
1778 * configure: Regenerate.
1780 2003-08-19 Petur Runolfsson <peturr02@ru.is>
1782 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
1784 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
1786 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
1787 in the patch from 3 minutes ago. Boy, is my face red.
1788 * configure: At least I remembered to regenerate this.
1790 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
1792 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
1793 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
1794 things from the top level.
1795 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
1796 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
1797 (currently unused). Strip the fake-VPATH shell fragment from
1798 automake-generated rules, if present.
1799 * linkage.m4: Add comment.
1801 * fragment.am: New file, containing factored-out common settings.
1802 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
1803 * Makefile.am: Include fragment.am. Remove common variables.
1804 * include/Makefile.am: Likewise.
1805 * libmath/Makefile.am: Likewise.
1806 * libsupc++/Makefile.am: Likewise.
1807 * po/Makefile.am: Likewise. Print rules during check.
1808 * src/Makefile.am: Likewise.
1809 * testsuite/Makefile.am: Likewise.
1811 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1812 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1813 src/Makefile.in, testsuite/Makefile.in: Regenerate.
1815 2003-08-11 John Levon <levon@movementarian.org>
1817 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
1818 remaining places for the name change from GLIBCPP_FORCE_NEW
1819 to GLIBCXX_FORCE_NEW
1821 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
1823 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
1825 * include/bits/basic_ios.tcc: Same.
1826 * include/bits/istream.tcc: Same.
1827 * include/bits/locale_facets.h: Same.
1828 * include/bits/ostream.tcc: Same.
1829 * include/std/std_istream.h: Same.
1830 * include/std/std_ostream.h: Same.
1831 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
1833 * include/ext/rope: Remove build warning.
1835 2003-08-11 Andreas Jaeger <aj@suse.de>
1837 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
1839 * include/Makefile.in: Regenerated.
1841 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
1843 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
1844 when calling AC_PROG_CC.
1845 * aclocal.m4, configure: Regenerate.
1847 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
1849 * acinclude.m4: Properly quote variable which will be expanded
1850 inside makefiles. Use CXX instead of CC to extract compiler info.
1851 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
1852 correct form in PACKAGE.
1853 * aclocal.m4, configure: Regenerate.
1855 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
1857 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
1858 (check-abi-verbose): Same.
1859 * testsuite/testsuite_performance.h (report_performance): Same.
1861 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
1863 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
1865 2003-08-07 Doug Gregor <dgregor@apple.com>
1867 * include/bits/char_traits.h (char_traits::not_eof): Match operand
1870 2003-08-07 Bernardo Innocenti <bernie@develer.com>
1873 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
1874 Replace variants with new BSET-based version.
1876 2003-08-07 Carlo Wood <carlo@alinoe.com>
1878 * include/bits/demangle.h: Do not use cctype functions that depend
1881 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
1883 * configure.in: Rename...
1884 * configure.ac: ...to this.
1885 * docs/html/17_intro/porting.texi: Update name.
1887 * docs/html/17_intro/porting.html: Regenerate.
1888 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1889 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1890 testsuite/Makefile.in: Regenerate (picks up new dependancy).
1892 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
1894 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
1895 pipe, open the window to let out the fumes, redo the option-handling
1896 logic to properly execute the detection test.
1897 * aclocal.m4, configure: Regenerate.
1899 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1901 Convert to new autotools.
1902 * acconfig.h: Update with correct names.
1903 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
1904 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
1905 * configure.in: Update. Split hardcoded cross-configury settings
1907 * crossconfig.m4: ...here. New file. Contents untouched.
1908 * acinclude.m4: Reorganize and rewrite as needed. Split large
1910 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
1912 * scripts/testsuite_flags.in: Update.
1914 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
1915 variables (already generated by automake).
1916 * include/Makefile.am: Ditto.
1917 * libmath/Makefile.am: Ditto.
1918 * libsupc++/Makefile.am: Ditto.
1919 * po/Makefile.am: Ditto.
1920 * src/Makefile.am: Ditto.
1922 * aclocal.m4: Regenerate using new versions.
1923 * config.h.in: Ditto.
1925 * Makefile.in: Ditto.
1926 * include/Makefile.in: Ditto.
1927 * libmath/Makefile.in: Ditto.
1928 * libsupc++/Makefile.in: Ditto.
1929 * po/Makefile.in: Ditto.
1930 * src/Makefile.in: Ditto.
1931 * testsuite/Makefile.in: Ditto.
1933 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1935 * po/libstdc++.pot: Re-extract/regenerate.
1937 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1939 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
1940 Remove unneeded variable assignments. Leave them for automake.
1941 * testsuite/lib/libstdc++-v3.exp: Rename...
1942 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
1944 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
1945 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
1948 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1950 * docs/doxygen/guide.html: run_doxygen uses bash.
1951 * docs/doxygen/mainpage.html: We'll be shipping tag files.
1952 * docs/doxygen/run_doxygen: Tweaks and improvements.
1953 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
1954 * docs/html/install.html: Update autoconf/automake requirements.
1955 * docs/html/test.html: Add section describing DejaGNU support.
1956 * docs/html/17_intro/confdeps.dot: New file, generates...
1957 * docs/html/17_intro/confdeps.png: ...this new file.
1958 * docs/html/Makefile: Generated here.
1959 * docs/html/17_intro/configury.html: New file.
1961 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
1963 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
1964 * testsuite/lib/libstdc++-v3.exp: ...to this.
1965 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
1967 2003-07-31 Doug Gregor <dgregor@apple.com>
1969 Add user specialization tests.
1970 * testsuite/23_containers/deque/1.cc: New.
1971 * testsuite/23_containers/list/1.cc: New.
1972 * testsuite/23_containers/map/1.cc: New.
1973 * testsuite/23_containers/multimap/1.cc: New.
1974 * testsuite/23_containers/multiset/1.cc: New.
1975 * testsuite/23_containers/set/1.cc: New.
1976 * testsuite/23_containers/vector/1.cc: New.
1978 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
1980 Reshuffle 23_containers testsuite.
1981 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
1982 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
1983 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
1984 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
1985 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
1986 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
1987 vector_resize.cc: Split into...
1988 * 23_containers/bitset/cons/1.cc: New.
1989 * 23_containers/bitset/cons/6282.cc: New.
1990 * 23_containers/bitset/count/6124.cc: New.
1991 * 23_containers/bitset/operations/1.cc: New.
1992 * 23_containers/bitset/operations/2.cc: New.
1993 * 23_containers/bitset/test/1.cc: New.
1994 * 23_containers/bitset/to_ulong/1.cc: New.
1995 * 23_containers/deque/cons/1.cc: New.
1996 * 23_containers/deque/cons/2.cc: New.
1997 * 23_containers/deque/operators/1.cc: New.
1998 * 23_containers/list/capacity/1.cc: New.
1999 * 23_containers/list/cons/1.cc: New.
2000 * 23_containers/list/cons/2.cc: New.
2001 * 23_containers/list/cons/3.cc: New.
2002 * 23_containers/list/cons/4.cc: New.
2003 * 23_containers/list/cons/5.cc: New.
2004 * 23_containers/list/cons/6.cc: New.
2005 * 23_containers/list/cons/7.cc: New.
2006 * 23_containers/list/cons/8.cc: New.
2007 * 23_containers/list/cons/9.cc: New.
2008 * 23_containers/list/modifiers/1.cc: New.
2009 * 23_containers/list/modifiers/2.cc: New.
2010 * 23_containers/list/modifiers/3.cc: New.
2011 * 23_containers/list/operators/1.cc: New.
2012 * 23_containers/list/operators/2.cc: New.
2013 * 23_containers/list/operators/3.cc: New.
2014 * 23_containers/list/operators/4.cc: New.
2015 * 23_containers/map/insert/1.cc: New.
2016 * 23_containers/map/operators/1.cc: New.
2017 * 23_containers/map/operators/1_neg.cc: New.
2018 * 23_containers/multiset/insert/1.cc: New.
2019 * 23_containers/priority_queue/members/7161.cc: New.
2020 * 23_containers/queue/members/7157.cc: New.
2021 * 23_containers/set/operators/1_neg.cc: New.
2022 * 23_containers/stack/members/7158.cc: New.
2023 * 23_containers/vector/bool/1.cc: New.
2024 * 23_containers/vector/bool/6886.cc: New.
2025 * 23_containers/vector/capacity/1.cc: New.
2026 * 23_containers/vector/capacity/2.cc: New.
2027 * 23_containers/vector/capacity/8230.cc: New.
2028 * 23_containers/vector/cons/1.cc: New.
2029 * 23_containers/vector/cons/2.cc: New.
2030 * 23_containers/vector/cons/3.cc: New.
2031 * 23_containers/vector/cons/4.cc: New.
2032 * 23_containers/vector/cons/6513.cc: New.
2033 * 23_containers/vector/element_access/1.cc: New.
2034 * 23_containers/vector/modifiers/1.cc: New.
2035 * 23_containers/vector/modifiers/2.cc: New.
2036 * 23_containers/vector/resize/1.cc: New.
2038 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2040 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
2042 * testsuite/thread/pthread2.cc: Likewise.
2043 * testsuite/thread/pthread3.cc: Likewise.
2044 * testsuite/thread/pthread4.cc: Likewise.
2045 * testsuite/thread/pthread5.cc: Likewise.
2046 * testsuite/thread/pthread6.cc: Likewise.
2047 * testsuite/thread/pthread7-rope.cc: Likewise.
2049 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
2051 * include/bits/c++config: Partial reversion (comment placement) of
2054 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
2056 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
2057 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
2058 (_GLIBCXX_AT_AT): Remove.
2059 (__USE_MALLOC): Remove.
2060 * include/std/std_fstream.h: Modify.
2061 * include/bits/basic_ios.h: Same.
2062 * include/bits/valarray_array.h: Same.
2063 * include/c_std/std_cmath.h: Same.
2064 * include/c_std/cmath.tcc: Same.
2065 * include/std/std_vector.h: Same.
2066 * include/std/std_string.h: Same.
2067 * include/std/std_stack.h: Same.
2068 * include/std/std_queue.h: Same.
2069 * include/std/std_list.h: Same.
2070 * include/std/std_deque.h: Same.
2071 * include/std/std_streambuf.h: Same.
2072 * include/std/std_sstream.h: Same.
2073 * include/std/std_ostream.h: Same.
2074 * include/std/std_istream.h: Same.
2075 * include/bits/valarray_array.tcc: Same, format.
2077 * include/c/std_cctype.h: Fix include guards.
2078 * include/c/std_cerrno.h: Same.
2079 * include/c/std_cfloat.h: Same.
2080 * include/c/std_climits.h: Same.
2081 * include/c/std_clocale.h: Same.
2082 * include/c/std_cmath.h: Same.
2083 * include/c/std_csetjmp.h: Same.
2084 * include/c/std_csignal.h: Same.
2085 * include/c/std_cstdarg.h: Same.
2086 * include/c/std_cstddef.h: Same.
2087 * include/c/std_cstdio.h: Same.
2088 * include/c/std_cstdlib.h: Same.
2089 * include/c/std_cstring.h: Same.
2090 * include/c/std_ctime.h: Same.
2091 * include/c/std_cwchar.h: Same.
2092 * include/c/std_cwctype.h: Same.
2093 * include/c_std/cmath.tcc: Same.
2094 * include/c_std/std_cmath.h: Same.
2096 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
2099 * include/bits/stl_tree.h: Replace C-style casts with C++-style
2100 casts. Changes to avoid casting away constness. Eliminate
2101 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
2102 initialization lists. Move out implementation of __black_count()
2104 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
2105 Rename_Rb_tree_base_iterator::_M_increment() to
2106 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
2108 * config/linker-map.gnu: Add and change symbols here.
2110 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
2112 * docs/html/22_locale/howto.html: Use locale::classic() instead
2115 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
2117 * testsuite/testsuite_hooks.h: Remove list include.
2118 (func_callback): Define as unique type, not std::list.
2119 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
2120 * testsuite/libstdc++-v3.dg/dg.exp: Same.
2121 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
2122 * testsuite/23_containers/bitset_ctor.cc:
2123 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
2124 * testsuite/18_support/numeric_limits.cc: Same.
2125 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
2126 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
2127 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
2128 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
2129 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
2130 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
2131 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
2132 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
2133 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
2134 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
2135 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
2136 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
2137 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
2138 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
2139 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
2140 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
2141 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
2142 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
2143 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
2144 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
2145 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
2146 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
2147 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
2148 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
2149 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
2150 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
2151 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
2152 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
2153 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
2154 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
2155 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
2156 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
2157 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
2158 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
2159 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
2160 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
2161 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
2162 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
2163 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
2164 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
2165 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
2166 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
2167 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
2168 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
2169 * testsuite/23_containers/bitset_ctor.cc: Same.
2170 * testsuite/23_containers/bitset_shift.cc: Same.
2171 * testsuite/23_containers/vector_ctor.cc: Same.
2172 * testsuite/23_containers/vector_element_access.cc: Same.
2173 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
2174 * testsuite/24_iterators/iterator.cc: Same.
2175 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
2176 * testsuite/25_algorithms/lower_bound.cc: Same.
2177 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
2178 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
2179 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
2180 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
2181 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
2182 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
2183 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
2184 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
2185 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
2186 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
2187 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2190 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2192 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
2193 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
2194 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
2195 GLIBCPP to GLIBCXX (and explain as needed).
2197 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2201 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2203 * testsuite/22_locale/messages/members/char/1.cc,
2204 testsuite/22_locale/messages/members/char/2.cc,
2205 testsuite/22_locale/messages/members/char/3.cc,
2206 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
2207 the origin of LOCALEDIR.
2208 * testsuite/lib/libstdc++-v3.exp: New file.
2210 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
2212 * include/bits/char_traits.h: Update copyright, tweak.
2213 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
2216 2003-07-24 Matt Austern <austern@apple.com>
2218 * /include/bits/char_traits.h (class char_traits): Put all the
2219 real work into the new class template __gnu_cxx::char_traits.
2220 Gave generic definitions for member functions. Types are taken
2221 from the new class template __gnu_cxx::_Char_types.
2222 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
2223 file. Test of std::char_traits<short>, which serves as a test of
2224 the char_traits primary template.
2226 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
2228 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
2230 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
2232 * testsuite/23_containers/map_operators.cc: Conform to
2233 container requirement as value must be Assignable.
2235 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
2237 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
2238 tests not only generation of pch files, but also their use.
2239 * aclocal.m4, configure: Rebuilt.
2241 2003-07-23 Steve Ellcey <sje@cup.hp.com>
2243 * config/cpu/hppa/atomicity.h: Change
2244 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
2245 to match misc-inst.cc
2247 2003-07-23 Steve Ellcey <sje@cup.hp.com>
2249 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
2250 * include/c_std/std_cctype.h: Ditto.
2251 * include/c_std/std_cerrno.h: Ditto.
2252 * include/c_std/std_cfloat.h: Ditto.
2253 * include/c_std/std_climits.h: Ditto.
2254 * include/c_std/std_clocale.h: Ditto.
2255 * include/c_std/std_cmath.h: Ditto.
2256 * include/c_std/std_csetjmp.h: Ditto.
2257 * include/c_std/std_csignal.h: Ditto.
2258 * include/c_std/std_cstdarg.h: Ditto.
2259 * include/c_std/std_cstddef.h: Ditto.
2260 * include/c_std/std_cstdio.h: Ditto.
2261 * include/c_std/std_cstdlib.h: Ditto.
2262 * include/c_std/std_cstring.h: Ditto.
2263 * include/c_std/std_ctime.h: Ditto.
2264 * include/c_std/std_cwchar.h: Ditto.
2265 * include/c_std/std_cwctype.h: Ditto.
2266 * include/std/std_algorithm.h: Ditto.
2267 * include/std/std_bitset.h: Ditto.
2268 * include/std/std_complex.h: Ditto.
2269 * include/std/std_deque.h: Ditto.
2270 * include/std/std_fstream.h: Ditto.
2271 * include/std/std_functional.h: Ditto.
2272 * include/std/std_iomanip.h: Ditto.
2273 * include/std/std_ios.h: Ditto.
2274 * include/std/std_iosfwd.h: Ditto.
2275 * include/std/std_iostream.h: Ditto.
2276 * include/std/std_istream.h: Ditto.
2277 * include/std/std_iterator.h: Ditto.
2278 * include/std/std_limits.h: Ditto.
2279 * include/std/std_list.h: Ditto.
2280 * include/std/std_locale.h: Ditto.
2281 * include/std/std_map.h: Ditto.
2282 * include/std/std_memory.h: Ditto.
2283 * include/std/std_numeric.h: Ditto.
2284 * include/std/std_ostream.h: Ditto.
2285 * include/std/std_queue.h: Ditto.
2286 * include/std/std_set.h: Ditto.
2287 * include/std/std_sstream.h: Ditto.
2288 * include/std/std_stack.h: Ditto.
2289 * include/std/std_stdexcept.h: Ditto.
2290 * include/std/std_streambuf.h: Ditto.
2291 * include/std/std_string.h: Ditto.
2292 * include/std/std_utility.h: Ditto.
2293 * include/std/std_valarray.h: Ditto.
2294 * include/std/std_vector.h: Ditto.
2296 2003-07-22 Doug Gregor <dgregor@apple.com>
2298 * include/bits/basic_string.h (basic_string::insert): Deprecate
2301 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
2303 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
2305 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
2306 (test03): Include typeinfo for bad_cast.
2307 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2308 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2309 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2311 2003-07-21 Doug Gregor <dgregor@apple.com>
2313 * include/bits/boost_concept_check.h:
2314 (_EqualityComparableConcept::__constraints): Remove != from the
2315 list of constraints; it is not listed in Table 28 of the C++98
2318 2003-07-18 Andreas Jaeger <aj@suse.de>
2320 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
2321 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
2322 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
2323 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2325 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
2327 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
2328 * config/locale/generic/messages_members.h: Tweaks.
2329 * config/locale/generic/monetary_members.cc
2330 (moneypunct::_M_initialize_moneypunct): Use cache.
2331 (moneypunct::~moneypunct): Delete cache.
2332 * config/locale/generic/time_members.cc:
2333 (__timepunct::_M_initialize_timepunct): Use cache.
2334 * config/locale/generic/time_members.h:
2335 (__timepunct::~__timepunct): Delete cache.
2336 (__timepunct::__timepunct): Set cache.
2337 * config/locale/gnu/messages_members.h: Tweaks.
2338 * config/locale/gnu/monetary_members.cc:
2339 (moneypunct::_M_initialize_moneypunct): Use cache.
2340 (moneypunct::~moneypunct): Delete cache.
2341 * config/locale/gnu/time_members.cc:
2342 (__timepunct::_M_initialize_timepunct): Use cache.
2343 * config/locale/gnu/time_members.h:
2344 (__timepunct::~__timepunct): Delete cache.
2345 (__timepunct::__timepunct): Set cache.
2346 * include/bits/locale_facets.h (__timepunct_cache): New.
2347 (__moneypunct_cache): New.
2348 * include/bits/locale_facets.tcc: Tweak.
2349 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
2350 * src/locale-inst.cc: Instantiate caches.
2351 * src/globals.cc: Add "C" caches.
2352 * src/localename.cc: Use external "C" caches.
2354 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
2356 * docs/doxygen/guide.html: Fix typo.
2358 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2360 * include/ext/pod_char_traits.h: Add state template argument.
2362 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2364 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
2365 (num_get::_M_convert_int): To _M_insert_int.
2366 (num_get::_M_convert_float): To _M_insert_float.
2367 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2368 Use caches for ctype, num_get.
2369 (num_get::_M_extract_int): Same.
2370 (num_get::get(bool)): Same.
2371 (__verify_grouping): Use size_t.
2372 * src/locale-inst.cc: Update.
2373 * src/locale.cc: Adjust _S_atoms_in.
2375 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
2377 * docs/doxygen/mainpage.html: Move building/writing instructions...
2378 * docs/doxygen/guide.html: ...to here. New file.
2380 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
2382 * docs/html/ext/howto.html: Update URL for SGI STL docs.
2383 * docs/html/faq/index.html: Same.
2384 * docs/html/faq/index.txt: Regenerate.
2386 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
2389 * include/bits/locale_facets.tcc (money_get::do_get):
2390 Strip only _leading_ zeros.
2391 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
2392 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
2394 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2396 * include/ext/hash_map (class hash_multimap): Remove extra
2397 semicolons from __glibcxx_class_requires3 entries.
2398 * include/ext/hash_set (class hash_set): Ditto.
2399 (class hash_multiset): Ditto.
2401 2003-07-15 Petur Runolfsson <peturr02@ru.is>
2403 * include/bits/char_traits.h (char_traits<wchar_t>::move):
2404 Change last parameter from int_type to size_t.
2406 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2408 * include/bits/stl_algo.h (includes, set_union, set_intersection,
2409 set_difference, set_symmetric_difference, max_element, min_element,
2410 next_permutation, prev_permutation, find_first_of, find_end):
2412 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
2413 restrictions in docs.
2414 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
2416 * docs/doxygen/doxygroups.cc (setoperations): New group.
2418 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2420 * include/bits/basic_string.h: Document public functions.
2421 * docs/doxygen/TODO: Update c21 todo.
2423 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2425 * include/bits/stl_list.h: Document more functions.
2426 * docs/doxygen/TODO: Update c23 todo.
2428 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2430 * config/locale/gnu/c_locale.h (__convert_from_v): One more
2433 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2435 * include/bits/stl_tempbuf.h: Qualify free with std::.
2436 * src/locale.cc: Include <cstdlib>, qualify getenv.
2438 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2440 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2441 <cstdio>. Qualify names.
2442 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
2444 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2445 Nathan C. Myers <ncm-nospam@cantrip.org>
2448 * include/std/std_fstream.h (xsputn): Declare only.
2449 * include/bits/fstream.tcc (xsputn): Define, optimize for the
2450 always_noconv() case: when __n is sufficiently large flush
2451 the buffer and issue a direct write, if possible combining the
2452 two with writev in __basic_file<>::xsputn_2.
2453 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
2455 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
2457 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
2458 the availability of writev in <sys/uio.h>.
2459 * configure.in: Call here.
2460 * acconfig.h: Add undef for the corresponding symbol.
2461 * aclocal.m4: Regenerate.
2462 * configure: Regenerate.
2463 * config.h.in: Regenerate.
2464 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
2466 * include/std/std_fstream.h (sync): Constify a variable.
2468 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
2470 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
2471 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2473 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
2475 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2476 <cstring> and <cstdlib>. Qualify names.
2478 2003-07-13 Mark Mitchell <mark@codesourcery.com>
2480 * config/locale/generic/c_locale.h: Include <cstdlib> and
2482 * include/bits/boost_concept_check.h: Add this-> to unqualified
2484 * include/bits/deque.tcc: Likewise.
2485 * include/bits/locale_facets.h : Likewise.
2486 * include/bits/ostream.tcc: Likewise.
2487 * include/bits/stl_algo.h: Likewise.
2488 * include/bits/stl_bvector.h: Likewise.
2489 * include/bits/stl_deque.h: Likewise.
2490 * include/bits/stl_list.h: Likewise.
2491 * include/bits/stl_tree.h: Likewise.
2492 * include/bits/stl_vector.h: Likewise.
2493 * include/bits/vector.tcc: Likewise.
2494 * include/ext/rope: Likewise.
2495 * include/ext/ropeimpl.h: Likewise.
2496 * include/ext/stdio_filebuf.h: Likewise.
2498 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
2500 * include/bits/basic_ios.h (copyfmt): Document.
2501 * include/bits/ios_base.h (event, event_callback, register_callback,
2502 xalloc, iword, pword): Document.
2503 (imbue, ~ios_base): Update docs on callbacks.
2505 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
2507 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
2508 warning messages if the environment cannot support symbol versioning.
2509 (port_specific_symbol_file): It's plural, add an 's' on the end.
2510 * configure.host: Likewise.
2511 * src/Makefile.am: Likewise.
2512 * config/linker-map.gnu: Remove one semicolon, heh.
2513 * scripts/extract_symvers: Don't assume useful 'export' syntax.
2514 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
2515 * aclocal.m4, configure, src/Makefile.in: Regenerated.
2517 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
2519 * include/bits/locale_facets.tcc: Use function object for
2520 __use_cache instead of template function. Partially specialize for
2522 * include/bits/locale_classes.h: Update friend declaration for
2524 (_M_install_cache): No throw exception specs.
2525 * src/locale.cc: Remove __use_cache specializations.
2526 * include/ext/pod_char_traits.h (length): Tweak.
2527 * include/bits/locale_facets.h (__numpunct_cache): Remove
2529 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
2531 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
2532 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
2533 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
2534 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
2535 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
2536 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
2538 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
2540 * src/ios.cc (_M_grow_words): Fix spelling.
2542 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
2544 * include/bits/stl_tree.h: Move larger member functions in
2545 _Rb_tree_base_iterator and _Rb_tree_node to...
2546 * src/stl_tree.cc: Here.
2547 * src/Makefile.in: Add stl_tree.cc.
2548 * src/Makefile.in: Regenerated.
2549 * config/linker-map.gnu: Add symbols here.
2551 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2553 * testsuite/ext/pod_char_traits.cc: New.
2554 * include/ext/pod_char_traits.h: New.
2555 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
2556 * include/Makefile.in: Regenerate.
2557 * docs/html/21_strings/howto.html: Update.
2559 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
2561 * testsuite/performance/list_create_fill_sort.cc: New.
2563 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2565 * config/locale/generic/numeric_members.cc: Correct type info.
2566 * config/locale/gnu/numeric_members.cc: Same.
2567 * include/bits/locale_facets.h: Same.
2569 * include/bits/char_traits.h: Correct spacing.
2571 * src/locale.cc: Wrap to 80 col.
2573 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
2575 * include/std/std_complex.h: Partially revert last
2576 changes: cmath functions must not be qualified.
2578 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
2580 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
2581 2.11 with globbing backport fix.
2582 * aclocal.m4, configure: Regenerated.
2584 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
2586 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
2587 if output is at all possible (!_M_reading), cannot be active.
2589 * include/std/std_fstream.h: Tweak comments to doxygen style.
2591 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
2593 * include/bits/locale_classes.h: Fully qualify standard
2594 functions with std::, thus avoiding Koenig lookup.
2595 * include/bits/locale_facets.tcc: Likewise.
2596 * src/locale.cc: Likewise.
2597 * src/localename.cc: Likewise.
2599 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
2601 * include/bits/allocator_traits.h: Fix doxygen markup.
2602 * include/ext/mt_allocator.h: Likewise.
2604 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
2606 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
2608 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2610 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
2611 requirement. Add port_specific_symbol_file variable.
2612 * configure.host: Add docs for port_specific_symbol_file.
2613 Clean up try_cpu block for x86.
2614 * config/linker-map.gnu: No more "last symbol can't have a
2615 semicolon" kaka. Add hook for port-specific symbols.
2616 * src/Makefile.am: Remove trailing whitespace.
2617 (libstdc++-symbol.ver): Detect the presence of port-specific
2618 symbols, and add them accordingly.
2620 * docs/html/17_intro/porting.texi: Bring up to date.
2622 * src/Makefile.in, aclocal.m4, configure,
2623 docs/html/17_intro/porting.html: Regenerated.
2625 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2627 * scripts/create_testsuite_files: New file.
2628 * testsuite/Makefile.am (all-local, check-performance): Use it.
2629 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
2630 * testsuite/Makefile.in: Regenerated.
2632 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
2634 * testsuite/performance/fstream_seek_write.cc: Likewise.
2635 * testsuite/performance/ofstream_insert_float.cc: Likewise.
2636 * testsuite/performance/ofstream_insert_int.cc: Likewise.
2637 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
2639 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
2641 * include/bits/stl_list.h: Performance and memory usage
2642 improvements. In particular, the behaviour of the constructor and
2643 destructor as the list header node is no longer dynamically
2644 allocated/de-allocated.
2645 * include/bits/list.tcc: Likewise.
2647 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
2649 * include/std/std_complex.h: Fully qualify standard
2650 functions with std::, thus avoiding Koenig lookup.
2651 * include/std/std_memory.h: Likewise.
2652 * include/std/std_valarray.h: Likewise.
2654 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
2656 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
2657 variable for grandparent and use const
2659 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
2661 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
2662 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
2663 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
2664 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
2665 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
2666 * testsuite/27_io/objects/char/7.cc: Ditto
2667 * testsuite/27_io/objects/char/9661-1.cc: Ditto
2669 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
2671 * include/std/std_bitset.h: Fully qualify standard
2672 functions with std::, thus avoiding Koenig lookup.
2674 * include/std/std_fstream.h: Change comment to doxygen style.
2676 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2678 * include/std/std_limits.h: More CPP->CXX changes.
2679 * scripts/check_survey.in: Likewise.
2681 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2683 Move from CPP to CXX.
2684 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
2685 * testsuite/Makefile.am: Same.
2686 * testsuite/Makefile.in: Regenerate.
2687 * po/Makefile.am: Same.
2688 * po/Makefile.in: Regenerate.
2689 * libsupc++/Makefile.am: Same.
2690 * libsupc++/Makefile.in: Regenerate.
2691 * libmath/Makefile.am: Same.
2692 * libmath/Makefile.in: Regenerate.
2693 * include/Makefile.am: Same.
2694 * include/Makefile.in: Regenerate.
2695 * src/Makefile.am: Same.
2696 * src/Makefile.in: Regenerate.
2698 * configure.host: Same.
2699 * configure.in: Same.
2700 * configure: Regenerate.
2701 * acinclude.m4: Same.
2703 * src: Change all files in this directory.
2705 * include: Same, standardize include guards.
2709 2003-07-04 Zack Weinberg <zack@codesourcery.com>
2711 * testsuite/22_locale/collate/compare/wchar_t/2.cc
2712 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
2713 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
2714 * testsuite/22_locale/collate/hash/wchar_t/2.cc
2715 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
2716 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
2717 * testsuite/22_locale/collate/transform/wchar_t/2.cc
2718 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
2719 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2720 XFAIL on all targets.
2722 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2724 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
2725 * aclocal.m4: Regenerate.
2726 * configure: Regenerate.
2728 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
2730 * include/bits/locale_facets.tcc (__int_to_char): Move common case
2733 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2734 Petur Runolfsson <peturr02@ru.is>
2736 * config/io/basic_file_stdio.cc: Revert.
2738 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2740 * include/bits/deque.tcc: Fully qualify standard
2741 functions with std::, thus avoiding Koenig lookup.
2742 * include/bits/gslice_array.h: Likewise.
2743 * include/bits/indirect_array.h: Likewise.
2744 * include/bits/list.tcc: Likewise.
2745 * include/bits/mask_array.h: Likewise.
2746 * include/bits/slice_array.h: Likewise.
2748 2003-07-04 Gawain Bolton <gbolton@free.fr>
2750 * include/bits/stl_tree.h: Performance and memory usage
2753 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
2755 * Makefile.am: Replace PWD with PWD_COMMAND.
2756 * Makefile.in: Regenerated.
2757 * docs/html/Makefile: Likewise.
2759 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2761 * include/bits/valarray_array.h: Fully qualify standard
2762 functions with std::, thus avoiding Koenig lookup.
2763 * include/bits/vector.tcc: Likewise.
2765 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2767 * include/Makefile.am: Update target_ to host_.
2768 * include/Makefile.in: Regenerate.
2769 * src/Makefile.am: Same.
2770 * src/Makefile.in: Regenerate.
2772 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
2774 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2776 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
2777 --enable-libstdcxx-debug-flags.
2778 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
2779 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
2780 * aclocal.m4: Regenerate.
2782 * docs/html/configopts.html: Update.
2784 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2786 Revert the fix for libstdc++/11378.
2788 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2791 * include/std/std_fstream.h (xsputn): In the unbuffered case,
2792 provided always_noconv(), issue directly _M_file.xsputn.
2793 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
2795 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2797 * include/bits/stl_list.h: Fully qualify standard
2798 functions with std::, thus avoiding Koenig lookup.
2799 * include/bits/stl_queue.h: Likewise.
2800 * include/bits/stl_raw_storage_iter.h: Likewise.
2801 * include/bits/stl_tempbuf.h: Likewise.
2802 * include/bits/stl_tree.h: Likewise.
2803 * include/bits/stl_uninitialized.h: Likewise.
2804 * include/bits/stl_vector.h: Likewise.
2805 * include/ext/rope: Change includes order.
2807 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2809 * configure.host (fpos_include_dir): Fix.
2811 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2813 * include/bits/stl_heap.h: Fully qualify standard
2814 functions with std::, thus avoiding Koenig lookup.
2815 * include/bits/stl_iterator_base_funcs.h: Likewise.
2817 * include/bits/stl_algo.h: Qualify __iterator_category too.
2818 * include/bits/stl_algobase.h: Likewise.
2819 * include/bits/stl_bvector.h: Likewise.
2821 * include/bits/stl_algo.h: Don't qualify the pair type.
2823 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
2825 * include/Makefile.am (target_headers): Add fpos.h
2826 (bits_headers): Remove.
2827 * include/Makefile.in: Regenerate.
2828 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
2829 * configure: Regenerate.
2830 * configure.host: Add fpos_include_dir.
2831 * config/os/gnu-linux/fpos.h: New.
2832 * config/os/generic/fpos.h: Add.
2833 * include/bits/fpos.h: Remove.
2835 * config/io/c_io_stdio.h: Remove fpos_t typedef.
2837 * include/bits/fstream.tcc: Tweaks.
2838 * include/std/std_fstream.h: Same.
2840 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
2841 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
2842 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
2843 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
2844 * testsuite/27_io/fpos/1.cc: New.
2846 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
2847 Petur Runolfsson <peturr02@ru.is>
2849 * include/std/std_streambuf.h: Remove _M_pos.
2850 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
2851 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
2852 use fread/fwrite instead of read/write.
2853 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
2854 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
2855 before reading again.
2856 * testsuite/27_io/objects/char/6.cc: Tweak.
2858 2003-07-03 David Edelsohn <edelsohn@gnu.org>
2860 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
2861 _GLIBCPP_USE_WCHAR_T.
2863 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2865 * include/bits/basic_string.tcc (_M_replace_aux): Constify
2868 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2870 * include/bits/stl_bvector.h: Fully qualify standard
2871 functions with std::, thus avoiding Koenig lookup.
2872 * include/bits/stl_construct.h: Likewise.
2873 * include/bits/stl_deque.h: Likewise.
2875 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2877 * testsuite/22_locale/num_put/put/char/7.cc: Include
2878 <testsuite_hooks.h>, tweak.
2879 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
2881 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
2883 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
2884 check* targets, but not libs/programs).
2885 * testsuite/Makefile.in: Regenerate.
2887 2003-07-01 Roger Sayle <roger@eyesopen.com>
2889 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
2890 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
2891 * aclocal.m4: Regenerate.
2892 * configure: Regenerate.
2894 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
2896 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
2897 * aclocal.m4: Regenerated.
2898 * configure: Regenerated.
2900 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
2903 * include/bits/fstream.tcc (underflow): For encoding() == 0
2904 don't read more than __buflen chars.
2905 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
2906 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
2907 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
2908 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
2910 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
2912 * 22_locale/num_put/put/char/7.cc: New.
2913 * 22_locale/num_put/put/wchar_t/7.cc: New.
2915 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
2917 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
2918 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
2920 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
2922 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
2923 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
2924 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
2925 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
2926 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
2927 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
2928 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
2929 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
2930 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
2931 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
2932 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
2933 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
2934 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
2935 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
2936 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
2937 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
2938 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
2939 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
2940 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
2941 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
2942 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
2943 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
2944 * data/seekoff-1.tst: Remove.
2945 * data/seekoff-1io.tst: New.
2946 * data/seekoff-1out.tst: New.
2947 * data/seekoff-2.tst: Remove.
2948 * data/seekoff-2io.tst: New.
2949 * data/seekoff-2out.tst: New.
2951 * data/seekpos-1.tst: Remove.
2952 * data/seekpos-1io.tst: New.
2953 * data/seekpos-1out.tst: New.
2954 * data/seekpos-2.tst: Remove.
2955 * data/seekpos-2io.tst: New.
2956 * data/seekpos-2out.tst: New.
2957 * data/seekpos.txt: New.
2959 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
2961 * src/locale.cc (__use_cache<numpunct>): Move from here ...
2962 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
2965 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2967 * include/bits/stl_algobase.h: Fully qualify standard
2968 functions with std::, thus avoiding Koenig lookup.
2970 2003-06-30 Doug Gregor <dgregor@apple.com>
2972 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
2973 subscripting empty string.
2975 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
2977 * testsuite/Makefile.am (check-am): Do not override.
2978 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
2979 * testsuite/Makefile.in: Regenerate.
2981 2003-06-30 Doug Gregor <dgregor@apple.com>
2983 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
2984 Don't initialize an insert_iterator with a singular iterator.
2986 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
2988 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
2989 * aclocal.m4: Regenerate.
2990 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
2991 GLIBCPP_ENABLE_PCH, default to yes.
2992 * configure: Regenerate.
2993 * docs/html/configopts.html: Add --enable-pch.
2995 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
2997 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
2998 (libstdc++-v3-init): Also set LD_RUN_PATH.
3000 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3002 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
3003 from here to filebuf and stringbuf.
3004 (~basic_streambuf()): Don't set _M_mode.
3005 (basic_streambuf()): Don't set _M_mode.
3006 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
3007 (~basic_filebuf()): Clean up.
3008 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
3009 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
3010 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
3011 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
3012 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
3013 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
3014 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
3016 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
3018 * include/std/std_fstream.h (_M_underflow): Remove.
3019 (uflow): Remove, inherited from streambuf.
3020 (underflow): Only declare.
3021 * include/bits/fstream.tcc (_M_underflow): Rename to
3022 underflow, to which is equivalent for __bump == false,
3024 * include/std/std_sstream.h (_M_underflow): Remove.
3025 (uflow): Remove, inherited from streambuf.
3026 (underflow): Only declare.
3027 * include/bits/sstream.tcc (_M_underflow): Rename to
3028 underflow, to which is equivalent for __bump == false,
3031 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3033 * include/bits/stl_algo.h: Fully qualify standard functions
3034 with std::, thus avoiding Koenig lookup.
3036 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3038 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
3039 Improve type correctness-wise.
3040 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
3042 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
3044 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
3047 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
3049 * include/std/std_streambuf.h (uflow): According to
3050 27.5.2.4.3,p16, don't check gptr() < egptr().
3052 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
3055 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
3056 (seekpos): Likewise.
3057 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
3059 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
3062 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
3064 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
3065 output name to libstdc++-v3-performance.sum.
3066 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
3067 * testsuite/Makefile.in: Regenerate.
3069 2003-06-27 Matthias Klose <doko@debian.org>
3071 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
3072 output of abi-check in libstdc++-v3-abi.sum.
3073 * testsuite/Makefile.in: Regenerate.
3075 2003-06-27 Krister Walfridsson <cato@df.lth.se>
3077 * config/os/bsd/netbsd/ctype_noninline.h
3078 (_C_ctype_): Declare.
3079 (ctype<char>::classic_table): Return _C_ctype_ + 1.
3080 (ctype<char>::ctype): Use classic_table.
3082 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
3083 Nathan C. Myers <ncm-nospam@cantrip.org>
3086 * include/bits/fstream.tcc (_M_underflow): Properly estimate
3087 the worst-case number of external bytes for a given get area.
3088 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
3090 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
3091 Petur Runolfsson <peturr02@ru.is>
3094 * include/bits/fstream.tcc (overflow): Properly estimate the
3095 worst-case number of external bytes for a given put area
3096 (by using codecvt::max_length()).
3097 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
3098 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
3099 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
3100 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
3102 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
3104 * config/linker-map.gnu: Remove ; after __numpunct_cache.
3106 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3108 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
3109 to the imbued locale.
3110 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
3112 (num_put::_M_convert_float): Use.
3114 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3115 Jerry Quinn <jlquinn@optonline.net>
3117 * config/linker-map.gnu: Add __numpunct_cache.
3118 * config/locale/gnu/numeric_members.cc
3119 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
3120 all elements for "C" locale.
3121 (numpunct::~numpunct): Delete _M_data.
3122 * config/locale/generic/numeric_members.cc: Same.
3123 * include/bits/basic_ios.tcc
3124 (basic_ios::init): Remove __locale_cache bits.
3125 (basic_ios::_M_cache_locale): Same.
3126 * include/bits/ios_base.h: Same. Tweaks.
3127 * include/bits/locale_classes.h: Tweaks. Reorder classes.
3128 (__use_cache): Make friends with _Impl, locale.
3129 (_Impl::_M_caches): Add.
3130 (_Impl::_M_install_cache): Add.
3131 * include/bits/locale_facets.h (__numpunct_cache): New.
3132 (numpunct): Encapsulate data members in __numpunct_cache member,
3133 _M_data. Adjust virtuals.
3134 (numpunct::numpunct): New ctor for the same.
3135 (__locale_cache_base): Remove.
3136 (__locale_cache): Remove.
3137 * include/bits/locale_facets.tcc (__use_cache): New function,
3139 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
3140 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
3141 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
3142 * src/locale-inst.cc: Same. Add __numpunct_cache.
3143 * src/locale.cc: Tweak inlines.
3144 (__use_cache): Define specializations.
3145 * src/localename.cc: Use global bits.
3146 (_Impl::~Impl): Deal with __numpunct_cache destruction.
3147 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
3148 (_Impl::_M_init_facet): Take into account __numpunct_cache.
3149 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
3150 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3152 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
3153 Paolo Carlini <pcarlini@unitus.it>
3155 * testsuite/performance/filebuf_copy.cc: New, testing char
3158 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
3159 Nathan C. Myers <ncm-nospam@cantrip.org>
3161 * include/bits/fstream.tcc (_M_underflow): When the actual
3162 end of file is reached, set 'uncommitted' mode to allow a
3163 next write without an intervening seek (see C++98 27.8.1.1,2
3165 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
3167 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
3169 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3170 sputc): Move inline, from here...
3171 * include/std/std_streambuf.h: ... to here.
3173 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
3174 sputbackc, sungetc, sputc): Use __builtin_expect.
3176 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
3178 * docs/doxygen/mainpage.html: Use a useful title.
3180 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3182 * docs/html/documentation.html: Remove assignment info.
3183 * docs/html/17_intro/contribute.html: Edits.
3184 * docs/html/17_intro/libstdc++-assign.tx: Remove.
3186 * docs/html/test.html: Update.
3190 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3191 Ulrich Drepper <drepper@redhat.com>
3193 * testsuite/testsuite_performance.h: Tweak mallinfo.
3195 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
3196 Nathan C. Myers <ncm-nospam@cantrip.org>
3198 * include/std/std_fstream.h (_M_filepos): Remove.
3199 (_M_reading, _M_writing): New, encode the various I/O modes:
3200 'read', 'write' and 'uncommitted'.
3201 (sync): If there is something to flush, do it, then go to
3203 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
3204 with three different cases: __off > 0 (upon underflow),
3205 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
3207 (_M_underflow): Don't call overflow, set _M_reading to true
3209 (pbackfail): Set _M_reading to true on pback creation, tweak.
3210 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
3211 set _M_writing to true on success, tweak.
3212 (seekoff): Simplify, set _M_reading, _M_writing to false, call
3213 _M_set_buffer(-1) ('uncommitted').
3214 (open, close, setbuf): Set _M_reading, _M_writing to false and
3215 call _M_set_buffer(-1), tweak.
3216 (basic_filebuf): Don't set _M_buf_unified.
3217 (_M_destroy_internal_buffer): Don't call setg and setp.
3218 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
3219 _M_writing and _M_set_buffer(-1).
3220 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
3221 _M_out_lim, _M_buf_unified): Remove.
3222 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
3223 (setp): Don't set _M_out_lim.
3224 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
3225 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
3226 upon open the mode is 'uncommitted' and therefore the put area
3228 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
3229 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
3230 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
3231 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
3232 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
3233 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
3234 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3235 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
3236 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
3237 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
3238 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
3239 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
3240 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
3241 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
3242 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
3243 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
3244 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
3245 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
3246 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
3247 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
3249 * include/bits/fstream.tcc (showmanyc): Use only the
3250 documented derivation interface to basic_streambuf (gptr(),
3251 setg(), etc.) to work right with user specializations.
3252 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3253 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
3254 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
3256 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
3259 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
3261 * configure.host (freebsd*): Set abi_baseline_pair.
3262 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
3263 (at or near first release) to 3.3.
3264 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
3265 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
3266 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
3268 * include/ext/mt_allocator.h: Portability.
3269 * testsuite/testsuite_performance.h: Likewise.
3271 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
3273 * docs/html/17_intro/libstdc++-assign.txt: Update address.
3275 * testsuite/performance/ifstream_getline.cc: Fix.
3277 2003-06-23 Doug Gregor <dgregor@apple.com>
3279 * include/bits/boost_concept_check.h: Don't use _D or _R for type
3282 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
3283 Nathan C. Myers <ncm-nospam@cantrip.org>
3285 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
3286 is now used only for filebuf, when _M_buf_unified is true.
3287 epgtr() plays the role of _M_out_lim but it's only updated
3288 upon overflow, underflow, uflow, seekoff/pos.
3289 * include/bits/sstream.tcc (_M_underflow): New, implements
3290 stringbuf::underflow and uflow.
3291 (seekoff, seekpos): Tweak, use _M_update_egptr.
3292 * include/std/std_sstream.h (str): Rewrote, deal correctly
3293 with the new logic, in particular, when pptr() > egptr().
3294 (_M_sync): When __testout && !__testin set all the get area
3295 pointers to the current string end.
3296 (_M_update_egptr): New, internal function updating egptr()
3297 to the actual string end.
3298 (_M_underflow): New, declare.
3299 (underflow): Dispatch to _M_underflow(false).
3300 (uflow): Dispatch to _M_underflow(true).
3302 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
3303 seekpos): Use only the documented derivation interface to
3304 basic_streambuf (gptr(), setg(), etc.) to work right with
3305 user specializations.
3306 * include/std/std_sstream.h (str, _M_sync): Likewise.
3308 2003-06-20 Doug Gregor <dgregor@apple.com>
3310 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
3311 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
3312 dereference end iterator.
3313 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
3314 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
3315 index equal to the length of a string.
3316 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
3317 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
3318 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
3319 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
3320 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
3321 * testsuite/23_containers/list_modifiers.cc: Don't dereference
3322 singular reverse iterator.
3323 * testsuite/23_containers/vector_bool.cc: Don't increment singular
3325 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
3327 2003-06-20 Doug Gregor <dgregor@apple.com>
3329 * include/bits/basic_string.h (basic_string::replace): Dispatch
3330 _InputIterator version based on _Is_integer.
3331 * include/bits/basic_string.tcc (basic_string::replace):
3332 Renamed replace(iterator, iterator, size_type, _CharT) to
3334 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
3335 Test basic_string::assign(_InputIterator, _InputIterator),
3336 which calls basic_string::replace(iterator, iterator,
3337 _Input_iterator, _InputIterator).
3339 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
3341 * testsuite/testsuite_performance.h (resource_counter): Don't use
3342 mallinfo at the moment.
3344 2003-06-20 Matthias Klose <doko@debian.org>
3346 * configure.host: Set try_cpu to target_cpu for existing
3349 2003-06-19 Andreas Jaeger <aj@suse.de>
3351 * testsuite/Makefile.am (extract_symvers): Revert accidental
3353 * testsuite/Makefile.in: Regenerate.
3355 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
3356 * configure: Regenerated.
3358 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
3360 * include/std/std_sstream.h (_M_sync): Make non virtual.
3362 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
3364 * testsuite/testsuite_performance.h (time_counter): New.
3365 (resource_counter): New.
3366 (report_performance): New.
3367 (start_counters): New.
3368 (stop_counters): New.
3369 (clear_counters): New.
3370 * testsuite/performance/allocator.cc: Instrument.
3371 * testsuite/performance/cout_insert_int.cc: Same.
3372 * testsuite/performance/complex_norm.cc: Same.
3373 * testsuite/performance/filebuf_sputc.cc: New.
3374 * testsuite/performance/fstream_seek_write.cc: Same.
3375 * testsuite/performance/ifstream_getline.cc: Same.
3376 * testsuite/performance/map_create_fill.cc: Same.
3377 * testsuite/performance/ofstream_insert_float.cc: Same.
3378 * testsuite/performance/ofstream_insert_int.cc: Same.
3379 * testsuite/performance/string_append.cc: Convert.
3380 * scripts/check_performance: New.
3381 * testsuite/Makefile.am (check-performance): New.
3384 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
3385 Benjamin Kosnik <bkoz@redhat.com>
3387 * include/std/std_sstream.h (setbuf): Check __n >= 0.
3388 * include/bits/fstream.tcc (setbuf): Tweak.
3390 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
3392 * include/bits/sstream.tcc (seekoff): We can't seek beyond
3393 _M_out_lim, therefore _M_move_out_cur boils down to simply
3394 updating _M_out_cur.
3395 (seekpos): Likewise, clean up.
3397 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
3398 Paolo Carlini <pcarlini@unitus.it>
3400 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
3401 simply equivalent to the unbuffered case (0, 0) as far as
3402 _M_buf_size is concerned.
3404 2003-06-18 Andreas Jaeger <aj@suse.de>
3406 * testsuite/Makefile.am (new-abi-baseline): Create baseline
3408 (baseline_file): Use baseline_dir.
3409 (baseline_dir): New.
3410 (mkinstalldirs): New.
3412 * acinclude.m4: Rename baseline_file to baseline_dir, strip
3413 filename from baseline_dir.
3415 * testsuite/Makefile.in: Regenerated.
3416 * Makefile.in: Regenerated.
3417 * aclocal.m4: Regenerated.
3418 * configure: Regenerated.
3420 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3422 * configure.in: Missed check_survey bit.
3423 * configure: Regenerated.
3425 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3428 * config/abi/extract_symvers: Move to...
3429 * scripts/extract_symvers: ...here.
3430 * mkcheck.in: Move to..
3431 * scripts/check_survey.in: ...here.
3432 * testsuite_flags.in: Move to..
3433 * scripts/testsuite_flags.in: ...here.
3434 * configure.in: Change check and testsuite_flags locations.
3435 * configure: Regenerate.
3436 * testsuite/Makefile.am (current_symbols.txt): Change location.
3437 * testsuite/Makefile.in: Regenerate.
3438 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3439 location of testsuite_flags.
3440 * Makefile.am (check-script): Move..
3441 (check-script-install): Move...
3442 * testsuite/Makefile.am: ... here.
3443 * testsuite/Makefile.in: Regenerate.
3444 * Makefile.in: Regenerate.
3446 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3448 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
3450 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
3452 * Makefile.am (check-abi): Move...
3453 (new-abi-baseline): Move...
3454 * testsuite/Makefile.am: ...here.
3455 (new-abi-baseline): Conditionalize.
3456 (check-abi): Conditionalize.
3457 (check-abi-verbose): New.
3458 * Makefile.in: Regenerate.
3459 * testsuite/Makefile.in: Regenerate.
3460 * configure.in: Consolidate testsuite configure bits.
3461 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
3462 * configure: Regenerate.
3463 * aclocal.m4: Regenerate.
3464 * testsuite/abi_check.cc: Add --check-verbose.
3465 Only output detailed information if --check-verbose.
3467 2003-06-16 Andreas Jaeger <aj@suse.de>
3469 * testsuite/abi_check.cc: Create summary report.
3471 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
3473 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
3474 for systems with BUFSIZ != 8192.
3475 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3476 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
3479 2003-06-16 Andreas Jaeger <aj@suse.de>
3481 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
3482 check-abi multilib aware.
3483 * aclocal.m4: Regenerate.
3484 * configure: Regenerate.
3486 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
3487 Andreas Jaeger <aj@suse.de>
3489 * configure.host: Set x86_64 abi_baseline pair correctly.
3491 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
3493 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
3494 fix for missing seeks between gets and puts into...
3495 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
3496 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
3497 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
3498 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
3499 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
3500 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
3502 2003-06-15 Richard Henderson <rth@redhat.com>
3504 * config/linker-map.gnu: Export virtual function thunks for
3507 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
3509 * config/abi/i686-pc-linux-gnu: To..
3510 * config/abi/i486-linux-gnu: ...this.
3511 * config/abi/alphaev67-unknown-linux-gnu: To..
3512 * config/abi/alpha-linux-gnu: ...this.
3513 * config/abi/ia64-unknown-linux-gnu: To...
3514 * config/abi/ia64-linux-gnu: ...this.
3515 * config/abi/x86_64-unknown-linux-gnu: To...
3516 * config/abi/x86_64-linux-gnu: ...this.
3517 * config/abi/i386-unknown-freebsd4: To...
3518 * config/abi/i386-freebsd4: ...this.
3519 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
3521 * configure.host: abi_baseline_triplet to abi_baseline_pair.
3522 Simplify cpu bits so that abi_baseline_pair can use the same
3524 * acinclude.m4: Same.
3525 * aclocal.m4: Regenerate.
3526 * configure.in: Can't get enable_abi_check to yes unless native.
3527 * configure: Regenerate.
3529 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
3531 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
3532 fix for missing seeks between gets and puts into...
3533 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
3534 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
3535 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
3536 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
3537 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
3538 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
3539 for missing seeks between gets and puts.
3540 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
3541 * testsuite/data/seekoff-1.tst: New.
3542 * testsuite/data/seekoff-2.tst: New.
3543 * testsuite/data/seekpos-1.tst: New.
3544 * testsuite/data/seekpos-2.tst: New.
3546 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
3548 Avoid multi-processor bus contention on increment/decrement-and-
3549 test of the reference count in the empty-string object, by comparing
3550 addresses first, and never touching the reference count of the empty-
3552 * include/bits/basic_string.h:
3553 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
3555 (_Rep::_S_empty_rep()): New accessor.
3556 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
3557 a base class _Rep_base.
3558 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
3559 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
3560 since no longer must increment its refcount.
3561 * include/bits/basic_string.tcc:
3562 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
3563 return immediately. The former might be unnecessary. The latter
3564 prevents begin() and end() from cloning it unnecessarily.
3565 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3566 input_iterator_tag), _S_construct(_InIterator, _InIterator,
3567 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
3568 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
3569 (_M_mutate): Check for the empty string and treat it as shared.
3570 This is necessary here because _M_mutate is sometimes called with
3571 all-zero arguments; in all other uses of _M_is_shared, the test comes
3574 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
3576 * src/allocator-inst.cc: Explicitly instantiate.
3577 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
3579 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
3581 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
3583 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
3584 * aclocal.m4: Regenerate.
3585 * Makefile.am (SUBDIRS): Remove libio.
3586 * Makefile.in: Regenerate.
3587 * configure.in: Same.
3588 * configure: Regenerate.
3589 * config/io/basic_file_libio.cc: Remove.
3590 * config/io/basic_file_libio.h: Remove.
3591 * config/io/c_io_libio_codecvt.c: Remove.
3592 * config/io/c_io_libio.h: Remove.
3594 * src/Makefile.am: Same.
3595 * src/Makefile.in: Regenerate.
3596 * docs/html/configopts.html: Edits.
3597 * docs/html/explanations.html: Edits.
3599 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
3601 * include/bits/stl_alloc.h (__debug_alloc): Move out.
3602 (__malloc_alloc): Same.
3603 (__pool_alloc): Same.
3604 (__new_alloc): Same.
3606 * include/bits/allocator.h: ...this.
3607 * include/bits/stl_deque.h: Modify comment.
3608 * include/bits/stl_tree.h: Modify include.
3609 * include/std/std_memory.h: Same.
3610 * include/ext/rope: Same.
3611 * include/ext/slist: Same.
3612 * include/std/std_vector.h: Same.
3613 * include/std/std_stack.h: Same.
3614 * include/std/std_queue.h: Same.
3615 * include/std/std_list.h: Same.
3616 * include/std/std_deque.h: Same.
3617 * include/backward/alloc.h: Same.
3618 * include/ext/debug_allocator.h: New.
3619 * include/ext/malloc_allocator.h: New.
3620 * include/ext/pool_allocator.h: New.
3621 * include/ext/new_allocator.h: New.
3622 * include/bits/pthread_allocimpl.h: Remove.
3623 * include/bits/stl_pthread_alloc.h: Remove.
3624 * include/Makefile.am (ext_headers): Add.
3625 * include/Makefile.in: Regenerate.
3626 * src/stl-inst.cc: Use __gnu_cxx namespace.
3627 * src/stl-inst.cc: Move to...
3628 * src/allocator-inst.cc: Here.
3629 * src/Makefile.am (sources): Update.
3630 * src/Makefile.in: Regenerate.
3631 * config/linker-map.gnu: Remove __pool_alloc bits.
3632 * testsuite/ext/headers.cc: Add.
3633 * testsuite/ext/allocators.cc: Fixup.
3635 2003-06-11 Stefan Olsson <stefan@snon.net>
3636 Ola Rönnerup <fnolis@home.se>
3638 * include/Makefile.am (ext_headers): Add.
3639 * include/Makefile.in: Regenerate.
3640 * include/ext/mt_allocator.h: New file.
3642 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3644 * include/bits/fstream.tcc (close): Clean up a bit.
3646 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
3648 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
3649 - the saved _M_in_cur, that is - cannot be null.
3650 (sync): Constify a variable.
3652 * include/std/std_streambuf.h: Tweak a comment.
3653 (in_avail): Constify a variable.
3655 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
3657 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
3658 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
3659 correctness of container::iterator typedefs. Fix whitespace.
3660 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
3662 * docs/html/documentation.html: Regenerate.
3664 * include/bits/basic_string.h, include/bits/basic_string.tcc,
3665 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
3666 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3667 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
3668 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
3669 include/bits/stl_vector.h, include/bits/vector.tcc,
3670 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
3671 Change _Iter names to _Iterator, and __pos to __position.
3673 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
3674 include/bits/stl_multiset.h, include/bits/stl_set.h:
3675 Remove emacs markers.
3677 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
3679 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3681 * include/bits/fstream.tcc (overflow): According to
3682 27.5.2.4.5, overflow() returns not_eof(eof()).
3683 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
3684 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
3686 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3688 * include/bits/fstream.tcc (_M_underflow): Check overflow return
3689 value; tweak slightly.
3691 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
3693 * include/bits/fstream.tcc (_M_underflow): Do not special
3694 case the unbuffered case, which really means simply a one char
3696 (basic_filebuf): Initialize _M_buf_size.
3697 (setbuf): Unbuffered means _M_buf_size == 1, since only
3698 _M_buf_size - 1 == 0 chars are going to be used for the
3699 put area and 1 for the get area.
3700 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
3701 (~basic_streambuf): Tweak.
3702 (basic_streambuf): Do not initialize _M_buf_size.
3703 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
3704 (~basic_filebuf): Tweak.
3705 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
3706 unbuffered situation (i.e., put area pointers NULL).
3707 * include/bits/streambuf.tcc (sbumpc): Clean up.
3708 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
3709 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
3710 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
3711 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
3712 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
3713 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
3714 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
3716 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
3718 * acinclude.m4: Move all AM_CONDITIONAL calls out.
3719 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
3721 * configure.in: Centralize AM_CONDITIONALs so that they are always
3722 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
3723 * aclocal.m4, configure: Regenerated.
3725 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
3727 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
3729 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
3731 * include/bits/stl_iterator.h
3732 (reverse_iterator::reverse_iterator()): Apply DR235: default
3733 constructor default-initializes data member. Instantiated on a
3734 pointer type, the member has to end up equal to zero.
3736 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
3738 * include/bits/stl_alloc.h: Cleanups.
3739 * include/ext/functional: Same.
3740 * include/ext/hash_map: Same.
3741 * include/ext/hash_set: Same.
3742 * include/ext/iterator: Same.
3743 * include/ext/memory: Same.
3744 * include/ext/numeric: Same.
3745 * include/ext/rb_tree: Same.
3746 * include/ext/ropeimpl.h: Same.
3747 * include/ext/slist: Same.
3748 * include/ext/stdio_filebuf.h: Same.
3749 * include/ext/stdio_sync_filebuf.h: Same.
3750 * include/ext/stl_rope.h: Move to...
3751 * include/ext/rope: ...here.
3752 * include/ext/stl_hash_fun.h: Move to...
3753 * include/ext/hash_fun.h: ...here.
3754 * include/ext/stl_hashtable.h: Move to...
3755 * include/ext/hashtable.h: ...here.
3756 * include/backward/hashtable.h: Reflect new names.
3757 * include/Makefile.am: Same.
3758 * include/Makefile.in: Regenerated.
3760 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
3763 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
3764 * include/bits/stl_algobase.h: Tweak.
3765 * include/std/std_fstream.h: Move _M_buf_size to...
3766 * include/std/std_streambuf.h: ...here. Modify.
3767 * include/bits/streambuf.tcc: Same.
3768 * testsuite/testsuite_hooks.h: Tweak.
3769 * testsuite/testsuite_io.h (constraint_filebuf): New.
3770 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
3771 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
3772 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
3773 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
3774 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
3775 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
3776 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
3777 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
3778 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
3779 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
3780 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
3781 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
3782 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
3783 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
3784 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
3785 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
3786 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
3787 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
3788 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
3789 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
3790 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
3791 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
3792 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
3793 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
3794 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
3795 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
3796 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
3797 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
3798 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
3799 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
3800 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
3801 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
3802 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
3803 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
3804 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
3805 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
3806 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
3807 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
3808 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
3809 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
3810 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
3811 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
3812 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
3813 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
3814 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
3815 * testsuite/data/sgetc.txt: New.
3816 * testsuite/data/sgetn.txt: New.
3818 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
3821 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
3822 Deal with width() smaller than zero.
3823 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
3824 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
3825 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
3826 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
3827 operator<<(basic_ostream, const basic_string&)): Likewise.
3829 * testsuite/27_io/basic_istream/extractors_character/char/
3830 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3831 * testsuite/27_io/basic_ostream/inserters_character/char/
3832 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3833 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
3834 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
3836 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3838 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
3839 .gch compilation works.
3840 * aclocal.m4, configure: Regenerate.
3841 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
3842 initialize PCHFLAGS.
3844 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
3846 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
3847 erase(iterator), erase(iterator, iterator), c_str,
3848 compare(const basic_string&)): Constify various variables.
3849 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
3850 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
3851 _S_create, resize, _M_replace, _M_replace_safe,
3852 append(const basic_string&), append(const basic_string&, size_type,
3853 size_type), append(const _CharT*, size_type), append(size_type,
3854 _CharT), operator+(const _CharT*, const basic_string&),
3855 operator+(_CharT, const basic_string&), replace(iterator, iterator,
3856 size_type, _CharT), find(const _CharT*, size_type, size_type),
3857 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
3858 rfind(_CharT, size_type), compare(size_type, size_type,
3859 const basic_string&), compare(size_type, size_type,
3860 const basic_string&, size_type, size_type), compare(const _CharT*),
3861 compare(size_type, size_type, const _CharT*), compare(size_type,
3862 size_type, const _CharT*, size_type)): Likewise.
3864 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
3866 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
3867 'if' branch less obscure.
3869 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
3872 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
3874 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
3875 (__atomic_add): likewise.
3877 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3879 * include/bits/sstream.tcc (pbackfail): Minor clean up and
3880 reformatting, consistent with basic_filebuf::pbackfail.
3882 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
3885 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
3886 __attribute__ ((__unused__)).
3887 * config/os/aix/atomicity.h: Likewise.
3889 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3892 * include/bits/fstream.tcc (pbackfail): If the pback buffer
3893 is already active don't try to store in it a second char.
3894 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
3896 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
3898 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3900 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
3903 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3905 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
3906 instead of unnecessarily taking the address of _M_pback.
3907 (xsgetn): Simplify slightly for a single char pback buffer.
3909 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3911 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
3912 variables and two 'if', clean up.
3914 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3916 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
3917 not _M_out_end, since the former actually points to the string
3918 end (vs buffer end).
3919 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
3921 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
3923 * docs/doxygen/filter: New file.
3924 * docs/doxygen/filter.sed: New file.
3925 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
3926 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
3927 * docs/html/documentation.html: Fix links to doxygen pages.
3929 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
3931 * include/bits/fstream.tcc (_M_convert_to_external): Don't
3932 check for __ilen > 0.
3934 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
3937 * include/bits/stl_iterator.h (class __normal_iterator):
3938 Don't inherit from iterator, add missing typedefs.
3940 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
3942 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
3943 * testsuite/24_iterators/reverse_iterator/1.cc: New.
3944 * testsuite/24_iterators/reverse_iterator/2.cc: New.
3945 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
3948 2003-05-27 Steve Ellcey <sje@cup.hp.com>
3950 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
3952 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
3953 _LIBUNWIND_STD_ABI is set.
3955 2003-05-26 Brendan Kehoe <brendan@zen.org>
3957 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
3958 make sure the number of digits required after the decimal-point
3959 (if any) is exactly the value returned by frac_digits().
3960 * testsuite/22_locale/money_get/get/char/9.cc: New.
3961 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
3963 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
3965 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
3968 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
3971 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
3972 (_M_pback): No array necessary.
3973 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
3974 unbuffered case, coalesec into ...
3975 (basic_filebuf::overflow): ...this.
3976 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
3977 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
3979 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
3981 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
3982 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
3983 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
3984 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
3985 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
3986 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
3987 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
3988 libsupc++/eh_unex_handler.cc, libsupc++/exception,
3989 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
3990 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
3991 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
3992 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
3993 Replace "GNU CC" with "GCC".
3995 * include/backward/new.h: Replace "GNU CC" with "GCC".
3997 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
4000 * configure.in: Switch target to host, don't assume newlib.
4001 (target_alias): Remove.
4002 * configure: Regenerate.
4003 * acinclude.m4: Same.
4004 * aclocal.m4: Regenerate.
4005 * configure.target: Same. Rename to...
4006 * configure.host: This.
4008 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
4010 * include/std/std_fstream.h (_S_pback_size): Remove definition.
4011 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
4013 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
4014 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
4015 of _S_pback_size for systems with no COMDAT or weak support.
4016 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
4017 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
4018 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
4019 * testsuite/27_io/basic_fstream/3.cc: Likewise.
4020 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4021 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
4022 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
4023 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
4024 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
4026 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
4028 * include/bits/fstream.tcc (_M_underflow): Simplify:
4029 !__testout implies _M_filepos == _M_in_end, therefore
4030 the first _M_file.seekoff call is never issued.
4032 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
4034 * configure.in: Sort cross table.
4035 * configure: Regenerate.
4037 2003-05-22 Brad Spencer <spencer@infointeractive.com>
4040 * configure.in: Add Solaris cross bits.
4042 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4044 * libstdc++-v3/config/os/mingw32/os_defines.h
4045 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
4046 (NOMINMAX): Define. Update copyright year.
4048 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
4050 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
4052 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
4054 * docs/html/faq/index.html: Fix typo.
4055 * docs/html/faq/index.txt: Regenerate.
4057 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
4059 * docs/html/test.html: Fix markup.
4061 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4063 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
4065 Update copyright year.
4067 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
4069 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
4071 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
4073 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
4074 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
4076 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4078 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
4079 Cast via void* to avoid -Wcast-align warnings.
4080 (__default_alloc_template::_S_refill): Likewise.
4082 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
4084 * testsuite/README: Move to...
4085 * docs/html/test.html: ...here. Add documentation.
4086 * docs/html/install.html: Move testing bits out..
4087 * docs/html/documentation.html: Add separate testing link.
4088 * testsuite/performance: Add.
4089 * testsuite/performance/allocator.cc: New.
4090 * testsuite/performance/complex_norm.cc: New.
4091 * testsuite/performance/cout_insert_int.cc: New.
4092 * testsuite/performance/fstream_seek_write.cc: New.
4093 * testsuite/performance/ifstream_getline.cc: New.
4094 * testsuite/performance/map_create_fill.cc: New.
4095 * testsuite/performance/ofstream_insert_float.cc: New.
4096 * testsuite/performance/ofstream_insert_int.cc: New.
4097 * testsuite/performance/string_append.cc: New.
4098 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
4101 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
4104 * include/std/std_complex.h (pow): Tidy.
4106 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
4108 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
4109 that upon filebuf::close() 27.8.1.1,3 is enforced.
4111 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
4113 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
4115 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
4116 Nathan Myers <ncm@cantrip.org>
4118 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
4119 _M_convert_to_external only once (_M_buf_size is now the size of
4120 the put area + 1 for the overflow char of a full area); call
4121 _M_set_buffer instead of _M_set_indeterminate.
4122 (setbuf): Don't accept a buffer smaller than 2 chars.
4123 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
4124 instead of _M_set_determinate.
4125 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
4126 (seekoff): Likewise.
4127 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
4128 std::ios_base::openmode, bool, size_t),
4129 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
4131 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
4132 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
4134 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
4135 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
4136 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
4137 the put area is now BUFSIZ - 1.
4138 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
4139 that now the smallest _M_buf_size is 2 (still fails, for the same
4142 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
4144 * testsuite/thread/pthread4.cc: Tweak test.
4146 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
4148 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
4149 excess errors dg marker, use dg-errors instead.
4150 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
4151 * testsuite/20_util/auto_ptr_neg.cc: Same.
4153 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4155 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
4157 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
4158 Initialize _M_codecvt.
4159 (basic_filebuf::imbue): Same.
4160 (basic_filebuf::showmanyc): Use it.
4161 (basic_filebuf::underflow): Use it.
4162 (basic_filebuf::_M_convert_to_external): Use it.
4163 (basic_filebuf::seekoff): Use it.
4164 (basic_filebuf::imbue): Use it, tweaks.
4165 * include/bits/localefwd.h (__check_facet): New.
4166 * include/bits/locale_classes.h: Tweaks.
4167 * include/bits/locale_facets.tcc: Tweaks.
4168 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
4169 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
4170 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
4171 * include/bits/basic_ios.tcc: Same.
4172 * include/bits/istream.tcc: Same.
4173 * include/bits/ostream.tcc: Same.
4174 * include/std/std_streambuf.h: Same.
4175 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
4176 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
4177 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
4178 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
4179 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
4180 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
4182 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
4184 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
4185 unnecessary includes and unused string literals.
4186 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
4187 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
4188 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
4189 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
4191 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4193 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
4195 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
4197 * include/std/std_fstream.h (_M_convert_to_external): Change
4198 to return bool, take two less streamsize parameters.
4199 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
4200 consistently definition.
4201 (_M_overflow): Adjust call points.
4203 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4205 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
4207 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
4209 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
4210 * testsuite/Makefile.in: Regenerate.
4212 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
4214 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
4215 * testsuite/Makefile.in: Regenerate.
4217 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4220 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
4221 (acos): Handle integer argument.
4240 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
4241 (__enable_if): Likewise.
4242 * testsuite/26_numerics/cmath/overloads.C: New test.
4244 2003-05-10 Petur Runolfsson <peturr02@ru.is>
4249 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
4250 implementation, based on old wchar_t specialization, add support
4251 for codecvt::in() return value of codecvt_base::noconv, remove
4252 _M_file.sys_ungetc() call.
4253 * include/std/std_fstream.h (basic_file::underflow,
4254 basic_file::uflow, basic_file::_M_underflow): Remove
4255 specialization declarations, call _M_underflow from generic versions
4256 of underflow and uflow.
4257 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
4258 basic_file::_M_underflow): Remove specializations.
4259 * src/Makefile.am (sources): Remove fstream.cc.
4260 * src/Makefile.in: Regenerated.
4261 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
4262 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
4263 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
4264 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
4266 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
4268 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
4270 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
4272 (__basic_file::xsputn): Same.
4273 (__basic_file::seekoff): Same.
4274 (__basic_file::seekpos): Same.
4275 (__basic_file::showmanyc): Same.
4276 * config/io/basic_file_stdio.cc: Same.
4277 * include/std/std_fstream.h: Same.
4278 * include/bits/fstream.tcc: Same.
4279 * src/fstream.cc: Same.
4280 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
4282 2003-05-10 Petur Runolfsson <peturr02@ru.is>
4287 * include/ext/stdio_sync_filebuf.h: New file.
4288 (basic_stdiobuf): New.
4289 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
4290 * include/Makefile.in: Regenerate.
4291 * include/bits/ios_base.h (Init::_S_create_buffers,
4292 Init::_S_destroy_buffers): Remove declarations.
4293 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
4294 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
4295 * src/ios.cc (Init::_S_create_buffers,
4296 Init::_S_destroy_buffers): Remove.
4297 (Init::Init): Create and use syncronized buffers.
4298 (ios_base::sync_with_stdio): Destroy syncronized buffers,
4299 create and install unsyncronized buffers.
4300 * testsuite/27_io/objects/char/10.cc: New test.
4301 * testsuite/27_io/objects/char/9.cc: New test.
4302 * testsuite/27_io/objects/char/9661-1.cc: New test.
4303 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
4304 * testsuite/27_io/objects/char/9661-2_xin.in: New.
4305 * testsuite/27_io/objects/wchar_t/1.cc: New test.
4306 * testsuite/27_io/objects/wchar_t/10.cc: New test.
4307 * testsuite/27_io/objects/wchar_t/2.cc: New test.
4308 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
4309 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
4310 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
4311 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
4312 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
4313 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
4314 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
4315 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
4316 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
4317 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
4318 * testsuite/27_io/objects/wchar_t/5.cc: New test.
4319 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
4320 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
4321 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
4322 * testsuite/27_io/objects/wchar_t/6.cc: New test.
4323 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
4324 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
4325 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
4326 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
4327 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
4328 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
4329 * testsuite/27_io/objects/wchar_t/7.cc: New test.
4330 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
4331 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
4332 * testsuite/27_io/objects/wchar_t/8.cc: New test.
4333 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
4334 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
4335 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
4336 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
4337 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
4338 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
4339 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
4340 * testsuite/ext/stdiobuf_char.cc: New test.
4341 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
4343 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
4345 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
4346 unnecessary includes and unused string literals.
4347 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
4349 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
4351 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
4353 2003-05-07 Richard Henderson <rth@redhat.com>
4356 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
4357 (__cxa_end_catch): Likewise.
4358 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
4359 _Unwind_Resume_or_Rethrow.
4360 * libsupc++/eh_personality.cc (empty_exception_spec): New.
4361 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
4362 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
4363 exceptions. Don't push terminate/unexpected to cxa functions.
4364 (__cxa_call_unexpected): Remove foreign exception fixmes.
4366 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
4368 * testsuite/27_io/ios_base/cons: New.
4369 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
4370 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
4372 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
4374 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
4376 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
4377 there is no buffer or __testget == !__testinit.
4380 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
4381 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
4383 * include/std/std_fstream.h (_M_destroy_pback): Don't set
4384 unnecessarily _M_pback_cur_save and _M_pback_end_save.
4386 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
4388 * include/std/std_sstream.h (_M_sync): Minor tweak.
4390 * include/bits/fstream.tcc (close): No need to call
4391 _M_destroy_pback, setting _M_pback_init to false suffices
4394 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
4396 * include/bits/stl_algo.h: Enums as _S_.
4397 * include/bits/stl_tree.h: Same.
4398 * include/bits/stl_bvector.h: Same.
4399 * include/bits/ios_base.h: Same.
4400 * include/bits/stl_alloc.h: Same.
4401 * include/ext/stl_hashtable.h: Same.
4402 * src/ios.cc: And here.
4404 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
4405 * include/bits/sstream.tcc: Same.
4407 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
4409 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
4411 * include/bits/locale_facets.h (__num_base): Remove protected.
4412 Use _S_[io]* names for enumerations.
4413 (_S_format_int): Remove.
4414 * include/bits/locale_facets.tcc: Same.
4415 * src/locale.cc: Same.
4417 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
4419 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
4421 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
4422 * docs/html/faq/index.txt: Regenerated.
4424 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
4425 Matt Kraai <kraai@alumni.cmu.edu>
4427 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
4430 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
4432 * configure.target (mips*): Use the generic atomicity.h by default.
4434 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
4435 (Inspired by an alternate patch from Danny Smith.)
4437 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
4438 (_Swap_lock_struct<>): ...and the horse it rode in on.
4439 * src/globals.cc (_Swap_lock_struct<>): Likewise.
4440 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
4441 member to support...
4442 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
4443 visibility rules related to POSIX threads.
4444 * testsuite/thread/pthread7-rope.cc: New test.
4446 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
4448 * testsuite/21_strings/basic_string/find/char/3.cc: New
4449 file, testing basic_string<char>::find_first_not_of.
4450 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
4451 Likewise for basic_string<wchar_t>.
4453 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
4455 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
4457 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
4459 * include/Makefile.am (CLEANFILES): Remove PCH files in target
4461 * include/Makefile.in: Regenerate.
4463 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
4465 * include/std/std_sstream.h (str()): Tidy.
4467 2003-05-02 Nathan Myers <ncm@cantrip.org>
4468 Paolo Carlini <pcarlini@unitus.it>
4470 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
4472 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
4474 * include/bits/basic_string.h (swap): Remove redundant template
4475 parameters from declaration of non-template member function.
4477 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
4479 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
4480 * configure.in: Move libintl.h header test...
4481 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
4482 the NLS-related test results into one symbol.
4483 * src/functexcept.cc: Use it here.
4484 * aclocal.m4, config.h.in, configure: Regenerated.
4486 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4488 * include/bits/sstream.tcc (overflow): Instead of calling
4489 str(), then _M_string.reserve, thus copying the contents
4490 of the current buffer two times, just copy the latter in
4491 a temporary, then use the 'swap trick'.
4493 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4495 * include/std/std_sstream.h (str()): Revert the best of the
4496 previous 'improvement', incorrect due to the COW nature of
4497 v3 basic_string; simplify.
4499 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4501 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
4502 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
4504 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
4506 * testsuite/abi_check.cc (check_version): Update known versions.
4507 Check added symbols for version_name != base version. Add missing
4508 symbols to incompatible list.
4510 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
4512 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
4513 * aclocal.m4: Regenerated.
4514 * configure: Regenerated.
4516 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4518 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
4519 Const-ify some variables.
4520 (basic_streambuf::xsputn): Likewise; change the type of some
4521 variables to size_t.
4522 (__copy_streambufs): Change some variables to size_t.
4524 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4526 * include/std/std_sstream.h (str()): Avoid constructing
4527 a basic_string temporary not only when it would turn out
4528 to be zero-sized but also when identical to the current
4531 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4533 * include/ext/stdio_filebuf.h
4534 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
4535 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
4536 Shorten a bit (-10 lines) by factoring out some code.
4538 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
4540 * acinclude.m4: Add bit missing from previous patch.
4541 * aclocal.m4, configure: Regenerated.
4543 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
4545 * docs/doxygen/mainpage.html: Bring up to date.
4546 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
4548 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
4549 breaks everything. Don't scan them.
4550 * docs/html/documentation.html: Point to "Write after approval"
4553 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
4555 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
4556 of libc if message translations are being used. Fix info text in
4557 xieee_1003.1-2001 case.
4558 * aclocal.m4, configure: Regenerate.
4560 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
4561 Loren J. Rittle <ljrittle@acm.org>
4562 Martin v. Loewis <martin@v.loewis.de>
4564 * config/cpu/i386/atomicity.h: New file.
4566 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
4568 * include/bits/fstream.tcc (open): Change to single return.
4570 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
4572 * include/std/std_sstream.h (underflow): Change to single return.
4574 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4576 * include/std/std_streambuf.h (_M_buf): is currently
4577 used only for basic_filebuf, therefore move it there.
4578 (basic_streambuf(), ~basic_streambuf()): Adjust.
4579 * include/std/std_fstream.h (_M_buf): Moved here.
4580 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
4581 is actually redundant for basic_stringbuf.
4582 (_M_really_sync): Likewise.
4583 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4584 * include/bits/sstream.tcc (seekoff): Adjust.
4586 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4588 * src/localename.cc: Standardize exception strings.
4589 * src/locale.cc: Same.
4591 * include/bits/basic_string.tcc: Same.
4592 * include/bits/basic_ios.tcc: Same.
4593 * include/std/std_bitset.h: Same.
4594 * include/ext/ropeimpl.h: Same.
4595 * include/bits/stl_vector.h: Same.
4596 * include/bits/stl_deque.h: Same.
4597 * include/bits/stl_bvector.h: Same.
4598 * config/locale/generic/c_locale.cc: Same.
4599 * config/locale/gnu/c_locale.cc: Same.
4600 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
4602 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
4604 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4606 * include/std/std_streambuf.h (_M_buf_size): is currently
4607 used only for basic_filebuf, therefore move it there.
4608 (basic_streambuf(), ~basic_streambuf()): Adjust.
4609 * include/std/std_fstream.h (_M_buf_size): Moved here.
4610 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4612 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4614 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
4615 _M_buf_size (synced input is now correctly dealt with
4616 elsewhere); when the output buffer is full don't fall back
4617 to a snextc-sputc loop, call overflow instead.
4619 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4621 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
4622 the innermost 'if' by factoring out some code.
4624 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
4626 * configure.in: Test for libintl.h.
4627 * include/bits/c++config: Define __N for everybody.
4628 * include/bits/basic_string.h, include/bits/stl_bvector.h,
4629 include/bits/stl_deque.h, include/bits/stl_vector.h,
4630 include/std/std_bitset.h: Wrap all __throw* text with __N.
4631 * po/Makefile.am (pot): New rule, mostly working.
4632 * src/functexcept.cc: Call gettext on all __throw* arguments when
4633 -fexceptions is in effect.
4634 * po/Makefile.in, config.h.in, configure: Regenerate.
4636 2003-04-28 Petur Runolfsson <peturr02@ru.is>
4639 * include/bits/ios_base.h (Init::_S_ios_create,
4640 Init::_S_ios_destroy): Remove declarations.
4641 (Init::_S_create_buffers,
4642 Init::_S_destroy_buffers): Declare
4643 * src/ios.cc (Init::_S_ios_create): Remove
4644 (Init::_S_create_buffers): Create buffers and add to streams.
4645 (Init::_S_ios_destroy): Rename to...
4646 (Init::_S_destroy_buffers): this.
4647 (Init::Init): Only construct streams once.
4648 (Init::~Init): Flush streams, don't destroy them.
4649 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
4650 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
4651 * testsuite/27_io/objects/char/5.cc: New test.
4652 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
4653 * testsuite/27_io/objects/char/6.cc: New test.
4654 * testsuite/27_io/objects/char/7.cc: New test.
4656 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4658 * testsuite/27_io/objects/char/8.cc: New test.
4660 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4662 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
4663 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
4665 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
4667 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
4668 _M_destroy_pback. _M_pback_create to
4669 _M_create_pback. _M_underflow_common to
4670 _M_underflow. _M_really_overflow to _M_overflow.
4671 * include/bits/fstream.tcc: Same.
4672 * src/fstream.cc: Same.
4673 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
4674 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
4675 * include/bits/streambuf.tcc: Same.
4676 * include/bits/fstream.tcc: Same.
4677 * include/bits/sstream.tcc: Same.
4679 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
4681 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
4682 from fixed size array.
4683 (locale): Change _S_categories as well.
4685 * include/bits/locale_facets.tcc: Tweak.
4686 * config/locale/gnu/c_locale.cc: Assign _S_categories.
4687 * config/locale/generic/c_locale.cc: Same.
4688 * src/locale.cc: Tweak.
4689 * src/globals.cc: Change facet_name to name_vec, add names_c.
4690 * src/localename.cc: Use them.
4691 (locale::_Impl::~_Impl): Destroy _M_names.
4692 (locale::_Impl::_Impl): Create _M_names.
4694 2003-04-27 Andreas Schwab <schwab@suse.de>
4696 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
4697 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
4699 2003-04-27 Nathan Myers <ncm@cantrip.org>
4701 Move some basic_string members out of line because
4702 they are too big to reasonably be inline.
4703 * include/bits/basic_string.h
4704 (assign(const basic_string&, size_type, size_type),
4705 assign(const _CharT*, size_type),
4706 insert(size_type, const basic_string&, size_type, size_type),
4707 insert(size_type, const _CharT*, size_type),
4708 replace(size_type, size_type, const _CharT*, size_type)):
4709 Move from here to...
4710 * include/bits/basic_string.tcc: ...here.
4712 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4714 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
4715 the innermost 'if' by factoring out some code.
4717 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4719 * include/bits/streambuf.tcc (__copy_streambufs): Don't
4720 use in_avail(), simplify.
4722 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4724 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
4725 in basic_stringbuf it's unused.
4727 * include/std/std_sstream.h (underflow): consistently use
4728 _M_in_cur, not gptr().
4730 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
4731 Phil Edwards <pme@gcc.gnu.org>
4733 * testsuite_flags.in: Guard against the possibility
4734 of having "xgcc" as a part of a folder name in the
4735 path to the GCC build folder.
4736 * testsuite/Makefile.am: Likewise.
4737 * testsuite/Makefile.in: Regenerated.
4739 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
4742 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
4743 exception specifications.
4744 (basic_filebuf::close): Same.
4745 (basic_filebuf::_M_pback_destroy): Same.
4746 (basic_filebuf::_M_destroy_internal_buffer): Same.
4747 (basic_filebuf): Remove __res_type typedef.
4748 * src/fstream.cc: Same.
4749 * include/bits/fstream.tcc
4750 (basic_filebuf::_M_convert_to_external): Simplify.
4751 (basic_filebuf::seekoff): Use has_facet before use_facet.
4752 (basic_filebuf::close): Add exception specification of throw().
4753 * testsuite/27_io/basic_filebuf/cons: New.
4754 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
4755 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
4756 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
4757 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
4759 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
4761 * include/bits/locale_classes.h
4762 (locale::_S_extra_categories_size): Remove.
4763 * src/locale.cc: Remove _S_extra_categories_size.
4764 * src/localename.cc: Same.
4765 * config/locale/gnu/c_locale.cc: Same.
4766 * config/locale/generic/c_locale.cc: Same.
4768 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
4770 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
4772 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
4774 * docs/html/17_intro/howto.html: Update some links.
4775 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
4776 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
4777 * docs/html/ext/howto.html: Link to demangler notes and API.
4778 * docs/html/faq/index.html: Remove trailing whitespace.
4779 (1.4, 2.4, 3.8, 4.1): Bring up to date.
4780 (5.6): Change to a bulleted list.
4782 * docs/html/faq/index.txt, docs/html/documentation.html,
4783 docs/html/17_intro/porting.html: Regenerate.
4785 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
4787 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
4788 belongs to basic_filebuf.
4789 * testsuite/27_io/basic_fstream/3.cc: Likewise.
4790 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4791 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
4792 instantiation (now belongs to basic_filebuf).
4793 * testsuite/27_io/basic_iostream/3.cc: Likewise.
4794 * testsuite/27_io/basic_istream/3.cc: Likewise.
4795 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4796 _S_pback_size now belongs to basic_filebuf.
4797 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
4798 instantiation (now belongs to basic_filebuf).
4799 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
4800 belongs to basic_filebuf.
4801 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
4802 instantiation (now belongs to basic_filebuf).
4803 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
4804 _S_pback_size now belongs to basic_filebuf.
4805 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
4806 instantiation (now belongs to basic_filebuf).
4807 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
4809 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
4810 instantiation (now belongs to basic_filebuf).
4811 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
4813 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
4815 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
4816 * configure: Regenerated.
4818 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
4820 * config/locale/generic/c_locale.h (__convert_from_v): Use
4823 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
4825 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
4826 implementation only.
4827 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
4828 Comment and change to comply with DR 60 and the effect on gcount().
4829 * include/std/std_istream.h: Update comments.
4830 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
4831 comments about reasons for tests. Test sync() against gcount().
4832 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
4833 for effect on gcount().
4834 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
4835 for effect on gcount().
4837 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
4839 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
4842 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
4844 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
4845 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4846 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
4847 (basic_streambuf::basic_streambuf()): Adjust.
4848 * include/std/std_fstream.h (_S_pback_size, _M_pback,
4849 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4850 _M_pback_create(), _M_pback_destroy()): Moved here
4851 from basic_streambuf.
4852 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
4854 (basic_filebuf::_S_pback_size): Add declaration.
4855 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
4858 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4860 Consistently use _M_in_beg instead of eback(), _M_in_cur
4861 instead of gptr(), and so on.
4862 * include/bits/fstream.tcc (pbackfail, imbue): Here.
4863 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
4864 * include/bits/streambuf.tcc (sbumpc, sputbackc,
4865 __copy_streambufs): Ditto.
4866 * include/std/std_streambuf.h (sgetc): Ditto.
4868 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4870 * include/bits/sstream.tcc (pbackfail, overflow):
4873 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4875 * include/std/std_streambuf.h (uflow()): It's used only by
4876 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
4877 therefore do not consider the _M_buf_unified == true case.
4879 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
4881 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
4883 * docs/html/ext/howto.html ('LWG Issues'):
4884 Add issues 19, 90, 171, 231, 271.
4886 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
4888 * include/bits/sstream.tcc (pbackfail): Remove redundant
4889 NULL pointer check from test involving _M_in_*.
4890 (overflow, seekoff, seekpos): Const qualify bool variables.
4891 * include/std/std_sstream.h (underflow): Remove redundant
4892 NULL pointer check from test involving _M_in_*.
4893 (_M_really_sync): Const qualify bool variables.
4894 * src/fstream.cc (_M_underflow_common): Remove redundant
4895 NULL pointer check from test involving _M_in_*, const qualify
4898 * include/std/std_streambuf.h (sgetc): Remove redundant
4901 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
4903 According to 5.9 para 2 (second bullet) for pointers p, q
4904 pointing to the same type, with p == 0 and q == 0, (p < q)
4906 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
4907 seekoff): Remove redundant NULL pointer checks from tests
4908 involving _M_out_* and _M_in_*, const qualify bool variables.
4909 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
4910 qualify bool variables.
4911 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
4912 Remove redundant NULL pointer checks from tests involving
4913 _M_out_* and _M_in_*, const qualify bool variables.
4914 * include/std/std_fstream.h (sync): Likewise.
4915 (_M_is_indeterminate): Const qualify bool variables.
4916 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
4917 NULL pointer checks from tests involving _M_out_* and _M_in_*,
4918 const qualify bool variables.
4919 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
4922 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
4924 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
4925 C99 FP macros, if actually captured.
4927 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
4928 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4929 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4930 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4931 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
4933 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4934 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4935 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4936 * include/c_std/std_cstdlib.h: Use new macros.
4937 * include/c_std/std_cstdio.h: Use new macros.
4938 * include/c_std/std_cwchar.h: Use new macros.
4940 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
4943 * include/bits/ostream.tcc: Catch all exceptions for formatted
4944 output, instead of std::exception and derivatives.
4945 * include/bits/istream.tcc: Same.
4946 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
4947 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
4948 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
4949 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
4950 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
4951 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
4954 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
4956 * include/bits/c++config: Minor cosmetic tweaks.
4958 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
4960 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
4961 * include/Makefile.am (pch_input): Find in ${target_builddir}.
4962 (pch_output): Rename to...
4963 (pch_output_builddir): ..this. Find in ${target_builddir}.
4964 (pch_source): Tweak.
4965 (pch_build): Key off a built file.
4966 (pch_output rule): Rename to...
4967 (pch_input rule): ...this. Produce ${pch_output_builddir}
4968 instead of ${pch_output}.
4969 (install-pch rule): Install ${pch_output_builddir}.
4970 * include/Makefile.in: Regenerated.
4972 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
4974 * include/std/std_streambuf.h (setp): _M_out_lim, being
4975 the end limit of used put area, is set equal to _M_out_beg.
4977 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
4979 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
4980 * aclocal.m4: Regenerated.
4981 * configure.in: Remove old demangler bits.
4983 * configure: Regenerate.
4984 * config.h.in: Regenerate.
4985 * include/Makefile.am (allstamps): Now allstamped.
4986 (allcreated): Define this.
4987 (all-local): Use 'em.
4988 Conditionally define pch_build, pch_install based on
4990 (${pch_output}): New rule.
4991 (install-pch): New rule.
4992 (install-headers): New rule.
4993 (install-data-local): Install headers and conditionally pch.
4994 * include/Makefile.in: Regenerate.
4995 * testsuite_flags.in (--build-cxx): Use pch file.
4997 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
4999 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
5001 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
5002 Paolo Carlini <pcarlini at unitus dot it>
5005 * docs/html/27_io/howto.html
5006 ('The buffering is screwing up my program!'): Explain that
5007 opening counts as an I/O operation.
5009 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
5011 * testsuite/thread/pthread1.cc: Enable for darwin test.
5012 * testsuite/thread/pthread2.cc: Same.
5013 * testsuite/thread/pthread3.cc: Same.
5014 * testsuite/thread/pthread4.cc: Same.
5015 * testsuite/thread/pthread5.cc: Same.
5016 * testsuite/thread/pthread6.cc: Same.
5018 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
5021 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
5022 Populate it with multiple legal ways to obtain the C99 float
5023 transcendentals. Use them instead of direct global reference.
5024 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
5025 * docs/html/17_intro/porting.texi
5026 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5027 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5028 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
5029 * config/os/bsd/freebsd/os_defines.h
5030 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
5031 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
5032 * testsuite/26_numerics/c_math_dynamic.cc: New file.
5034 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
5035 Benjamin Kosnik <bkoz@redhat.com>
5037 * config/os/generic/ctype_inline.h: Fix.
5039 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
5041 * testsuite/testsuite_hooks.h
5042 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
5043 Change to try_named_locale.
5044 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
5046 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
5048 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5049 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5050 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
5051 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
5052 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
5053 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
5054 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
5055 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
5056 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
5057 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
5058 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
5059 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
5060 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
5061 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
5062 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
5063 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5064 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5065 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5066 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
5067 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
5068 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
5069 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
5070 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
5071 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
5072 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
5073 * testsuite/22_locale/collate/compare/char/1.cc: Same.
5074 * testsuite/22_locale/collate/compare/char/2.cc: Same.
5075 * testsuite/22_locale/collate/compare/char/3.cc: Same.
5076 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
5077 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
5078 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
5079 * testsuite/22_locale/collate/hash/char/2.cc: Same.
5080 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
5081 * testsuite/22_locale/collate/transform/char/2.cc: Same.
5082 * testsuite/22_locale/collate/transform/char/3.cc: Same.
5083 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
5084 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
5085 * testsuite/22_locale/collate_byname/1.cc: Same.
5086 * testsuite/22_locale/ctype/is/char/2.cc: Same.
5087 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
5088 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
5089 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
5090 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
5091 * testsuite/22_locale/facet/2.cc: Same.
5092 * testsuite/22_locale/locale/cons/2.cc: Same.
5093 * testsuite/22_locale/locale/cons/4.cc: Same.
5094 * testsuite/22_locale/locale/cons/5.cc: Same.
5095 * testsuite/22_locale/locale/cons/7.cc: Same.
5096 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
5097 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
5098 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
5099 * testsuite/22_locale/messages/members/char/1.cc: Same.
5100 * testsuite/22_locale/messages/members/char/2.cc: Same.
5101 * testsuite/22_locale/messages/members/char/3.cc: Same.
5102 * testsuite/22_locale/messages_byname/1.cc: Same.
5103 * testsuite/22_locale/money_get/get/char/1.cc: Same.
5104 * testsuite/22_locale/money_get/get/char/2.cc: Same.
5105 * testsuite/22_locale/money_get/get/char/3.cc: Same.
5106 * testsuite/22_locale/money_get/get/char/4.cc: Same.
5107 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
5108 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
5109 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
5110 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
5111 * testsuite/22_locale/money_put/put/char/1.cc: Same.
5112 * testsuite/22_locale/money_put/put/char/2.cc: Same.
5113 * testsuite/22_locale/money_put/put/char/3.cc: Same.
5114 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
5115 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
5116 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
5117 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
5118 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
5119 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
5120 * testsuite/22_locale/num_get/get/char/1.cc: Same.
5121 * testsuite/22_locale/num_get/get/char/2.cc: Same.
5122 * testsuite/22_locale/num_get/get/char/3.cc: Same.
5123 * testsuite/22_locale/num_get/get/char/5.cc: Same.
5124 * testsuite/22_locale/num_get/get/char/6.cc: Same.
5125 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
5126 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
5127 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
5128 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
5129 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
5130 * testsuite/22_locale/num_put/put/char/1.cc: Same.
5131 * testsuite/22_locale/num_put/put/char/2.cc: Same.
5132 * testsuite/22_locale/num_put/put/char/3.cc: Same.
5133 * testsuite/22_locale/num_put/put/char/5.cc: Same.
5134 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
5135 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
5136 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
5137 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
5138 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
5139 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
5140 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
5141 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
5142 * testsuite/22_locale/numpunct_byname/1.cc: Same.
5143 * testsuite/22_locale/numpunct_byname/2.cc: Same.
5144 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
5145 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
5146 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
5147 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
5148 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
5149 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
5150 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
5151 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
5152 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
5153 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
5154 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
5155 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
5156 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
5157 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
5158 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
5159 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
5160 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
5161 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
5162 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
5163 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
5164 * testsuite/22_locale/time_put/put/char/1.cc: Same.
5165 * testsuite/22_locale/time_put/put/char/2.cc: Same.
5166 * testsuite/22_locale/time_put/put/char/3.cc: Same.
5167 * testsuite/22_locale/time_put/put/char/4.cc: Same.
5168 * testsuite/22_locale/time_put/put/char/5.cc: Same.
5169 * testsuite/22_locale/time_put/put/char/6.cc: Same.
5170 * testsuite/22_locale/time_put/put/char/7.cc: Same.
5171 * testsuite/22_locale/time_put/put/char/8.cc: Same.
5172 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
5173 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
5174 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
5175 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
5176 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
5177 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
5178 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
5179 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
5180 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
5181 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
5182 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
5183 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
5184 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
5186 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
5188 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
5189 solaris includes, not generic.
5191 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
5193 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
5195 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
5196 * include/bits/concept_check.h: Fix multi-line comment.
5197 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
5198 when target is *-*-freebsd*.
5200 2003-04-14 Nathan Myers <ncm@cantrip.org>
5201 Paolo Carlini <pcarlini@unitus.it>
5203 PR libstdc++/9701 (in_avail())
5204 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
5205 doesn't care if there is anything in some putback cell.
5206 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
5208 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
5209 unused string literals.
5211 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
5213 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
5214 _M_out_end, _M_set_indeterminate() does it.
5216 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5218 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
5220 2003-04-12 David Edelsohn <edelsohn@gnu.org>
5222 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5223 Change basic_streambuf instantiation to "unsigned char".
5224 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5226 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
5228 Remove _M_buf_size_opt, use directly _M_buf_size instead.
5229 * include/bits/fstream.tcc
5230 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
5231 references to _M_buf_size_opt.
5232 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
5233 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
5234 __bufsize to __in_avail and __size_opt to __buf_size.
5235 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
5236 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
5237 * include/std/std_streambuf.h (~basic_streambuf(),
5238 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
5239 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
5240 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
5241 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
5242 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
5243 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
5244 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
5245 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
5246 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
5247 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
5248 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
5249 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
5250 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
5252 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
5254 * include/ext/stdio_filebuf.h
5255 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
5256 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
5257 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
5258 since a stack-based buffer is used for small values of the size_t
5260 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
5261 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
5262 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
5264 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
5267 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
5268 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
5270 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5272 * testsuite/22_locale/locale/cons/3.cc: Split.
5273 * testsuite/22_locale/locale/cons/7222-c.cc: New.
5274 * testsuite/22_locale/locale/cons/7222-env.cc: New.
5275 Check before trying to create a locale from the environment.
5276 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
5277 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
5280 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5282 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
5283 locale to construct this hybrid locale, not the global locale.
5285 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5287 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
5288 instantiation for AIX.
5289 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5290 * testsuite/25_algorithms/min_max.cc: Same.
5292 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5294 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
5295 twice. Always set _M_cfile to 0 when stream was open.
5297 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5299 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
5300 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
5301 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
5302 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
5303 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
5304 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
5305 ifstream_members.cc, instantiations.cc, ios.cc,
5306 ios_base_callbacks.cc, ios_base_members_static-1.tst,
5307 ios_base_members_static.cc, ios_base_storage.cc,
5308 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
5309 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
5310 iostream.cc, iostream_members.cc, istream.cc,
5311 istream_exception.cc, istream_extractor_char.cc,
5312 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
5313 istream_extractor_other-2.tst, istream_extractor_other.cc,
5314 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
5315 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
5316 istream_sentry.cc, istream_unformatted-1.tst,
5317 istream_unformatted-1.txt, istream_unformatted.cc,
5318 istringstream.cc, istringstream_members.cc,
5319 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
5320 ofstream_members.cc, ostream.cc, ostream_exception.cc,
5321 ostream_fail.cc, ostream_inserter_arith.cc,
5322 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
5323 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
5324 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
5325 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
5326 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
5327 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
5328 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
5329 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
5330 wide_stream_objects.cc, istream_extractor_arith/01.cc,
5331 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
5332 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
5333 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
5334 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
5335 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
5337 * 27_io/basic_filebuf/1.cc: New.
5338 * 27_io/basic_filebuf/2.cc: New.
5339 * 27_io/basic_filebuf/3.cc: New.
5340 * 27_io/basic_filebuf/4.cc: New.
5341 * 27_io/basic_filebuf/close/char/1.cc: New.
5342 * 27_io/basic_filebuf/close/char/2.cc: New.
5343 * 27_io/basic_filebuf/close/char/3.cc: New.
5344 * 27_io/basic_filebuf/close/char/4879.cc: New.
5345 * 27_io/basic_filebuf/close/char/9964.cc: New.
5346 * 27_io/basic_filebuf/imbue/char/1.cc: New.
5347 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
5348 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
5349 * 27_io/basic_filebuf/is_open/char/1.cc: New.
5350 * 27_io/basic_filebuf/open/char/1.cc: New.
5351 * 27_io/basic_filebuf/open/char/2.cc: New.
5352 * 27_io/basic_filebuf/open/char/3.cc: New.
5353 * 27_io/basic_filebuf/open/char/9507.cc: New.
5354 * 27_io/basic_filebuf/overflow/char/1.cc: New.
5355 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
5356 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
5357 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
5358 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
5359 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
5360 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
5361 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
5362 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
5363 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
5364 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
5365 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
5366 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
5367 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
5368 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
5369 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
5370 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
5371 * 27_io/basic_filebuf/snextc/char/1.cc: New.
5372 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
5373 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
5374 * 27_io/basic_filebuf/sputc/char/1.cc: New.
5375 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
5376 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
5377 * 27_io/basic_filebuf/sputn/char/1.cc: New.
5378 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
5379 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
5380 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
5381 * 27_io/basic_filebuf/sync/char/1057.cc: New.
5382 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
5383 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
5384 * 27_io/basic_fstream/1.cc: New.
5385 * 27_io/basic_fstream/2.cc: New.
5386 * 27_io/basic_fstream/3.cc: New.
5387 * 27_io/basic_fstream/4.cc: New.
5388 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
5389 * 27_io/basic_ifstream/1.cc: New.
5390 * 27_io/basic_ifstream/2.cc: New.
5391 * 27_io/basic_ifstream/3.cc: New.
5392 * 27_io/basic_ifstream/4.cc: New.
5393 * 27_io/basic_ifstream/cons/char/1.cc: New.
5394 * 27_io/basic_ifstream/open/char/1.cc: New.
5395 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
5396 * 27_io/basic_ios/1.cc: New.
5397 * 27_io/basic_ios/2.cc: New.
5398 * 27_io/basic_ios/3.cc: New.
5399 * 27_io/basic_ios/4.cc: New.
5400 * 27_io/basic_ios/clear/char/1.cc: New.
5401 * 27_io/basic_ios/cons/char/1.cc: New.
5402 * 27_io/basic_ios/cons/char/2.cc: New.
5403 * 27_io/basic_ios/cons/char/3.cc: New.
5404 * 27_io/basic_ios/copyfmt/char/1.cc: New.
5405 * 27_io/basic_ios/copyfmt/char/2.cc: New.
5406 * 27_io/basic_ios/exceptions/char/1.cc: New.
5407 * 27_io/basic_ios/locales/char/1.cc: New.
5408 * 27_io/basic_iostream/1.cc: New.
5409 * 27_io/basic_iostream/2.cc: New.
5410 * 27_io/basic_iostream/3.cc: New.
5411 * 27_io/basic_iostream/4.cc: New.
5412 * 27_io/basic_istream/1.cc: New.
5413 * 27_io/basic_istream/2.cc: New.
5414 * 27_io/basic_istream/3.cc: New.
5415 * 27_io/basic_istream/4.cc: New.
5416 * 27_io/basic_istream/exceptions/char/9561.cc: New.
5417 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
5418 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
5419 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
5420 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
5421 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
5422 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
5423 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
5424 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
5425 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
5426 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
5427 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
5428 * 27_io/basic_istream/extractors_character/char/1.cc: New.
5429 * 27_io/basic_istream/extractors_character/char/2.cc: New.
5430 * 27_io/basic_istream/extractors_character/char/3.cc: New.
5431 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
5432 * 27_io/basic_istream/extractors_other/char/1.cc: New.
5433 * 27_io/basic_istream/extractors_other/char/2.cc: New.
5434 * 27_io/basic_istream/extractors_other/char/3.cc: New.
5435 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
5436 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
5437 * 27_io/basic_istream/get/char/1.cc: New.
5438 * 27_io/basic_istream/get/char/2.cc: New.
5439 * 27_io/basic_istream/getline/char/1.cc: New.
5440 * 27_io/basic_istream/getline/char/2.cc: New.
5441 * 27_io/basic_istream/getline/char/3.cc: New.
5442 * 27_io/basic_istream/ignore/char/1.cc: New.
5443 * 27_io/basic_istream/ignore/char/6360.cc: New.
5444 * 27_io/basic_istream/ignore/char/7220.cc: New.
5445 * 27_io/basic_istream/peek/char/1.cc: New.
5446 * 27_io/basic_istream/peek/char/6414.cc: New.
5447 * 27_io/basic_istream/putback/char/1.cc: New.
5448 * 27_io/basic_istream/read/char/1.cc: New.
5449 * 27_io/basic_istream/read/char/2.cc: New.
5450 * 27_io/basic_istream/read/char/3.cc: New.
5451 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
5452 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
5453 * 27_io/basic_istream/readsome/char/8258.cc: New.
5454 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
5455 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
5456 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
5457 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
5458 * 27_io/basic_istream/seekg/char/fstream.cc: New.
5459 * 27_io/basic_istream/seekg/char/sstream.cc: New.
5460 * 27_io/basic_istream/sentry/char/1.cc: New.
5461 * 27_io/basic_istream/sentry/char/2.cc: New.
5462 * 27_io/basic_istream/sentry/char/3.cc: New.
5463 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
5464 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
5465 * 27_io/basic_istream/tellg/char/1.cc: New.
5466 * 27_io/basic_istream/tellg/char/8348.cc: New.
5467 * 27_io/basic_istream/tellg/char/fstream.cc: New.
5468 * 27_io/basic_istream/tellg/char/sstream.cc: New.
5469 * 27_io/basic_istream/ws/char/1.cc: New.
5470 * 27_io/basic_istringstream/1.cc: New.
5471 * 27_io/basic_istringstream/2.cc: New.
5472 * 27_io/basic_istringstream/3.cc: New.
5473 * 27_io/basic_istringstream/4.cc: New.
5474 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
5475 * 27_io/basic_istringstream/str/char/1.cc: New.
5476 * 27_io/basic_ofstream/1.cc: New.
5477 * 27_io/basic_ofstream/2.cc: New.
5478 * 27_io/basic_ofstream/3.cc: New.
5479 * 27_io/basic_ofstream/4.cc: New.
5480 * 27_io/basic_ofstream/cons/char/2.cc: New.
5481 * 27_io/basic_ofstream/open/char/1.cc: New.
5482 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
5483 * 27_io/basic_ostream/1.cc: New.
5484 * 27_io/basic_ostream/2.cc: New.
5485 * 27_io/basic_ostream/3.cc: New.
5486 * 27_io/basic_ostream/4.cc: New.
5487 * 27_io/basic_ostream/cons/char/9827.cc: New.
5488 * 27_io/basic_ostream/endl/char/1.cc: New.
5489 * 27_io/basic_ostream/ends/char/1.cc: New.
5490 * 27_io/basic_ostream/ends/char/2.cc: New.
5491 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
5492 * 27_io/basic_ostream/flush/char/1.cc: New.
5493 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
5494 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
5495 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
5496 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
5497 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
5498 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
5499 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
5500 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
5501 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
5502 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
5503 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
5504 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
5505 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
5506 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
5507 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
5508 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
5509 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
5510 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
5511 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
5512 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
5513 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
5514 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
5515 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
5516 * 27_io/basic_ostream/sentry/char/1.cc: New.
5517 * 27_io/basic_ostream/sentry/char/2.cc: New.
5518 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
5519 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
5520 * 27_io/basic_ostream/tellp/char/1.cc: New.
5521 * 27_io/basic_ostream/tellp/char/2.cc: New.
5522 * 27_io/basic_ostringstream/1.cc: New.
5523 * 27_io/basic_ostringstream/2.cc: New.
5524 * 27_io/basic_ostringstream/3.cc: New.
5525 * 27_io/basic_ostringstream/4.cc: New.
5526 * 27_io/basic_ostringstream/cons/char/3.cc: New.
5527 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
5528 * 27_io/basic_ostringstream/str/char/1.cc: New.
5529 * 27_io/basic_ostringstream/str/char/2.cc: New.
5530 * 27_io/basic_streambuf/1.cc: New.
5531 * 27_io/basic_streambuf/2.cc: New.
5532 * 27_io/basic_streambuf/3.cc: New.
5533 * 27_io/basic_streambuf/cons/char/1.cc: New.
5534 * 27_io/basic_streambuf/imbue/char/1.cc: New.
5535 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
5536 * 27_io/basic_streambuf/overflow/char/1.cc: New.
5537 * 27_io/basic_streambuf/overflow/char/2.cc: New.
5538 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
5539 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
5540 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
5541 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
5542 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
5543 * 27_io/basic_streambuf/sputn/char/1.cc: New.
5544 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
5545 * 27_io/basic_streambuf/sync/char/1057.cc: New.
5546 * 27_io/basic_stringbuf/1.cc: New.
5547 * 27_io/basic_stringbuf/2.cc: New.
5548 * 27_io/basic_stringbuf/3.cc: New.
5549 * 27_io/basic_stringbuf/4.cc: New.
5550 * 27_io/basic_stringbuf/5.cc: New.
5551 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
5552 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
5553 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
5554 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
5555 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
5556 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
5557 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
5558 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
5559 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
5560 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
5561 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
5562 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
5563 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
5564 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
5565 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
5566 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
5567 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
5568 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
5569 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
5570 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
5571 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
5572 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
5573 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
5574 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
5575 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
5576 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
5577 * 27_io/basic_stringbuf/str/char/1.cc: New.
5578 * 27_io/basic_stringbuf/str/char/2.cc: New.
5579 * 27_io/basic_stringbuf/str/char/3.cc: New.
5580 * 27_io/basic_stringbuf/str/char/3955.cc: New.
5581 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
5582 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
5583 * 27_io/basic_stringstream/1.cc: New.
5584 * 27_io/basic_stringstream/2.cc: New.
5585 * 27_io/basic_stringstream/3.cc: New.
5586 * 27_io/basic_stringstream/4.cc: New.
5587 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
5588 * 27_io/basic_stringstream/str/char/1.cc: New.
5589 * 27_io/basic_stringstream/str/char/2.cc: New.
5590 * 27_io/basic_stringstream/str/char/3.cc: New.
5591 * 27_io/basic_stringstream/str/char/4.cc: New.
5592 * 27_io/fpos/1.cc: New.
5593 * 27_io/fpos/2.cc: New.
5594 * 27_io/fpos/3.cc: New.
5595 * 27_io/ios_base/callbacks/1.cc: New.
5596 * 27_io/ios_base/state/1.cc: New.
5597 * 27_io/ios_base/storage/1.cc: New.
5598 * 27_io/ios_base/storage/2.cc: New.
5599 * 27_io/ios_base/storage/3.cc: New.
5600 * 27_io/ios_base/sync_with_stdio/1.cc: New.
5601 * 27_io/ios_base/sync_with_stdio/2.cc: New.
5602 * 27_io/manipulators/adjustfield/char/1.cc: New.
5603 * 27_io/manipulators/adjustfield/char/2.cc: New.
5604 * 27_io/manipulators/basefield/char/1.cc: New.
5605 * 27_io/manipulators/standard/char/1.cc: New.
5606 * 27_io/manipulators/standard/char/2.cc: New.
5607 * 27_io/objects/char/1.cc: New.
5608 * 27_io/objects/char/2.cc: New.
5609 * 27_io/objects/char/2523-1_xin.cc: New.
5610 * 27_io/objects/char/2523-1_xin.in: New.
5611 * 27_io/objects/char/2523-2_xin.cc: New.
5612 * 27_io/objects/char/2523-2_xin.in: New.
5613 * 27_io/objects/char/3045.cc: New.
5614 * 27_io/objects/char/3647.cc: New.
5615 * 27_io/objects/char/3_xin.cc: New.
5616 * 27_io/objects/char/3_xin.in: New.
5617 * 27_io/objects/char/4_xin.cc: New.
5618 * 27_io/objects/char/4_xin.in: New.
5619 * 27_io/objects/char/5268.cc: New.
5620 * 27_io/objects/char/5280_xin.cc: New.
5621 * 27_io/objects/char/5280_xin.in: New.
5622 * 27_io/objects/char/6548_xin.cc: New.
5623 * 27_io/objects/char/6548_xin.in: New.
5624 * 27_io/objects/char/6648-1_xin.cc: New.
5625 * 27_io/objects/char/6648-1_xin.in: New.
5626 * 27_io/objects/char/6648-2_xin.cc: New.
5627 * 27_io/objects/char/6648-2_xin.in: New.
5628 * 27_io/objects/char/7744_xin.cc: New.
5629 * 27_io/objects/char/7744_xin.in: New.
5630 * 27_io/objects/wchar_t/1.cc: New.
5631 * 27_io/types/1.cc: New.
5632 * 27_io/types/2.cc: New.
5633 * data/filebuf_members-1.tst: New.
5634 * data/filebuf_members-1.txt: New.
5635 * data/filebuf_virtuals-1.tst: New.
5636 * data/filebuf_virtuals-1.txt: New.
5637 * data/filebuf_virtuals-2.tst: New.
5638 * data/filebuf_virtuals-3.tst: New.
5639 * data/ifstream_members-1.tst: New.
5640 * data/ifstream_members-1.txt: New.
5641 * data/ios_base_members_static-1.tst: New.
5642 * data/istream_extractor_other-1.tst: New.
5643 * data/istream_extractor_other-1.txt: New.
5644 * data/istream_extractor_other-2.tst: New.
5645 * data/istream_seeks-1.tst: New.
5646 * data/istream_seeks-1.txt: New.
5647 * data/istream_seeks-2.tst: New.
5648 * data/istream_seeks-3.tst: New.
5649 * data/istream_unformatted-1.tst: New.
5650 * data/istream_unformatted-1.txt: New.
5651 * data/ofstream_members-1.tst: New.
5652 * data/ostream_inserter_char-1.tst: New.
5653 * data/ostream_inserter_char-1.txt: New.
5654 * data/ostream_inserter_other-1.tst: New.
5655 * data/ostream_inserter_other-2.tst: New.
5656 * data/ostream_seeks-1.tst: New.
5658 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5660 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
5661 requirement that __mode must be strict input or output.
5663 * include/std/std_streambuf.h (basic_streambuf::setp): Set
5666 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
5667 output string shouldn't core.
5668 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
5670 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
5672 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
5675 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5677 * testsuite/data: New directory.
5678 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
5679 to copy files from the testsuite data directory.
5680 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
5681 testfiles containing _xin, which now means this is an interactive
5682 test and should be run with the interactive dejagnu hooks.
5683 * testsuite/Makefile.am: Remove testsuite_* files.
5684 * testsuite/Makefile.in: Regenerate.
5686 2003-04-09 Zack Weinberg <zack@codesourcery.com>
5688 * docs/html/install.html: Document complete list of locales
5689 required by test suite. Document procedure for installing
5690 said locales under Debian. Solicit instructions for other
5693 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
5695 * include/bits/sstream.tcc (overflow): Make sure operands of min
5696 and max have the same type.
5698 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
5701 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
5704 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
5706 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
5707 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
5708 Don't set _M_out_end.
5709 (basic_filebuf::overflow): Replace _M_out_buf_size() with
5710 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
5711 * include/bits/sstream.tcc (basic_stringbuf::overflow):
5712 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
5713 * include/bits/streambuf.tcc (basic_streambuf::sputc):
5714 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
5715 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
5716 _M_out_end - _M_out_cur.
5717 (__copy_streambufs): Likewise.
5718 * include/std/std_fstream.h (_M_set_determinate): Set
5721 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
5723 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
5724 _M_convert_to_external, _M_really_overflow, seekoff): Fix
5725 test for synced buffer.
5726 * include/std/std_fstream.h (sync): Likewise.
5727 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5728 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
5730 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
5732 * include/std/std_sstream.h (basic_istringstream): Adjust
5734 (basic_ostringstream): Same.
5735 (basic_stringstream): Same.
5736 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
5737 (basic_ofstream): Same.
5738 (basic_fstream): Same.
5739 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
5740 that does not call init.
5741 * include/std/std_istream.h (basic_istream): Same.
5742 (basic_iostream): Construct istream, ostream uninitialized, use
5743 init to initialize just once. Add protected ctor that does not
5746 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
5747 Nathan Myers <ncm@cantrip.org>
5750 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
5752 (basic_filebuf<>::showmanyc): Use the information provided
5753 by codecvt and __basic_file<>::showmanyc_helper to implement
5754 a non-trivial showmanyc.
5755 * config/io/basic_file_stdio.h
5756 (__basic_file<>::showmanyc_helper): New, declare.
5757 * config/io/basic_file_stdio.cc
5758 (__basic_file<>::showmanyc_helper): Define.
5759 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
5760 (__basic_file<char>::open): Don't call fcntl().
5761 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
5762 GLIBCPP_CHECK_POLL): New macros.
5763 * configure.in: Call here.
5764 * acconfig.h: Add #undefs for the corresponding symbols.
5765 * aclocal.m4: Regenerate.
5766 * configure: Regenerate.
5767 * config.h.in: Regenerate.
5769 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
5771 * config/linker-map.gnu: Remove string export restrictions.
5773 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
5775 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
5776 find_first_of, find_last_of and find_last_not_of tests.
5777 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
5778 tests here, new file.
5779 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
5780 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
5781 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
5782 wchar_t find_first_of tests here, new file.
5783 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
5785 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
5787 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
5788 wchar_t find_last_of tests here.
5789 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
5790 wchar_t find_last_not_of tests here.
5792 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
5794 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
5795 Correct return value.
5797 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
5800 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
5801 * include/std/std_complex.h (norm): Use faster,
5802 less accurate computation for builtin float types under --fast-math.
5804 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
5806 * testsuite/testsuite_hooks.h: Fix warning nits.
5808 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
5810 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
5811 Only .set mips2 for the o32 ABI.
5813 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
5815 * testsuite/21_strings/char_traits/requirements/char/1.cc:
5816 Test char not wchar_t.
5818 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
5820 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
5821 Correct size, taking into account sizeof(wchar_t).
5823 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
5825 Reshuffle 21_strings testsuite.
5826 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
5827 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
5828 element_access.cc, operations.cc, char_traits_requirements.cc,
5829 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
5830 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
5831 wchar_t tests as follows.
5832 * 21_strings/basic_string/append/char/1.cc: New.
5833 * 21_strings/basic_string/append/wchar_t/1.cc: New.
5834 * 21_strings/basic_string/assign/char/1.cc: New.
5835 * 21_strings/basic_string/assign/char/2.cc: New.
5836 * 21_strings/basic_string/assign/char/3.cc: New.
5837 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
5838 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
5839 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
5840 * 21_strings/basic_string/capacity/1.cc: New.
5841 * 21_strings/basic_string/capacity/char/1.cc: New.
5842 * 21_strings/basic_string/capacity/char/2.cc: New.
5843 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
5844 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
5845 * 21_strings/basic_string/compare/char/1.cc: New.
5846 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
5847 * 21_strings/basic_string/cons/char/1.cc: New.
5848 * 21_strings/basic_string/cons/char/2.cc: New.
5849 * 21_strings/basic_string/cons/char/3.cc: New.
5850 * 21_strings/basic_string/cons/char/4.cc: New.
5851 * 21_strings/basic_string/cons/char/5.cc: New.
5852 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
5853 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
5854 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
5855 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
5856 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
5857 * 21_strings/basic_string/element_access/char/1.cc: New.
5858 * 21_strings/basic_string/element_access/char/2.cc: New.
5859 * 21_strings/basic_string/element_access/char/3.cc: New.
5860 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
5861 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
5862 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
5863 * 21_strings/basic_string/find/char/1.cc: New.
5864 * 21_strings/basic_string/find/wchar_t/1.cc: New.
5865 * 21_strings/basic_string/insert/char/1.cc: New.
5866 * 21_strings/basic_string/insert/char/2.cc: New.
5867 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
5868 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
5869 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
5870 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
5871 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
5872 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
5873 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
5874 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
5875 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
5876 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
5877 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
5878 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
5879 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
5880 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
5881 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
5882 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
5883 * 21_strings/basic_string/operators/char/1.cc: New.
5884 * 21_strings/basic_string/operators/char/2.cc: New.
5885 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
5886 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
5887 * 21_strings/basic_string/replace/char/1.cc: New.
5888 * 21_strings/basic_string/replace/char/2.cc: New.
5889 * 21_strings/basic_string/replace/char/3.cc: New.
5890 * 21_strings/basic_string/replace/char/4.cc: New.
5891 * 21_strings/basic_string/replace/char/5.cc: New.
5892 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
5893 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
5894 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
5895 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
5896 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
5897 * 21_strings/basic_string/rfind/char/1.cc: New.
5898 * 21_strings/basic_string/rfind/char/2.cc: New.
5899 * 21_strings/basic_string/rfind/char/3.cc: New.
5900 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
5901 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
5902 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
5903 * 21_strings/basic_string/substr/char/1.cc: New.
5904 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
5905 * 21_strings/c_strings/char/1.cc: New.
5906 * 21_strings/c_strings/char/2.cc: New.
5907 * 21_strings/c_strings/wchar_t/1.cc: New.
5908 * 21_strings/c_strings/wchar_t/2.cc: New.
5909 * 21_strings/char_traits/requirements/char/1.cc: New.
5910 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
5911 * 21_strings/char_traits/typedefs/char/1.cc: New.
5913 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
5914 Petur Runolfsson <peturr02@ru.is>
5917 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5918 basic_filebuf<wchar_t>::_M_underflow_common):
5919 if (gptr() < egptr()) return *gptr().
5920 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
5922 * testsuite/27_io/filebuf_members.cc (test_04): Minor
5923 changes: unlink fifo before making it, fix spelling error.
5925 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
5927 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
5928 * testsuite/Makefile.in: Regenerate.
5929 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
5932 2003-03-17 Petur Runolfsson <peturr02@ru.is>
5935 * include/bits/fstream.tcc (basic_filebuf::close):
5936 Always close file, even when write fails.
5937 * testsuite/27_io/filebuf_members.cc (test_07): New test.
5939 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
5941 * libsupc++/Makefile.am (C_COMPILE): Remove.
5942 (LTCOMPILE): Likewise.
5943 * libsupc++/Makefile.in: Regenerate.
5945 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
5947 * testsuite/23_containers/bitset_members.cc: Add test variable.
5948 * testsuite/23_containers/map_insert.cc: Same.
5949 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
5950 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
5951 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5952 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5953 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5954 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
5955 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
5956 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5957 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5958 * testsuite/27_io/istream_exception.cc: Same.
5959 * testsuite/27_io/filebuf_virtuals.cc: Same.
5960 * testsuite/27_io/stringbuf_virtuals.cc: Same.
5961 * testsuite/27_io/ostream_inserter_arith.cc: Same.
5962 * testsuite/26_numerics/valarray_operators.cc: Same.
5963 * testsuite/26_numerics/slice.cc: Same.
5964 * testsuite/26_numerics/slice_array_assignment.cc: Same.
5965 * testsuite/24_iterators/istream_iterator.cc: Same.
5966 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
5968 2003-03-14 Petur Runolfsson <peturr02@ru.is>
5972 * config/locale/generic/ctype_members.cc,
5973 * config/locale/gnu/ctype_members.cc
5974 (ctype<wchar_t>::do_widen(char)): Cast argument to
5975 unsigned char before passing to btowc.
5976 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
5977 Convert characters with btowc instead of mbsrtowcs.
5978 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
5980 Convert characters with wctob instead of wcsrtombs.
5981 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
5982 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
5983 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
5985 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
5987 * include/stdc++.h: New.
5988 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
5989 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
5990 * include/Makefile.in: Regenerate.
5991 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
5992 (--cxxflags): Put -g -O2 here.
5993 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
5995 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
5997 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
5998 missing named locale.
6000 2003-03-14 Andreas Schwab <schwab@suse.de>
6002 * configure.in: Only append to makefiles that are newly created to
6003 avoid multiple multi-do/multi-clean rules.
6004 * configure: Rebuilt.
6006 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
6008 * docs/html/configopts.html, docs/html/documentation.html,
6009 docs/html/explanations.html, docs/html/install.html,
6010 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
6011 invalid XHTML and make page header style consistent.
6013 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
6015 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
6016 * docs/html/faq/index.txt: Regenerate.
6017 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
6019 2003-03-12 Andreas Schwab <schwab@suse.de>
6021 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
6022 glibcpp_toolexeclibdir.
6023 * aclocal.m4, configure: Rebuilt.
6025 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
6027 * docs/html/faq/index.html: Update text about location of headers.
6028 * docs/html/faq/index.txt: Regenerate.
6030 2003-03-11 Carlo Wood <carlo@alinoe.com>
6032 * include/bits/demangle.h: Prepend accessors of
6033 class qualifier with 'get_' in order to fix warnings
6034 when compiling with -Wshadow.
6036 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
6038 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
6040 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
6042 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
6043 report lack of setenv().
6045 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6047 * config/io/basic_file_stdio.cc: include <unistd.h>.
6049 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6050 Nathan Myers <ncm@cantrip.org>
6053 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
6054 seekoff, seekpos): Add a boolean parameter __stdio.
6055 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
6056 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
6057 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
6059 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
6060 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
6061 * include/std/std_fstream.h (sync): Likewise.
6062 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
6063 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
6064 libstdc++/8399 commit involving isatty(0).
6065 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
6066 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
6067 * configure.in: Remove call.
6068 * aclocal.m4: Regenerate.
6069 * config.h.in: Regenerate.
6070 * configure: Regenerate.
6071 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
6073 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
6076 * include/bits/fstream.tcc (overflow): don't write EOF to file.
6077 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
6079 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6082 * include/bits/basic_ios.h (_M_setstate): New.
6083 * include/bits/ostream.tcc (operator<<): Use it.
6084 * include/bits/istream.tcc (operator>>): Use it.
6085 * include/std/std_ostream.h (operator<<): Make friends.
6086 * include/std/std_istream.h (operator>>): Make friends.
6087 * testsuite/27_io/ostream_exception.cc,
6088 testsuite/27_io/istream_exception.cc: New tests.
6090 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
6092 * include/bits/locale_facets.tcc: Fix typo.
6094 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
6096 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
6098 * config/locale/generic/c_locale.cc
6099 (locale::facet::_S_create_c_locale): Throw runtime exception when
6100 unsupported language is specified.
6101 * testsuite/testsuite_hooks.h
6102 (run_test_wrapped_generic_locale_exception_catcher): New function.
6103 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
6104 Suppress runtime exception thrown by generic implementation.
6105 (run_tests_wrapped_env): Likewise.
6106 (run_test_wrapped_generic_locale_exception_catcher): New function.
6107 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
6108 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
6109 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
6110 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
6111 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
6112 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
6113 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
6114 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
6115 * testsuite/22_locale/facet/2.cc: New test wrap.
6116 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
6117 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
6118 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
6119 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
6120 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
6121 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
6122 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
6123 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
6124 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
6125 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
6126 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
6127 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
6128 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
6129 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
6130 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
6131 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
6132 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
6133 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
6134 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
6135 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
6136 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
6137 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
6138 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
6139 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
6140 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
6141 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
6142 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
6143 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
6144 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
6145 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
6146 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
6147 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
6148 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
6149 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
6150 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
6151 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
6152 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
6153 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
6154 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
6155 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
6156 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
6157 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
6158 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
6159 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
6160 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
6161 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
6162 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
6163 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
6164 * testsuite/27_io/ios_members.cc: New test wrap.
6165 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
6167 * testsuite/27_io/streambuf_members.cc: New test wrap.
6168 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
6170 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
6171 Petur Runolfsson <peturr02@ru.is>
6174 * include/bits/streambuf.tcc (__copy_streambufs): Use
6175 sgetn-sputn only when sputn cannot fail, otherwise fall back
6176 to safe snextc-sputc.
6177 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
6179 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6181 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
6182 locale cache for truename and falsename.
6184 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6186 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
6187 _M_word_size initialization.
6189 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6191 * include/bits/fstream.tcc (_M_convert_to_external):
6192 Set __elen to zero if codecvt::out eventually fails.
6194 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6197 * include/bits/fstream.tcc (_M_really_overflow): Check
6198 for _M_convert_to_external possible failures.
6199 * include/std/std_fstream.h (sync): Check _M_really_overflow
6200 return value and return -1 in case of failure.
6201 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
6203 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6206 * include/bits/istream.tcc (operator>>(_CharT*),
6207 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
6208 * testsuite/27_io/stringstream.cc (test02): Add.
6210 * include/bits/istream.tcc (operator>>(_CharT*)):
6211 Assign a char_type to *__s.
6213 2003-03-07 Petur Runolfsson <peturr02@ru.is>
6216 * include/bits/locale_facets.tcc
6217 (collate::do_compare, collate::do_transform):
6218 Handle nul characters in input.
6219 * testsuite/22_locale/collate/compare/char/3.cc: New test.
6220 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
6221 * testsuite/22_locale/collate/transform/char/3.cc: New test.
6222 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
6224 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
6226 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
6228 * testsuite/27_io/ostream_fail.cc: New test.
6230 2003-03-07 Matthias Klose <doko@debian.org>
6232 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
6233 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
6234 * Makefile.in: Regenerate.
6235 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
6237 AM_MAKEFLAGS: Pass gxx_include_dir.
6238 * libsupc++/Makefile.in: Regenerate.
6240 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
6242 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
6243 mask. Test setting small-numbered pword and iword slots. Test
6244 behavior at limit of numeric_limits::max. Check that values are
6245 still good after failures.
6247 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
6249 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
6250 (ios_base::ios_base): Set _M_word, _M_word_size.
6251 (ios_base::~ios_base): Remove redundant test.
6252 * testsuite/27_io/ios_base_storage.cc (test03): New.
6254 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
6256 * src/strstream.cc, include/bits/basic_string.tcc: Remove
6257 incorrect whitespace added in my previous change.
6259 2003-03-05 Carlo Wood <carlo@alinoe.com>
6261 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
6262 _S_initialized() in order to allow debugging libraries to detect
6263 when the std streams are initialized from an overloaded operator
6266 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
6268 * libsupc++/demangle.h: Move to..
6269 * include/bits/demangle.h: ...here.
6270 * src/demangle.cc: Adjust include.
6271 * include/Makefile.am (bits_headers): Add.
6272 * include/Makefile.in: Regenerate.
6274 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
6276 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
6278 * config/linker-map.gnu: Filter typeinfo and vtable info.
6280 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
6282 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
6283 new failure. Throw exception if badbit and exception mask when ix
6284 >= numeric_limits<int>::max().
6286 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
6288 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
6289 min and max have the same type.
6290 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
6292 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
6294 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
6295 * include/Makefile.in: Regenerate.
6297 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
6299 * testsuite/abi_check.cc (report_symbol_info): Add version info.
6301 * config/linker-map.gnu: Hide more stuff.
6302 * include/Makefile.am: Cleanups.
6303 * include/Makefile.in: Regenerate.
6305 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
6307 * config/locale/generic/messages_members.h (messages::messages):
6308 Remove name from unused parameter.
6310 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
6312 * src/Makefile.am (sources): Add demangle.cc.
6315 * src/Makefile.in: Regenerate.
6316 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
6317 * libsupc++/Makefile.in: Regenerate.
6319 * testsuite/testsuite_hooks.h
6320 (__gnu_cxx_test::verify_demangle): New.
6321 * testsuite/testsuite_hooks.cc: Define.
6323 2003-02-27 Carlo Wood <carlo@alinoe.com>
6325 * src/demangle.cc: New.
6326 * libsupc++/demangle.h: New.
6328 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
6329 Carlo Wood <carlo@alinoe.com>
6331 * testsuite/demangle/abi_examples/01.cc: New.
6332 * testsuite/demangle/abi_examples/02.cc: New.
6333 * testsuite/demangle/abi_examples/03.cc: New.
6334 * testsuite/demangle/abi_examples/04.cc: New.
6335 * testsuite/demangle/abi_examples/05.cc: New.
6336 * testsuite/demangle/abi_examples/06.cc: New.
6337 * testsuite/demangle/abi_examples/07.cc: New.
6338 * testsuite/demangle/abi_examples/08.cc: New.
6339 * testsuite/demangle/abi_examples/09.cc: New.
6340 * testsuite/demangle/abi_examples/10.cc: New.
6341 * testsuite/demangle/abi_examples/11.cc: New.
6342 * testsuite/demangle/abi_examples/12.cc: New.
6343 * testsuite/demangle/abi_examples/13.cc: New.
6344 * testsuite/demangle/abi_examples/14.cc: New.
6345 * testsuite/demangle/abi_examples/15.cc: New.
6346 * testsuite/demangle/abi_examples/16.cc: New.
6347 * testsuite/demangle/abi_examples/17.cc: New.
6348 * testsuite/demangle/abi_examples/18.cc: New.
6349 * testsuite/demangle/abi_examples/19.cc: New.
6350 * testsuite/demangle/abi_examples/20.cc: New.
6351 * testsuite/demangle/abi_examples/21.cc: New.
6352 * testsuite/demangle/abi_examples/22.cc: New.
6353 * testsuite/demangle/abi_examples/23.cc: New.
6354 * testsuite/demangle/abi_examples/24.cc: New.
6355 * testsuite/demangle/abi_examples/25.cc: New.
6356 * testsuite/demangle/abi_examples/26.cc: New.
6357 * testsuite/demangle/abi_text/01.cc: New.
6358 * testsuite/demangle/abi_text/02.cc: New.
6359 * testsuite/demangle/abi_text/03.cc: New.
6360 * testsuite/demangle/abi_text/04.cc: New.
6361 * testsuite/demangle/abi_text/05.cc: New.
6362 * testsuite/demangle/abi_text/06.cc: New.
6363 * testsuite/demangle/abi_text/07.cc: New.
6364 * testsuite/demangle/abi_text/08.cc: New.
6365 * testsuite/demangle/abi_text/09.cc: New.
6366 * testsuite/demangle/abi_text/10.cc: New.
6367 * testsuite/demangle/abi_text/11.cc: New.
6368 * testsuite/demangle/abi_text/12.cc: New.
6369 * testsuite/demangle/abi_text/13.cc: New.
6370 * testsuite/demangle/abi_text/14.cc: New.
6371 * testsuite/demangle/regression/3111-1.cc: New.
6372 * testsuite/demangle/regression/3111-2.cc: New.
6373 * testsuite/demangle/regression/7986-01.cc: New.
6374 * testsuite/demangle/regression/7986-02.cc: New.
6375 * testsuite/demangle/regression/7986-03.cc: New.
6376 * testsuite/demangle/regression/7986-04.cc: New.
6377 * testsuite/demangle/regression/7986-05.cc: New.
6378 * testsuite/demangle/regression/7986-06.cc: New.
6379 * testsuite/demangle/regression/7986-07.cc: New.
6380 * testsuite/demangle/regression/7986-08.cc: New.
6381 * testsuite/demangle/regression/7986-09.cc: New.
6382 * testsuite/demangle/regression/7986-10.cc: New.
6383 * testsuite/demangle/regression/7986-11.cc: New.
6384 * testsuite/demangle/regression/7986-12.cc: New.
6385 * testsuite/demangle/regression/7986.cc: New.
6386 * testsuite/demangle/regression/8897.cc: New.
6387 * testsuite/demangle/regression/cw-01.cc: New.
6388 * testsuite/demangle/regression/cw-02.cc: New.
6389 * testsuite/demangle/regression/cw-03.cc: New.
6390 * testsuite/demangle/regression/cw-04.cc: New.
6391 * testsuite/demangle/regression/cw-05.cc: New.
6392 * testsuite/demangle/regression/cw-06.cc: New.
6393 * testsuite/demangle/regression/cw-07.cc: New.
6394 * testsuite/demangle/regression/cw-08.cc: New.
6395 * testsuite/demangle/regression/cw-09.cc: New.
6396 * testsuite/demangle/regression/cw-10.cc: New.
6397 * testsuite/demangle/regression/cw-11.cc: New.
6398 * testsuite/demangle/regression/cw-12.cc: New.
6399 * testsuite/demangle/regression/cw-13.cc: New.
6400 * testsuite/demangle/regression/cw-14.cc: New.
6401 * testsuite/demangle/regression/old.cc: New.
6403 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
6405 * docs/doxygen/Intro.3: Update with new (proper) names.
6406 * docs/doxygen/TODO: Update.
6407 * docs/doxygen/run_doxygen: More comments, fix up man pages.
6408 Fake entries for standard typedefs.
6409 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
6410 * docs/html/documentation.html: Top-level man page is now called
6412 * include/std/std_limits.h: Doxygenate.
6414 2003-02-25 Scott Snyder <snyder@fnal.gov>
6417 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
6418 Correct documentation.
6419 * include/bits/stl_multimap.h (lower_bound, upper_bound,
6420 equal_range): Likewise.
6422 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
6426 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
6427 __bump is true (uflow), always increment the read pointer
6428 (_M_in_cur) before returning successfully.
6429 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
6431 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
6432 Nathan Myers <ncm@cantrip.org>
6434 PR libstdc++/9404, PR libstdc++/9701 (partial)
6435 (aka pptr == epptr implies overflow)
6436 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6437 Consistently, _M_out_end points to the end of the buffer just
6439 (overflow): Tweak to use _M_out_buf_size().
6440 (_M_convert_to_external): The role of the old _M_out_end is
6441 now played by _M_out_lim.
6442 (_M_really_overflow): Likewise.
6443 (seekoff): Likewise.
6444 (setbuf): _M_out_end points to the end of the external buffer.
6445 * include/bits/sstream.tcc (overflow): Rewrote, taking into
6446 account the resolution of DR 169 (TC).
6447 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
6448 (seekpos): Use _M_string.capacity(); tweak.
6449 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
6450 * include/std/std_fstream.h (sync): The role of the old
6451 _M_out_end is now played by _M_out_lim.
6452 (_M_set_indeterminate): Use _M_set_determinate.
6453 (_M_set_determinate): _M_out_end is now _M_out_lim.
6454 (_M_is_indeterminate): Likewise.
6455 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
6456 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
6457 which have the information readily available as _M_string.capacity();
6458 for ate and app modes, pass the string size to _M_really_sync.
6459 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
6460 point to the end of the buffer (i.e., epptr) and to the string end,
6462 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
6463 which points to the right limit of the used put area.
6464 (_M_out_cur_move): The role of the old _M_out_end is now played
6466 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
6467 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
6469 (basic_streambuf()): Initialize _M_out_lim too.
6470 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
6471 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
6472 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
6474 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
6476 * testsuite/27_io/ios_base_storage.cc (main): Call
6479 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
6481 * include/bits/locale_facets.tcc (_M_convert_float): Replace
6482 numpunct facet accesses with data from __locale_cache.
6484 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
6486 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
6487 * docs/html/faq/index.txt: Regenerate.
6489 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
6491 * config/linker-map.gnu: Also export locking symbols needed for the
6492 generic atomicity.h case.
6494 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
6496 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6498 * configure: Rebuilt.
6500 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
6502 * include/bits/sstream.tcc (overflow): According to
6503 27.7.1.3, p5, actual output is performed by sputc(c).
6505 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
6508 * include/bits/stl_alloc.h: Remove all traces of assert().
6510 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
6512 * include/std/std_sstream.h (str()): the size of the
6513 current string may be different from the initial one
6514 whenever _M_out_end > _M_out_beg.
6515 * testsuite/27_io/stringbuf_members.cc (test07): Add.
6517 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
6520 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
6522 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
6524 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
6525 * testsuite/27_io/ios_members.cc (test03): New.
6527 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
6529 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
6530 (basic_ios::_M_cache_facets): Move into above.
6531 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
6533 (basic_ios::imbue): Force locale cache to be built.
6534 (basic_ios::_M_init): Create and initialize locale cache.
6535 * include/bits/ios_base.h (__locale_cache_base): Declare.
6536 (ios_base::_M_locale_cache): New.
6537 (ios_base::_M_cache): Define.
6538 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
6540 (__locale_cache_base,__locale_cache<_CharT>): New classes.
6541 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
6542 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
6543 cache literal string, grouping flag, thousands separator.
6544 (__locale_cache<_CharT>::__locale_cache): New.
6545 (__locale_cache<_CharT>::_M_init): New.
6546 * src/ios.cc: Clear _M_locale_cache in constructor.
6547 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
6550 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6552 * src/locale-inst.cc: Do not include <cassert>.
6553 * src/locale.cc: Likewise.
6555 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6558 * include/std/std_fstream.h: Declare underflow and uflow
6559 specializations, change generic definitions to do nothing.
6560 * src/fstream.cc: Add underflow and uflow specializations.
6562 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6565 * include/bits/fstream.tcc (_M_convert_to_external):
6566 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
6567 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
6569 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
6571 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
6572 * include/bits/basic_ios.tcc: Guard use of extern template.
6573 * include/std/std_iomanip.h: Same.
6574 * include/bits/streambuf.tcc: Same.
6575 * include/bits/stl_alloc.h: Same.
6576 * include/bits/locale_facets.tcc: Same.
6577 * include/bits/ostream.tcc: Same.
6578 * include/bits/istream.tcc: Same.
6579 * include/bits/fstream.tcc: Same.
6580 * include/bits/basic_string.tcc: Same.
6582 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
6584 * include/bits/ostream.tcc (sentry::sentry): Improve
6585 performance-wise the fix for libstdc++/9563.
6587 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
6589 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
6590 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
6591 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
6592 when we don't have static mutex initialization.
6593 (__exchange_and_add): Use _Atomic_add_mutex_once.
6594 * src/misc-inst.cc: Definitions of all the above.
6596 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
6599 * include/bits/ostream.tcc (sentry::sentry): Check
6600 the state of the stream after the preparation.
6601 * testsuite/27_io/ostream_sentry.cc (test02): Add.
6603 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
6605 * include/Makefile.am (stamp-std-precompile): Add rule.
6606 * include/Makefile.in: Regenerated.
6608 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
6609 Benjamin Kosnik <benjamin@redhat.com>
6611 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
6612 Add indexes into this array.
6613 (__num_base::_S_atoms): To _S_atoms_in.
6614 (num_put::_M_insert): Rename to _M_pad.
6615 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
6616 (num_put::_M_widen_int): Rename to _M_group_int.
6617 (num_put::_M_widen_float): Rename to _M_group_float.
6618 * include/bits/locale_facets.tcc (__int_to_char): New inline
6619 function and adapter functions.
6620 (num_put::_M_group_int): Streamline.
6621 (num_put::_M_group_float): Streamline.
6622 (num_put::_M_convert_int): Remove unused parameter names. Choose
6623 large enough buffer for text. Use __int_to_char instead of
6624 __convert_from_v. Formatted text is now at the end of the buffer.
6625 (num_put::_M_convert_float): Preliminary fixups.
6626 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
6627 (__int_to_char<unsigned long long>): Same.
6628 (__int_to_char<char, unsigned long>): New.
6629 (__int_to_char<char, unsigned long long>): New.
6630 (__int_to_char<wchar_t, unsigned long>): New.
6631 (__int_to_char<wchar_t, unsigned long long>): New.
6633 2003-02-11 Scott Snyder <snyder@fnal.gov>
6636 * include/bits/fstream.tcc (seekoff): Avoid operator+
6639 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
6642 * include/ext/stdio_filebuf.h
6643 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
6644 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
6645 Change to take a __size parameter of type size_t, not
6646 of type (template parameter dependent) int_type.
6647 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
6648 size vars to size_t.
6649 * testsuite/ext/stdio_filebuf.cc: Add.
6651 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
6652 Petur Runolfsson <peturr02@ru.is>
6655 * include/bits/streambuf.tcc (__copy_streambufs):
6656 Don't conditionalize the copy to __testput.
6657 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
6659 2002-02-11 DJ Delorie <dj@redhat.com>
6661 * acinclude.m4: Check for native targets that can't link at
6662 this point in the build.
6663 * aclocal.m4: Regenerate.
6664 * configure: Regenerate.
6666 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6668 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
6670 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
6673 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
6675 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
6676 unsigned char platforms.
6678 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
6681 * include/std/std_istream.h
6682 (basic_istream::sentry::operator bool()): Make const.
6683 * include/std/std_ostream.h
6684 (basic_ostream::sentry::operator bool()): Likewise.
6685 * testsuite/27_io/istream_sentry.cc (test03): Add.
6686 * testsuite/27_io/ostream_sentry.cc: Add.
6688 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
6691 Implement resolution of DR 231 (Ready)
6692 * include/bits/locale_facets.h (__num_base::_S_format_float):
6693 Change declaration: return void, remove __prec parameter.
6694 * src/locale.cc (__num_base::_S_format_float): Implement
6695 resolution of DR 231.
6696 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
6697 Tweak uses. Check for negative precision.
6698 * testsuite/22_locale/num_put/put/char/6.cc: Add
6699 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
6701 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
6703 * config/io/basic_file_libio.h: Fixups.
6704 * config/io/c_io_libio.h: Same.
6705 * libio/Makefile.am: Same.
6706 * libio/Makefile.in: Regenerated.
6708 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
6710 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
6711 Explicitly use the "C" locale.
6712 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
6714 2003-02-06 Petur Runolfsson <peturr02@ru.is>
6718 PR libstdc++/9028 (partial)
6724 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
6725 codecvt<wchar_t, char, mbstate_t>::do_length,
6726 codecvt<wchar_t, char, mbstate_t>::do_max_length):
6728 * config/locale/generic/codecvt_members.cc: ...here.
6729 * config/locale/gnu/codecvt_members.cc: ...and here.
6731 * config/locale/generic/codecvt_members.cc,
6732 * config/locale/gnu/codecvt_members.cc
6733 (codecvt<wchar_t, char, mbstate_t>::do_encoding
6734 codecvt<wchar_t, char, mbstate_t>::do_in,
6735 codecvt<wchar_t, char, mbstate_t>::do_length,
6736 codecvt<wchar_t, char, mbstate_t>::do_max_length,
6737 codecvt<wchar_t, char, mbstate_t>::do_out):
6738 New implementation that handles stateless encodings,
6741 * config/locale/generic/codecvt_members.cc,
6742 * config/locale/gnu/codecvt_members.cc,
6743 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
6744 * include/bits/codecvt.h,
6746 (codecvt::length, codecvt::do_length):
6747 Change type of first argument of length and do_length from
6748 'const state_type&' to 'state_type&' according to DR 75.
6750 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
6751 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
6752 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
6753 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
6754 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
6755 Cleanup and check for correct return value from encoding
6757 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
6758 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
6759 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
6760 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
6761 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
6762 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
6763 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
6764 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
6765 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
6766 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
6767 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
6768 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
6769 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
6770 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
6771 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
6772 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
6773 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
6774 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
6775 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
6776 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
6777 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
6778 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
6779 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
6780 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
6781 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
6782 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
6783 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
6784 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
6785 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
6786 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
6787 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
6788 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
6789 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
6790 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
6791 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
6792 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
6793 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
6795 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
6797 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
6798 (money_put::do_put): Same.
6800 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
6802 * include/bits/ios_base.h (ios_base): Document reserved storage.
6804 * include/bits/locale_facets.h: (struct __pad): Comment on
6806 (__verify_grouping): Same.
6807 (__add_grouping): Same.
6808 * include/bits/locale_facets.tcc (__verify_grouping): Move
6809 comments to declaration.
6810 (__add_grouping): Same.
6812 * include/bits/locale_facets.tcc:
6813 (__write<_CharT, _OutIter>): New function.
6814 (__write<_CharT>): New function specialization.
6815 (num_put::_M_insert): Remove explicit loop over iterator. Use
6817 (num_put::_M_widen_float): Remove __basefield.
6818 (num_put::_M_widen_int): Move __basefield to within grouping block.
6820 * include/bits/streambuf_iterator.h: Include <streambuf>.
6821 (ostreambuf_iterator::_M_put): Add.
6823 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
6825 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
6827 2003-02-04 Nathan Myers <ncm@cantrip.org>
6829 * testsuite/25_algorithms/min_max.cc (test02): Add.
6831 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6833 PR libstdc++/9439, PR libstdc++/9425
6834 * config/io/basic_file_stdio.cc
6835 (__basic_file<char>::seekoff, seekpos): Return -1L if
6837 * include/bits/fstream.tcc (basic_filebuf::seekoff):
6838 Check _M_file.seekoff return value; always return
6839 pos_type(off_type(-1)) in case of failure.
6840 (basic_filebuf::pbackfail): Check this->seekoff return
6841 value and return traits_type::eof() in case of failure.
6842 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
6844 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
6846 * include/std/std_ostream.h (ostream::_M_write): Declare.
6847 * ostream.tcc (ostream::_M_write): Define.
6848 (basic_ostream::write): Use it.
6849 (operator<<(basic_ostream, _CharT)): Ditto.
6850 (operator<<(basic_ostream, char)): Ditto.
6851 (operator<<(basic_ostream, _CharT*)): Ditto.
6852 (operator<<(basic_ostream, char*)): Ditto.
6853 (operator<<(basic_ostream, basic_string)): Ditto.
6855 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
6857 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
6859 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
6861 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
6862 add HTML comment about updating links if numbering changes.
6864 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6867 * include/bits/streambuf.tcc (sputbackc): Access
6868 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
6869 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6871 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6874 * include/bits/fstream.tcc (open): If the 'ate' repositioning
6875 operation fails, calls close _and_ returns a null pointer
6876 to indicate failure (27.8.1.3,4).
6877 * testsuite/27_io/filebuf_members.cc (test_06): Add.
6879 2003-02-04 Petur Runolfsson <peturr02@ru.is>
6881 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
6883 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
6885 * docs/html/27_io/howto.html: New section on stdio_filebuf.
6886 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
6887 * docs/html/documentation.html: Regenerate.
6889 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
6891 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
6892 * docs/html/17_intro/porting.html: Regenerate.
6894 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6895 Phil Edwards <pme@gcc.gnu.org>
6897 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
6898 numeric_limits for bits-per-word values.
6899 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
6900 Use __builtin_popcountl instead.
6901 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
6902 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
6903 Use __builtin_ctzl instead.
6904 (_S_bit_count, _S_first_one): Remove.
6905 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
6906 * src/Makefile.am (sources): Remove bitset.cc.
6907 * src/bitset.cc: Delete file.
6908 * src/Makefile.in: Regenerate.
6910 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
6912 PR libstdc++/9527, PR libstdc++/8713
6913 * docs/html/install.html: Mention glibc version requirement.
6914 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
6915 with 3.2.1+ (formatting bugfixes).
6916 * docs/html/faq/index.txt: Regenerate.
6918 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
6921 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
6924 * include/bits/valarray_before.h (__not_equal_to): Use != instead
6927 * testsuite/26_numerics/valarray_operators.cc: New test.
6929 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
6931 * docs/html/faq/index.html: Correct link to libg++ information.
6932 * docs/html/faq/index.txt: Regenerated.
6934 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
6935 Benjamin Kosnik <bkoz@redhat.com>
6937 Const correctness issue:
6938 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
6939 * include/bits/locale_classes.h
6940 (locale::_Impl::_M_facets): Change type to const facet**.
6941 (locale::_Impl::_M_install_facet): Change declaration to
6943 (locale::facet::_M_references): Make mutable.
6944 (locale::facet::_M_add_reference): Declare const.
6945 (locale::facet::_M_remove_reference): Likewise.
6946 * include/bits/locale_facets.tcc
6947 (use_facet(const locale&)): Tweak for const facet** _M_facets.
6948 (has_facet(const locale&)): Likewise.
6950 (locale::facet::_M_add_reference): Adjust definition.
6951 (locale::facet::_M_remove_reference): Likewise.
6953 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
6954 const facet** _M_facets.
6955 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
6956 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
6957 (locale::_Impl::_M_install_facet): Adjust definition to take
6958 const facet* and for const facet** _M_facets.
6959 * testsuite/22_locale/locale/cons/8.cc: Add.
6961 2003-01-29 Mark Mitchell <mark@codesourcery.com>
6963 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
6964 Use __FLT_HAS_INIFINITY__ to initialize.
6965 (numeric_limits<float>::has_quiet_NaN): Likewise.
6966 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
6968 (numeric_limits<double>::has_quiet_NaN): Likewise.
6969 (numeric_limits<long double>::has_infinity): Use
6970 __LDBL_HAS_INIFINITY__ to initialize.
6971 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
6973 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
6976 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
6977 with bases which are very ambiguous.
6979 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
6981 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
6982 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
6983 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
6984 * src/Makefile.in: Regenerate.
6985 * libsupc++/Makefile.in: Regenerate.
6987 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
6989 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
6990 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
6991 version_specific_libs is enabled.
6992 * aclocal.m4, configure: Rebuilt.
6994 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
6996 * include/bits/valarray_meta.h: Remove, split into ...
6997 * include/bits/valarray_before.h: ... this, and ...
6998 * include/bits/valarray_after.h: ... this.
6999 * include/std/std_valarray.h: Adjust.
7000 * include/Makefile.am (bits_headers): Adjust.
7001 * include/Makefile.in: Regenerate.
7003 2003-01-24 Andreas Schwab <schwab@suse.de>
7005 * config/linker-map.gnu: Fix for size_t variance.
7007 2003-01-23 Petur Runolfsson <peturr02@ru.is>
7010 * include/std/std_streambuf.h
7011 (basic_streambuf::basic_streambuf,
7012 basic_streambuf::~basic_streambuf,
7013 basic_streambuf::getloc, basic_streambuf::imbue):
7014 Remove _M_buf_locale_init
7015 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
7016 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
7017 * testsuite/27_io/streambuf_members.cc (test08): Add.
7018 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
7020 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
7022 Revert include ordering.
7023 * config/locale/generic/c_locale.h: Add include guards.
7024 * config/locale/gnu/c_locale.h: Same.
7025 * include/bits/locale_classes.h: Remove cctype include.
7026 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
7027 * include/std/std_fstream.h: Remove streambuf include.
7028 * include/std/std_sstream.h: Remove streambuf include.
7030 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
7032 * configure.in (libtool_VERSION): To 6:0:0.
7033 * configure: Regenerated.
7034 * config/linker-map.gnu: Clean.
7036 * src/misc-inst.cc: Remove instantiations.
7038 * include/bits/stl_alloc.h (__malloc_alloc_template):
7040 (__default_alloc_template): To __pool_alloc.
7041 * src/stl-inst.cc: Same.
7042 * include/backward/alloc.h: Update.
7043 * testsuite/ext/allocators.cc: Update.
7045 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
7046 really try to remove these if possible.
7047 * src/locale.cc (std): Same.
7049 * testsuite/abi_check.cc (check_version): Add.
7051 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
7052 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
7053 Mark Mitchell <mark@codesourcery.com>
7056 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
7057 (basic_filebuf::underflow): Declare.
7060 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
7062 * include/bits/locale_facets.h: Move non-facet classes requiring
7064 * include/bits/locale_classes.h: New.
7065 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
7066 * include/bits/Makefile.in: Regenerate.
7068 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
7069 * config/locale/gnu/c_locale.h: ...here.
7070 * config/locale/generic/c_locale.h: Same.
7072 * include/bits/locale_facets.tcc: Move declarations to...
7073 * include/bits/locale_facets.h: ...here.
7074 * include/bits/basic_ios.h: Tweak includes accordingly.
7075 * include/std/std_sstream.h: Add streambuf include.
7076 * include/std/std_fstream.h: Ditto.
7077 * include/std/std_locale.h: Add locale_classes.h include.
7078 * include/std/std_iosfwd.h: Tweak.
7079 * src/concept-inst.cc: Add iterator include.
7081 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
7082 bits as unexported in the future.
7084 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
7086 Reshuffle 22_locale testsuite.
7087 * 22_locale/(codecvt.cc money_get.cc
7088 codecvt_members_char_char.cc money_get_members_char.cc
7089 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
7090 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
7091 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
7092 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
7093 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
7094 money_put_members_char.cc ctor_copy_dtor.cc
7095 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
7096 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
7097 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
7098 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
7099 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
7100 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
7101 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
7102 operators.cc ctype_widen_char.cc static_members.cc
7103 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
7104 global_templates.cc time_get_members_wchar_t.cc, members.cc,
7105 time_put.cc, messages_byname.cc, time_put_members_char.cc,
7106 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
7107 Split up into individual test cases...
7108 * 22_locale/codecvt/1.cc: New.
7109 * 22_locale/codecvt/2.cc: New.
7110 * 22_locale/codecvt/always_noconv/char/1.cc: New.
7111 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
7112 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
7113 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
7114 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
7115 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
7116 * 22_locale/codecvt/encoding/char/1.cc: New.
7117 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
7118 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
7119 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
7120 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
7121 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
7122 * 22_locale/codecvt/in/char/1.cc: New.
7123 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
7124 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
7125 * 22_locale/codecvt/in/wchar_t/1.cc: New.
7126 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
7127 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
7128 * 22_locale/codecvt/length/char/1.cc: New.
7129 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
7130 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
7131 * 22_locale/codecvt/length/wchar_t/1.cc: New.
7132 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
7133 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
7134 * 22_locale/codecvt/max_length/char/1.cc: New.
7135 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
7136 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
7137 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
7138 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
7139 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
7140 * 22_locale/codecvt/out/char/1.cc: New.
7141 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
7142 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
7143 * 22_locale/codecvt/out/wchar_t/1.cc: New.
7144 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
7145 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
7146 * 22_locale/codecvt/unicode/char.cc: New.
7147 * 22_locale/codecvt/unicode/wchar_t.cc: New.
7148 * 22_locale/codecvt/unshift/char/1.cc: New.
7149 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
7150 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
7151 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
7152 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
7153 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
7154 * 22_locale/collate/1.cc: New.
7155 * 22_locale/collate/2.cc: New.
7156 * 22_locale/collate/compare/char/1.cc: New.
7157 * 22_locale/collate/compare/char/2.cc: New.
7158 * 22_locale/collate/compare/char/wrapped_env.cc: New.
7159 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
7160 * 22_locale/collate/compare/wchar_t/1.cc: New.
7161 * 22_locale/collate/compare/wchar_t/2.cc: New.
7162 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
7163 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
7164 * 22_locale/collate/hash/char/1.cc: New.
7165 * 22_locale/collate/hash/char/2.cc: New.
7166 * 22_locale/collate/hash/char/wrapped_env.cc: New.
7167 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
7168 * 22_locale/collate/hash/wchar_t/1.cc: New.
7169 * 22_locale/collate/hash/wchar_t/2.cc: New.
7170 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
7171 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
7172 * 22_locale/collate/transform/char/2.cc: New.
7173 * 22_locale/collate/transform/char/wrapped_env.cc: New.
7174 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
7175 * 22_locale/collate/transform/wchar_t/2.cc: New.
7176 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
7177 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
7178 * 22_locale/collate_byname/1.cc: New.
7179 * 22_locale/ctype/1.cc: New.
7180 * 22_locale/ctype/2.cc: New.
7181 * 22_locale/ctype/cons/char/1.cc: New.
7182 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
7183 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
7184 * 22_locale/ctype/is/char/1.cc: New.
7185 * 22_locale/ctype/is/char/2.cc: New.
7186 * 22_locale/ctype/is/char/3.cc: New.
7187 * 22_locale/ctype/is/char/wrapped_env.cc: New.
7188 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
7189 * 22_locale/ctype/is/wchar_t/1.cc: New.
7190 * 22_locale/ctype/is/wchar_t/2.cc: New.
7191 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
7192 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
7193 * 22_locale/ctype/narrow/char/1.cc: New.
7194 * 22_locale/ctype/narrow/char/2.cc: New.
7195 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
7196 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
7197 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
7198 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
7199 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
7200 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
7201 * 22_locale/ctype/scan/char/1.cc: New.
7202 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
7203 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
7204 * 22_locale/ctype/scan/wchar_t/1.cc: New.
7205 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
7206 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
7207 * 22_locale/ctype/to/char/1.cc: New.
7208 * 22_locale/ctype/to/char/wrapped_env.cc: New.
7209 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
7210 * 22_locale/ctype/to/wchar_t/1.cc: New.
7211 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
7212 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
7213 * 22_locale/ctype/widen/char/1.cc: New.
7214 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
7215 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
7216 * 22_locale/ctype/widen/wchar_t/1.cc: New.
7217 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
7218 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
7219 * 22_locale/facet/1.cc: New.
7220 * 22_locale/facet/2.cc: New.
7221 * 22_locale/global_templates/1.cc: New.
7222 * 22_locale/locale/cons/1.cc: New.
7223 * 22_locale/locale/cons/2.cc: New.
7224 * 22_locale/locale/cons/3.cc: New.
7225 * 22_locale/locale/cons/4.cc: New.
7226 * 22_locale/locale/cons/5.cc: New.
7227 * 22_locale/locale/cons/6.cc: New.
7228 * 22_locale/locale/cons/7.cc: New.
7229 * 22_locale/locale/global_locale_objects/1.cc: New.
7230 * 22_locale/locale/global_locale_objects/2.cc: New.
7231 * 22_locale/locale/global_locale_objects/3.cc: New.
7232 * 22_locale/locale/operations/1.cc: New.
7233 * 22_locale/locale/operations/2.cc: New.
7234 * 22_locale/messages/1.cc: New.
7235 * 22_locale/messages/2.cc: New.
7236 * 22_locale/messages/members/char/1.cc: New.
7237 * 22_locale/messages/members/char/2.cc: New.
7238 * 22_locale/messages/members/char/3.cc: New.
7239 * 22_locale/messages/members/char/wrapped_env.cc: New.
7240 * 22_locale/messages/members/char/wrapped_locale.cc: New.
7241 * 22_locale/messages_byname/1.cc: New.
7242 * 22_locale/money_get/1.cc: New.
7243 * 22_locale/money_get/2.cc: New.
7244 * 22_locale/money_get/get/char/1.cc: New.
7245 * 22_locale/money_get/get/char/2.cc: New.
7246 * 22_locale/money_get/get/char/3.cc: New.
7247 * 22_locale/money_get/get/char/4.cc: New.
7248 * 22_locale/money_get/get/char/5.cc: New.
7249 * 22_locale/money_get/get/char/6.cc: New.
7250 * 22_locale/money_get/get/char/7.cc: New.
7251 * 22_locale/money_get/get/char/8.cc: New.
7252 * 22_locale/money_get/get/char/wrapped_env.cc: New.
7253 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
7254 * 22_locale/money_get/get/wchar_t/1.cc: New.
7255 * 22_locale/money_get/get/wchar_t/2.cc: New.
7256 * 22_locale/money_get/get/wchar_t/3.cc: New.
7257 * 22_locale/money_get/get/wchar_t/4.cc: New.
7258 * 22_locale/money_get/get/wchar_t/5.cc: New.
7259 * 22_locale/money_get/get/wchar_t/6.cc: New.
7260 * 22_locale/money_get/get/wchar_t/7.cc: New.
7261 * 22_locale/money_get/get/wchar_t/8.cc: New.
7262 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
7263 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
7264 * 22_locale/money_put/1.cc: New.
7265 * 22_locale/money_put/2.cc: New.
7266 * 22_locale/money_put/put/char/1.cc: New.
7267 * 22_locale/money_put/put/char/2.cc: New.
7268 * 22_locale/money_put/put/char/3.cc: New.
7269 * 22_locale/money_put/put/char/4.cc: New.
7270 * 22_locale/money_put/put/char/5.cc: New.
7271 * 22_locale/money_put/put/char/6.cc: New.
7272 * 22_locale/money_put/put/char/wrapped_env.cc: New.
7273 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
7274 * 22_locale/money_put/put/wchar_t/1.cc: New.
7275 * 22_locale/money_put/put/wchar_t/2.cc: New.
7276 * 22_locale/money_put/put/wchar_t/3.cc: New.
7277 * 22_locale/money_put/put/wchar_t/4.cc: New.
7278 * 22_locale/money_put/put/wchar_t/5.cc: New.
7279 * 22_locale/money_put/put/wchar_t/6.cc: New.
7280 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
7281 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
7282 * 22_locale/moneypunct/1.cc: New.
7283 * 22_locale/moneypunct/2.cc: New.
7284 * 22_locale/moneypunct/3.cc: New.
7285 * 22_locale/moneypunct/members/char/1.cc: New.
7286 * 22_locale/moneypunct/members/char/2.cc: New.
7287 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
7288 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
7289 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
7290 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
7291 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
7292 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
7293 * 22_locale/moneypunct_byname/1.cc: New.
7294 * 22_locale/num_get/1.cc: New.
7295 * 22_locale/num_get/2.cc: New.
7296 * 22_locale/num_get/get/char/1.cc: New.
7297 * 22_locale/num_get/get/char/2.cc: New.
7298 * 22_locale/num_get/get/char/3.cc: New.
7299 * 22_locale/num_get/get/char/4.cc: New.
7300 * 22_locale/num_get/get/char/5.cc: New.
7301 * 22_locale/num_get/get/char/6.cc: New.
7302 * 22_locale/num_get/get/char/wrapped_env.cc: New.
7303 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
7304 * 22_locale/num_get/get/wchar_t/1.cc: New.
7305 * 22_locale/num_get/get/wchar_t/2.cc: New.
7306 * 22_locale/num_get/get/wchar_t/3.cc: New.
7307 * 22_locale/num_get/get/wchar_t/4.cc: New.
7308 * 22_locale/num_get/get/wchar_t/5.cc: New.
7309 * 22_locale/num_get/get/wchar_t/6.cc: New.
7310 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
7311 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
7312 * 22_locale/num_put/1.cc: New.
7313 * 22_locale/num_put/2.cc: New.
7314 * 22_locale/num_put/put/char/1.cc: New.
7315 * 22_locale/num_put/put/char/2.cc: New.
7316 * 22_locale/num_put/put/char/3.cc: New.
7317 * 22_locale/num_put/put/char/4.cc: New.
7318 * 22_locale/num_put/put/char/5.cc: New.
7319 * 22_locale/num_put/put/char/wrapped_env.cc: New.
7320 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
7321 * 22_locale/num_put/put/wchar_t/1.cc: New.
7322 * 22_locale/num_put/put/wchar_t/2.cc: New.
7323 * 22_locale/num_put/put/wchar_t/3.cc: New.
7324 * 22_locale/num_put/put/wchar_t/4.cc: New.
7325 * 22_locale/num_put/put/wchar_t/5.cc: New.
7326 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
7327 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
7328 * 22_locale/numpunct/1.cc: New.
7329 * 22_locale/numpunct/2.cc: New.
7330 * 22_locale/numpunct/members/char/1.cc: New.
7331 * 22_locale/numpunct/members/char/2.cc: New.
7332 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
7333 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
7334 * 22_locale/numpunct/members/wchar_t/1.cc: New.
7335 * 22_locale/numpunct/members/wchar_t/2.cc: New.
7336 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
7337 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
7338 * 22_locale/numpunct_byname/1.cc: New.
7339 * 22_locale/numpunct_byname/2.cc: New.
7340 * 22_locale/time_get/1.cc: New.
7341 * 22_locale/time_get/2.cc: New.
7342 * 22_locale/time_get/date_order/char/1.cc: New.
7343 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
7344 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
7345 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
7346 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
7347 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
7348 * 22_locale/time_get/get_date/char/1.cc: New.
7349 * 22_locale/time_get/get_date/char/2.cc: New.
7350 * 22_locale/time_get/get_date/char/3.cc: New.
7351 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
7352 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
7353 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
7354 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
7355 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
7356 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
7357 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
7358 * 22_locale/time_get/get_monthname/char/1.cc: New.
7359 * 22_locale/time_get/get_monthname/char/2.cc: New.
7360 * 22_locale/time_get/get_monthname/char/3.cc: New.
7361 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
7362 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
7363 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
7364 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
7365 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
7366 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
7367 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
7368 * 22_locale/time_get/get_time/char/1.cc: New.
7369 * 22_locale/time_get/get_time/char/2.cc: New.
7370 * 22_locale/time_get/get_time/char/3.cc: New.
7371 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
7372 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
7373 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
7374 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
7375 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
7376 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
7377 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
7378 * 22_locale/time_get/get_weekday/char/1.cc: New.
7379 * 22_locale/time_get/get_weekday/char/2.cc: New.
7380 * 22_locale/time_get/get_weekday/char/3.cc: New.
7381 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
7382 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
7383 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
7384 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
7385 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
7386 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
7387 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
7388 * 22_locale/time_get/get_year/char/1.cc: New.
7389 * 22_locale/time_get/get_year/char/3.cc: New.
7390 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
7391 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
7392 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
7393 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
7394 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
7395 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
7396 * 22_locale/time_put/1.cc: New.
7397 * 22_locale/time_put/2.cc: New.
7398 * 22_locale/time_put/put/char/1.cc: New.
7399 * 22_locale/time_put/put/char/10.cc: New.
7400 * 22_locale/time_put/put/char/2.cc: New.
7401 * 22_locale/time_put/put/char/3.cc: New.
7402 * 22_locale/time_put/put/char/4.cc: New.
7403 * 22_locale/time_put/put/char/5.cc: New.
7404 * 22_locale/time_put/put/char/6.cc: New.
7405 * 22_locale/time_put/put/char/7.cc: New.
7406 * 22_locale/time_put/put/char/8.cc: New.
7407 * 22_locale/time_put/put/char/9.cc: New.
7408 * 22_locale/time_put/put/char/wrapped_env.cc: New.
7409 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
7410 * 22_locale/time_put/put/wchar_t/1.cc: New.
7411 * 22_locale/time_put/put/wchar_t/10.cc: New.
7412 * 22_locale/time_put/put/wchar_t/2.cc: New.
7413 * 22_locale/time_put/put/wchar_t/3.cc: New.
7414 * 22_locale/time_put/put/wchar_t/4.cc: New.
7415 * 22_locale/time_put/put/wchar_t/5.cc: New.
7416 * 22_locale/time_put/put/wchar_t/6.cc: New.
7417 * 22_locale/time_put/put/wchar_t/7.cc: New.
7418 * 22_locale/time_put/put/wchar_t/8.cc: New.
7419 * 22_locale/time_put/put/wchar_t/9.cc: New.
7420 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
7421 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
7423 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
7425 * config/locale/generic/messages_members.h
7426 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
7427 unqualified members of base clasess.
7429 2003-01-16 Mark Mitchell <mark@codesourcery.com>
7430 Jeffrey Oldham <oldham@codesourcery.com>
7432 * config/locale/gnu/messages_members.h: Use this-> to refer to
7433 unqualified members of base clasess.
7434 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
7435 * include/bits/codecvt.h: Likewise.
7436 * include/bits/deque.tcc: Likewise.
7437 * include/bits/fstream.tcc: Likewise.
7438 * include/bits/istream.tcc: Likewise.
7439 * include/bits/list.tcc: Likewise.
7440 * include/bits/locale_facets.h: Likewise.
7441 * include/bits/ostream.tcc: Likewise.
7442 * include/bits/sstream.tcc: Likewise.
7443 * include/bits/stl_bvector.h: Likewise.
7444 * include/bits/stl_deque.h: Likewise.
7445 * include/bits/stl_list.h: Likewise.
7446 * include/bits/stl_tree.h: Likewise.
7447 * include/bits/stl_vector.h: Likewise.
7448 * include/bits/vector.tcc: Likewise.
7449 * include/ext/ropeimpl.h: Likewise.
7450 * include/ext/stdio_filebuf.h: Likewise.
7451 * include/ext/stl_rope.h: Likewise.
7452 * include/std/std_fstream.h: Likewise.
7453 * include/std/std_sstream.h: Likewise.
7455 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
7457 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
7459 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
7461 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
7462 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
7463 * aclocal.m4: Regenerate.
7464 * configure: Regenerate.
7465 * testsuite/Makefile.am (all-local): Add conditional rule to
7466 generate testsuite_wchar_t.
7467 * testsuite/Makefile.in: Regenerate.
7468 * testsuite/lib/libstdc++-v3-dg.exp
7469 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
7470 testsuite_wchar_t is not present in the build directory.
7471 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
7472 Remove setulimit bits.
7473 * testsuite/26_numerics/complex_value.cc: Set to noopts.
7474 * testsuite/Makefile.am (CLEANFILES): Add.
7475 * testsuite/Makefile.in: Regenerate.
7477 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7479 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
7482 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
7484 Further conform g++'s __vmi_class_type_info to the C++ ABI
7486 * libsupc++/cxxabi.h
7487 (__vmi_class_type_info::__flags_masks): Remove enumerations not
7488 required by the specification.
7490 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
7492 Renames, namespaces for testsuite utilities.
7493 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
7494 (gnu_allocator_tracker): Rename to allocation_tracker.
7495 (gnu_new_allocator): Rename to tracker_alloc.
7496 (__set_testsuite_memlimit): Rename to set_memory_limits.
7497 (gnu_assignment_operator): Rename to assignment_operator.
7498 (gnu_destructor): Rename to destructor.
7499 (gnu_copy_tracker): Rename to copy_tracker.
7500 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
7501 (run_tests_wrapped_locale): New.
7502 (run_tests_wrapped_env): New.
7503 * testsuite/testsuite_hooks.cc: Same.
7504 (class locale_data): Add.
7505 (class enviornment_variable): Add.
7506 (class not_found): Add.
7507 * testsuite/testsuite_allocator.h: Same.
7508 * testsuite/testsuite_allocator.cc: Same.
7509 * testsuite/23_containers/deque_ctor.cc
7510 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
7512 Change gnu_new_allocator to tracker_alloc.
7513 Change gnu_counting_struct to counter.
7514 Change gnu_copy_tracker to copy_tracker.
7515 Change gnu_copy_constructor to copy_constructor.
7516 Change gnu_assignment_operator to assignment_operator.
7518 * testsuite/23_containers/vector_capacity.cc: Same.
7519 * testsuite/23_containers/vector_ctor.cc (test01): Same.
7520 * testsuite/23_containers/list_modifiers.cc: Change
7521 gnu_copy_tracker to copy_tracker.
7522 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
7523 __set_testsuite_memlimit to set_memory_limits.
7524 * testsuite/21_strings/insert.cc (main): Same.
7525 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
7526 * testsuite/27_io/stringstream.cc: Same.
7527 * testsuite/27_io/stringbuf.cc: Same.
7528 * testsuite/27_io/streambuf.cc: Same.
7529 * testsuite/27_io/ostream.cc: Same.
7530 * testsuite/27_io/istream.cc: Same.
7531 * testsuite/27_io/fstream.cc: Same.
7532 * testsuite/lib/libstdc++-v3-dg.exp
7533 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
7534 three levels deeper in glob patterns.
7536 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
7538 * docs/doxygen/tables.html: Finished now.
7539 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
7540 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
7543 * include/bits/deque.tcc, include/bits/stl_alloc.h,
7544 include/bits/stl_deque.h, include/bits/stl_list.h,
7545 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
7548 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
7550 * configure.in: Revert.
7551 * configure: Regenerate.
7553 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
7555 * include/Makefile.am (install-data-local): Prepend
7556 $(DESTDIR) to destination paths in all (un)installation
7557 commands. Use ${c_base_builddir} and ${std_builddir}
7558 as destination subdirectories to achieve consistency with
7559 preceding mkinstalldirs commands. No effect because both
7560 variables contain "." only.
7561 * include/Makefile.in: Regenerate.
7563 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
7565 * include/Makefile.am (stamp-*): Add checks for existing stamps.
7566 * include/Makefile.in: Regenerate.
7568 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
7569 * aclocal.m4: Regenerate.
7571 * configure.in: Don't add new multi-do rules every time the
7572 directory is reconfigured.
7573 * configure: Regenerate.
7575 2003-01-08 Brad Spencer <spencer@infointeractive.com>
7576 Nathan Myers <ncm@cantrip.org>
7578 * src/Makefile.am (stamp-debug): Clean.
7579 * src/Makefile.in: Regenerate.
7581 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
7584 * Makefile.am (distclean-multi): Fix.
7585 * Makefile.in: Regenerate.
7587 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
7589 * include/bits/locale_facets.h (messages): Move ctor, dtor
7591 (__timepunct): Same.
7592 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
7593 definitions. Conditionalize for GNU systems.
7594 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
7596 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
7597 definitions. Conditionalize for GNU systems.
7598 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
7600 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
7601 * src/locale.cc: Define.
7602 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
7604 * config/locale/gnu/time_members.h: Use it.
7605 * config/locale/gnu/messages_members.h: Use it.
7606 * config/linker-map.gnu: Add locale::facets details.
7607 * include/Makefile.am (target_headers_extra): Add time_members.h.
7608 * include/Makefile.in: Regenerate.
7609 * acinclude.m4: Export CTIME_H.
7610 * aclocal.m4: Regenerate.
7611 * configure: Regnerate.
7613 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
7616 (codecvt<char, char, mbstate_t>::do_in, do_out):
7617 Tweak parameters to avoid unused parameter warnings.
7619 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
7622 * include/bits/locale_facets.cc (num_put::_M_convert_float):
7623 Limit __prec to digits10 + 2, not digits10 + 1, taking into
7624 account the possibility of %{g,G} conversion specifiers
7625 inside _S_format_float.
7626 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
7628 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7630 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
7631 libstdc++-v3-list-sourcefiles): Additionally handle files one
7632 level deeper in glob patterns.
7634 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
7635 * testsuite/27_io/istream_extractor_arith/01.cc,
7636 testsuite/27_io/istream_extractor_arith/02.cc,
7637 testsuite/27_io/istream_extractor_arith/03.cc,
7638 testsuite/27_io/istream_extractor_arith/06.cc,
7639 testsuite/27_io/istream_extractor_arith/07.cc,
7640 testsuite/27_io/istream_extractor_arith/08.cc,
7641 testsuite/27_io/istream_extractor_arith/09.cc,
7642 testsuite/27_io/istream_extractor_arith/10.cc,
7643 testsuite/27_io/istream_extractor_arith/11.cc,
7644 testsuite/27_io/istream_extractor_arith/12.cc,
7645 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
7646 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
7649 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
7653 (codecvt<char, char, mbstate_t>::do_in, do_out):
7654 Implement the resolution of DR19 (TC).
7655 * testsuite/22_locale/codecvt_members_char_char.cc
7658 2003-01-02 Jason Merrill <jason@redhat.com>
7660 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
7661 *__mem is also an output.
7662 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.