1 2003-11-13 Petur Runolfsson <peturr02@ru.is>
4 * include/bits/ostream.tcc
5 (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
6 basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
7 basic_ostream::operator<<(ios_base& (*)(ios_base&))):
8 Implement the resolution of DR 60 (TC): These are not formatted
9 output functions so don't construct sentry objects and don't
11 (basic_ostream::put, basic_ostream::write): Implement the
12 resolution of DR 63 (TC) by catching exceptions and setting
14 (basic_ostream::flush): Implement the resolution of DR 60 (TC):
15 This is not an unformatted output function so don't construct
17 * testsuite/testsuite_io.h (sync_streambuf): Define.
18 * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
19 * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
20 * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
21 * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
23 2003-11-13 Paolo Carlini <pcarlini@suse.de>
25 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
26 Fix, closely following the testcase included in the PR.
27 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
28 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
29 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
31 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
33 * docs/html/17_intro/configury.html: XHTML tweak.
35 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
37 * docs/html/debug_mode.html: XHTML fixes.
39 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
41 * docs/html/debug_mode.html: Update.
42 * docs/html/17_intro/TODO: Update.
44 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
46 * include/bits/c++config: Move using directive...
47 * include/debug/formatter.h: ...here.
49 2003-11-12 Carlo Wood <carlo@alinoe.com>
53 (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
54 (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
55 (session<Allocator>::next_peek() const): Added.
56 (decode_non_negative_decimal_integer(string_type&)):
57 Renamed from decode_decimal_integer(string_type&).
58 (session<Allocator>::decode_nested_name):
59 Decode <template_param> as well.
60 (session<Allocator>::add_substitution):
61 Handle <template-param> for <nested-name>'s.
62 (enum xary_nt): Added.
63 (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
64 (symbol_name_table_c): Updated for `entry_st::type' and additional
65 operators (unary `operator+' and `sizeof(type)').
66 (offset_table_c): Updated for new operators (causing a new hash map).
67 (decode_operator_name): Match the updated hash map.
68 (session<Allocator>::decode_expression):
69 Support for `sizeof ([typename] type)' (st),
70 dependent names (sr) and casting operator (cv). Handle
71 `entry_st::type'. Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
72 and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
73 (session<Allocator>::decode_type_with_postfix):
74 Support `extern "C"' function types (FY).
75 * testsuite/demangle/regression/cw-16.cc: Added tests for the
77 * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
80 2003-11-11 Paolo Carlini <pcarlini@suse.de>
83 * include/bits/fstream.tcc (setbuf): Don't do anything
84 after open(), in particular don't discard data.
85 (_M_allocate_internal_buffer): Tweak to not allocate memory
86 in case the buffer is provided by the user via setbuf.
87 * include/ext/stdio_filebuf.h: Tweak comment.
88 * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
89 * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
90 * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
91 setbuf does nothing after open().
92 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
94 2003-11-11 Doug Gregor <gregod@cs.rpi.edu>
96 * docs/html/debug.html: Document libstdc++ debug mode.
97 * docs/html/debug_mode.html: Document libstdc++ debug mode design.
98 * docs/html/test.html: Document how to test under debug mode.
99 * docs/html/17_intro/howto.html: Document debug-mode macros.
100 * include/Makefile.am: Install debug-mode headers.
101 * src/Makefile.am: Include debug.cc.
102 * include/bits/basic_string.tcc:
103 (basic_string::_S_construct): Fix NULL pointer check.
104 (__is_null_pointer): New.
105 Add precondition annotations.
106 * include/bits/stream_iterator.h (istream_iterator,
107 ostream_iterator): Added precondition annotations.
108 * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
109 * include/bits/stl_queue.h (queue, priority_queue): Ditto.
110 * include/bits/stl_stack.h (stack): Ditto.
111 * include/bits/basic_string.h (basic_string): Ditto.
112 * include/bits/basic_string.tcc (basic_string): Ditto.
113 * include/std/std_memory.h (auto_ptr): Ditto.
114 * include/std/std_valarray.h (valarray): Ditto.
115 * include/bits/stl_algo.h: Added algorithm precondition
117 * include/bits/stl_algobase.h: Added algorithm precondition
119 * include/bits/stl_numeric.h: Ditto.
120 * include/ext/algorithm: Added algorithm precondition
122 (__is_heap): Moved away from here.
123 * include/bits/stl_heap.h: Added algorithm precondition
125 (__is_heap): Moved to the top of this file.
126 (__is_heap): Added iterator range overloads.
127 * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
128 with changes in std_memory.h.
129 * testsuite/23_containers/list/operators/4.cc: Don't verify
130 performance guarantees when in debug mode.
131 * testsuite/23_containers/bitset/invalidation/1.cc: New.
132 * testsuite/23_containers/deque/invalidation/1.cc: New.
133 * testsuite/23_containers/deque/invalidation/2.cc: New.
134 * testsuite/23_containers/deque/invalidation/3.cc: New.
135 * testsuite/23_containers/deque/invalidation/4.cc: New.
136 * testsuite/23_containers/list/invalidation/1.cc: New.
137 * testsuite/23_containers/list/invalidation/2.cc: New.
138 * testsuite/23_containers/list/invalidation/3.cc: New.
139 * testsuite/23_containers/list/invalidation/4.cc: New.
140 * testsuite/23_containers/map/invalidation/1.cc: New.
141 * testsuite/23_containers/map/invalidation/2.cc: New.
142 * testsuite/23_containers/multimap/invalidation/1.cc: New.
143 * testsuite/23_containers/multimap/invalidation/2.cc: New.
144 * testsuite/23_containers/multiset/invalidation/1.cc: New.
145 * testsuite/23_containers/multiset/invalidation/2.cc: New.
146 * testsuite/23_containers/set/invalidation/1.cc: New.
147 * testsuite/23_containers/set/invalidation/2.cc: New.
148 * testsuite/23_containers/vector/invalidation/1.cc: New.
149 * testsuite/23_containers/vector/invalidation/2.cc: New.
150 * testsuite/23_containers/vector/invalidation/3.cc: New.
151 * testsuite/23_containers/vector/invalidation/4.cc: New.
152 * testsuite/25_algorithms/heap.cc: Don't verify
153 performance guarantees when in debug mode.
154 * include/debug/bitset: New.
155 * include/debug/debug.h: New.
156 * include/debug/deque: New.
157 * include/debug/formatter.h: New.
158 * include/debug/hash_map: New.
159 * include/debug/hash_map.h: New.
160 * include/debug/hash_multimap.h: New.
161 * include/debug/hash_set: New.
162 * include/debug/hash_set.h: New.
163 * include/debug/hash_multiset.h: New.
164 * include/debug/list: New.
165 * include/debug/map: New.
166 * include/debug/map.h: New.
167 * include/debug/multimap.h: New.
168 * include/debug/multiset.h: New.
169 * include/debug/safe_base.h: New.
170 * include/debug/safe_iterator.h: New.
171 * include/debug/safe_iterator.tcc: New.
172 * include/debug/safe_sequence.h: New.
173 * include/debug/set: New.
174 * include/debug/set.h: New.
175 * include/debug/string: New.
176 * include/debug/vector: New.
178 * config/linker-map.gnu: Add debug mode symbols.
180 2003-11-11 Benjamin Kosnik <bkoz@redhat.com>
182 * src/string-inst.cc: Tweak namespaces.
183 * src/misc-inst.cc: Same.
184 * docs/html/debug.html: Edits.
185 * config/link-map.gnu: Remove cruft.
187 * include/bits/c++config: Add in namespace associations.
188 * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
190 * include/bits/deque.tcc: Same.
191 * include/bits/list.tcc: Same.
192 * include/bits/stl_bvector.h: Same.
193 * include/bits/stl_deque.h: Same.
194 * include/bits/stl_list.h: Same.
195 * include/bits/stl_map.h: Same.
196 * include/bits/stl_multimap.h: Same.
197 * include/bits/stl_multiset.h: Same.
198 * include/bits/stl_set.h: Same.
199 * include/bits/stl_vector.h: Same.
200 * include/bits/vector.tcc: Same.
202 * include/std/std_algorithm.h: Remove markup comments.
203 * include/std/std_functional.h: Same.
204 * include/std/std_iterator.h: Same.
205 * include/std/std_numeric.h: Same.
206 * include/std/std_utility.h: Same.
207 * include/bits/stl_queue.h: Formatting tweaks.
208 * include/bits/stl_stack.h: Same.
209 * include/std/std_deque.h: Include debugging version in debug mode.
210 * include/std/std_list.h: Same.
211 * include/std/std_map.h: Same.
212 * include/std/std_set.h: Same.
213 * include/std/std_vector.h: Same.
214 * include/std/std_queue.h: Use deque, vector.
215 * include/std/std_stack.h: Same.
217 2003-11-09 Paolo Carlini <pcarlini@suse.de>
219 * include/bits/locale_facets.tcc (_M_insert_int,
220 _M_insert_float): Move a couple of vars inside an if block.
222 2003-11-09 Paolo Carlini <pcarlini@suse.de>
225 * include/bits/locale_facets.tcc
226 (money_put::do_put(..., long double)): Fix conversion
227 specification as per DR 328 [WP].
228 * testsuite/22_locale/money_put/put/char/12971.cc: Add.
229 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
230 * docs/html/ext/howto.html: Add entry for DR 328.
232 2003-11-08 Paolo Carlini <pcarlini@suse.de>
235 * include/bits/list.tcc (merge): Implement resolution of
237 * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
240 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
243 2003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
245 * libsupc++/vec.cc: Conform to C++STYLE.
247 2003-11-07 Carlo Wood <carlo@alinoe.com>
250 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
251 (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
252 K, V, r and A qualifiers before processing them as a group.
253 * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
254 * testsuite/demangle/regression/cw-16.cc: New.
256 2003-11-07 Robert Millan <robertmh@gnu.org>
258 * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
259 * crossconfig.m4: Likewise.
260 * configure: Regenerate.
262 2003-11-07 Carlo Wood <carlo@alinoe.com>
264 * include/bits/demangle.h
265 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
266 string_type&, bool member_function_pointer_qualifiers):
267 Always separate the '[' of an array type with a space from
268 what is left of it, except when that is the closing bracket
269 of another array dimension.
271 2003-11-07 Carlo Wood <carlo@alinoe.com>
273 * include/bits/demangle.h
274 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
275 string_type&, bool) const): Made const.
276 (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
277 (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
278 std::ostream& operator<<(std::ostream&, qualifier const&),
279 std::ostream& operator<<(std::ostream&, qualifier_list const&),
280 qualifier_list<Allocator>::decode_qualifiers(string_type&,
281 string_type&, bool) const,
282 session<Allocator>::decode_type_with_postfix(string_type&,
283 string_type&, qualifier_list<Allocator>*))
284 Added and/or changed debug-only hooks and code.
286 2003-11-04 Jeffrey D. Oldham <oldham@codesourcery.com>
288 * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
289 immediately return. This reflects a C++ ABI change 2003 Nov 03.
290 (__cxa_vec_delete3): Likewise.
292 2003-11-03 Petur Runolfsson <peturr02@ru.is>
295 * include/bits/fstream.tcc: Delete _M_last_overflowed.
296 (basic_filebuf::basic_filebuf): Initialize _M_state_last.
297 (basic_filebuf::open, basic_filebuf::close): Assign
298 _M_state_beg to _M_state_cur and _M_state_last.
299 (basic_filebuf::close): Call _M_terminate_output to handle
300 unshift and flushing.
301 (basic_filebuf::underflow): Assign _M_state_last, throw
302 exception instead of calling abort when codecvt::max_length()
304 (basic_filebuf::seekoff): Use _M_state_last when calling
305 codecvt::length(), pass correct state to _M_seek.
306 (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
307 (basic_filebuf::_M_seek): Add __state_type parameter,
308 set _M_state_cur correctly, store the resulting state in
309 the return value and use _M_terminate_output to handle
310 flushing and unshift.
311 (basic_filebuf::_M_terminate_output): Flush contents of
312 output buffer, if any, then call codecvt::unshift as
313 needed and output the result.
314 (basic_filebuf::sync): Move here, don't modify _M_writing
317 * include/std/std_fstream.h
318 (basic_filebuf::_M_state_last): Declare it.
319 (basic_filebuf::_M_last_overflowed): Delete.
320 (basic_filebuf::_M_seek): Add __state_type parameter.
321 (basic_filebuf::sync): Declare only.
322 (basic_filebuf::_M_output_unshift): Delete.
323 (basic_filebuf::_M_terminate_output): Declare it.
325 * testsuite/testsuite_character.h:
326 Define character class and state class plus char_traits and
327 codecvt specializations for same for testing support for
330 * testsuite/27_io/basic_filebuf/close/12790-1.cc,
331 * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
332 * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
333 * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
334 * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
335 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
336 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
337 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
338 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
339 * testsuite/27_io/basic_filebuf/open/12790-1.cc,
340 * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
341 * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
342 * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
343 * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
344 * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
345 * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
346 * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
347 * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
348 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
349 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
350 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
351 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
352 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
353 * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
354 * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
355 * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
356 * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
357 * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
358 * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
359 * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
360 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
361 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
362 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
363 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
364 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
365 * testsuite/27_io/basic_filebuf/sync/char/1.cc,
366 * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
369 * testsuite/27_io/basic_filebuf/3.cc,
370 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
371 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
372 * testsuite/27_io/basic_fstream/3.cc,
373 * testsuite/27_io/basic_ifstream/3.cc,
374 * testsuite/27_io/basic_ofstream/3.cc:
375 Use streamoff as off_type and fpos<state_type> as pos_type.
377 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
378 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
379 Check that sync does *not* set _M_writing to false.
381 2003-11-03 Anthony Green <green@redhat.com>
383 * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
386 2003-11-03 Benjamin Kosnik <bkoz@redhat.com>
388 * include/bits/locale_facets.h (time_get::_M_extract_name): Add
390 * include/bits/locale_facets.tcc: Same, use it to allow
393 * include/bits/fstream.tcc: Spacing tweak.
394 * include/bits/istream.tcc: Same.
395 * include/bits/ostream.tcc: Same.
397 2003-10-30 Paolo Carlini <pcarlini@suse.de>
399 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
400 __mod is only assigned, never used its value, remove it.
402 2003-10-29 Paolo Carlini <pcarlini@suse.de>
404 * include/bits/locale_facets.tcc (time_get::do_get_year):
405 Absolutely avoid dereferencing end iterators.
406 (time_put::put): Minor clean up.
408 * include/bits/locale_facets.tcc: Cosmetic reformattings.
410 2003-10-29 Paolo Carlini <pcarlini@suse.de>
412 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
413 Revert the last commit, is not correct, sorry.
415 2003-10-29 Paolo Carlini <pcarlini@suse.de>
417 * config/locale/generic/c_locale.cc: Add back <cmath> and
420 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
423 2003-10-29 Paolo Carlini <pcarlini@suse.de>
425 * include/bits/locale_facets.tcc (time_put::put): Absolutely
426 avoid dereferencing end iterators; clean up.
428 * include/bits/locale_facets.tcc (num_get::_M_extract_float,
429 num_get::_M_extract_int): Minor tweak.
431 2003-10-29 Paolo Carlini <pcarlini@suse.de>
433 * include/bits/locale_facets.tcc: Remove some unnecessary
435 * config/locale/generic/c_locale.cc: Include <cerrno> here.
436 * config/locale/gnu/c_locale.cc: Likewise.
438 2003-10-28 Paolo Carlini <pcarlini@suse.de>
440 * include/bits/locale_facets.tcc
441 (money_get<>::do_get(..., string_type&)): Absolutely avoid
442 dereferencing end iterators; general clean up.
444 2003-10-28 Paolo Carlini <pcarlini@suse.de>
446 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
447 Absolutely avoid dereferencing end iterators.
448 (time_get::_M_extract_name): Likewise.
450 * include/bits/locale_facets.tcc
451 (time_get::_M_extract_via_format, case 'e'): Don't try to
452 be smart wrt returning the right __beg in case of parse
453 error, time_get::_M_extract_num must be fixed instead.
455 2003-10-27 Paolo Carlini <pcarlini@suse.de>
458 * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
459 * aclocal.m4: Regenerate.
460 * configure: Regenerate.
462 2003-10-27 Benjamin Kosnik <bkoz@redhat.com>
464 * docs/html/17_intro/TODO: Add links.
465 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
468 2003-10-27 Paolo Carlini <pcarlini@suse.de>
471 * include/bits/locale_facets.tcc
472 (time_get::_M_extract_via_format): Deal with code 'e'.
473 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
474 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
476 * include/bits/locale_facets.tcc
477 (time_get::_M_extract_via_format): Tweak to absolutely avoid
478 dereferencing end iterators.
480 * include/bits/locale_facets.h (__verify_grouping):
481 Const-ify second parameter.
482 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
483 * src/locale-inst.cc (__verify_grouping): Ditto.
485 2003-10-27 Paolo Carlini <pcarlini@suse.de>
487 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
488 Various things: 1- Avoid absolutely end iterator dereferences;
489 2- Improve performance-wise the code skipping leading zeros;
490 3- Fix two bugs wrt early bail out in case of parsing errors
491 (see testcases); 4- General clean up.
492 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
493 use __builtin_expect to favor base 10 inputs.
494 * testsuite/22_locale/num_get/get/char/7.cc: New.
495 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
497 2003-10-26 Paolo Carlini <pcarlini@suse.de>
499 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
500 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
502 2003-10-25 Paolo Carlini <pcarlini@suse.de>
504 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
505 __pos in only incremented, never used its value, remove it.
507 2003-10-24 Robert Millan <robertmh@gnu.org>
509 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
511 * aclocal.m4: Regenerated.
512 * configure: Regenerated.
514 2003-10-24 Paolo Carlini <pcarlini@suse.de>
516 * include/bits/locale_facets.tcc (money_get::do_get(...,
517 long double&): Properly size the temporary buffer.
518 * testsuite/22_locale/money_get/get/char/11.cc: New.
519 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
521 * include/bits/locale_facets.tcc (num_put::_M_group_int,
522 num_put::_M_group_float, money_put::do_put(..., const
523 string_type&), collate::do_compare, collate::do_transform):
524 Prefer basic_string::data() to c_str() when the '\0'
525 terminator is not really needed.
527 2003-10-24 Paolo Carlini <pcarlini@suse.de>
529 * include/bits/locale_facets.tcc (__verify_grouping):
530 Prefer '=' to an unnecessary '&='.
532 2003-10-24 Paolo Carlini <pcarlini@suse.de>
534 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
535 Tweak my fix for libstdc++/12657.
537 2003-10-24 Paolo Carlini <pcarlini@suse.de>
539 * include/bits/locale_facets.tcc (money_get::do_get(...,
540 string_type&): Minor tweak to the previous commit.
542 2003-10-24 Paolo Carlini <pcarlini@suse.de>
544 * include/bits/locale_facets.tcc (money_get::do_get(...,
545 string_type&): Disregard the previous commit: doesn't hurt but
546 doesn't accomplish anything useful either. This is the right
547 one, speeding up greatly the function in case of early fail.
549 2003-10-24 Paolo Carlini <pcarlini@suse.de>
551 * include/bits/locale_facets.tcc (money_get::do_get(...,
552 string_type&): Move an if block, thus minimizing the amount
553 of code processed anyway when __tmp_units.size() == 0.
555 2003-10-24 Paolo Carlini <pcarlini@suse.de>
557 * include/bits/locale_facets.tcc
558 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
561 2003-10-23 Benjamin Kosnik <bkoz@redhat.com>
563 * docs/html/documentation.html: Add a pointer to the doxygen style
565 * docs/html/17_intro/TODO: Update.
566 * docs/html/test.html: Add instructions for running a subset of
569 2003-10-23 Paolo Carlini <pcarlini@suse.de>
571 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
572 string_type&)): Use find_first_not_of to strip leading
573 zeros; if __tmp_units == "0" never prefix it with '-';
574 always fail if __tmp_units is empty.
575 * testsuite/22_locale/money_get/get/char/10.cc: New.
576 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
578 2003-10-23 Phil Edwards <phil@codesourcery.com>
580 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
583 2003-10-22 Paolo Carlini <pcarlini@suse.de>
585 * include/bits/locale_facets.tcc (__int_to_char): Remove
586 the const int parameter.
587 (_M_insert_int): Update caller.
588 * src/locale-inst.cc (__int_to_char): Update instantiations.
590 2003-10-22 Benjamin Kosnik <bkoz@redhat.com>
592 * include/bits/locale_facets.h: Correct byname facets for "C"
594 * config/locale/generic/ctype_members.cc: Same.
595 * config/locale/generic/messages_members.h: Same.
596 * config/locale/gnu/ctype_members.cc: Same.
597 * config/locale/gnu/messages_members.h: Same.
598 * include/bits/codecvt.h: Same.
599 * src/ctype.cc: Same.
600 * testsuite/22_locale/codecvt_byname/1.cc: New.
601 * testsuite/22_locale/collate/1.cc: Edit.
602 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
603 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
604 * testsuite/22_locale/ctype/1.cc: Derivation tests.
605 * testsuite/22_locale/ctype/11844.cc: Move...
606 * testsuite/22_locale/ctype_base/11844.cc: ...here.
607 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
608 * testsuite/22_locale/ctype_byname/1.cc: Name.
609 * testsuite/22_locale/messages_byname/1.cc: New.
610 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
611 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
612 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
613 * testsuite/22_locale/numpunct/1.cc: Edit.
614 * testsuite/22_locale/numpunct_byname/2.cc: Move...
615 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
616 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
617 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
619 2003-10-22 Paolo Carlini <pcarlini@suse.de>
622 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
623 checking for the availability of int64_t.
624 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
625 * configure.ac: Call here.
626 * acconfig.h: Add undef for the corresponding symbols.
627 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
628 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
629 (__basic_file<char>::seekoff): Likewise, call lseek64 when
630 available, otherwise lseek, checking the __off parameter.
631 * include/bits/postypes.h: Typedef __streamoff_base_type
632 to int64_t if available, otherwise long long.
633 * aclocal.m4: Regenerate.
634 * config.h.in: Likewise.
635 * configure: Likewise.
637 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
638 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
640 2003-10-22 Paolo Carlini <pcarlini@suse.de>
643 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
644 Implement resolution of DR 292 (WP).
645 * docs/html/ext/howto.html: Add entry for DR 292.
647 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
649 * include/ext/mt_allocator.h: Change include to gthr.h.
650 * include/ext/rope: Same. Add _Refcount_base definitions.
651 * include/ext/pool_allocator.h: Adjust namespaces.
652 * include/bits/stl_threads.h (_Refcount_base): Move.
653 Put remaining into namespace __gnu_cxx.
655 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
658 * include/bits/locale_facets.h (ctype<char>): Remove
659 __ctype_abstract_base.
660 (ctype<char>::do_is): Remove.
661 (ctype<char>::do_scan_is): Remove.
662 * src/ctype.cc: Same. Inline the rest.
663 * testsuite/22_locale/ctype/is/char/9858.cc: New.
664 * config/os/aix/ctype_noninline.h: Adjust ctor.
665 * config/os/bsd/freebsd/ctype_noninline.h: Same.
666 * config/os/bsd/netbsd/ctype_noninline.h: Same.
667 * config/os/djgpp/ctype_noninline.h: Same.
668 * config/os/generic/ctype_noninline.h: Same.
669 * config/os/gnu-linux/ctype_noninline.h: Same.
670 * config/os/hpux/ctype_noninline.h: Same.
671 * config/os/irix/irix5.2/ctype_noninline.h: Same.
672 * config/os/irix/irix6.5/ctype_noninline.h: Same.
673 * config/os/mingw32/ctype_noninline.h: Same.
674 * config/os/newlib/ctype_noninline.h: Same.
675 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
676 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
677 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
678 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
679 * config/os/windiss/ctype_noninline.h: Same.
681 2003-10-21 Paolo Carlini <pcarlini@suse.de>
683 * src/locale.cc: Tweak a comment.
684 * src/localename.cc: Move a comment.
686 2003-10-20 Benjamin Kosnik <bkoz@redhat.com>
689 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
690 * testsuite_hooks.cc: Same.
691 * 22_locale/numpunct/members/pod/1.cc: Edit.
692 * 22_locale/numpunct/members/pod/2.cc: Same.
693 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
694 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
695 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
696 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
697 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
698 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
699 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
700 * 27_io/basic_istream/sentry/pod/1.cc: New.
701 * 27_io/basic_ostream/sentry/pod/1.cc: New.
702 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
703 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
705 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
707 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
708 of external _MIPS_SIM_ABI32.
710 2003-10-20 Phil Edwards <phil@codesourcery.com>
712 * configure.ac: Fix comment typo.
713 * configure.host: Add vxworks to host_os switch.
714 * crossconfig.m4: Remove old commented os_include_dir variables
715 left over from autotools transition.
716 (*-vxworks): New stanza.
717 (*-windiss): Add missing symbols.
718 * configure: Regenerate.
719 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
720 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
722 * config/os/windiss/os_defines.h: Define __C9X__.
724 2003-10-19 David Edelsohn <edelsohn@gnu.org>
727 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
729 2003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
731 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
732 confusion of the use of the gthr API when __gthread_active_p()
735 2003-10-17 Benjamin Kosnik <bkoz@redhat.com>
737 * src/Makefile.am: Add new files.
738 * src/Makefile.in: Regenerate.
739 * src/globals.cc: Split into..
740 * src/globals_io.cc: New.
741 * src/globals_locale.cc: New.
742 * src/ios.cc: Split into...
743 * src/ios_init.cc: New.
744 * src/ios_locale.cc: New.
745 * src/locale-inst.cc: Split into..
746 * src/wlocale-inst.cc: New.
747 * src/locale-misc-inst.cc: New.
748 * src/locale.cc, src/localename: Split into...
749 * src/locale_facets.cc: New.
750 * src/locale_init.cc: New.
751 * src/wstring-inst.cc: Add copyright info.
753 2003-10-16 Petur Runolfsson <peturr02@ru.is>
758 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
759 Change return value from streampos to streamoff.
760 (__basic_file::seekpos): Delete.
761 * config/io/basic_file_stdio.h: Same.
762 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
763 * include/Makefile.am (bits_headers): Add bits/postypes.h.
764 * include/bits/char_traits.h: Include bits/postypes.h instead of
766 * include/bits/fstream.tcc (basic_filebuf::open,
767 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
768 values, use == and != instead.
769 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
771 (basic_filebuf::imbue): Don't use ! on pos_type values, use
772 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
773 * include/bits/postypes.h: New file.
774 Add __streamoff_base_type typedef, streamsize.
775 (streamoff, streampos, wstreampos): Define typedefs, with
776 streamoff defined as...
777 (streamoff): New class. Document implementation defined
779 (fpos): New implementation. Document implementation defined
781 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
782 explicit conversion from pos_type to off_type.
783 * include/std/std_iosfwd.h: Include bits/postypes.h instead
785 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
786 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
787 * testsuite/27_io/fpos/11450.cc: New test.
788 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
789 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
790 * testsuite/27_io/types/3.cc: New test.
792 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
794 * configure.host: Remove fpos_include_dir.
795 * configure.ac: Remove FPOS_INC_SRCDIR.
796 * configure: Regenerate.
797 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
798 * aclocal.m4: Regenerate.
799 * include/Makefile.am (host_headers): Remove fpos.h.
800 (bits_headers): Add postypes.h.
801 * include/Makefile.in: Regenerate.
802 * config/os/gnu-linux/fposh: Remove.
803 * config/os/generic/fpos.h: Remove.
805 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
806 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
807 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
808 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
809 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
810 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
811 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
812 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
813 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
814 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
815 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
816 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
817 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
818 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
819 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
820 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
821 * testsuite/27_io/objects/char/10.cc: Same.
823 2003-10-16 Paolo Carlini <pcarlini@suse.de>
825 * src/locale.cc (locale::locale(const char*)): ... one
826 more comparison missed in the previous commit.
828 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
830 * acconfig.h: Add HAVE_DRAND48.
831 * crossconfig.m4: Remove ISATTY.
832 * aclocal.m4: Regenerated.
833 * config.h.in: Regenerated.
834 * configure: Regenerated.
836 2003-10-16 Bernardo Innocenti <bernie@develer.com>
838 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
839 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
840 Document SMP safeness of asm macros.
842 2003-10-16 Paolo Carlini <pcarlini@suse.de>
844 * src/locale.cc (locale::locale(const char*)): Tweak
845 a couple of comparisons to use basic_string operators.
847 2003-10-16 Paolo Carlini <pcarlini@suse.de>
850 * config/locale/gnu/monetary_members.cc
851 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
852 Don't leak memory if new throws.
853 * src/locale.cc (locale::locale(const char*)): In order not
854 to leak memory in case new throws, use a basic_string type
855 for __res too and avoid strdup.
857 2003-10-14 Jeff Bailey <jbailey@nisa.net>
860 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
861 * configure: Regenerate.
863 2003-10-14 Carlo Wood <carlo@alinoe.com>
866 * include/bits/demangle.h (session<Allocator>::
867 decode_unqualified_name(string_type& output)): Fail on a
868 <operator-name> when decoding <template-argument>.
869 * testsuite/demangle/regression/cw-15.cc: New.
871 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
874 * include/bits/stl_algo.h (unique): Fix.
875 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
876 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
877 * testsuite/25_algorithms/unique/2.cc: New.
879 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
881 * src/localename.cc (_M_replace_categories, M_replace_facet):
882 Const-ify a couple of variables.
884 2003-10-14 Petur Runolfsson <peturr02@ru.is>
885 Andreas Tobler <a.tobler@schweiz.ch>
887 * src/locale.cc (locale::_S_initialize): Workaround a confusion
888 of the use of the gthr API when __gthread_active_p() returns true.
890 2003-10-12 Petur Runolfsson <peturr02@ru.is>
891 Paolo Carlini <pcarlini@unitus.it>
894 * src/strstream.cc (pbackfail): Fix to use to_int_type.
895 * testsuite/backward/11460.cc: New, from the PR.
897 2003-10-12 Paolo Carlini <pcarlini@unitus.it>
899 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
900 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
901 * include/bits/basic_string.tcc: Likewise.
902 * include/bits/ios_base.h: Likewise.
903 * include/bits/istream.tcc: Likewise.
904 * include/bits/locale_facets.tcc: Likewise.
905 * include/bits/ostream.tcc: Likewise.
906 * include/bits/stl_function.h: Likewise.
907 * include/bits/stl_multiset.h: Likewise.
908 * include/bits/stl_pair.h: Likewise.
909 * include/bits/stl_set.h: Likewise.
910 * include/bits/streambuf_iterator.h
911 * include/std/std_iosfwd.h: Likewise.
912 * include/std/std_istream.h: Likewise.
913 * include/std/std_sstream.h: Likewise.
914 * include/std/std_streambuf.h: Likewise.
915 * src/ios.cc: Likewise.
916 * include/bits/c++config:
917 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
918 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
919 dg-error directive due to removal of a blank line.
920 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
922 2003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
923 Paolo Carlini <pcarlini@unitus.it>
925 PR libstdc++/11844/11740 (cont)
926 * config/os/generic/ctype_inline.h (ctype<char>::is):
927 Generically, use a bitmasksize of 15 (instead of 10);
928 Fix the logic to actually return (M & m) != 0 as per
931 2003-10-11 Bernardo Innocenti <bernie@develer.com>
933 * crossconfig.m4 (*-uclinux*): New target.
934 * configure: Regenerate.
936 2003-10-10 Paolo Carlini <pcarlini@unitus.it>
938 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
939 Avoid unnecessarily calling __builtin_alloca and dealing
940 explicitly with width() smaller than zero.
941 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
942 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
943 const char*), operator<<(basic_ostream<char, _Traits>&,
944 const char*), operator<<(basic_ostream, const basic_string&)):
947 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
949 * config/linker-map.gnu: Make more *_type_info bits visible.
950 Move new/delete bits back into GLIBCXX space.
952 * include/bits/locale_classes.h: Move _M_id out of line, so that
953 locale::id::_S_highwater can be removed from the export list.
954 * src/locale.cc (locale::id::_M_id): Define.
956 2003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
958 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
961 2003-10-09 Paolo Carlini <pcarlini@unitus.it>
964 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
965 to conform to the requirements of 22.2.1.
966 * config/os/bsd/freebsd/ctype_base.h: Likewise.
967 * config/os/djgpp/ctype_base.h: Likewise.
968 * config/os/generic/ctype_base.h: Likewise.
969 * config/os/gnu-linux/ctype_base.h: Likewise.
970 * config/os/hpux/ctype_base.h: Likewise.
971 * config/os/irix/irix6.5/ctype_base.h: Likewise.
972 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
973 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
974 * testsuite/22_locale/ctype/11844.cc: New.
976 * config/locale/generic/ctype_members.cc (do_is):
977 Generically, use a bitmasksize of 15 (instead of 10), since
978 we don't know the numerical encoding of the various categories
979 in the underlying /usr/include/ctype.h.
981 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
983 * src/string-inst.cc: Prune.
984 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
985 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
987 2003-10-09 Petur Runolfsson <peturr02@ru.is>
989 * src/io-inst.cc: Don't include iostream.
990 * include/bits/ios_base.h (ios_base::failure): Use string.
991 * src/Makefile.am: Add ios_failure.cc.
992 * src/Makefile.in: Regenerate.
993 * src/ios.cc: Move ios_base::failure definitions to...
994 * src/ios_failure.cc: ...here. New.
996 2003-10-09 Petur Runolfsson <peturr02@ru.is>
999 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1000 Move code needed for both seekoff and seekpos...
1001 (basic_filebuf::_M_seek): ...here. New function.
1002 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
1003 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
1004 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
1006 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
1008 2003-10-08 Paolo Carlini <pcarlini@unitus.it>
1010 * include/bits/locale_facets.tcc: More minor cosmetic
1011 changes and const-ifications of some variables.
1013 2003-10-07 Paolo Carlini <pcarlini@unitus.it>
1015 * include/bits/locale_facets.tcc: Minor cosmetic changes
1016 and const-ifications of some variables.
1018 * include/bits/locale_facets.tcc
1019 (money_get::do_get(..., string_type&)): Simplify an if-else.
1021 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
1024 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
1025 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
1026 * config/locale/generic/ctype_members.cc: Same.
1027 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
1029 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
1031 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
1032 Improve performance-wise: avoid one traits::copy, avoid
1033 the __builtin_alloca, streamline.
1035 2003-10-05 Paolo Carlini <pcarlini@unitus.it>
1037 * include/bits/locale_facets.tcc
1038 (num_put::do_put(..., bool)): Prefer ?: to if-else.
1039 (time_get::_M_extract_name): Qualify min with std::.
1040 (__pad<>::_S_pad): Constify two variables; simplify an
1041 if-else statement factoring out some code.
1043 * include/bits/locale_facets.tcc: Minor cosmetic changes.
1045 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1047 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1048 Constify a couple of variables.
1049 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
1050 ++__beg to *__beg++.
1052 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1053 Petur Runolfsson <peturr02@ru.is>
1055 * include/ext/stdio_sync_filebuf.h: Don't include the whole
1056 <fstream>, only <streambuf> and <cstdio>.
1058 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1061 * include/bits/fstream.tcc (imbue): In case a codecvt facet
1062 is not available, set _M_codecvt = 0.
1063 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
1065 2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
1068 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
1070 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1072 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
1073 * src/locale.cc: Define.
1074 * src/localename.cc: Use it.
1075 * config/locale/generic/time_members.h: Same.
1076 * config/locale/gnu/messages_members.h: Same.
1077 * config/locale/gnu/time_members.h: Same.
1079 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
1082 * include/bits/fstream.tcc (seekoff): Ignore the openmode
1084 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
1085 seekpos): Remove the openmode argument.
1086 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
1087 seekpos): Remove redundant placeholder for the openmode argument.
1088 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
1089 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
1090 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
1091 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
1092 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
1094 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1096 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
1097 (locale::facet::_S_get_c_locale): Same.
1099 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1101 * config/linker-map.gnu: Export _S_get_c_locale instead of
1104 2003-10-02 Petur Runolfsson <peturr02@ru.is>
1106 * config/locale/generic/c_locale.cc
1107 (category_names, locale::_S_categories): Const qualify.
1108 * config/locale/gnu/c_locale.cc: Same.
1109 * config/locale/generic/time_members.h (__timepunct::__timepunct):
1110 Copy string contents before assigning to _M_name_timepunct,
1111 qualify strcpy and strlen with std::.
1112 * config/locale/gnu/time_members.h: Same.
1113 * config/locale/gnu/messages_members.h (messages::messages):
1114 Copy string contents before assigning to _M_name_messages,
1115 qualify strcpy and strlen with std::.
1116 * config/os/gnu-linux/ctype_noninline.h
1117 (ctype<char>::classic_table()): Don't call locale::classic().
1118 * include/bits/locale_classes.h
1119 (locale::_S_categories): Const qualify.
1120 (locale::_S_once, locale::_S_initialize_once,
1121 locale::facet::_S_once, locale::facet::_S_initialize_once,
1122 locale::facet::_S_get_c_locale): Declare.
1123 (locale::_S_initialize): Don't define.
1124 (locale::facet::_S_c_locale): Make private.
1125 (locale::facet::_S_c_name): Same, const qualify.
1126 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
1127 parameters, add throw() specifier.
1128 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
1129 messages::_M_name_messages): Const qualify.
1131 (locale::_S_once, locale::facet::_S_once): Define.
1132 (locale::classic): Move initialization code...
1133 (locale::_S_initialize_once): ...here.
1134 (locale::_S_initialize): Call _S_initialize_once through
1136 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
1137 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
1138 __gthread_once before returning _S_c_locale.
1139 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
1140 Drop unused parameters, add throw() specifier, don't initialize
1141 locale::facet::_S_c_locale and _S_c_name.
1143 * config/locale/generic/messages_members.h:
1144 Replace _S_c_locale with _S_get_c_locale().
1145 * config/locale/gnu/c_locale.cc: Same.
1146 * config/locale/gnu/messages_members.h: Same.
1147 * config/locale/gnu/numeric_members.cc: Same.
1148 * config/locale/gnu/time_members.cc: Same.
1149 * config/os/gnu-linux/ctype_noninline.h: Same.
1150 * include/bits/locale_facets.h: Same.
1151 * include/bits/locale_facets.tcc: Same.
1152 * src/codecvt.cc: Same.
1153 * src/ctype.cc: Same.
1155 2003-10-02 Carlo Wood <carlo@alinoe.com>
1157 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
1158 Decode symbols that start with _GLOBAL_[ID]_ differently: the
1159 trailing part ends with a terminating zero and is not necessarily an
1161 * src/demangle.cc (): Same.
1162 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
1164 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
1166 * testsuite/22_locale/locale/cons/12438.cc: Use
1167 __gnu_test::try_named_locale("").
1169 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1171 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
1172 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
1174 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
1175 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
1177 * config.h.in, configure: Regenerate.
1178 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
1181 2003-10-01 Nathan Myers <ncm@cantrip.org>
1183 * include/bits/locale_facets.tcc (time_put::put): Avoid
1184 expensive *__s++, in favor of *__s, ++__s.
1186 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
1188 * include/bits/locale_facets.tcc (time_put::put): Minor
1189 tweak to the previous commit.
1191 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
1194 * include/bits/locale_facets.tcc (time_put::put): Deal
1195 with the three issues pointed out by the PR.
1196 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
1197 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
1198 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
1199 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
1200 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
1202 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1204 * include/bits/stl_algo.h: Minor cosmetic reformattings.
1206 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1208 * include/bits/stl_algo.h (search_n): Tweak, to spare the
1211 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1213 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
1214 qualify exception name.
1216 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1219 * include/bits/locale_facets.tcc (locale::combine): Don't
1220 leak memory if _M_replace_facet throws.
1221 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
1223 * include/bits/locale_classes.h (locale::locale(const locale&,
1224 _Facet*)): Tweak, use consistently _M_remove_reference.
1226 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1228 PR libstdc++/12352 (cont)
1229 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
1230 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
1232 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
1233 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
1234 !_M_caches, !_M_names.
1236 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1238 * configure.host: Handle Solaris 2.5 micro releases explicitly.
1239 Remove wildcards from Solaris 2.6, 7-9: there were no
1241 Treat Solaris 10 and up like 7-9.
1243 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1245 * include/bits/stl_algo.h (search_n): Improve the previous
1246 fix as suggested by Martin.
1248 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1251 * include/bits/istream.tcc (peek): Set eofbit if sgetc
1253 * testsuite/27_io/basic_istream/peek/char/12296.cc:
1256 2003-09-29 Nathan Myers <ncm@cantrip.org>
1257 Paolo Carlini <pcarlini@unitus.it>
1260 * include/bits/stl_algo.h (search_n):
1261 Use iterator_traits<>::difference_type for __n.
1262 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
1264 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1266 * testsuite/22_locale/locale/cons/12352.cc:
1267 Use __attribute__((unused)) for test.
1269 2003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
1271 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
1272 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
1273 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
1275 2003-09-26 Brad Spencer <spencer@infointeractive.com>
1277 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
1278 Explicitly qualify exceptions.
1279 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
1280 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1281 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1282 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1284 2003-09-25 Paolo Carlini <pcarlini@unitus.it>
1287 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
1288 size_t)): Don't leak if memory allocations for _M_facets,
1289 _M_caches, and _M_names fail.
1290 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
1291 (locale::_Impl::_M_replace_categories(const _Impl*,
1293 (locale::_Impl::_M_install_facet(const locale::id*,
1294 const facet*)): Ditto.
1295 * include/bits/locale_classes.h (locale::locale(const locale&,
1296 _Facet*)): Don't leak memory.
1297 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
1299 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
1300 bool)): Qualify with std:: strcpy, tweak.
1301 * include/bits/locale_classes.h
1302 (locale::_Impl::_M_check_same_name): Qualify strcmp.
1304 2003-09-25 Brad Spencer <spencer@infointeractive.com>
1307 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
1309 * aclocal.m4: Regenerate.
1310 * config.h.in: Regenerate.
1311 * configure: Regenerate.
1312 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
1313 * config/io/basic_file_stdio.cc: Guard unistd.h.
1314 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
1315 * include/c_std/std_cwchar.h: Same.
1316 * include/c_std/std_cwctype.h: Same.
1318 2003-09-25 Benjamin Kosnik <bkoz@redhat.com>
1321 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
1322 * config/locale/generic/ctype_members.cc: Same.
1323 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
1324 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
1326 * config/os/generic/ctype_inline.h: Update.
1328 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
1330 * src/Makefile.am (version_dep): New variable.
1331 (libstdc___la_DEPENDENCIES): Use it to add dependency on
1332 libstdc++-symbol.ver only when using symbol versioning.
1333 * src/Makefile.in: Regenerate.
1335 2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
1337 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
1338 * testsuite/testsuite_hooks.h: Same.
1339 * testsuite/*/*.cc: Same.
1341 2003-09-22 Petur Runolfsson <peturr02@ru.is>
1343 * include/bits/istream.tcc (basic_istream::read,
1344 basic_istream::readsome, basic_istream::putback,
1345 basic_istream::unget, operator>>(basic_istream, CharT)):
1346 Avoid redundant setstate(failbit) calls when sentry::operator bool()
1349 2003-09-22 Carlo Wood <carlo@alinoe.com>
1352 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
1353 char const*, int, int)): Remove unused identifier
1354 cv_qualifier for overloaded constructor.
1356 2003-09-18 Benjamin Kosnik <bkoz@redhat.com>
1359 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
1360 WARN_FLAGS, remove -Wno-format.
1361 * aclocal.m4: Regenerate.
1362 * configure: Regenerate.
1364 2003-09-18 Petur Runolfsson <peturr02@ru.is>
1366 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
1367 * config/io/basic_file_stdio.h: Same.
1368 * include/std/std_fstream.h (__ctype_type): Delete.
1369 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
1371 2003-09-17 Benjamin Kosnik <bkoz@redhat.com>
1374 * configure.host (abi_baseline_pair): Error out on solaris2
1375 configurations without a minor version number.
1377 2003-09-13 Phil Edwards <phil@codesourcery.com>
1379 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
1380 if man pages are on.
1381 * docs/doxygen/user.cfg.in: And here.
1383 2003-09-10 Daniel Jacobowitz <drow@mvista.com>
1384 Andreas Jaeger <aj@suse.de>
1387 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
1388 abi_check if cross compiling.
1389 * aclocal.m4: Regenerated.
1390 * configure: Regenerated.
1392 2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
1394 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
1395 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
1396 (__cxa_vec_new3): Likewise.
1398 2003-09-10 Petur Runolfsson <peturr02@ru.is>
1400 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1401 Use codecvt::length to handle variable-width stateless encodings
1403 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
1404 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
1406 2003-09-10 Alan Modra <amodra@bigpond.net.au>
1408 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
1411 2003-09-09 Alan Modra <amodra@bigpond.net.au>
1413 * configure: Regenerate.
1415 2003-09-09 David Edelsohn <edelsohn@gnu.org>
1417 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
1418 qualifier from _S_synced_with_stdio.
1420 2003-09-09 Bernardo Innocenti <bernie@develer.com>
1422 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
1424 2003-09-04 Petur Runolfsson <peturr02@ru.is>
1427 * include/bits/fstream.tcc
1428 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
1429 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
1430 _M_ext_buf_size, _M_ext_next and _M_ext_end.
1431 (basic_filebuf::underflow): Handle variable-width stateless
1432 encodings (codecvt::encoding() == 0), including UTF-8.
1433 * include/std/std_fstream.h (basic_filebuf):
1434 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
1435 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
1436 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
1437 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
1438 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
1439 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
1440 * testsuite/27_io/objects/wchar_t/12.cc: New test.
1441 * testsuite/27_io/objects/wchar_t/13.cc: New test.
1443 2003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
1445 * docs/html/faq/index.html: Note that a namespace alias can't be
1446 used when specialising templates in extension namespace.
1447 * docs/html/faq/index.txt: Regenerate.
1449 2003-09-03 Petur Runolfsson <peturr02@ru.is>
1452 * include/ext/stdio_sync_filebuf.h
1453 (stdio_sync_filebuf::_M_unget_buf): Declare it.
1454 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
1455 (stdio_sync_filebuf::uflow): Store the returned character in
1457 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
1458 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
1459 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
1460 _M_unget_buf, if any, else eof().
1461 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
1462 _M_unget_buf, if any, else eof().
1463 * testsuite/27_io/objects/char/12048.cc: Rename to...
1464 * testsuite/27_io/objects/char/12048-1.cc: ...this.
1465 * testsuite/27_io/objects/char/12048-2.cc: New test.
1466 * testsuite/27_io/objects/char/12048-3.cc: New test.
1467 * testsuite/27_io/objects/char/12048-4.cc: New test.
1468 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
1469 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
1470 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
1471 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
1472 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
1473 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
1474 * testsuite/ext/stdio_sync_filebuf_char.cc
1475 (test02, test03, test04, test05): New tests.
1476 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
1477 (test02, test03, test04, test05): New tests.
1479 2003-09-03 Petur Runolfsson <peturr02@ru.is>
1481 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
1482 stringbuf or strstreambuf. Fix typos.
1484 2003-09-02 Phil Edwards <phil@codesourcery.com>
1486 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
1488 * config.h.in: Add _GLIBCXX_HOSTED.
1489 * libsupc++/eh_term_handler.cc: Test it here; initialize
1490 __terminate_handler to std::abort if freestanding.
1491 * aclocal.m4, configure: Regenerated.
1492 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
1494 2003-08-29 Nathan Myers <ncm@cantrip.org>
1497 * include/bits/locale_facets.tcc (__pad): delete dead code.
1499 2003-08-28 Alan Modra <amodra@bigpond.net.au>
1501 * configure.ac: Test $with_cross_host against $build_alias, not $build.
1502 * configure: Regenerate.
1504 2003-08-27 Petur Runolfsson <peturr02@ru.is>
1506 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
1507 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
1509 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1511 * Makefile.am: Remove trailing whitespace. Remove needless
1512 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
1513 * include/Makefile.am: Likewise.
1514 * libmath/Makefile.am: Likewise.
1515 * libsupc++/Makefile.am: Likewise.
1516 * po/Makefile.am: Likewise.
1517 * src/Makefile.am: Likewise.
1518 * testsuite/Makefile.am: Likewise.
1520 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
1521 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1522 testsuite/Makefile.in: Regenerated.
1524 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1526 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
1528 * aclocal.m4, configure: Regenerate.
1530 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
1532 * acinclude.m4: Include no-executables.m4.
1533 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
1534 * aclocal.m4: Regenerated.
1535 * configure: Regenerated.
1537 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
1539 * acinclude.m4: Don't call AC_ISC_POSIX.
1540 * aclocal.m4: Regenerated.
1541 * configure: Regenerated.
1543 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1545 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
1546 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
1547 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
1548 used elsewhere in this file.
1549 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
1550 * configure.ac: ...called here to expand all conditionals.
1551 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
1552 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
1553 (install-freestanding-headers): New target, a subset of
1554 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
1556 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1557 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1558 src/Makefile.in, testsuite/Makefile.in: Regenerated.
1560 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
1562 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
1563 pathnames from generated tag file.
1565 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
1567 * Makefile.am: Add comment.
1568 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
1570 * configure.ac: Use them both here, instead of hardcoded lists.
1572 * fragment.am: Add STAMP varaible.
1573 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
1575 (stamp-*): Move file creation rule outside of 'if' branches to
1576 ensure the stamp-* files are actually updated. Use $(STAMP).
1577 * src/Makefile.am: Remove now-nonexistant variable.
1578 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
1580 * po/Makefile.am: Include same fragment as all the others.
1582 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1583 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
1585 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
1587 * testsuite/data/cin_unget-1.txt: New.
1588 * testsuite/27_io/objects/char/12048.cc: New.
1590 2003-08-25 Zack Weinberg <zack@codesourcery.com>
1592 * config/os/hpux/os_defines.h: Unconditionally define
1593 _GLIBCXX_GTHREAD_USE_WEAK to 0.
1595 2003-08-19 Geoffrey Keating <geoffk@apple.com>
1597 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
1598 crosses to Darwin targets.
1599 * configure: Regenerate.
1601 2003-08-19 Petur Runolfsson <peturr02@ru.is>
1603 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
1605 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
1607 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
1608 in the patch from 3 minutes ago. Boy, is my face red.
1609 * configure: At least I remembered to regenerate this.
1611 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
1613 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
1614 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
1615 things from the top level.
1616 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
1617 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
1618 (currently unused). Strip the fake-VPATH shell fragment from
1619 automake-generated rules, if present.
1620 * linkage.m4: Add comment.
1622 * fragment.am: New file, containing factored-out common settings.
1623 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
1624 * Makefile.am: Include fragment.am. Remove common variables.
1625 * include/Makefile.am: Likewise.
1626 * libmath/Makefile.am: Likewise.
1627 * libsupc++/Makefile.am: Likewise.
1628 * po/Makefile.am: Likewise. Print rules during check.
1629 * src/Makefile.am: Likewise.
1630 * testsuite/Makefile.am: Likewise.
1632 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1633 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1634 src/Makefile.in, testsuite/Makefile.in: Regenerate.
1636 2003-08-11 John Levon <levon@movementarian.org>
1638 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
1639 remaining places for the name change from GLIBCPP_FORCE_NEW
1640 to GLIBCXX_FORCE_NEW
1642 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
1644 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
1646 * include/bits/basic_ios.tcc: Same.
1647 * include/bits/istream.tcc: Same.
1648 * include/bits/locale_facets.h: Same.
1649 * include/bits/ostream.tcc: Same.
1650 * include/std/std_istream.h: Same.
1651 * include/std/std_ostream.h: Same.
1652 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
1654 * include/ext/rope: Remove build warning.
1656 2003-08-11 Andreas Jaeger <aj@suse.de>
1658 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
1660 * include/Makefile.in: Regenerated.
1662 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
1664 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
1665 when calling AC_PROG_CC.
1666 * aclocal.m4, configure: Regenerate.
1668 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
1670 * acinclude.m4: Properly quote variable which will be expanded
1671 inside makefiles. Use CXX instead of CC to extract compiler info.
1672 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
1673 correct form in PACKAGE.
1674 * aclocal.m4, configure: Regenerate.
1676 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
1678 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
1679 (check-abi-verbose): Same.
1680 * testsuite/testsuite_performance.h (report_performance): Same.
1682 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
1684 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
1686 2003-08-07 Doug Gregor <dgregor@apple.com>
1688 * include/bits/char_traits.h (char_traits::not_eof): Match operand
1691 2003-08-07 Bernardo Innocenti <bernie@develer.com>
1694 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
1695 Replace variants with new BSET-based version.
1697 2003-08-07 Carlo Wood <carlo@alinoe.com>
1699 * include/bits/demangle.h: Do not use cctype functions that depend
1702 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
1704 * configure.in: Rename...
1705 * configure.ac: ...to this.
1706 * docs/html/17_intro/porting.texi: Update name.
1708 * docs/html/17_intro/porting.html: Regenerate.
1709 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1710 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1711 testsuite/Makefile.in: Regenerate (picks up new dependancy).
1713 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
1715 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
1716 pipe, open the window to let out the fumes, redo the option-handling
1717 logic to properly execute the detection test.
1718 * aclocal.m4, configure: Regenerate.
1720 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1722 Convert to new autotools.
1723 * acconfig.h: Update with correct names.
1724 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
1725 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
1726 * configure.in: Update. Split hardcoded cross-configury settings
1728 * crossconfig.m4: ...here. New file. Contents untouched.
1729 * acinclude.m4: Reorganize and rewrite as needed. Split large
1731 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
1733 * scripts/testsuite_flags.in: Update.
1735 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
1736 variables (already generated by automake).
1737 * include/Makefile.am: Ditto.
1738 * libmath/Makefile.am: Ditto.
1739 * libsupc++/Makefile.am: Ditto.
1740 * po/Makefile.am: Ditto.
1741 * src/Makefile.am: Ditto.
1743 * aclocal.m4: Regenerate using new versions.
1744 * config.h.in: Ditto.
1746 * Makefile.in: Ditto.
1747 * include/Makefile.in: Ditto.
1748 * libmath/Makefile.in: Ditto.
1749 * libsupc++/Makefile.in: Ditto.
1750 * po/Makefile.in: Ditto.
1751 * src/Makefile.in: Ditto.
1752 * testsuite/Makefile.in: Ditto.
1754 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1756 * po/libstdc++.pot: Re-extract/regenerate.
1758 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1760 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
1761 Remove unneeded variable assignments. Leave them for automake.
1762 * testsuite/lib/libstdc++-v3.exp: Rename...
1763 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
1765 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
1766 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
1769 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1771 * docs/doxygen/guide.html: run_doxygen uses bash.
1772 * docs/doxygen/mainpage.html: We'll be shipping tag files.
1773 * docs/doxygen/run_doxygen: Tweaks and improvements.
1774 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
1775 * docs/html/install.html: Update autoconf/automake requirements.
1776 * docs/html/test.html: Add section describing DejaGNU support.
1777 * docs/html/17_intro/confdeps.dot: New file, generates...
1778 * docs/html/17_intro/confdeps.png: ...this new file.
1779 * docs/html/Makefile: Generated here.
1780 * docs/html/17_intro/configury.html: New file.
1782 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
1784 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
1785 * testsuite/lib/libstdc++-v3.exp: ...to this.
1786 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
1788 2003-07-31 Doug Gregor <dgregor@apple.com>
1790 Add user specialization tests.
1791 * testsuite/23_containers/deque/1.cc: New.
1792 * testsuite/23_containers/list/1.cc: New.
1793 * testsuite/23_containers/map/1.cc: New.
1794 * testsuite/23_containers/multimap/1.cc: New.
1795 * testsuite/23_containers/multiset/1.cc: New.
1796 * testsuite/23_containers/set/1.cc: New.
1797 * testsuite/23_containers/vector/1.cc: New.
1799 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
1801 Reshuffle 23_containers testsuite.
1802 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
1803 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
1804 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
1805 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
1806 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
1807 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
1808 vector_resize.cc: Split into...
1809 * 23_containers/bitset/cons/1.cc: New.
1810 * 23_containers/bitset/cons/6282.cc: New.
1811 * 23_containers/bitset/count/6124.cc: New.
1812 * 23_containers/bitset/operations/1.cc: New.
1813 * 23_containers/bitset/operations/2.cc: New.
1814 * 23_containers/bitset/test/1.cc: New.
1815 * 23_containers/bitset/to_ulong/1.cc: New.
1816 * 23_containers/deque/cons/1.cc: New.
1817 * 23_containers/deque/cons/2.cc: New.
1818 * 23_containers/deque/operators/1.cc: New.
1819 * 23_containers/list/capacity/1.cc: New.
1820 * 23_containers/list/cons/1.cc: New.
1821 * 23_containers/list/cons/2.cc: New.
1822 * 23_containers/list/cons/3.cc: New.
1823 * 23_containers/list/cons/4.cc: New.
1824 * 23_containers/list/cons/5.cc: New.
1825 * 23_containers/list/cons/6.cc: New.
1826 * 23_containers/list/cons/7.cc: New.
1827 * 23_containers/list/cons/8.cc: New.
1828 * 23_containers/list/cons/9.cc: New.
1829 * 23_containers/list/modifiers/1.cc: New.
1830 * 23_containers/list/modifiers/2.cc: New.
1831 * 23_containers/list/modifiers/3.cc: New.
1832 * 23_containers/list/operators/1.cc: New.
1833 * 23_containers/list/operators/2.cc: New.
1834 * 23_containers/list/operators/3.cc: New.
1835 * 23_containers/list/operators/4.cc: New.
1836 * 23_containers/map/insert/1.cc: New.
1837 * 23_containers/map/operators/1.cc: New.
1838 * 23_containers/map/operators/1_neg.cc: New.
1839 * 23_containers/multiset/insert/1.cc: New.
1840 * 23_containers/priority_queue/members/7161.cc: New.
1841 * 23_containers/queue/members/7157.cc: New.
1842 * 23_containers/set/operators/1_neg.cc: New.
1843 * 23_containers/stack/members/7158.cc: New.
1844 * 23_containers/vector/bool/1.cc: New.
1845 * 23_containers/vector/bool/6886.cc: New.
1846 * 23_containers/vector/capacity/1.cc: New.
1847 * 23_containers/vector/capacity/2.cc: New.
1848 * 23_containers/vector/capacity/8230.cc: New.
1849 * 23_containers/vector/cons/1.cc: New.
1850 * 23_containers/vector/cons/2.cc: New.
1851 * 23_containers/vector/cons/3.cc: New.
1852 * 23_containers/vector/cons/4.cc: New.
1853 * 23_containers/vector/cons/6513.cc: New.
1854 * 23_containers/vector/element_access/1.cc: New.
1855 * 23_containers/vector/modifiers/1.cc: New.
1856 * 23_containers/vector/modifiers/2.cc: New.
1857 * 23_containers/vector/resize/1.cc: New.
1859 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1861 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
1863 * testsuite/thread/pthread2.cc: Likewise.
1864 * testsuite/thread/pthread3.cc: Likewise.
1865 * testsuite/thread/pthread4.cc: Likewise.
1866 * testsuite/thread/pthread5.cc: Likewise.
1867 * testsuite/thread/pthread6.cc: Likewise.
1868 * testsuite/thread/pthread7-rope.cc: Likewise.
1870 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
1872 * include/bits/c++config: Partial reversion (comment placement) of
1875 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
1877 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
1878 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
1879 (_GLIBCXX_AT_AT): Remove.
1880 (__USE_MALLOC): Remove.
1881 * include/std/std_fstream.h: Modify.
1882 * include/bits/basic_ios.h: Same.
1883 * include/bits/valarray_array.h: Same.
1884 * include/c_std/std_cmath.h: Same.
1885 * include/c_std/cmath.tcc: Same.
1886 * include/std/std_vector.h: Same.
1887 * include/std/std_string.h: Same.
1888 * include/std/std_stack.h: Same.
1889 * include/std/std_queue.h: Same.
1890 * include/std/std_list.h: Same.
1891 * include/std/std_deque.h: Same.
1892 * include/std/std_streambuf.h: Same.
1893 * include/std/std_sstream.h: Same.
1894 * include/std/std_ostream.h: Same.
1895 * include/std/std_istream.h: Same.
1896 * include/bits/valarray_array.tcc: Same, format.
1898 * include/c/std_cctype.h: Fix include guards.
1899 * include/c/std_cerrno.h: Same.
1900 * include/c/std_cfloat.h: Same.
1901 * include/c/std_climits.h: Same.
1902 * include/c/std_clocale.h: Same.
1903 * include/c/std_cmath.h: Same.
1904 * include/c/std_csetjmp.h: Same.
1905 * include/c/std_csignal.h: Same.
1906 * include/c/std_cstdarg.h: Same.
1907 * include/c/std_cstddef.h: Same.
1908 * include/c/std_cstdio.h: Same.
1909 * include/c/std_cstdlib.h: Same.
1910 * include/c/std_cstring.h: Same.
1911 * include/c/std_ctime.h: Same.
1912 * include/c/std_cwchar.h: Same.
1913 * include/c/std_cwctype.h: Same.
1914 * include/c_std/cmath.tcc: Same.
1915 * include/c_std/std_cmath.h: Same.
1917 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
1920 * include/bits/stl_tree.h: Replace C-style casts with C++-style
1921 casts. Changes to avoid casting away constness. Eliminate
1922 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
1923 initialization lists. Move out implementation of __black_count()
1925 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
1926 Rename_Rb_tree_base_iterator::_M_increment() to
1927 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
1929 * config/linker-map.gnu: Add and change symbols here.
1931 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
1933 * docs/html/22_locale/howto.html: Use locale::classic() instead
1936 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
1938 * testsuite/testsuite_hooks.h: Remove list include.
1939 (func_callback): Define as unique type, not std::list.
1940 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
1941 * testsuite/libstdc++-v3.dg/dg.exp: Same.
1942 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
1943 * testsuite/23_containers/bitset_ctor.cc:
1944 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
1945 * testsuite/18_support/numeric_limits.cc: Same.
1946 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
1947 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
1948 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
1949 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
1950 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
1951 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
1952 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
1953 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
1954 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
1955 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
1956 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
1957 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
1958 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
1959 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
1960 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
1961 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
1962 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
1963 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
1964 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
1965 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
1966 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
1967 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
1968 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
1969 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
1970 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
1971 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
1972 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
1973 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
1974 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
1975 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
1976 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
1977 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
1978 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
1979 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
1980 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
1981 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
1982 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
1983 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
1984 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
1985 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
1986 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
1987 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
1988 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
1989 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
1990 * testsuite/23_containers/bitset_ctor.cc: Same.
1991 * testsuite/23_containers/bitset_shift.cc: Same.
1992 * testsuite/23_containers/vector_ctor.cc: Same.
1993 * testsuite/23_containers/vector_element_access.cc: Same.
1994 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
1995 * testsuite/24_iterators/iterator.cc: Same.
1996 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
1997 * testsuite/25_algorithms/lower_bound.cc: Same.
1998 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
1999 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
2000 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
2001 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
2002 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
2003 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
2004 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
2005 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
2006 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
2007 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
2008 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2011 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2013 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
2014 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
2015 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
2016 GLIBCPP to GLIBCXX (and explain as needed).
2018 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2022 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2024 * testsuite/22_locale/messages/members/char/1.cc,
2025 testsuite/22_locale/messages/members/char/2.cc,
2026 testsuite/22_locale/messages/members/char/3.cc,
2027 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
2028 the origin of LOCALEDIR.
2029 * testsuite/lib/libstdc++-v3.exp: New file.
2031 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
2033 * include/bits/char_traits.h: Update copyright, tweak.
2034 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
2037 2003-07-24 Matt Austern <austern@apple.com>
2039 * /include/bits/char_traits.h (class char_traits): Put all the
2040 real work into the new class template __gnu_cxx::char_traits.
2041 Gave generic definitions for member functions. Types are taken
2042 from the new class template __gnu_cxx::_Char_types.
2043 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
2044 file. Test of std::char_traits<short>, which serves as a test of
2045 the char_traits primary template.
2047 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
2049 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
2051 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
2053 * testsuite/23_containers/map_operators.cc: Conform to
2054 container requirement as value must be Assignable.
2056 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
2058 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
2059 tests not only generation of pch files, but also their use.
2060 * aclocal.m4, configure: Rebuilt.
2062 2003-07-23 Steve Ellcey <sje@cup.hp.com>
2064 * config/cpu/hppa/atomicity.h: Change
2065 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
2066 to match misc-inst.cc
2068 2003-07-23 Steve Ellcey <sje@cup.hp.com>
2070 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
2071 * include/c_std/std_cctype.h: Ditto.
2072 * include/c_std/std_cerrno.h: Ditto.
2073 * include/c_std/std_cfloat.h: Ditto.
2074 * include/c_std/std_climits.h: Ditto.
2075 * include/c_std/std_clocale.h: Ditto.
2076 * include/c_std/std_cmath.h: Ditto.
2077 * include/c_std/std_csetjmp.h: Ditto.
2078 * include/c_std/std_csignal.h: Ditto.
2079 * include/c_std/std_cstdarg.h: Ditto.
2080 * include/c_std/std_cstddef.h: Ditto.
2081 * include/c_std/std_cstdio.h: Ditto.
2082 * include/c_std/std_cstdlib.h: Ditto.
2083 * include/c_std/std_cstring.h: Ditto.
2084 * include/c_std/std_ctime.h: Ditto.
2085 * include/c_std/std_cwchar.h: Ditto.
2086 * include/c_std/std_cwctype.h: Ditto.
2087 * include/std/std_algorithm.h: Ditto.
2088 * include/std/std_bitset.h: Ditto.
2089 * include/std/std_complex.h: Ditto.
2090 * include/std/std_deque.h: Ditto.
2091 * include/std/std_fstream.h: Ditto.
2092 * include/std/std_functional.h: Ditto.
2093 * include/std/std_iomanip.h: Ditto.
2094 * include/std/std_ios.h: Ditto.
2095 * include/std/std_iosfwd.h: Ditto.
2096 * include/std/std_iostream.h: Ditto.
2097 * include/std/std_istream.h: Ditto.
2098 * include/std/std_iterator.h: Ditto.
2099 * include/std/std_limits.h: Ditto.
2100 * include/std/std_list.h: Ditto.
2101 * include/std/std_locale.h: Ditto.
2102 * include/std/std_map.h: Ditto.
2103 * include/std/std_memory.h: Ditto.
2104 * include/std/std_numeric.h: Ditto.
2105 * include/std/std_ostream.h: Ditto.
2106 * include/std/std_queue.h: Ditto.
2107 * include/std/std_set.h: Ditto.
2108 * include/std/std_sstream.h: Ditto.
2109 * include/std/std_stack.h: Ditto.
2110 * include/std/std_stdexcept.h: Ditto.
2111 * include/std/std_streambuf.h: Ditto.
2112 * include/std/std_string.h: Ditto.
2113 * include/std/std_utility.h: Ditto.
2114 * include/std/std_valarray.h: Ditto.
2115 * include/std/std_vector.h: Ditto.
2117 2003-07-22 Doug Gregor <dgregor@apple.com>
2119 * include/bits/basic_string.h (basic_string::insert): Deprecate
2122 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
2124 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
2126 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
2127 (test03): Include typeinfo for bad_cast.
2128 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2129 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2130 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2132 2003-07-21 Doug Gregor <dgregor@apple.com>
2134 * include/bits/boost_concept_check.h:
2135 (_EqualityComparableConcept::__constraints): Remove != from the
2136 list of constraints; it is not listed in Table 28 of the C++98
2139 2003-07-18 Andreas Jaeger <aj@suse.de>
2141 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
2142 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
2143 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
2144 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2146 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
2148 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
2149 * config/locale/generic/messages_members.h: Tweaks.
2150 * config/locale/generic/monetary_members.cc
2151 (moneypunct::_M_initialize_moneypunct): Use cache.
2152 (moneypunct::~moneypunct): Delete cache.
2153 * config/locale/generic/time_members.cc:
2154 (__timepunct::_M_initialize_timepunct): Use cache.
2155 * config/locale/generic/time_members.h:
2156 (__timepunct::~__timepunct): Delete cache.
2157 (__timepunct::__timepunct): Set cache.
2158 * config/locale/gnu/messages_members.h: Tweaks.
2159 * config/locale/gnu/monetary_members.cc:
2160 (moneypunct::_M_initialize_moneypunct): Use cache.
2161 (moneypunct::~moneypunct): Delete cache.
2162 * config/locale/gnu/time_members.cc:
2163 (__timepunct::_M_initialize_timepunct): Use cache.
2164 * config/locale/gnu/time_members.h:
2165 (__timepunct::~__timepunct): Delete cache.
2166 (__timepunct::__timepunct): Set cache.
2167 * include/bits/locale_facets.h (__timepunct_cache): New.
2168 (__moneypunct_cache): New.
2169 * include/bits/locale_facets.tcc: Tweak.
2170 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
2171 * src/locale-inst.cc: Instantiate caches.
2172 * src/globals.cc: Add "C" caches.
2173 * src/localename.cc: Use external "C" caches.
2175 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
2177 * docs/doxygen/guide.html: Fix typo.
2179 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2181 * include/ext/pod_char_traits.h: Add state template argument.
2183 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2185 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
2186 (num_get::_M_convert_int): To _M_insert_int.
2187 (num_get::_M_convert_float): To _M_insert_float.
2188 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2189 Use caches for ctype, num_get.
2190 (num_get::_M_extract_int): Same.
2191 (num_get::get(bool)): Same.
2192 (__verify_grouping): Use size_t.
2193 * src/locale-inst.cc: Update.
2194 * src/locale.cc: Adjust _S_atoms_in.
2196 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
2198 * docs/doxygen/mainpage.html: Move building/writing instructions...
2199 * docs/doxygen/guide.html: ...to here. New file.
2201 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
2203 * docs/html/ext/howto.html: Update URL for SGI STL docs.
2204 * docs/html/faq/index.html: Same.
2205 * docs/html/faq/index.txt: Regenerate.
2207 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
2210 * include/bits/locale_facets.tcc (money_get::do_get):
2211 Strip only _leading_ zeros.
2212 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
2213 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
2215 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2217 * include/ext/hash_map (class hash_multimap): Remove extra
2218 semicolons from __glibcxx_class_requires3 entries.
2219 * include/ext/hash_set (class hash_set): Ditto.
2220 (class hash_multiset): Ditto.
2222 2003-07-15 Petur Runolfsson <peturr02@ru.is>
2224 * include/bits/char_traits.h (char_traits<wchar_t>::move):
2225 Change last parameter from int_type to size_t.
2227 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2229 * include/bits/stl_algo.h (includes, set_union, set_intersection,
2230 set_difference, set_symmetric_difference, max_element, min_element,
2231 next_permutation, prev_permutation, find_first_of, find_end):
2233 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
2234 restrictions in docs.
2235 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
2237 * docs/doxygen/doxygroups.cc (setoperations): New group.
2239 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2241 * include/bits/basic_string.h: Document public functions.
2242 * docs/doxygen/TODO: Update c21 todo.
2244 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2246 * include/bits/stl_list.h: Document more functions.
2247 * docs/doxygen/TODO: Update c23 todo.
2249 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2251 * config/locale/gnu/c_locale.h (__convert_from_v): One more
2254 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2256 * include/bits/stl_tempbuf.h: Qualify free with std::.
2257 * src/locale.cc: Include <cstdlib>, qualify getenv.
2259 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2261 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2262 <cstdio>. Qualify names.
2263 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
2265 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2266 Nathan C. Myers <ncm-nospam@cantrip.org>
2269 * include/std/std_fstream.h (xsputn): Declare only.
2270 * include/bits/fstream.tcc (xsputn): Define, optimize for the
2271 always_noconv() case: when __n is sufficiently large flush
2272 the buffer and issue a direct write, if possible combining the
2273 two with writev in __basic_file<>::xsputn_2.
2274 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
2276 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
2278 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
2279 the availability of writev in <sys/uio.h>.
2280 * configure.in: Call here.
2281 * acconfig.h: Add undef for the corresponding symbol.
2282 * aclocal.m4: Regenerate.
2283 * configure: Regenerate.
2284 * config.h.in: Regenerate.
2285 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
2287 * include/std/std_fstream.h (sync): Constify a variable.
2289 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
2291 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
2292 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2294 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
2296 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2297 <cstring> and <cstdlib>. Qualify names.
2299 2003-07-13 Mark Mitchell <mark@codesourcery.com>
2301 * config/locale/generic/c_locale.h: Include <cstdlib> and
2303 * include/bits/boost_concept_check.h: Add this-> to unqualified
2305 * include/bits/deque.tcc: Likewise.
2306 * include/bits/locale_facets.h : Likewise.
2307 * include/bits/ostream.tcc: Likewise.
2308 * include/bits/stl_algo.h: Likewise.
2309 * include/bits/stl_bvector.h: Likewise.
2310 * include/bits/stl_deque.h: Likewise.
2311 * include/bits/stl_list.h: Likewise.
2312 * include/bits/stl_tree.h: Likewise.
2313 * include/bits/stl_vector.h: Likewise.
2314 * include/bits/vector.tcc: Likewise.
2315 * include/ext/rope: Likewise.
2316 * include/ext/ropeimpl.h: Likewise.
2317 * include/ext/stdio_filebuf.h: Likewise.
2319 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
2321 * include/bits/basic_ios.h (copyfmt): Document.
2322 * include/bits/ios_base.h (event, event_callback, register_callback,
2323 xalloc, iword, pword): Document.
2324 (imbue, ~ios_base): Update docs on callbacks.
2326 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
2328 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
2329 warning messages if the environment cannot support symbol versioning.
2330 (port_specific_symbol_file): It's plural, add an 's' on the end.
2331 * configure.host: Likewise.
2332 * src/Makefile.am: Likewise.
2333 * config/linker-map.gnu: Remove one semicolon, heh.
2334 * scripts/extract_symvers: Don't assume useful 'export' syntax.
2335 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
2336 * aclocal.m4, configure, src/Makefile.in: Regenerated.
2338 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
2340 * include/bits/locale_facets.tcc: Use function object for
2341 __use_cache instead of template function. Partially specialize for
2343 * include/bits/locale_classes.h: Update friend declaration for
2345 (_M_install_cache): No throw exception specs.
2346 * src/locale.cc: Remove __use_cache specializations.
2347 * include/ext/pod_char_traits.h (length): Tweak.
2348 * include/bits/locale_facets.h (__numpunct_cache): Remove
2350 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
2352 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
2353 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
2354 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
2355 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
2356 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
2357 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
2359 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
2361 * src/ios.cc (_M_grow_words): Fix spelling.
2363 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
2365 * include/bits/stl_tree.h: Move larger member functions in
2366 _Rb_tree_base_iterator and _Rb_tree_node to...
2367 * src/stl_tree.cc: Here.
2368 * src/Makefile.in: Add stl_tree.cc.
2369 * src/Makefile.in: Regenerated.
2370 * config/linker-map.gnu: Add symbols here.
2372 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2374 * testsuite/ext/pod_char_traits.cc: New.
2375 * include/ext/pod_char_traits.h: New.
2376 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
2377 * include/Makefile.in: Regenerate.
2378 * docs/html/21_strings/howto.html: Update.
2380 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
2382 * testsuite/performance/list_create_fill_sort.cc: New.
2384 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2386 * config/locale/generic/numeric_members.cc: Correct type info.
2387 * config/locale/gnu/numeric_members.cc: Same.
2388 * include/bits/locale_facets.h: Same.
2390 * include/bits/char_traits.h: Correct spacing.
2392 * src/locale.cc: Wrap to 80 col.
2394 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
2396 * include/std/std_complex.h: Partially revert last
2397 changes: cmath functions must not be qualified.
2399 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
2401 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
2402 2.11 with globbing backport fix.
2403 * aclocal.m4, configure: Regenerated.
2405 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
2407 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
2408 if output is at all possible (!_M_reading), cannot be active.
2410 * include/std/std_fstream.h: Tweak comments to doxygen style.
2412 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
2414 * include/bits/locale_classes.h: Fully qualify standard
2415 functions with std::, thus avoiding Koenig lookup.
2416 * include/bits/locale_facets.tcc: Likewise.
2417 * src/locale.cc: Likewise.
2418 * src/localename.cc: Likewise.
2420 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
2422 * include/bits/allocator_traits.h: Fix doxygen markup.
2423 * include/ext/mt_allocator.h: Likewise.
2425 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
2427 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
2429 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2431 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
2432 requirement. Add port_specific_symbol_file variable.
2433 * configure.host: Add docs for port_specific_symbol_file.
2434 Clean up try_cpu block for x86.
2435 * config/linker-map.gnu: No more "last symbol can't have a
2436 semicolon" kaka. Add hook for port-specific symbols.
2437 * src/Makefile.am: Remove trailing whitespace.
2438 (libstdc++-symbol.ver): Detect the presence of port-specific
2439 symbols, and add them accordingly.
2441 * docs/html/17_intro/porting.texi: Bring up to date.
2443 * src/Makefile.in, aclocal.m4, configure,
2444 docs/html/17_intro/porting.html: Regenerated.
2446 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2448 * scripts/create_testsuite_files: New file.
2449 * testsuite/Makefile.am (all-local, check-performance): Use it.
2450 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
2451 * testsuite/Makefile.in: Regenerated.
2453 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
2455 * testsuite/performance/fstream_seek_write.cc: Likewise.
2456 * testsuite/performance/ofstream_insert_float.cc: Likewise.
2457 * testsuite/performance/ofstream_insert_int.cc: Likewise.
2458 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
2460 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
2462 * include/bits/stl_list.h: Performance and memory usage
2463 improvements. In particular, the behaviour of the constructor and
2464 destructor as the list header node is no longer dynamically
2465 allocated/de-allocated.
2466 * include/bits/list.tcc: Likewise.
2468 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
2470 * include/std/std_complex.h: Fully qualify standard
2471 functions with std::, thus avoiding Koenig lookup.
2472 * include/std/std_memory.h: Likewise.
2473 * include/std/std_valarray.h: Likewise.
2475 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
2477 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
2478 variable for grandparent and use const
2480 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
2482 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
2483 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
2484 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
2485 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
2486 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
2487 * testsuite/27_io/objects/char/7.cc: Ditto
2488 * testsuite/27_io/objects/char/9661-1.cc: Ditto
2490 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
2492 * include/std/std_bitset.h: Fully qualify standard
2493 functions with std::, thus avoiding Koenig lookup.
2495 * include/std/std_fstream.h: Change comment to doxygen style.
2497 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2499 * include/std/std_limits.h: More CPP->CXX changes.
2500 * scripts/check_survey.in: Likewise.
2502 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2504 Move from CPP to CXX.
2505 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
2506 * testsuite/Makefile.am: Same.
2507 * testsuite/Makefile.in: Regenerate.
2508 * po/Makefile.am: Same.
2509 * po/Makefile.in: Regenerate.
2510 * libsupc++/Makefile.am: Same.
2511 * libsupc++/Makefile.in: Regenerate.
2512 * libmath/Makefile.am: Same.
2513 * libmath/Makefile.in: Regenerate.
2514 * include/Makefile.am: Same.
2515 * include/Makefile.in: Regenerate.
2516 * src/Makefile.am: Same.
2517 * src/Makefile.in: Regenerate.
2519 * configure.host: Same.
2520 * configure.in: Same.
2521 * configure: Regenerate.
2522 * acinclude.m4: Same.
2524 * src: Change all files in this directory.
2526 * include: Same, standardize include guards.
2530 2003-07-04 Zack Weinberg <zack@codesourcery.com>
2532 * testsuite/22_locale/collate/compare/wchar_t/2.cc
2533 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
2534 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
2535 * testsuite/22_locale/collate/hash/wchar_t/2.cc
2536 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
2537 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
2538 * testsuite/22_locale/collate/transform/wchar_t/2.cc
2539 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
2540 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2541 XFAIL on all targets.
2543 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2545 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
2546 * aclocal.m4: Regenerate.
2547 * configure: Regenerate.
2549 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
2551 * include/bits/locale_facets.tcc (__int_to_char): Move common case
2554 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2555 Petur Runolfsson <peturr02@ru.is>
2557 * config/io/basic_file_stdio.cc: Revert.
2559 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2561 * include/bits/deque.tcc: Fully qualify standard
2562 functions with std::, thus avoiding Koenig lookup.
2563 * include/bits/gslice_array.h: Likewise.
2564 * include/bits/indirect_array.h: Likewise.
2565 * include/bits/list.tcc: Likewise.
2566 * include/bits/mask_array.h: Likewise.
2567 * include/bits/slice_array.h: Likewise.
2569 2003-07-04 Gawain Bolton <gbolton@free.fr>
2571 * include/bits/stl_tree.h: Performance and memory usage
2574 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
2576 * Makefile.am: Replace PWD with PWD_COMMAND.
2577 * Makefile.in: Regenerated.
2578 * docs/html/Makefile: Likewise.
2580 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2582 * include/bits/valarray_array.h: Fully qualify standard
2583 functions with std::, thus avoiding Koenig lookup.
2584 * include/bits/vector.tcc: Likewise.
2586 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2588 * include/Makefile.am: Update target_ to host_.
2589 * include/Makefile.in: Regenerate.
2590 * src/Makefile.am: Same.
2591 * src/Makefile.in: Regenerate.
2593 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
2595 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2597 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
2598 --enable-libstdcxx-debug-flags.
2599 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
2600 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
2601 * aclocal.m4: Regenerate.
2603 * docs/html/configopts.html: Update.
2605 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2607 Revert the fix for libstdc++/11378.
2609 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2612 * include/std/std_fstream.h (xsputn): In the unbuffered case,
2613 provided always_noconv(), issue directly _M_file.xsputn.
2614 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
2616 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2618 * include/bits/stl_list.h: Fully qualify standard
2619 functions with std::, thus avoiding Koenig lookup.
2620 * include/bits/stl_queue.h: Likewise.
2621 * include/bits/stl_raw_storage_iter.h: Likewise.
2622 * include/bits/stl_tempbuf.h: Likewise.
2623 * include/bits/stl_tree.h: Likewise.
2624 * include/bits/stl_uninitialized.h: Likewise.
2625 * include/bits/stl_vector.h: Likewise.
2626 * include/ext/rope: Change includes order.
2628 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2630 * configure.host (fpos_include_dir): Fix.
2632 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2634 * include/bits/stl_heap.h: Fully qualify standard
2635 functions with std::, thus avoiding Koenig lookup.
2636 * include/bits/stl_iterator_base_funcs.h: Likewise.
2638 * include/bits/stl_algo.h: Qualify __iterator_category too.
2639 * include/bits/stl_algobase.h: Likewise.
2640 * include/bits/stl_bvector.h: Likewise.
2642 * include/bits/stl_algo.h: Don't qualify the pair type.
2644 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
2646 * include/Makefile.am (target_headers): Add fpos.h
2647 (bits_headers): Remove.
2648 * include/Makefile.in: Regenerate.
2649 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
2650 * configure: Regenerate.
2651 * configure.host: Add fpos_include_dir.
2652 * config/os/gnu-linux/fpos.h: New.
2653 * config/os/generic/fpos.h: Add.
2654 * include/bits/fpos.h: Remove.
2656 * config/io/c_io_stdio.h: Remove fpos_t typedef.
2658 * include/bits/fstream.tcc: Tweaks.
2659 * include/std/std_fstream.h: Same.
2661 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
2662 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
2663 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
2664 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
2665 * testsuite/27_io/fpos/1.cc: New.
2667 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
2668 Petur Runolfsson <peturr02@ru.is>
2670 * include/std/std_streambuf.h: Remove _M_pos.
2671 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
2672 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
2673 use fread/fwrite instead of read/write.
2674 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
2675 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
2676 before reading again.
2677 * testsuite/27_io/objects/char/6.cc: Tweak.
2679 2003-07-03 David Edelsohn <edelsohn@gnu.org>
2681 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
2682 _GLIBCPP_USE_WCHAR_T.
2684 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2686 * include/bits/basic_string.tcc (_M_replace_aux): Constify
2689 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2691 * include/bits/stl_bvector.h: Fully qualify standard
2692 functions with std::, thus avoiding Koenig lookup.
2693 * include/bits/stl_construct.h: Likewise.
2694 * include/bits/stl_deque.h: Likewise.
2696 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2698 * testsuite/22_locale/num_put/put/char/7.cc: Include
2699 <testsuite_hooks.h>, tweak.
2700 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
2702 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
2704 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
2705 check* targets, but not libs/programs).
2706 * testsuite/Makefile.in: Regenerate.
2708 2003-07-01 Roger Sayle <roger@eyesopen.com>
2710 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
2711 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
2712 * aclocal.m4: Regenerate.
2713 * configure: Regenerate.
2715 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
2717 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
2718 * aclocal.m4: Regenerated.
2719 * configure: Regenerated.
2721 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
2724 * include/bits/fstream.tcc (underflow): For encoding() == 0
2725 don't read more than __buflen chars.
2726 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
2727 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
2728 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
2729 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
2731 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
2733 * 22_locale/num_put/put/char/7.cc: New.
2734 * 22_locale/num_put/put/wchar_t/7.cc: New.
2736 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
2738 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
2739 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
2741 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
2743 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
2744 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
2745 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
2746 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
2747 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
2748 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
2749 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
2750 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
2751 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
2752 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
2753 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
2754 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
2755 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
2756 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
2757 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
2758 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
2759 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
2760 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
2761 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
2762 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
2763 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
2764 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
2765 * data/seekoff-1.tst: Remove.
2766 * data/seekoff-1io.tst: New.
2767 * data/seekoff-1out.tst: New.
2768 * data/seekoff-2.tst: Remove.
2769 * data/seekoff-2io.tst: New.
2770 * data/seekoff-2out.tst: New.
2772 * data/seekpos-1.tst: Remove.
2773 * data/seekpos-1io.tst: New.
2774 * data/seekpos-1out.tst: New.
2775 * data/seekpos-2.tst: Remove.
2776 * data/seekpos-2io.tst: New.
2777 * data/seekpos-2out.tst: New.
2778 * data/seekpos.txt: New.
2780 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
2782 * src/locale.cc (__use_cache<numpunct>): Move from here ...
2783 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
2786 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2788 * include/bits/stl_algobase.h: Fully qualify standard
2789 functions with std::, thus avoiding Koenig lookup.
2791 2003-06-30 Doug Gregor <dgregor@apple.com>
2793 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
2794 subscripting empty string.
2796 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
2798 * testsuite/Makefile.am (check-am): Do not override.
2799 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
2800 * testsuite/Makefile.in: Regenerate.
2802 2003-06-30 Doug Gregor <dgregor@apple.com>
2804 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
2805 Don't initialize an insert_iterator with a singular iterator.
2807 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
2809 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
2810 * aclocal.m4: Regenerate.
2811 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
2812 GLIBCPP_ENABLE_PCH, default to yes.
2813 * configure: Regenerate.
2814 * docs/html/configopts.html: Add --enable-pch.
2816 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
2818 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
2819 (libstdc++-v3-init): Also set LD_RUN_PATH.
2821 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2823 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
2824 from here to filebuf and stringbuf.
2825 (~basic_streambuf()): Don't set _M_mode.
2826 (basic_streambuf()): Don't set _M_mode.
2827 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
2828 (~basic_filebuf()): Clean up.
2829 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
2830 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
2831 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
2832 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
2833 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
2834 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
2835 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
2837 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2839 * include/std/std_fstream.h (_M_underflow): Remove.
2840 (uflow): Remove, inherited from streambuf.
2841 (underflow): Only declare.
2842 * include/bits/fstream.tcc (_M_underflow): Rename to
2843 underflow, to which is equivalent for __bump == false,
2845 * include/std/std_sstream.h (_M_underflow): Remove.
2846 (uflow): Remove, inherited from streambuf.
2847 (underflow): Only declare.
2848 * include/bits/sstream.tcc (_M_underflow): Rename to
2849 underflow, to which is equivalent for __bump == false,
2852 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2854 * include/bits/stl_algo.h: Fully qualify standard functions
2855 with std::, thus avoiding Koenig lookup.
2857 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2859 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
2860 Improve type correctness-wise.
2861 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
2863 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
2865 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
2868 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2870 * include/std/std_streambuf.h (uflow): According to
2871 27.5.2.4.3,p16, don't check gptr() < egptr().
2873 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
2876 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
2877 (seekpos): Likewise.
2878 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
2880 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
2883 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
2885 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
2886 output name to libstdc++-v3-performance.sum.
2887 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
2888 * testsuite/Makefile.in: Regenerate.
2890 2003-06-27 Matthias Klose <doko@debian.org>
2892 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
2893 output of abi-check in libstdc++-v3-abi.sum.
2894 * testsuite/Makefile.in: Regenerate.
2896 2003-06-27 Krister Walfridsson <cato@df.lth.se>
2898 * config/os/bsd/netbsd/ctype_noninline.h
2899 (_C_ctype_): Declare.
2900 (ctype<char>::classic_table): Return _C_ctype_ + 1.
2901 (ctype<char>::ctype): Use classic_table.
2903 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
2904 Nathan C. Myers <ncm-nospam@cantrip.org>
2907 * include/bits/fstream.tcc (_M_underflow): Properly estimate
2908 the worst-case number of external bytes for a given get area.
2909 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
2911 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
2912 Petur Runolfsson <peturr02@ru.is>
2915 * include/bits/fstream.tcc (overflow): Properly estimate the
2916 worst-case number of external bytes for a given put area
2917 (by using codecvt::max_length()).
2918 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
2919 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
2920 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
2921 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
2923 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
2925 * config/linker-map.gnu: Remove ; after __numpunct_cache.
2927 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
2929 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
2930 to the imbued locale.
2931 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
2933 (num_put::_M_convert_float): Use.
2935 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
2936 Jerry Quinn <jlquinn@optonline.net>
2938 * config/linker-map.gnu: Add __numpunct_cache.
2939 * config/locale/gnu/numeric_members.cc
2940 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
2941 all elements for "C" locale.
2942 (numpunct::~numpunct): Delete _M_data.
2943 * config/locale/generic/numeric_members.cc: Same.
2944 * include/bits/basic_ios.tcc
2945 (basic_ios::init): Remove __locale_cache bits.
2946 (basic_ios::_M_cache_locale): Same.
2947 * include/bits/ios_base.h: Same. Tweaks.
2948 * include/bits/locale_classes.h: Tweaks. Reorder classes.
2949 (__use_cache): Make friends with _Impl, locale.
2950 (_Impl::_M_caches): Add.
2951 (_Impl::_M_install_cache): Add.
2952 * include/bits/locale_facets.h (__numpunct_cache): New.
2953 (numpunct): Encapsulate data members in __numpunct_cache member,
2954 _M_data. Adjust virtuals.
2955 (numpunct::numpunct): New ctor for the same.
2956 (__locale_cache_base): Remove.
2957 (__locale_cache): Remove.
2958 * include/bits/locale_facets.tcc (__use_cache): New function,
2960 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
2961 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
2962 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
2963 * src/locale-inst.cc: Same. Add __numpunct_cache.
2964 * src/locale.cc: Tweak inlines.
2965 (__use_cache): Define specializations.
2966 * src/localename.cc: Use global bits.
2967 (_Impl::~Impl): Deal with __numpunct_cache destruction.
2968 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
2969 (_Impl::_M_init_facet): Take into account __numpunct_cache.
2970 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
2971 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2973 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
2974 Paolo Carlini <pcarlini@unitus.it>
2976 * testsuite/performance/filebuf_copy.cc: New, testing char
2979 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
2980 Nathan C. Myers <ncm-nospam@cantrip.org>
2982 * include/bits/fstream.tcc (_M_underflow): When the actual
2983 end of file is reached, set 'uncommitted' mode to allow a
2984 next write without an intervening seek (see C++98 27.8.1.1,2
2986 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
2988 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
2990 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
2991 sputc): Move inline, from here...
2992 * include/std/std_streambuf.h: ... to here.
2994 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
2995 sputbackc, sungetc, sputc): Use __builtin_expect.
2997 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
2999 * docs/doxygen/mainpage.html: Use a useful title.
3001 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3003 * docs/html/documentation.html: Remove assignment info.
3004 * docs/html/17_intro/contribute.html: Edits.
3005 * docs/html/17_intro/libstdc++-assign.tx: Remove.
3007 * docs/html/test.html: Update.
3011 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3012 Ulrich Drepper <drepper@redhat.com>
3014 * testsuite/testsuite_performance.h: Tweak mallinfo.
3016 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
3017 Nathan C. Myers <ncm-nospam@cantrip.org>
3019 * include/std/std_fstream.h (_M_filepos): Remove.
3020 (_M_reading, _M_writing): New, encode the various I/O modes:
3021 'read', 'write' and 'uncommitted'.
3022 (sync): If there is something to flush, do it, then go to
3024 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
3025 with three different cases: __off > 0 (upon underflow),
3026 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
3028 (_M_underflow): Don't call overflow, set _M_reading to true
3030 (pbackfail): Set _M_reading to true on pback creation, tweak.
3031 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
3032 set _M_writing to true on success, tweak.
3033 (seekoff): Simplify, set _M_reading, _M_writing to false, call
3034 _M_set_buffer(-1) ('uncommitted').
3035 (open, close, setbuf): Set _M_reading, _M_writing to false and
3036 call _M_set_buffer(-1), tweak.
3037 (basic_filebuf): Don't set _M_buf_unified.
3038 (_M_destroy_internal_buffer): Don't call setg and setp.
3039 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
3040 _M_writing and _M_set_buffer(-1).
3041 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
3042 _M_out_lim, _M_buf_unified): Remove.
3043 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
3044 (setp): Don't set _M_out_lim.
3045 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
3046 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
3047 upon open the mode is 'uncommitted' and therefore the put area
3049 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
3050 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
3051 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
3052 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
3053 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
3054 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
3055 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3056 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
3057 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
3058 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
3059 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
3060 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
3061 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
3062 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
3063 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
3064 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
3065 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
3066 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
3067 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
3068 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
3070 * include/bits/fstream.tcc (showmanyc): Use only the
3071 documented derivation interface to basic_streambuf (gptr(),
3072 setg(), etc.) to work right with user specializations.
3073 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3074 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
3075 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
3077 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
3080 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
3082 * configure.host (freebsd*): Set abi_baseline_pair.
3083 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
3084 (at or near first release) to 3.3.
3085 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
3086 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
3087 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
3089 * include/ext/mt_allocator.h: Portability.
3090 * testsuite/testsuite_performance.h: Likewise.
3092 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
3094 * docs/html/17_intro/libstdc++-assign.txt: Update address.
3096 * testsuite/performance/ifstream_getline.cc: Fix.
3098 2003-06-23 Doug Gregor <dgregor@apple.com>
3100 * include/bits/boost_concept_check.h: Don't use _D or _R for type
3103 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
3104 Nathan C. Myers <ncm-nospam@cantrip.org>
3106 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
3107 is now used only for filebuf, when _M_buf_unified is true.
3108 epgtr() plays the role of _M_out_lim but it's only updated
3109 upon overflow, underflow, uflow, seekoff/pos.
3110 * include/bits/sstream.tcc (_M_underflow): New, implements
3111 stringbuf::underflow and uflow.
3112 (seekoff, seekpos): Tweak, use _M_update_egptr.
3113 * include/std/std_sstream.h (str): Rewrote, deal correctly
3114 with the new logic, in particular, when pptr() > egptr().
3115 (_M_sync): When __testout && !__testin set all the get area
3116 pointers to the current string end.
3117 (_M_update_egptr): New, internal function updating egptr()
3118 to the actual string end.
3119 (_M_underflow): New, declare.
3120 (underflow): Dispatch to _M_underflow(false).
3121 (uflow): Dispatch to _M_underflow(true).
3123 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
3124 seekpos): Use only the documented derivation interface to
3125 basic_streambuf (gptr(), setg(), etc.) to work right with
3126 user specializations.
3127 * include/std/std_sstream.h (str, _M_sync): Likewise.
3129 2003-06-20 Doug Gregor <dgregor@apple.com>
3131 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
3132 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
3133 dereference end iterator.
3134 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
3135 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
3136 index equal to the length of a string.
3137 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
3138 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
3139 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
3140 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
3141 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
3142 * testsuite/23_containers/list_modifiers.cc: Don't dereference
3143 singular reverse iterator.
3144 * testsuite/23_containers/vector_bool.cc: Don't increment singular
3146 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
3148 2003-06-20 Doug Gregor <dgregor@apple.com>
3150 * include/bits/basic_string.h (basic_string::replace): Dispatch
3151 _InputIterator version based on _Is_integer.
3152 * include/bits/basic_string.tcc (basic_string::replace):
3153 Renamed replace(iterator, iterator, size_type, _CharT) to
3155 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
3156 Test basic_string::assign(_InputIterator, _InputIterator),
3157 which calls basic_string::replace(iterator, iterator,
3158 _Input_iterator, _InputIterator).
3160 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
3162 * testsuite/testsuite_performance.h (resource_counter): Don't use
3163 mallinfo at the moment.
3165 2003-06-20 Matthias Klose <doko@debian.org>
3167 * configure.host: Set try_cpu to target_cpu for existing
3170 2003-06-19 Andreas Jaeger <aj@suse.de>
3172 * testsuite/Makefile.am (extract_symvers): Revert accidental
3174 * testsuite/Makefile.in: Regenerate.
3176 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
3177 * configure: Regenerated.
3179 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
3181 * include/std/std_sstream.h (_M_sync): Make non virtual.
3183 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
3185 * testsuite/testsuite_performance.h (time_counter): New.
3186 (resource_counter): New.
3187 (report_performance): New.
3188 (start_counters): New.
3189 (stop_counters): New.
3190 (clear_counters): New.
3191 * testsuite/performance/allocator.cc: Instrument.
3192 * testsuite/performance/cout_insert_int.cc: Same.
3193 * testsuite/performance/complex_norm.cc: Same.
3194 * testsuite/performance/filebuf_sputc.cc: New.
3195 * testsuite/performance/fstream_seek_write.cc: Same.
3196 * testsuite/performance/ifstream_getline.cc: Same.
3197 * testsuite/performance/map_create_fill.cc: Same.
3198 * testsuite/performance/ofstream_insert_float.cc: Same.
3199 * testsuite/performance/ofstream_insert_int.cc: Same.
3200 * testsuite/performance/string_append.cc: Convert.
3201 * scripts/check_performance: New.
3202 * testsuite/Makefile.am (check-performance): New.
3205 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
3206 Benjamin Kosnik <bkoz@redhat.com>
3208 * include/std/std_sstream.h (setbuf): Check __n >= 0.
3209 * include/bits/fstream.tcc (setbuf): Tweak.
3211 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
3213 * include/bits/sstream.tcc (seekoff): We can't seek beyond
3214 _M_out_lim, therefore _M_move_out_cur boils down to simply
3215 updating _M_out_cur.
3216 (seekpos): Likewise, clean up.
3218 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
3219 Paolo Carlini <pcarlini@unitus.it>
3221 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
3222 simply equivalent to the unbuffered case (0, 0) as far as
3223 _M_buf_size is concerned.
3225 2003-06-18 Andreas Jaeger <aj@suse.de>
3227 * testsuite/Makefile.am (new-abi-baseline): Create baseline
3229 (baseline_file): Use baseline_dir.
3230 (baseline_dir): New.
3231 (mkinstalldirs): New.
3233 * acinclude.m4: Rename baseline_file to baseline_dir, strip
3234 filename from baseline_dir.
3236 * testsuite/Makefile.in: Regenerated.
3237 * Makefile.in: Regenerated.
3238 * aclocal.m4: Regenerated.
3239 * configure: Regenerated.
3241 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3243 * configure.in: Missed check_survey bit.
3244 * configure: Regenerated.
3246 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3249 * config/abi/extract_symvers: Move to...
3250 * scripts/extract_symvers: ...here.
3251 * mkcheck.in: Move to..
3252 * scripts/check_survey.in: ...here.
3253 * testsuite_flags.in: Move to..
3254 * scripts/testsuite_flags.in: ...here.
3255 * configure.in: Change check and testsuite_flags locations.
3256 * configure: Regenerate.
3257 * testsuite/Makefile.am (current_symbols.txt): Change location.
3258 * testsuite/Makefile.in: Regenerate.
3259 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3260 location of testsuite_flags.
3261 * Makefile.am (check-script): Move..
3262 (check-script-install): Move...
3263 * testsuite/Makefile.am: ... here.
3264 * testsuite/Makefile.in: Regenerate.
3265 * Makefile.in: Regenerate.
3267 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3269 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
3271 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
3273 * Makefile.am (check-abi): Move...
3274 (new-abi-baseline): Move...
3275 * testsuite/Makefile.am: ...here.
3276 (new-abi-baseline): Conditionalize.
3277 (check-abi): Conditionalize.
3278 (check-abi-verbose): New.
3279 * Makefile.in: Regenerate.
3280 * testsuite/Makefile.in: Regenerate.
3281 * configure.in: Consolidate testsuite configure bits.
3282 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
3283 * configure: Regenerate.
3284 * aclocal.m4: Regenerate.
3285 * testsuite/abi_check.cc: Add --check-verbose.
3286 Only output detailed information if --check-verbose.
3288 2003-06-16 Andreas Jaeger <aj@suse.de>
3290 * testsuite/abi_check.cc: Create summary report.
3292 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
3294 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
3295 for systems with BUFSIZ != 8192.
3296 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3297 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
3300 2003-06-16 Andreas Jaeger <aj@suse.de>
3302 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
3303 check-abi multilib aware.
3304 * aclocal.m4: Regenerate.
3305 * configure: Regenerate.
3307 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
3308 Andreas Jaeger <aj@suse.de>
3310 * configure.host: Set x86_64 abi_baseline pair correctly.
3312 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
3314 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
3315 fix for missing seeks between gets and puts into...
3316 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
3317 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
3318 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
3319 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
3320 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
3321 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
3323 2003-06-15 Richard Henderson <rth@redhat.com>
3325 * config/linker-map.gnu: Export virtual function thunks for
3328 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
3330 * config/abi/i686-pc-linux-gnu: To..
3331 * config/abi/i486-linux-gnu: ...this.
3332 * config/abi/alphaev67-unknown-linux-gnu: To..
3333 * config/abi/alpha-linux-gnu: ...this.
3334 * config/abi/ia64-unknown-linux-gnu: To...
3335 * config/abi/ia64-linux-gnu: ...this.
3336 * config/abi/x86_64-unknown-linux-gnu: To...
3337 * config/abi/x86_64-linux-gnu: ...this.
3338 * config/abi/i386-unknown-freebsd4: To...
3339 * config/abi/i386-freebsd4: ...this.
3340 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
3342 * configure.host: abi_baseline_triplet to abi_baseline_pair.
3343 Simplify cpu bits so that abi_baseline_pair can use the same
3345 * acinclude.m4: Same.
3346 * aclocal.m4: Regenerate.
3347 * configure.in: Can't get enable_abi_check to yes unless native.
3348 * configure: Regenerate.
3350 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
3352 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
3353 fix for missing seeks between gets and puts into...
3354 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
3355 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
3356 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
3357 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
3358 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
3359 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
3360 for missing seeks between gets and puts.
3361 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
3362 * testsuite/data/seekoff-1.tst: New.
3363 * testsuite/data/seekoff-2.tst: New.
3364 * testsuite/data/seekpos-1.tst: New.
3365 * testsuite/data/seekpos-2.tst: New.
3367 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
3369 Avoid multi-processor bus contention on increment/decrement-and-
3370 test of the reference count in the empty-string object, by comparing
3371 addresses first, and never touching the reference count of the empty-
3373 * include/bits/basic_string.h:
3374 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
3376 (_Rep::_S_empty_rep()): New accessor.
3377 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
3378 a base class _Rep_base.
3379 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
3380 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
3381 since no longer must increment its refcount.
3382 * include/bits/basic_string.tcc:
3383 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
3384 return immediately. The former might be unnecessary. The latter
3385 prevents begin() and end() from cloning it unnecessarily.
3386 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3387 input_iterator_tag), _S_construct(_InIterator, _InIterator,
3388 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
3389 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
3390 (_M_mutate): Check for the empty string and treat it as shared.
3391 This is necessary here because _M_mutate is sometimes called with
3392 all-zero arguments; in all other uses of _M_is_shared, the test comes
3395 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
3397 * src/allocator-inst.cc: Explicitly instantiate.
3398 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
3400 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
3402 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
3404 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
3405 * aclocal.m4: Regenerate.
3406 * Makefile.am (SUBDIRS): Remove libio.
3407 * Makefile.in: Regenerate.
3408 * configure.in: Same.
3409 * configure: Regenerate.
3410 * config/io/basic_file_libio.cc: Remove.
3411 * config/io/basic_file_libio.h: Remove.
3412 * config/io/c_io_libio_codecvt.c: Remove.
3413 * config/io/c_io_libio.h: Remove.
3415 * src/Makefile.am: Same.
3416 * src/Makefile.in: Regenerate.
3417 * docs/html/configopts.html: Edits.
3418 * docs/html/explanations.html: Edits.
3420 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
3422 * include/bits/stl_alloc.h (__debug_alloc): Move out.
3423 (__malloc_alloc): Same.
3424 (__pool_alloc): Same.
3425 (__new_alloc): Same.
3427 * include/bits/allocator.h: ...this.
3428 * include/bits/stl_deque.h: Modify comment.
3429 * include/bits/stl_tree.h: Modify include.
3430 * include/std/std_memory.h: Same.
3431 * include/ext/rope: Same.
3432 * include/ext/slist: Same.
3433 * include/std/std_vector.h: Same.
3434 * include/std/std_stack.h: Same.
3435 * include/std/std_queue.h: Same.
3436 * include/std/std_list.h: Same.
3437 * include/std/std_deque.h: Same.
3438 * include/backward/alloc.h: Same.
3439 * include/ext/debug_allocator.h: New.
3440 * include/ext/malloc_allocator.h: New.
3441 * include/ext/pool_allocator.h: New.
3442 * include/ext/new_allocator.h: New.
3443 * include/bits/pthread_allocimpl.h: Remove.
3444 * include/bits/stl_pthread_alloc.h: Remove.
3445 * include/Makefile.am (ext_headers): Add.
3446 * include/Makefile.in: Regenerate.
3447 * src/stl-inst.cc: Use __gnu_cxx namespace.
3448 * src/stl-inst.cc: Move to...
3449 * src/allocator-inst.cc: Here.
3450 * src/Makefile.am (sources): Update.
3451 * src/Makefile.in: Regenerate.
3452 * config/linker-map.gnu: Remove __pool_alloc bits.
3453 * testsuite/ext/headers.cc: Add.
3454 * testsuite/ext/allocators.cc: Fixup.
3456 2003-06-11 Stefan Olsson <stefan@snon.net>
3457 Ola Rönnerup <fnolis@home.se>
3459 * include/Makefile.am (ext_headers): Add.
3460 * include/Makefile.in: Regenerate.
3461 * include/ext/mt_allocator.h: New file.
3463 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3465 * include/bits/fstream.tcc (close): Clean up a bit.
3467 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
3469 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
3470 - the saved _M_in_cur, that is - cannot be null.
3471 (sync): Constify a variable.
3473 * include/std/std_streambuf.h: Tweak a comment.
3474 (in_avail): Constify a variable.
3476 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
3478 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
3479 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
3480 correctness of container::iterator typedefs. Fix whitespace.
3481 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
3483 * docs/html/documentation.html: Regenerate.
3485 * include/bits/basic_string.h, include/bits/basic_string.tcc,
3486 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
3487 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3488 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
3489 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
3490 include/bits/stl_vector.h, include/bits/vector.tcc,
3491 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
3492 Change _Iter names to _Iterator, and __pos to __position.
3494 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
3495 include/bits/stl_multiset.h, include/bits/stl_set.h:
3496 Remove emacs markers.
3498 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
3500 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3502 * include/bits/fstream.tcc (overflow): According to
3503 27.5.2.4.5, overflow() returns not_eof(eof()).
3504 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
3505 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
3507 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3509 * include/bits/fstream.tcc (_M_underflow): Check overflow return
3510 value; tweak slightly.
3512 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
3514 * include/bits/fstream.tcc (_M_underflow): Do not special
3515 case the unbuffered case, which really means simply a one char
3517 (basic_filebuf): Initialize _M_buf_size.
3518 (setbuf): Unbuffered means _M_buf_size == 1, since only
3519 _M_buf_size - 1 == 0 chars are going to be used for the
3520 put area and 1 for the get area.
3521 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
3522 (~basic_streambuf): Tweak.
3523 (basic_streambuf): Do not initialize _M_buf_size.
3524 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
3525 (~basic_filebuf): Tweak.
3526 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
3527 unbuffered situation (i.e., put area pointers NULL).
3528 * include/bits/streambuf.tcc (sbumpc): Clean up.
3529 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
3530 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
3531 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
3532 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
3533 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
3534 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
3535 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
3537 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
3539 * acinclude.m4: Move all AM_CONDITIONAL calls out.
3540 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
3542 * configure.in: Centralize AM_CONDITIONALs so that they are always
3543 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
3544 * aclocal.m4, configure: Regenerated.
3546 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
3548 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
3550 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
3552 * include/bits/stl_iterator.h
3553 (reverse_iterator::reverse_iterator()): Apply DR235: default
3554 constructor default-initializes data member. Instantiated on a
3555 pointer type, the member has to end up equal to zero.
3557 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
3559 * include/bits/stl_alloc.h: Cleanups.
3560 * include/ext/functional: Same.
3561 * include/ext/hash_map: Same.
3562 * include/ext/hash_set: Same.
3563 * include/ext/iterator: Same.
3564 * include/ext/memory: Same.
3565 * include/ext/numeric: Same.
3566 * include/ext/rb_tree: Same.
3567 * include/ext/ropeimpl.h: Same.
3568 * include/ext/slist: Same.
3569 * include/ext/stdio_filebuf.h: Same.
3570 * include/ext/stdio_sync_filebuf.h: Same.
3571 * include/ext/stl_rope.h: Move to...
3572 * include/ext/rope: ...here.
3573 * include/ext/stl_hash_fun.h: Move to...
3574 * include/ext/hash_fun.h: ...here.
3575 * include/ext/stl_hashtable.h: Move to...
3576 * include/ext/hashtable.h: ...here.
3577 * include/backward/hashtable.h: Reflect new names.
3578 * include/Makefile.am: Same.
3579 * include/Makefile.in: Regenerated.
3581 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
3584 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
3585 * include/bits/stl_algobase.h: Tweak.
3586 * include/std/std_fstream.h: Move _M_buf_size to...
3587 * include/std/std_streambuf.h: ...here. Modify.
3588 * include/bits/streambuf.tcc: Same.
3589 * testsuite/testsuite_hooks.h: Tweak.
3590 * testsuite/testsuite_io.h (constraint_filebuf): New.
3591 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
3592 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
3593 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
3594 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
3595 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
3596 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
3597 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
3598 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
3599 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
3600 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
3601 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
3602 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
3603 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
3604 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
3605 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
3606 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
3607 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
3608 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
3609 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
3610 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
3611 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
3612 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
3613 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
3614 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
3615 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
3616 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
3617 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
3618 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
3619 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
3620 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
3621 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
3622 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
3623 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
3624 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
3625 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
3626 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
3627 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
3628 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
3629 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
3630 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
3631 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
3632 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
3633 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
3634 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
3635 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
3636 * testsuite/data/sgetc.txt: New.
3637 * testsuite/data/sgetn.txt: New.
3639 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
3642 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
3643 Deal with width() smaller than zero.
3644 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
3645 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
3646 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
3647 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
3648 operator<<(basic_ostream, const basic_string&)): Likewise.
3650 * testsuite/27_io/basic_istream/extractors_character/char/
3651 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3652 * testsuite/27_io/basic_ostream/inserters_character/char/
3653 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3654 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
3655 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
3657 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3659 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
3660 .gch compilation works.
3661 * aclocal.m4, configure: Regenerate.
3662 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
3663 initialize PCHFLAGS.
3665 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
3667 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
3668 erase(iterator), erase(iterator, iterator), c_str,
3669 compare(const basic_string&)): Constify various variables.
3670 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
3671 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
3672 _S_create, resize, _M_replace, _M_replace_safe,
3673 append(const basic_string&), append(const basic_string&, size_type,
3674 size_type), append(const _CharT*, size_type), append(size_type,
3675 _CharT), operator+(const _CharT*, const basic_string&),
3676 operator+(_CharT, const basic_string&), replace(iterator, iterator,
3677 size_type, _CharT), find(const _CharT*, size_type, size_type),
3678 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
3679 rfind(_CharT, size_type), compare(size_type, size_type,
3680 const basic_string&), compare(size_type, size_type,
3681 const basic_string&, size_type, size_type), compare(const _CharT*),
3682 compare(size_type, size_type, const _CharT*), compare(size_type,
3683 size_type, const _CharT*, size_type)): Likewise.
3685 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
3687 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
3688 'if' branch less obscure.
3690 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
3693 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
3695 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
3696 (__atomic_add): likewise.
3698 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3700 * include/bits/sstream.tcc (pbackfail): Minor clean up and
3701 reformatting, consistent with basic_filebuf::pbackfail.
3703 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
3706 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
3707 __attribute__ ((__unused__)).
3708 * config/os/aix/atomicity.h: Likewise.
3710 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3713 * include/bits/fstream.tcc (pbackfail): If the pback buffer
3714 is already active don't try to store in it a second char.
3715 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
3717 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
3719 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3721 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
3724 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3726 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
3727 instead of unnecessarily taking the address of _M_pback.
3728 (xsgetn): Simplify slightly for a single char pback buffer.
3730 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3732 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
3733 variables and two 'if', clean up.
3735 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3737 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
3738 not _M_out_end, since the former actually points to the string
3739 end (vs buffer end).
3740 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
3742 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
3744 * docs/doxygen/filter: New file.
3745 * docs/doxygen/filter.sed: New file.
3746 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
3747 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
3748 * docs/html/documentation.html: Fix links to doxygen pages.
3750 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
3752 * include/bits/fstream.tcc (_M_convert_to_external): Don't
3753 check for __ilen > 0.
3755 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
3758 * include/bits/stl_iterator.h (class __normal_iterator):
3759 Don't inherit from iterator, add missing typedefs.
3761 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
3763 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
3764 * testsuite/24_iterators/reverse_iterator/1.cc: New.
3765 * testsuite/24_iterators/reverse_iterator/2.cc: New.
3766 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
3769 2003-05-27 Steve Ellcey <sje@cup.hp.com>
3771 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
3773 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
3774 _LIBUNWIND_STD_ABI is set.
3776 2003-05-26 Brendan Kehoe <brendan@zen.org>
3778 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
3779 make sure the number of digits required after the decimal-point
3780 (if any) is exactly the value returned by frac_digits().
3781 * testsuite/22_locale/money_get/get/char/9.cc: New.
3782 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
3784 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
3786 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
3789 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
3792 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
3793 (_M_pback): No array necessary.
3794 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
3795 unbuffered case, coalesec into ...
3796 (basic_filebuf::overflow): ...this.
3797 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
3798 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
3800 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
3802 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
3803 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
3804 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
3805 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
3806 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
3807 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
3808 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
3809 libsupc++/eh_unex_handler.cc, libsupc++/exception,
3810 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
3811 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
3812 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
3813 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
3814 Replace "GNU CC" with "GCC".
3816 * include/backward/new.h: Replace "GNU CC" with "GCC".
3818 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
3821 * configure.in: Switch target to host, don't assume newlib.
3822 (target_alias): Remove.
3823 * configure: Regenerate.
3824 * acinclude.m4: Same.
3825 * aclocal.m4: Regenerate.
3826 * configure.target: Same. Rename to...
3827 * configure.host: This.
3829 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
3831 * include/std/std_fstream.h (_S_pback_size): Remove definition.
3832 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
3834 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
3835 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
3836 of _S_pback_size for systems with no COMDAT or weak support.
3837 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
3838 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
3839 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
3840 * testsuite/27_io/basic_fstream/3.cc: Likewise.
3841 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3842 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
3843 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
3844 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
3845 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
3847 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
3849 * include/bits/fstream.tcc (_M_underflow): Simplify:
3850 !__testout implies _M_filepos == _M_in_end, therefore
3851 the first _M_file.seekoff call is never issued.
3853 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
3855 * configure.in: Sort cross table.
3856 * configure: Regenerate.
3858 2003-05-22 Brad Spencer <spencer@infointeractive.com>
3861 * configure.in: Add Solaris cross bits.
3863 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
3865 * libstdc++-v3/config/os/mingw32/os_defines.h
3866 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
3867 (NOMINMAX): Define. Update copyright year.
3869 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
3871 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
3873 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
3875 * docs/html/faq/index.html: Fix typo.
3876 * docs/html/faq/index.txt: Regenerate.
3878 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
3880 * docs/html/test.html: Fix markup.
3882 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
3884 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
3886 Update copyright year.
3888 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
3890 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
3892 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
3894 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
3895 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
3897 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3899 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
3900 Cast via void* to avoid -Wcast-align warnings.
3901 (__default_alloc_template::_S_refill): Likewise.
3903 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
3905 * testsuite/README: Move to...
3906 * docs/html/test.html: ...here. Add documentation.
3907 * docs/html/install.html: Move testing bits out..
3908 * docs/html/documentation.html: Add separate testing link.
3909 * testsuite/performance: Add.
3910 * testsuite/performance/allocator.cc: New.
3911 * testsuite/performance/complex_norm.cc: New.
3912 * testsuite/performance/cout_insert_int.cc: New.
3913 * testsuite/performance/fstream_seek_write.cc: New.
3914 * testsuite/performance/ifstream_getline.cc: New.
3915 * testsuite/performance/map_create_fill.cc: New.
3916 * testsuite/performance/ofstream_insert_float.cc: New.
3917 * testsuite/performance/ofstream_insert_int.cc: New.
3918 * testsuite/performance/string_append.cc: New.
3919 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
3922 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
3925 * include/std/std_complex.h (pow): Tidy.
3927 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
3929 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
3930 that upon filebuf::close() 27.8.1.1,3 is enforced.
3932 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
3934 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
3936 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
3937 Nathan Myers <ncm@cantrip.org>
3939 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
3940 _M_convert_to_external only once (_M_buf_size is now the size of
3941 the put area + 1 for the overflow char of a full area); call
3942 _M_set_buffer instead of _M_set_indeterminate.
3943 (setbuf): Don't accept a buffer smaller than 2 chars.
3944 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
3945 instead of _M_set_determinate.
3946 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
3947 (seekoff): Likewise.
3948 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
3949 std::ios_base::openmode, bool, size_t),
3950 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
3952 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
3953 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
3955 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
3956 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
3957 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
3958 the put area is now BUFSIZ - 1.
3959 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
3960 that now the smallest _M_buf_size is 2 (still fails, for the same
3963 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
3965 * testsuite/thread/pthread4.cc: Tweak test.
3967 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
3969 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
3970 excess errors dg marker, use dg-errors instead.
3971 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
3972 * testsuite/20_util/auto_ptr_neg.cc: Same.
3974 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
3976 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
3978 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
3979 Initialize _M_codecvt.
3980 (basic_filebuf::imbue): Same.
3981 (basic_filebuf::showmanyc): Use it.
3982 (basic_filebuf::underflow): Use it.
3983 (basic_filebuf::_M_convert_to_external): Use it.
3984 (basic_filebuf::seekoff): Use it.
3985 (basic_filebuf::imbue): Use it, tweaks.
3986 * include/bits/localefwd.h (__check_facet): New.
3987 * include/bits/locale_classes.h: Tweaks.
3988 * include/bits/locale_facets.tcc: Tweaks.
3989 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
3990 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
3991 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
3992 * include/bits/basic_ios.tcc: Same.
3993 * include/bits/istream.tcc: Same.
3994 * include/bits/ostream.tcc: Same.
3995 * include/std/std_streambuf.h: Same.
3996 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
3997 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
3998 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
3999 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
4000 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
4001 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
4003 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
4005 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
4006 unnecessary includes and unused string literals.
4007 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
4008 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
4009 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
4010 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
4012 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4014 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
4016 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
4018 * include/std/std_fstream.h (_M_convert_to_external): Change
4019 to return bool, take two less streamsize parameters.
4020 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
4021 consistently definition.
4022 (_M_overflow): Adjust call points.
4024 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4026 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
4028 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
4030 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
4031 * testsuite/Makefile.in: Regenerate.
4033 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
4035 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
4036 * testsuite/Makefile.in: Regenerate.
4038 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4041 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
4042 (acos): Handle integer argument.
4061 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
4062 (__enable_if): Likewise.
4063 * testsuite/26_numerics/cmath/overloads.C: New test.
4065 2003-05-10 Petur Runolfsson <peturr02@ru.is>
4070 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
4071 implementation, based on old wchar_t specialization, add support
4072 for codecvt::in() return value of codecvt_base::noconv, remove
4073 _M_file.sys_ungetc() call.
4074 * include/std/std_fstream.h (basic_file::underflow,
4075 basic_file::uflow, basic_file::_M_underflow): Remove
4076 specialization declarations, call _M_underflow from generic versions
4077 of underflow and uflow.
4078 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
4079 basic_file::_M_underflow): Remove specializations.
4080 * src/Makefile.am (sources): Remove fstream.cc.
4081 * src/Makefile.in: Regenerated.
4082 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
4083 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
4084 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
4085 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
4087 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
4089 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
4091 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
4093 (__basic_file::xsputn): Same.
4094 (__basic_file::seekoff): Same.
4095 (__basic_file::seekpos): Same.
4096 (__basic_file::showmanyc): Same.
4097 * config/io/basic_file_stdio.cc: Same.
4098 * include/std/std_fstream.h: Same.
4099 * include/bits/fstream.tcc: Same.
4100 * src/fstream.cc: Same.
4101 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
4103 2003-05-10 Petur Runolfsson <peturr02@ru.is>
4108 * include/ext/stdio_sync_filebuf.h: New file.
4109 (basic_stdiobuf): New.
4110 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
4111 * include/Makefile.in: Regenerate.
4112 * include/bits/ios_base.h (Init::_S_create_buffers,
4113 Init::_S_destroy_buffers): Remove declarations.
4114 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
4115 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
4116 * src/ios.cc (Init::_S_create_buffers,
4117 Init::_S_destroy_buffers): Remove.
4118 (Init::Init): Create and use syncronized buffers.
4119 (ios_base::sync_with_stdio): Destroy syncronized buffers,
4120 create and install unsyncronized buffers.
4121 * testsuite/27_io/objects/char/10.cc: New test.
4122 * testsuite/27_io/objects/char/9.cc: New test.
4123 * testsuite/27_io/objects/char/9661-1.cc: New test.
4124 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
4125 * testsuite/27_io/objects/char/9661-2_xin.in: New.
4126 * testsuite/27_io/objects/wchar_t/1.cc: New test.
4127 * testsuite/27_io/objects/wchar_t/10.cc: New test.
4128 * testsuite/27_io/objects/wchar_t/2.cc: New test.
4129 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
4130 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
4131 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
4132 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
4133 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
4134 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
4135 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
4136 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
4137 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
4138 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
4139 * testsuite/27_io/objects/wchar_t/5.cc: New test.
4140 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
4141 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
4142 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
4143 * testsuite/27_io/objects/wchar_t/6.cc: New test.
4144 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
4145 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
4146 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
4147 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
4148 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
4149 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
4150 * testsuite/27_io/objects/wchar_t/7.cc: New test.
4151 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
4152 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
4153 * testsuite/27_io/objects/wchar_t/8.cc: New test.
4154 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
4155 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
4156 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
4157 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
4158 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
4159 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
4160 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
4161 * testsuite/ext/stdiobuf_char.cc: New test.
4162 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
4164 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
4166 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
4167 unnecessary includes and unused string literals.
4168 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
4170 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
4172 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
4174 2003-05-07 Richard Henderson <rth@redhat.com>
4177 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
4178 (__cxa_end_catch): Likewise.
4179 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
4180 _Unwind_Resume_or_Rethrow.
4181 * libsupc++/eh_personality.cc (empty_exception_spec): New.
4182 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
4183 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
4184 exceptions. Don't push terminate/unexpected to cxa functions.
4185 (__cxa_call_unexpected): Remove foreign exception fixmes.
4187 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
4189 * testsuite/27_io/ios_base/cons: New.
4190 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
4191 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
4193 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
4195 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
4197 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
4198 there is no buffer or __testget == !__testinit.
4201 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
4202 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
4204 * include/std/std_fstream.h (_M_destroy_pback): Don't set
4205 unnecessarily _M_pback_cur_save and _M_pback_end_save.
4207 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
4209 * include/std/std_sstream.h (_M_sync): Minor tweak.
4211 * include/bits/fstream.tcc (close): No need to call
4212 _M_destroy_pback, setting _M_pback_init to false suffices
4215 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
4217 * include/bits/stl_algo.h: Enums as _S_.
4218 * include/bits/stl_tree.h: Same.
4219 * include/bits/stl_bvector.h: Same.
4220 * include/bits/ios_base.h: Same.
4221 * include/bits/stl_alloc.h: Same.
4222 * include/ext/stl_hashtable.h: Same.
4223 * src/ios.cc: And here.
4225 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
4226 * include/bits/sstream.tcc: Same.
4228 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
4230 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
4232 * include/bits/locale_facets.h (__num_base): Remove protected.
4233 Use _S_[io]* names for enumerations.
4234 (_S_format_int): Remove.
4235 * include/bits/locale_facets.tcc: Same.
4236 * src/locale.cc: Same.
4238 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
4240 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
4242 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
4243 * docs/html/faq/index.txt: Regenerated.
4245 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
4246 Matt Kraai <kraai@alumni.cmu.edu>
4248 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
4251 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
4253 * configure.target (mips*): Use the generic atomicity.h by default.
4255 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
4256 (Inspired by an alternate patch from Danny Smith.)
4258 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
4259 (_Swap_lock_struct<>): ...and the horse it rode in on.
4260 * src/globals.cc (_Swap_lock_struct<>): Likewise.
4261 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
4262 member to support...
4263 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
4264 visibility rules related to POSIX threads.
4265 * testsuite/thread/pthread7-rope.cc: New test.
4267 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
4269 * testsuite/21_strings/basic_string/find/char/3.cc: New
4270 file, testing basic_string<char>::find_first_not_of.
4271 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
4272 Likewise for basic_string<wchar_t>.
4274 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
4276 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
4278 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
4280 * include/Makefile.am (CLEANFILES): Remove PCH files in target
4282 * include/Makefile.in: Regenerate.
4284 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
4286 * include/std/std_sstream.h (str()): Tidy.
4288 2003-05-02 Nathan Myers <ncm@cantrip.org>
4289 Paolo Carlini <pcarlini@unitus.it>
4291 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
4293 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
4295 * include/bits/basic_string.h (swap): Remove redundant template
4296 parameters from declaration of non-template member function.
4298 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
4300 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
4301 * configure.in: Move libintl.h header test...
4302 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
4303 the NLS-related test results into one symbol.
4304 * src/functexcept.cc: Use it here.
4305 * aclocal.m4, config.h.in, configure: Regenerated.
4307 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4309 * include/bits/sstream.tcc (overflow): Instead of calling
4310 str(), then _M_string.reserve, thus copying the contents
4311 of the current buffer two times, just copy the latter in
4312 a temporary, then use the 'swap trick'.
4314 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4316 * include/std/std_sstream.h (str()): Revert the best of the
4317 previous 'improvement', incorrect due to the COW nature of
4318 v3 basic_string; simplify.
4320 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4322 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
4323 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
4325 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
4327 * testsuite/abi_check.cc (check_version): Update known versions.
4328 Check added symbols for version_name != base version. Add missing
4329 symbols to incompatible list.
4331 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
4333 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
4334 * aclocal.m4: Regenerated.
4335 * configure: Regenerated.
4337 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4339 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
4340 Const-ify some variables.
4341 (basic_streambuf::xsputn): Likewise; change the type of some
4342 variables to size_t.
4343 (__copy_streambufs): Change some variables to size_t.
4345 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4347 * include/std/std_sstream.h (str()): Avoid constructing
4348 a basic_string temporary not only when it would turn out
4349 to be zero-sized but also when identical to the current
4352 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4354 * include/ext/stdio_filebuf.h
4355 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
4356 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
4357 Shorten a bit (-10 lines) by factoring out some code.
4359 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
4361 * acinclude.m4: Add bit missing from previous patch.
4362 * aclocal.m4, configure: Regenerated.
4364 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
4366 * docs/doxygen/mainpage.html: Bring up to date.
4367 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
4369 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
4370 breaks everything. Don't scan them.
4371 * docs/html/documentation.html: Point to "Write after approval"
4374 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
4376 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
4377 of libc if message translations are being used. Fix info text in
4378 xieee_1003.1-2001 case.
4379 * aclocal.m4, configure: Regenerate.
4381 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
4382 Loren J. Rittle <ljrittle@acm.org>
4383 Martin v. Loewis <martin@v.loewis.de>
4385 * config/cpu/i386/atomicity.h: New file.
4387 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
4389 * include/bits/fstream.tcc (open): Change to single return.
4391 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
4393 * include/std/std_sstream.h (underflow): Change to single return.
4395 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4397 * include/std/std_streambuf.h (_M_buf): is currently
4398 used only for basic_filebuf, therefore move it there.
4399 (basic_streambuf(), ~basic_streambuf()): Adjust.
4400 * include/std/std_fstream.h (_M_buf): Moved here.
4401 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
4402 is actually redundant for basic_stringbuf.
4403 (_M_really_sync): Likewise.
4404 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4405 * include/bits/sstream.tcc (seekoff): Adjust.
4407 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4409 * src/localename.cc: Standardize exception strings.
4410 * src/locale.cc: Same.
4412 * include/bits/basic_string.tcc: Same.
4413 * include/bits/basic_ios.tcc: Same.
4414 * include/std/std_bitset.h: Same.
4415 * include/ext/ropeimpl.h: Same.
4416 * include/bits/stl_vector.h: Same.
4417 * include/bits/stl_deque.h: Same.
4418 * include/bits/stl_bvector.h: Same.
4419 * config/locale/generic/c_locale.cc: Same.
4420 * config/locale/gnu/c_locale.cc: Same.
4421 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
4423 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
4425 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4427 * include/std/std_streambuf.h (_M_buf_size): is currently
4428 used only for basic_filebuf, therefore move it there.
4429 (basic_streambuf(), ~basic_streambuf()): Adjust.
4430 * include/std/std_fstream.h (_M_buf_size): Moved here.
4431 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4433 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4435 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
4436 _M_buf_size (synced input is now correctly dealt with
4437 elsewhere); when the output buffer is full don't fall back
4438 to a snextc-sputc loop, call overflow instead.
4440 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4442 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
4443 the innermost 'if' by factoring out some code.
4445 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
4447 * configure.in: Test for libintl.h.
4448 * include/bits/c++config: Define __N for everybody.
4449 * include/bits/basic_string.h, include/bits/stl_bvector.h,
4450 include/bits/stl_deque.h, include/bits/stl_vector.h,
4451 include/std/std_bitset.h: Wrap all __throw* text with __N.
4452 * po/Makefile.am (pot): New rule, mostly working.
4453 * src/functexcept.cc: Call gettext on all __throw* arguments when
4454 -fexceptions is in effect.
4455 * po/Makefile.in, config.h.in, configure: Regenerate.
4457 2003-04-28 Petur Runolfsson <peturr02@ru.is>
4460 * include/bits/ios_base.h (Init::_S_ios_create,
4461 Init::_S_ios_destroy): Remove declarations.
4462 (Init::_S_create_buffers,
4463 Init::_S_destroy_buffers): Declare
4464 * src/ios.cc (Init::_S_ios_create): Remove
4465 (Init::_S_create_buffers): Create buffers and add to streams.
4466 (Init::_S_ios_destroy): Rename to...
4467 (Init::_S_destroy_buffers): this.
4468 (Init::Init): Only construct streams once.
4469 (Init::~Init): Flush streams, don't destroy them.
4470 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
4471 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
4472 * testsuite/27_io/objects/char/5.cc: New test.
4473 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
4474 * testsuite/27_io/objects/char/6.cc: New test.
4475 * testsuite/27_io/objects/char/7.cc: New test.
4477 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4479 * testsuite/27_io/objects/char/8.cc: New test.
4481 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4483 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
4484 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
4486 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
4488 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
4489 _M_destroy_pback. _M_pback_create to
4490 _M_create_pback. _M_underflow_common to
4491 _M_underflow. _M_really_overflow to _M_overflow.
4492 * include/bits/fstream.tcc: Same.
4493 * src/fstream.cc: Same.
4494 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
4495 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
4496 * include/bits/streambuf.tcc: Same.
4497 * include/bits/fstream.tcc: Same.
4498 * include/bits/sstream.tcc: Same.
4500 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
4502 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
4503 from fixed size array.
4504 (locale): Change _S_categories as well.
4506 * include/bits/locale_facets.tcc: Tweak.
4507 * config/locale/gnu/c_locale.cc: Assign _S_categories.
4508 * config/locale/generic/c_locale.cc: Same.
4509 * src/locale.cc: Tweak.
4510 * src/globals.cc: Change facet_name to name_vec, add names_c.
4511 * src/localename.cc: Use them.
4512 (locale::_Impl::~_Impl): Destroy _M_names.
4513 (locale::_Impl::_Impl): Create _M_names.
4515 2003-04-27 Andreas Schwab <schwab@suse.de>
4517 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
4518 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
4520 2003-04-27 Nathan Myers <ncm@cantrip.org>
4522 Move some basic_string members out of line because
4523 they are too big to reasonably be inline.
4524 * include/bits/basic_string.h
4525 (assign(const basic_string&, size_type, size_type),
4526 assign(const _CharT*, size_type),
4527 insert(size_type, const basic_string&, size_type, size_type),
4528 insert(size_type, const _CharT*, size_type),
4529 replace(size_type, size_type, const _CharT*, size_type)):
4530 Move from here to...
4531 * include/bits/basic_string.tcc: ...here.
4533 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4535 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
4536 the innermost 'if' by factoring out some code.
4538 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4540 * include/bits/streambuf.tcc (__copy_streambufs): Don't
4541 use in_avail(), simplify.
4543 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4545 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
4546 in basic_stringbuf it's unused.
4548 * include/std/std_sstream.h (underflow): consistently use
4549 _M_in_cur, not gptr().
4551 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
4552 Phil Edwards <pme@gcc.gnu.org>
4554 * testsuite_flags.in: Guard against the possibility
4555 of having "xgcc" as a part of a folder name in the
4556 path to the GCC build folder.
4557 * testsuite/Makefile.am: Likewise.
4558 * testsuite/Makefile.in: Regenerated.
4560 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
4563 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
4564 exception specifications.
4565 (basic_filebuf::close): Same.
4566 (basic_filebuf::_M_pback_destroy): Same.
4567 (basic_filebuf::_M_destroy_internal_buffer): Same.
4568 (basic_filebuf): Remove __res_type typedef.
4569 * src/fstream.cc: Same.
4570 * include/bits/fstream.tcc
4571 (basic_filebuf::_M_convert_to_external): Simplify.
4572 (basic_filebuf::seekoff): Use has_facet before use_facet.
4573 (basic_filebuf::close): Add exception specification of throw().
4574 * testsuite/27_io/basic_filebuf/cons: New.
4575 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
4576 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
4577 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
4578 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
4580 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
4582 * include/bits/locale_classes.h
4583 (locale::_S_extra_categories_size): Remove.
4584 * src/locale.cc: Remove _S_extra_categories_size.
4585 * src/localename.cc: Same.
4586 * config/locale/gnu/c_locale.cc: Same.
4587 * config/locale/generic/c_locale.cc: Same.
4589 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
4591 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
4593 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
4595 * docs/html/17_intro/howto.html: Update some links.
4596 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
4597 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
4598 * docs/html/ext/howto.html: Link to demangler notes and API.
4599 * docs/html/faq/index.html: Remove trailing whitespace.
4600 (1.4, 2.4, 3.8, 4.1): Bring up to date.
4601 (5.6): Change to a bulleted list.
4603 * docs/html/faq/index.txt, docs/html/documentation.html,
4604 docs/html/17_intro/porting.html: Regenerate.
4606 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
4608 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
4609 belongs to basic_filebuf.
4610 * testsuite/27_io/basic_fstream/3.cc: Likewise.
4611 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4612 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
4613 instantiation (now belongs to basic_filebuf).
4614 * testsuite/27_io/basic_iostream/3.cc: Likewise.
4615 * testsuite/27_io/basic_istream/3.cc: Likewise.
4616 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4617 _S_pback_size now belongs to basic_filebuf.
4618 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
4619 instantiation (now belongs to basic_filebuf).
4620 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
4621 belongs to basic_filebuf.
4622 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
4623 instantiation (now belongs to basic_filebuf).
4624 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
4625 _S_pback_size now belongs to basic_filebuf.
4626 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
4627 instantiation (now belongs to basic_filebuf).
4628 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
4630 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
4631 instantiation (now belongs to basic_filebuf).
4632 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
4634 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
4636 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
4637 * configure: Regenerated.
4639 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
4641 * config/locale/generic/c_locale.h (__convert_from_v): Use
4644 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
4646 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
4647 implementation only.
4648 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
4649 Comment and change to comply with DR 60 and the effect on gcount().
4650 * include/std/std_istream.h: Update comments.
4651 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
4652 comments about reasons for tests. Test sync() against gcount().
4653 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
4654 for effect on gcount().
4655 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
4656 for effect on gcount().
4658 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
4660 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
4663 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
4665 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
4666 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4667 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
4668 (basic_streambuf::basic_streambuf()): Adjust.
4669 * include/std/std_fstream.h (_S_pback_size, _M_pback,
4670 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4671 _M_pback_create(), _M_pback_destroy()): Moved here
4672 from basic_streambuf.
4673 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
4675 (basic_filebuf::_S_pback_size): Add declaration.
4676 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
4679 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4681 Consistently use _M_in_beg instead of eback(), _M_in_cur
4682 instead of gptr(), and so on.
4683 * include/bits/fstream.tcc (pbackfail, imbue): Here.
4684 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
4685 * include/bits/streambuf.tcc (sbumpc, sputbackc,
4686 __copy_streambufs): Ditto.
4687 * include/std/std_streambuf.h (sgetc): Ditto.
4689 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4691 * include/bits/sstream.tcc (pbackfail, overflow):
4694 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4696 * include/std/std_streambuf.h (uflow()): It's used only by
4697 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
4698 therefore do not consider the _M_buf_unified == true case.
4700 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
4702 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
4704 * docs/html/ext/howto.html ('LWG Issues'):
4705 Add issues 19, 90, 171, 231, 271.
4707 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
4709 * include/bits/sstream.tcc (pbackfail): Remove redundant
4710 NULL pointer check from test involving _M_in_*.
4711 (overflow, seekoff, seekpos): Const qualify bool variables.
4712 * include/std/std_sstream.h (underflow): Remove redundant
4713 NULL pointer check from test involving _M_in_*.
4714 (_M_really_sync): Const qualify bool variables.
4715 * src/fstream.cc (_M_underflow_common): Remove redundant
4716 NULL pointer check from test involving _M_in_*, const qualify
4719 * include/std/std_streambuf.h (sgetc): Remove redundant
4722 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
4724 According to 5.9 para 2 (second bullet) for pointers p, q
4725 pointing to the same type, with p == 0 and q == 0, (p < q)
4727 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
4728 seekoff): Remove redundant NULL pointer checks from tests
4729 involving _M_out_* and _M_in_*, const qualify bool variables.
4730 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
4731 qualify bool variables.
4732 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
4733 Remove redundant NULL pointer checks from tests involving
4734 _M_out_* and _M_in_*, const qualify bool variables.
4735 * include/std/std_fstream.h (sync): Likewise.
4736 (_M_is_indeterminate): Const qualify bool variables.
4737 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
4738 NULL pointer checks from tests involving _M_out_* and _M_in_*,
4739 const qualify bool variables.
4740 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
4743 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
4745 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
4746 C99 FP macros, if actually captured.
4748 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
4749 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4750 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4751 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4752 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
4754 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4755 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4756 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4757 * include/c_std/std_cstdlib.h: Use new macros.
4758 * include/c_std/std_cstdio.h: Use new macros.
4759 * include/c_std/std_cwchar.h: Use new macros.
4761 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
4764 * include/bits/ostream.tcc: Catch all exceptions for formatted
4765 output, instead of std::exception and derivatives.
4766 * include/bits/istream.tcc: Same.
4767 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
4768 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
4769 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
4770 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
4771 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
4772 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
4775 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
4777 * include/bits/c++config: Minor cosmetic tweaks.
4779 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
4781 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
4782 * include/Makefile.am (pch_input): Find in ${target_builddir}.
4783 (pch_output): Rename to...
4784 (pch_output_builddir): ..this. Find in ${target_builddir}.
4785 (pch_source): Tweak.
4786 (pch_build): Key off a built file.
4787 (pch_output rule): Rename to...
4788 (pch_input rule): ...this. Produce ${pch_output_builddir}
4789 instead of ${pch_output}.
4790 (install-pch rule): Install ${pch_output_builddir}.
4791 * include/Makefile.in: Regenerated.
4793 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
4795 * include/std/std_streambuf.h (setp): _M_out_lim, being
4796 the end limit of used put area, is set equal to _M_out_beg.
4798 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
4800 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
4801 * aclocal.m4: Regenerated.
4802 * configure.in: Remove old demangler bits.
4804 * configure: Regenerate.
4805 * config.h.in: Regenerate.
4806 * include/Makefile.am (allstamps): Now allstamped.
4807 (allcreated): Define this.
4808 (all-local): Use 'em.
4809 Conditionally define pch_build, pch_install based on
4811 (${pch_output}): New rule.
4812 (install-pch): New rule.
4813 (install-headers): New rule.
4814 (install-data-local): Install headers and conditionally pch.
4815 * include/Makefile.in: Regenerate.
4816 * testsuite_flags.in (--build-cxx): Use pch file.
4818 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
4820 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
4822 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
4823 Paolo Carlini <pcarlini at unitus dot it>
4826 * docs/html/27_io/howto.html
4827 ('The buffering is screwing up my program!'): Explain that
4828 opening counts as an I/O operation.
4830 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
4832 * testsuite/thread/pthread1.cc: Enable for darwin test.
4833 * testsuite/thread/pthread2.cc: Same.
4834 * testsuite/thread/pthread3.cc: Same.
4835 * testsuite/thread/pthread4.cc: Same.
4836 * testsuite/thread/pthread5.cc: Same.
4837 * testsuite/thread/pthread6.cc: Same.
4839 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
4842 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
4843 Populate it with multiple legal ways to obtain the C99 float
4844 transcendentals. Use them instead of direct global reference.
4845 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
4846 * docs/html/17_intro/porting.texi
4847 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4848 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4849 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
4850 * config/os/bsd/freebsd/os_defines.h
4851 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4852 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4853 * testsuite/26_numerics/c_math_dynamic.cc: New file.
4855 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
4856 Benjamin Kosnik <bkoz@redhat.com>
4858 * config/os/generic/ctype_inline.h: Fix.
4860 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
4862 * testsuite/testsuite_hooks.h
4863 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
4864 Change to try_named_locale.
4865 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
4867 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
4869 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
4870 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
4871 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
4872 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
4873 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
4874 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
4875 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
4876 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
4877 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
4878 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
4879 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
4880 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
4881 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
4882 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
4883 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
4884 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
4885 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
4886 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
4887 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
4888 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
4889 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
4890 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
4891 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
4892 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
4893 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
4894 * testsuite/22_locale/collate/compare/char/1.cc: Same.
4895 * testsuite/22_locale/collate/compare/char/2.cc: Same.
4896 * testsuite/22_locale/collate/compare/char/3.cc: Same.
4897 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
4898 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
4899 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
4900 * testsuite/22_locale/collate/hash/char/2.cc: Same.
4901 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
4902 * testsuite/22_locale/collate/transform/char/2.cc: Same.
4903 * testsuite/22_locale/collate/transform/char/3.cc: Same.
4904 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
4905 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
4906 * testsuite/22_locale/collate_byname/1.cc: Same.
4907 * testsuite/22_locale/ctype/is/char/2.cc: Same.
4908 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
4909 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
4910 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
4911 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
4912 * testsuite/22_locale/facet/2.cc: Same.
4913 * testsuite/22_locale/locale/cons/2.cc: Same.
4914 * testsuite/22_locale/locale/cons/4.cc: Same.
4915 * testsuite/22_locale/locale/cons/5.cc: Same.
4916 * testsuite/22_locale/locale/cons/7.cc: Same.
4917 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
4918 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
4919 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
4920 * testsuite/22_locale/messages/members/char/1.cc: Same.
4921 * testsuite/22_locale/messages/members/char/2.cc: Same.
4922 * testsuite/22_locale/messages/members/char/3.cc: Same.
4923 * testsuite/22_locale/messages_byname/1.cc: Same.
4924 * testsuite/22_locale/money_get/get/char/1.cc: Same.
4925 * testsuite/22_locale/money_get/get/char/2.cc: Same.
4926 * testsuite/22_locale/money_get/get/char/3.cc: Same.
4927 * testsuite/22_locale/money_get/get/char/4.cc: Same.
4928 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
4929 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
4930 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
4931 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
4932 * testsuite/22_locale/money_put/put/char/1.cc: Same.
4933 * testsuite/22_locale/money_put/put/char/2.cc: Same.
4934 * testsuite/22_locale/money_put/put/char/3.cc: Same.
4935 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
4936 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
4937 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
4938 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
4939 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
4940 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
4941 * testsuite/22_locale/num_get/get/char/1.cc: Same.
4942 * testsuite/22_locale/num_get/get/char/2.cc: Same.
4943 * testsuite/22_locale/num_get/get/char/3.cc: Same.
4944 * testsuite/22_locale/num_get/get/char/5.cc: Same.
4945 * testsuite/22_locale/num_get/get/char/6.cc: Same.
4946 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
4947 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
4948 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
4949 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
4950 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
4951 * testsuite/22_locale/num_put/put/char/1.cc: Same.
4952 * testsuite/22_locale/num_put/put/char/2.cc: Same.
4953 * testsuite/22_locale/num_put/put/char/3.cc: Same.
4954 * testsuite/22_locale/num_put/put/char/5.cc: Same.
4955 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
4956 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
4957 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
4958 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
4959 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
4960 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
4961 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
4962 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
4963 * testsuite/22_locale/numpunct_byname/1.cc: Same.
4964 * testsuite/22_locale/numpunct_byname/2.cc: Same.
4965 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
4966 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
4967 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
4968 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
4969 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
4970 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
4971 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
4972 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
4973 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
4974 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
4975 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
4976 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
4977 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
4978 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
4979 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
4980 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
4981 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
4982 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
4983 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
4984 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
4985 * testsuite/22_locale/time_put/put/char/1.cc: Same.
4986 * testsuite/22_locale/time_put/put/char/2.cc: Same.
4987 * testsuite/22_locale/time_put/put/char/3.cc: Same.
4988 * testsuite/22_locale/time_put/put/char/4.cc: Same.
4989 * testsuite/22_locale/time_put/put/char/5.cc: Same.
4990 * testsuite/22_locale/time_put/put/char/6.cc: Same.
4991 * testsuite/22_locale/time_put/put/char/7.cc: Same.
4992 * testsuite/22_locale/time_put/put/char/8.cc: Same.
4993 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
4994 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
4995 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
4996 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
4997 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
4998 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
4999 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
5000 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
5001 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
5002 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
5003 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
5004 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
5005 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
5007 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
5009 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
5010 solaris includes, not generic.
5012 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
5014 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
5016 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
5017 * include/bits/concept_check.h: Fix multi-line comment.
5018 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
5019 when target is *-*-freebsd*.
5021 2003-04-14 Nathan Myers <ncm@cantrip.org>
5022 Paolo Carlini <pcarlini@unitus.it>
5024 PR libstdc++/9701 (in_avail())
5025 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
5026 doesn't care if there is anything in some putback cell.
5027 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
5029 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
5030 unused string literals.
5032 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
5034 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
5035 _M_out_end, _M_set_indeterminate() does it.
5037 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5039 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
5041 2003-04-12 David Edelsohn <edelsohn@gnu.org>
5043 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5044 Change basic_streambuf instantiation to "unsigned char".
5045 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5047 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
5049 Remove _M_buf_size_opt, use directly _M_buf_size instead.
5050 * include/bits/fstream.tcc
5051 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
5052 references to _M_buf_size_opt.
5053 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
5054 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
5055 __bufsize to __in_avail and __size_opt to __buf_size.
5056 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
5057 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
5058 * include/std/std_streambuf.h (~basic_streambuf(),
5059 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
5060 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
5061 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
5062 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
5063 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
5064 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
5065 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
5066 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
5067 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
5068 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
5069 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
5070 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
5071 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
5073 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
5075 * include/ext/stdio_filebuf.h
5076 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
5077 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
5078 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
5079 since a stack-based buffer is used for small values of the size_t
5081 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
5082 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
5083 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
5085 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
5088 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
5089 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
5091 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5093 * testsuite/22_locale/locale/cons/3.cc: Split.
5094 * testsuite/22_locale/locale/cons/7222-c.cc: New.
5095 * testsuite/22_locale/locale/cons/7222-env.cc: New.
5096 Check before trying to create a locale from the environment.
5097 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
5098 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
5101 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5103 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
5104 locale to construct this hybrid locale, not the global locale.
5106 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5108 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
5109 instantiation for AIX.
5110 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5111 * testsuite/25_algorithms/min_max.cc: Same.
5113 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5115 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
5116 twice. Always set _M_cfile to 0 when stream was open.
5118 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5120 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
5121 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
5122 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
5123 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
5124 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
5125 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
5126 ifstream_members.cc, instantiations.cc, ios.cc,
5127 ios_base_callbacks.cc, ios_base_members_static-1.tst,
5128 ios_base_members_static.cc, ios_base_storage.cc,
5129 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
5130 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
5131 iostream.cc, iostream_members.cc, istream.cc,
5132 istream_exception.cc, istream_extractor_char.cc,
5133 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
5134 istream_extractor_other-2.tst, istream_extractor_other.cc,
5135 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
5136 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
5137 istream_sentry.cc, istream_unformatted-1.tst,
5138 istream_unformatted-1.txt, istream_unformatted.cc,
5139 istringstream.cc, istringstream_members.cc,
5140 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
5141 ofstream_members.cc, ostream.cc, ostream_exception.cc,
5142 ostream_fail.cc, ostream_inserter_arith.cc,
5143 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
5144 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
5145 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
5146 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
5147 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
5148 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
5149 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
5150 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
5151 wide_stream_objects.cc, istream_extractor_arith/01.cc,
5152 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
5153 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
5154 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
5155 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
5156 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
5158 * 27_io/basic_filebuf/1.cc: New.
5159 * 27_io/basic_filebuf/2.cc: New.
5160 * 27_io/basic_filebuf/3.cc: New.
5161 * 27_io/basic_filebuf/4.cc: New.
5162 * 27_io/basic_filebuf/close/char/1.cc: New.
5163 * 27_io/basic_filebuf/close/char/2.cc: New.
5164 * 27_io/basic_filebuf/close/char/3.cc: New.
5165 * 27_io/basic_filebuf/close/char/4879.cc: New.
5166 * 27_io/basic_filebuf/close/char/9964.cc: New.
5167 * 27_io/basic_filebuf/imbue/char/1.cc: New.
5168 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
5169 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
5170 * 27_io/basic_filebuf/is_open/char/1.cc: New.
5171 * 27_io/basic_filebuf/open/char/1.cc: New.
5172 * 27_io/basic_filebuf/open/char/2.cc: New.
5173 * 27_io/basic_filebuf/open/char/3.cc: New.
5174 * 27_io/basic_filebuf/open/char/9507.cc: New.
5175 * 27_io/basic_filebuf/overflow/char/1.cc: New.
5176 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
5177 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
5178 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
5179 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
5180 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
5181 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
5182 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
5183 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
5184 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
5185 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
5186 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
5187 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
5188 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
5189 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
5190 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
5191 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
5192 * 27_io/basic_filebuf/snextc/char/1.cc: New.
5193 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
5194 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
5195 * 27_io/basic_filebuf/sputc/char/1.cc: New.
5196 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
5197 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
5198 * 27_io/basic_filebuf/sputn/char/1.cc: New.
5199 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
5200 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
5201 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
5202 * 27_io/basic_filebuf/sync/char/1057.cc: New.
5203 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
5204 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
5205 * 27_io/basic_fstream/1.cc: New.
5206 * 27_io/basic_fstream/2.cc: New.
5207 * 27_io/basic_fstream/3.cc: New.
5208 * 27_io/basic_fstream/4.cc: New.
5209 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
5210 * 27_io/basic_ifstream/1.cc: New.
5211 * 27_io/basic_ifstream/2.cc: New.
5212 * 27_io/basic_ifstream/3.cc: New.
5213 * 27_io/basic_ifstream/4.cc: New.
5214 * 27_io/basic_ifstream/cons/char/1.cc: New.
5215 * 27_io/basic_ifstream/open/char/1.cc: New.
5216 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
5217 * 27_io/basic_ios/1.cc: New.
5218 * 27_io/basic_ios/2.cc: New.
5219 * 27_io/basic_ios/3.cc: New.
5220 * 27_io/basic_ios/4.cc: New.
5221 * 27_io/basic_ios/clear/char/1.cc: New.
5222 * 27_io/basic_ios/cons/char/1.cc: New.
5223 * 27_io/basic_ios/cons/char/2.cc: New.
5224 * 27_io/basic_ios/cons/char/3.cc: New.
5225 * 27_io/basic_ios/copyfmt/char/1.cc: New.
5226 * 27_io/basic_ios/copyfmt/char/2.cc: New.
5227 * 27_io/basic_ios/exceptions/char/1.cc: New.
5228 * 27_io/basic_ios/locales/char/1.cc: New.
5229 * 27_io/basic_iostream/1.cc: New.
5230 * 27_io/basic_iostream/2.cc: New.
5231 * 27_io/basic_iostream/3.cc: New.
5232 * 27_io/basic_iostream/4.cc: New.
5233 * 27_io/basic_istream/1.cc: New.
5234 * 27_io/basic_istream/2.cc: New.
5235 * 27_io/basic_istream/3.cc: New.
5236 * 27_io/basic_istream/4.cc: New.
5237 * 27_io/basic_istream/exceptions/char/9561.cc: New.
5238 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
5239 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
5240 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
5241 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
5242 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
5243 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
5244 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
5245 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
5246 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
5247 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
5248 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
5249 * 27_io/basic_istream/extractors_character/char/1.cc: New.
5250 * 27_io/basic_istream/extractors_character/char/2.cc: New.
5251 * 27_io/basic_istream/extractors_character/char/3.cc: New.
5252 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
5253 * 27_io/basic_istream/extractors_other/char/1.cc: New.
5254 * 27_io/basic_istream/extractors_other/char/2.cc: New.
5255 * 27_io/basic_istream/extractors_other/char/3.cc: New.
5256 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
5257 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
5258 * 27_io/basic_istream/get/char/1.cc: New.
5259 * 27_io/basic_istream/get/char/2.cc: New.
5260 * 27_io/basic_istream/getline/char/1.cc: New.
5261 * 27_io/basic_istream/getline/char/2.cc: New.
5262 * 27_io/basic_istream/getline/char/3.cc: New.
5263 * 27_io/basic_istream/ignore/char/1.cc: New.
5264 * 27_io/basic_istream/ignore/char/6360.cc: New.
5265 * 27_io/basic_istream/ignore/char/7220.cc: New.
5266 * 27_io/basic_istream/peek/char/1.cc: New.
5267 * 27_io/basic_istream/peek/char/6414.cc: New.
5268 * 27_io/basic_istream/putback/char/1.cc: New.
5269 * 27_io/basic_istream/read/char/1.cc: New.
5270 * 27_io/basic_istream/read/char/2.cc: New.
5271 * 27_io/basic_istream/read/char/3.cc: New.
5272 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
5273 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
5274 * 27_io/basic_istream/readsome/char/8258.cc: New.
5275 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
5276 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
5277 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
5278 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
5279 * 27_io/basic_istream/seekg/char/fstream.cc: New.
5280 * 27_io/basic_istream/seekg/char/sstream.cc: New.
5281 * 27_io/basic_istream/sentry/char/1.cc: New.
5282 * 27_io/basic_istream/sentry/char/2.cc: New.
5283 * 27_io/basic_istream/sentry/char/3.cc: New.
5284 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
5285 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
5286 * 27_io/basic_istream/tellg/char/1.cc: New.
5287 * 27_io/basic_istream/tellg/char/8348.cc: New.
5288 * 27_io/basic_istream/tellg/char/fstream.cc: New.
5289 * 27_io/basic_istream/tellg/char/sstream.cc: New.
5290 * 27_io/basic_istream/ws/char/1.cc: New.
5291 * 27_io/basic_istringstream/1.cc: New.
5292 * 27_io/basic_istringstream/2.cc: New.
5293 * 27_io/basic_istringstream/3.cc: New.
5294 * 27_io/basic_istringstream/4.cc: New.
5295 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
5296 * 27_io/basic_istringstream/str/char/1.cc: New.
5297 * 27_io/basic_ofstream/1.cc: New.
5298 * 27_io/basic_ofstream/2.cc: New.
5299 * 27_io/basic_ofstream/3.cc: New.
5300 * 27_io/basic_ofstream/4.cc: New.
5301 * 27_io/basic_ofstream/cons/char/2.cc: New.
5302 * 27_io/basic_ofstream/open/char/1.cc: New.
5303 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
5304 * 27_io/basic_ostream/1.cc: New.
5305 * 27_io/basic_ostream/2.cc: New.
5306 * 27_io/basic_ostream/3.cc: New.
5307 * 27_io/basic_ostream/4.cc: New.
5308 * 27_io/basic_ostream/cons/char/9827.cc: New.
5309 * 27_io/basic_ostream/endl/char/1.cc: New.
5310 * 27_io/basic_ostream/ends/char/1.cc: New.
5311 * 27_io/basic_ostream/ends/char/2.cc: New.
5312 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
5313 * 27_io/basic_ostream/flush/char/1.cc: New.
5314 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
5315 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
5316 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
5317 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
5318 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
5319 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
5320 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
5321 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
5322 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
5323 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
5324 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
5325 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
5326 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
5327 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
5328 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
5329 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
5330 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
5331 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
5332 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
5333 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
5334 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
5335 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
5336 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
5337 * 27_io/basic_ostream/sentry/char/1.cc: New.
5338 * 27_io/basic_ostream/sentry/char/2.cc: New.
5339 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
5340 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
5341 * 27_io/basic_ostream/tellp/char/1.cc: New.
5342 * 27_io/basic_ostream/tellp/char/2.cc: New.
5343 * 27_io/basic_ostringstream/1.cc: New.
5344 * 27_io/basic_ostringstream/2.cc: New.
5345 * 27_io/basic_ostringstream/3.cc: New.
5346 * 27_io/basic_ostringstream/4.cc: New.
5347 * 27_io/basic_ostringstream/cons/char/3.cc: New.
5348 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
5349 * 27_io/basic_ostringstream/str/char/1.cc: New.
5350 * 27_io/basic_ostringstream/str/char/2.cc: New.
5351 * 27_io/basic_streambuf/1.cc: New.
5352 * 27_io/basic_streambuf/2.cc: New.
5353 * 27_io/basic_streambuf/3.cc: New.
5354 * 27_io/basic_streambuf/cons/char/1.cc: New.
5355 * 27_io/basic_streambuf/imbue/char/1.cc: New.
5356 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
5357 * 27_io/basic_streambuf/overflow/char/1.cc: New.
5358 * 27_io/basic_streambuf/overflow/char/2.cc: New.
5359 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
5360 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
5361 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
5362 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
5363 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
5364 * 27_io/basic_streambuf/sputn/char/1.cc: New.
5365 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
5366 * 27_io/basic_streambuf/sync/char/1057.cc: New.
5367 * 27_io/basic_stringbuf/1.cc: New.
5368 * 27_io/basic_stringbuf/2.cc: New.
5369 * 27_io/basic_stringbuf/3.cc: New.
5370 * 27_io/basic_stringbuf/4.cc: New.
5371 * 27_io/basic_stringbuf/5.cc: New.
5372 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
5373 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
5374 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
5375 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
5376 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
5377 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
5378 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
5379 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
5380 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
5381 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
5382 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
5383 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
5384 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
5385 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
5386 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
5387 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
5388 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
5389 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
5390 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
5391 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
5392 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
5393 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
5394 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
5395 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
5396 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
5397 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
5398 * 27_io/basic_stringbuf/str/char/1.cc: New.
5399 * 27_io/basic_stringbuf/str/char/2.cc: New.
5400 * 27_io/basic_stringbuf/str/char/3.cc: New.
5401 * 27_io/basic_stringbuf/str/char/3955.cc: New.
5402 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
5403 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
5404 * 27_io/basic_stringstream/1.cc: New.
5405 * 27_io/basic_stringstream/2.cc: New.
5406 * 27_io/basic_stringstream/3.cc: New.
5407 * 27_io/basic_stringstream/4.cc: New.
5408 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
5409 * 27_io/basic_stringstream/str/char/1.cc: New.
5410 * 27_io/basic_stringstream/str/char/2.cc: New.
5411 * 27_io/basic_stringstream/str/char/3.cc: New.
5412 * 27_io/basic_stringstream/str/char/4.cc: New.
5413 * 27_io/fpos/1.cc: New.
5414 * 27_io/fpos/2.cc: New.
5415 * 27_io/fpos/3.cc: New.
5416 * 27_io/ios_base/callbacks/1.cc: New.
5417 * 27_io/ios_base/state/1.cc: New.
5418 * 27_io/ios_base/storage/1.cc: New.
5419 * 27_io/ios_base/storage/2.cc: New.
5420 * 27_io/ios_base/storage/3.cc: New.
5421 * 27_io/ios_base/sync_with_stdio/1.cc: New.
5422 * 27_io/ios_base/sync_with_stdio/2.cc: New.
5423 * 27_io/manipulators/adjustfield/char/1.cc: New.
5424 * 27_io/manipulators/adjustfield/char/2.cc: New.
5425 * 27_io/manipulators/basefield/char/1.cc: New.
5426 * 27_io/manipulators/standard/char/1.cc: New.
5427 * 27_io/manipulators/standard/char/2.cc: New.
5428 * 27_io/objects/char/1.cc: New.
5429 * 27_io/objects/char/2.cc: New.
5430 * 27_io/objects/char/2523-1_xin.cc: New.
5431 * 27_io/objects/char/2523-1_xin.in: New.
5432 * 27_io/objects/char/2523-2_xin.cc: New.
5433 * 27_io/objects/char/2523-2_xin.in: New.
5434 * 27_io/objects/char/3045.cc: New.
5435 * 27_io/objects/char/3647.cc: New.
5436 * 27_io/objects/char/3_xin.cc: New.
5437 * 27_io/objects/char/3_xin.in: New.
5438 * 27_io/objects/char/4_xin.cc: New.
5439 * 27_io/objects/char/4_xin.in: New.
5440 * 27_io/objects/char/5268.cc: New.
5441 * 27_io/objects/char/5280_xin.cc: New.
5442 * 27_io/objects/char/5280_xin.in: New.
5443 * 27_io/objects/char/6548_xin.cc: New.
5444 * 27_io/objects/char/6548_xin.in: New.
5445 * 27_io/objects/char/6648-1_xin.cc: New.
5446 * 27_io/objects/char/6648-1_xin.in: New.
5447 * 27_io/objects/char/6648-2_xin.cc: New.
5448 * 27_io/objects/char/6648-2_xin.in: New.
5449 * 27_io/objects/char/7744_xin.cc: New.
5450 * 27_io/objects/char/7744_xin.in: New.
5451 * 27_io/objects/wchar_t/1.cc: New.
5452 * 27_io/types/1.cc: New.
5453 * 27_io/types/2.cc: New.
5454 * data/filebuf_members-1.tst: New.
5455 * data/filebuf_members-1.txt: New.
5456 * data/filebuf_virtuals-1.tst: New.
5457 * data/filebuf_virtuals-1.txt: New.
5458 * data/filebuf_virtuals-2.tst: New.
5459 * data/filebuf_virtuals-3.tst: New.
5460 * data/ifstream_members-1.tst: New.
5461 * data/ifstream_members-1.txt: New.
5462 * data/ios_base_members_static-1.tst: New.
5463 * data/istream_extractor_other-1.tst: New.
5464 * data/istream_extractor_other-1.txt: New.
5465 * data/istream_extractor_other-2.tst: New.
5466 * data/istream_seeks-1.tst: New.
5467 * data/istream_seeks-1.txt: New.
5468 * data/istream_seeks-2.tst: New.
5469 * data/istream_seeks-3.tst: New.
5470 * data/istream_unformatted-1.tst: New.
5471 * data/istream_unformatted-1.txt: New.
5472 * data/ofstream_members-1.tst: New.
5473 * data/ostream_inserter_char-1.tst: New.
5474 * data/ostream_inserter_char-1.txt: New.
5475 * data/ostream_inserter_other-1.tst: New.
5476 * data/ostream_inserter_other-2.tst: New.
5477 * data/ostream_seeks-1.tst: New.
5479 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5481 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
5482 requirement that __mode must be strict input or output.
5484 * include/std/std_streambuf.h (basic_streambuf::setp): Set
5487 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
5488 output string shouldn't core.
5489 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
5491 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
5493 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
5496 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5498 * testsuite/data: New directory.
5499 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
5500 to copy files from the testsuite data directory.
5501 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
5502 testfiles containing _xin, which now means this is an interactive
5503 test and should be run with the interactive dejagnu hooks.
5504 * testsuite/Makefile.am: Remove testsuite_* files.
5505 * testsuite/Makefile.in: Regenerate.
5507 2003-04-09 Zack Weinberg <zack@codesourcery.com>
5509 * docs/html/install.html: Document complete list of locales
5510 required by test suite. Document procedure for installing
5511 said locales under Debian. Solicit instructions for other
5514 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
5516 * include/bits/sstream.tcc (overflow): Make sure operands of min
5517 and max have the same type.
5519 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
5522 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
5525 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
5527 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
5528 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
5529 Don't set _M_out_end.
5530 (basic_filebuf::overflow): Replace _M_out_buf_size() with
5531 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
5532 * include/bits/sstream.tcc (basic_stringbuf::overflow):
5533 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
5534 * include/bits/streambuf.tcc (basic_streambuf::sputc):
5535 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
5536 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
5537 _M_out_end - _M_out_cur.
5538 (__copy_streambufs): Likewise.
5539 * include/std/std_fstream.h (_M_set_determinate): Set
5542 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
5544 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
5545 _M_convert_to_external, _M_really_overflow, seekoff): Fix
5546 test for synced buffer.
5547 * include/std/std_fstream.h (sync): Likewise.
5548 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5549 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
5551 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
5553 * include/std/std_sstream.h (basic_istringstream): Adjust
5555 (basic_ostringstream): Same.
5556 (basic_stringstream): Same.
5557 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
5558 (basic_ofstream): Same.
5559 (basic_fstream): Same.
5560 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
5561 that does not call init.
5562 * include/std/std_istream.h (basic_istream): Same.
5563 (basic_iostream): Construct istream, ostream uninitialized, use
5564 init to initialize just once. Add protected ctor that does not
5567 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
5568 Nathan Myers <ncm@cantrip.org>
5571 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
5573 (basic_filebuf<>::showmanyc): Use the information provided
5574 by codecvt and __basic_file<>::showmanyc_helper to implement
5575 a non-trivial showmanyc.
5576 * config/io/basic_file_stdio.h
5577 (__basic_file<>::showmanyc_helper): New, declare.
5578 * config/io/basic_file_stdio.cc
5579 (__basic_file<>::showmanyc_helper): Define.
5580 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
5581 (__basic_file<char>::open): Don't call fcntl().
5582 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
5583 GLIBCPP_CHECK_POLL): New macros.
5584 * configure.in: Call here.
5585 * acconfig.h: Add #undefs for the corresponding symbols.
5586 * aclocal.m4: Regenerate.
5587 * configure: Regenerate.
5588 * config.h.in: Regenerate.
5590 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
5592 * config/linker-map.gnu: Remove string export restrictions.
5594 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
5596 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
5597 find_first_of, find_last_of and find_last_not_of tests.
5598 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
5599 tests here, new file.
5600 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
5601 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
5602 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
5603 wchar_t find_first_of tests here, new file.
5604 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
5606 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
5608 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
5609 wchar_t find_last_of tests here.
5610 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
5611 wchar_t find_last_not_of tests here.
5613 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
5615 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
5616 Correct return value.
5618 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
5621 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
5622 * include/std/std_complex.h (norm): Use faster,
5623 less accurate computation for builtin float types under --fast-math.
5625 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
5627 * testsuite/testsuite_hooks.h: Fix warning nits.
5629 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
5631 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
5632 Only .set mips2 for the o32 ABI.
5634 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
5636 * testsuite/21_strings/char_traits/requirements/char/1.cc:
5637 Test char not wchar_t.
5639 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
5641 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
5642 Correct size, taking into account sizeof(wchar_t).
5644 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
5646 Reshuffle 21_strings testsuite.
5647 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
5648 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
5649 element_access.cc, operations.cc, char_traits_requirements.cc,
5650 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
5651 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
5652 wchar_t tests as follows.
5653 * 21_strings/basic_string/append/char/1.cc: New.
5654 * 21_strings/basic_string/append/wchar_t/1.cc: New.
5655 * 21_strings/basic_string/assign/char/1.cc: New.
5656 * 21_strings/basic_string/assign/char/2.cc: New.
5657 * 21_strings/basic_string/assign/char/3.cc: New.
5658 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
5659 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
5660 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
5661 * 21_strings/basic_string/capacity/1.cc: New.
5662 * 21_strings/basic_string/capacity/char/1.cc: New.
5663 * 21_strings/basic_string/capacity/char/2.cc: New.
5664 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
5665 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
5666 * 21_strings/basic_string/compare/char/1.cc: New.
5667 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
5668 * 21_strings/basic_string/cons/char/1.cc: New.
5669 * 21_strings/basic_string/cons/char/2.cc: New.
5670 * 21_strings/basic_string/cons/char/3.cc: New.
5671 * 21_strings/basic_string/cons/char/4.cc: New.
5672 * 21_strings/basic_string/cons/char/5.cc: New.
5673 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
5674 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
5675 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
5676 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
5677 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
5678 * 21_strings/basic_string/element_access/char/1.cc: New.
5679 * 21_strings/basic_string/element_access/char/2.cc: New.
5680 * 21_strings/basic_string/element_access/char/3.cc: New.
5681 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
5682 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
5683 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
5684 * 21_strings/basic_string/find/char/1.cc: New.
5685 * 21_strings/basic_string/find/wchar_t/1.cc: New.
5686 * 21_strings/basic_string/insert/char/1.cc: New.
5687 * 21_strings/basic_string/insert/char/2.cc: New.
5688 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
5689 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
5690 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
5691 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
5692 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
5693 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
5694 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
5695 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
5696 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
5697 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
5698 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
5699 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
5700 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
5701 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
5702 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
5703 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
5704 * 21_strings/basic_string/operators/char/1.cc: New.
5705 * 21_strings/basic_string/operators/char/2.cc: New.
5706 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
5707 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
5708 * 21_strings/basic_string/replace/char/1.cc: New.
5709 * 21_strings/basic_string/replace/char/2.cc: New.
5710 * 21_strings/basic_string/replace/char/3.cc: New.
5711 * 21_strings/basic_string/replace/char/4.cc: New.
5712 * 21_strings/basic_string/replace/char/5.cc: New.
5713 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
5714 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
5715 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
5716 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
5717 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
5718 * 21_strings/basic_string/rfind/char/1.cc: New.
5719 * 21_strings/basic_string/rfind/char/2.cc: New.
5720 * 21_strings/basic_string/rfind/char/3.cc: New.
5721 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
5722 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
5723 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
5724 * 21_strings/basic_string/substr/char/1.cc: New.
5725 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
5726 * 21_strings/c_strings/char/1.cc: New.
5727 * 21_strings/c_strings/char/2.cc: New.
5728 * 21_strings/c_strings/wchar_t/1.cc: New.
5729 * 21_strings/c_strings/wchar_t/2.cc: New.
5730 * 21_strings/char_traits/requirements/char/1.cc: New.
5731 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
5732 * 21_strings/char_traits/typedefs/char/1.cc: New.
5734 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
5735 Petur Runolfsson <peturr02@ru.is>
5738 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5739 basic_filebuf<wchar_t>::_M_underflow_common):
5740 if (gptr() < egptr()) return *gptr().
5741 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
5743 * testsuite/27_io/filebuf_members.cc (test_04): Minor
5744 changes: unlink fifo before making it, fix spelling error.
5746 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
5748 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
5749 * testsuite/Makefile.in: Regenerate.
5750 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
5753 2003-03-17 Petur Runolfsson <peturr02@ru.is>
5756 * include/bits/fstream.tcc (basic_filebuf::close):
5757 Always close file, even when write fails.
5758 * testsuite/27_io/filebuf_members.cc (test_07): New test.
5760 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
5762 * libsupc++/Makefile.am (C_COMPILE): Remove.
5763 (LTCOMPILE): Likewise.
5764 * libsupc++/Makefile.in: Regenerate.
5766 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
5768 * testsuite/23_containers/bitset_members.cc: Add test variable.
5769 * testsuite/23_containers/map_insert.cc: Same.
5770 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
5771 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
5772 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5773 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5774 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5775 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
5776 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
5777 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5778 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5779 * testsuite/27_io/istream_exception.cc: Same.
5780 * testsuite/27_io/filebuf_virtuals.cc: Same.
5781 * testsuite/27_io/stringbuf_virtuals.cc: Same.
5782 * testsuite/27_io/ostream_inserter_arith.cc: Same.
5783 * testsuite/26_numerics/valarray_operators.cc: Same.
5784 * testsuite/26_numerics/slice.cc: Same.
5785 * testsuite/26_numerics/slice_array_assignment.cc: Same.
5786 * testsuite/24_iterators/istream_iterator.cc: Same.
5787 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
5789 2003-03-14 Petur Runolfsson <peturr02@ru.is>
5793 * config/locale/generic/ctype_members.cc,
5794 * config/locale/gnu/ctype_members.cc
5795 (ctype<wchar_t>::do_widen(char)): Cast argument to
5796 unsigned char before passing to btowc.
5797 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
5798 Convert characters with btowc instead of mbsrtowcs.
5799 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
5801 Convert characters with wctob instead of wcsrtombs.
5802 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
5803 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
5804 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
5806 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
5808 * include/stdc++.h: New.
5809 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
5810 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
5811 * include/Makefile.in: Regenerate.
5812 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
5813 (--cxxflags): Put -g -O2 here.
5814 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
5816 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
5818 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
5819 missing named locale.
5821 2003-03-14 Andreas Schwab <schwab@suse.de>
5823 * configure.in: Only append to makefiles that are newly created to
5824 avoid multiple multi-do/multi-clean rules.
5825 * configure: Rebuilt.
5827 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
5829 * docs/html/configopts.html, docs/html/documentation.html,
5830 docs/html/explanations.html, docs/html/install.html,
5831 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
5832 invalid XHTML and make page header style consistent.
5834 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
5836 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
5837 * docs/html/faq/index.txt: Regenerate.
5838 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
5840 2003-03-12 Andreas Schwab <schwab@suse.de>
5842 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
5843 glibcpp_toolexeclibdir.
5844 * aclocal.m4, configure: Rebuilt.
5846 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
5848 * docs/html/faq/index.html: Update text about location of headers.
5849 * docs/html/faq/index.txt: Regenerate.
5851 2003-03-11 Carlo Wood <carlo@alinoe.com>
5853 * include/bits/demangle.h: Prepend accessors of
5854 class qualifier with 'get_' in order to fix warnings
5855 when compiling with -Wshadow.
5857 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
5859 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
5861 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
5863 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
5864 report lack of setenv().
5866 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5868 * config/io/basic_file_stdio.cc: include <unistd.h>.
5870 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5871 Nathan Myers <ncm@cantrip.org>
5874 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
5875 seekoff, seekpos): Add a boolean parameter __stdio.
5876 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
5877 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
5878 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
5880 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
5881 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
5882 * include/std/std_fstream.h (sync): Likewise.
5883 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
5884 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
5885 libstdc++/8399 commit involving isatty(0).
5886 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
5887 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
5888 * configure.in: Remove call.
5889 * aclocal.m4: Regenerate.
5890 * config.h.in: Regenerate.
5891 * configure: Regenerate.
5892 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
5894 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5897 * include/bits/fstream.tcc (overflow): don't write EOF to file.
5898 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
5900 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
5903 * include/bits/basic_ios.h (_M_setstate): New.
5904 * include/bits/ostream.tcc (operator<<): Use it.
5905 * include/bits/istream.tcc (operator>>): Use it.
5906 * include/std/std_ostream.h (operator<<): Make friends.
5907 * include/std/std_istream.h (operator>>): Make friends.
5908 * testsuite/27_io/ostream_exception.cc,
5909 testsuite/27_io/istream_exception.cc: New tests.
5911 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
5913 * include/bits/locale_facets.tcc: Fix typo.
5915 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
5917 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
5919 * config/locale/generic/c_locale.cc
5920 (locale::facet::_S_create_c_locale): Throw runtime exception when
5921 unsupported language is specified.
5922 * testsuite/testsuite_hooks.h
5923 (run_test_wrapped_generic_locale_exception_catcher): New function.
5924 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
5925 Suppress runtime exception thrown by generic implementation.
5926 (run_tests_wrapped_env): Likewise.
5927 (run_test_wrapped_generic_locale_exception_catcher): New function.
5928 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
5929 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
5930 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
5931 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
5932 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
5933 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
5934 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
5935 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
5936 * testsuite/22_locale/facet/2.cc: New test wrap.
5937 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
5938 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
5939 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
5940 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
5941 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
5942 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
5943 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
5944 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
5945 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
5946 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
5947 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
5948 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
5949 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
5950 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
5951 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
5952 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
5953 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
5954 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
5955 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
5956 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
5957 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
5958 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
5959 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
5960 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
5961 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
5962 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
5963 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
5964 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
5965 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
5966 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
5967 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
5968 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
5969 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
5970 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
5971 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
5972 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
5973 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
5974 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
5975 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
5976 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
5977 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
5978 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
5979 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
5980 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
5981 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
5982 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
5983 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
5984 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
5985 * testsuite/27_io/ios_members.cc: New test wrap.
5986 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
5988 * testsuite/27_io/streambuf_members.cc: New test wrap.
5989 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
5991 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
5992 Petur Runolfsson <peturr02@ru.is>
5995 * include/bits/streambuf.tcc (__copy_streambufs): Use
5996 sgetn-sputn only when sputn cannot fail, otherwise fall back
5997 to safe snextc-sputc.
5998 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
6000 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6002 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
6003 locale cache for truename and falsename.
6005 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6007 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
6008 _M_word_size initialization.
6010 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6012 * include/bits/fstream.tcc (_M_convert_to_external):
6013 Set __elen to zero if codecvt::out eventually fails.
6015 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6018 * include/bits/fstream.tcc (_M_really_overflow): Check
6019 for _M_convert_to_external possible failures.
6020 * include/std/std_fstream.h (sync): Check _M_really_overflow
6021 return value and return -1 in case of failure.
6022 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
6024 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6027 * include/bits/istream.tcc (operator>>(_CharT*),
6028 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
6029 * testsuite/27_io/stringstream.cc (test02): Add.
6031 * include/bits/istream.tcc (operator>>(_CharT*)):
6032 Assign a char_type to *__s.
6034 2003-03-07 Petur Runolfsson <peturr02@ru.is>
6037 * include/bits/locale_facets.tcc
6038 (collate::do_compare, collate::do_transform):
6039 Handle nul characters in input.
6040 * testsuite/22_locale/collate/compare/char/3.cc: New test.
6041 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
6042 * testsuite/22_locale/collate/transform/char/3.cc: New test.
6043 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
6045 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
6047 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
6049 * testsuite/27_io/ostream_fail.cc: New test.
6051 2003-03-07 Matthias Klose <doko@debian.org>
6053 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
6054 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
6055 * Makefile.in: Regenerate.
6056 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
6058 AM_MAKEFLAGS: Pass gxx_include_dir.
6059 * libsupc++/Makefile.in: Regenerate.
6061 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
6063 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
6064 mask. Test setting small-numbered pword and iword slots. Test
6065 behavior at limit of numeric_limits::max. Check that values are
6066 still good after failures.
6068 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
6070 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
6071 (ios_base::ios_base): Set _M_word, _M_word_size.
6072 (ios_base::~ios_base): Remove redundant test.
6073 * testsuite/27_io/ios_base_storage.cc (test03): New.
6075 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
6077 * src/strstream.cc, include/bits/basic_string.tcc: Remove
6078 incorrect whitespace added in my previous change.
6080 2003-03-05 Carlo Wood <carlo@alinoe.com>
6082 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
6083 _S_initialized() in order to allow debugging libraries to detect
6084 when the std streams are initialized from an overloaded operator
6087 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
6089 * libsupc++/demangle.h: Move to..
6090 * include/bits/demangle.h: ...here.
6091 * src/demangle.cc: Adjust include.
6092 * include/Makefile.am (bits_headers): Add.
6093 * include/Makefile.in: Regenerate.
6095 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
6097 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
6099 * config/linker-map.gnu: Filter typeinfo and vtable info.
6101 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
6103 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
6104 new failure. Throw exception if badbit and exception mask when ix
6105 >= numeric_limits<int>::max().
6107 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
6109 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
6110 min and max have the same type.
6111 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
6113 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
6115 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
6116 * include/Makefile.in: Regenerate.
6118 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
6120 * testsuite/abi_check.cc (report_symbol_info): Add version info.
6122 * config/linker-map.gnu: Hide more stuff.
6123 * include/Makefile.am: Cleanups.
6124 * include/Makefile.in: Regenerate.
6126 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
6128 * config/locale/generic/messages_members.h (messages::messages):
6129 Remove name from unused parameter.
6131 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
6133 * src/Makefile.am (sources): Add demangle.cc.
6136 * src/Makefile.in: Regenerate.
6137 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
6138 * libsupc++/Makefile.in: Regenerate.
6140 * testsuite/testsuite_hooks.h
6141 (__gnu_cxx_test::verify_demangle): New.
6142 * testsuite/testsuite_hooks.cc: Define.
6144 2003-02-27 Carlo Wood <carlo@alinoe.com>
6146 * src/demangle.cc: New.
6147 * libsupc++/demangle.h: New.
6149 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
6150 Carlo Wood <carlo@alinoe.com>
6152 * testsuite/demangle/abi_examples/01.cc: New.
6153 * testsuite/demangle/abi_examples/02.cc: New.
6154 * testsuite/demangle/abi_examples/03.cc: New.
6155 * testsuite/demangle/abi_examples/04.cc: New.
6156 * testsuite/demangle/abi_examples/05.cc: New.
6157 * testsuite/demangle/abi_examples/06.cc: New.
6158 * testsuite/demangle/abi_examples/07.cc: New.
6159 * testsuite/demangle/abi_examples/08.cc: New.
6160 * testsuite/demangle/abi_examples/09.cc: New.
6161 * testsuite/demangle/abi_examples/10.cc: New.
6162 * testsuite/demangle/abi_examples/11.cc: New.
6163 * testsuite/demangle/abi_examples/12.cc: New.
6164 * testsuite/demangle/abi_examples/13.cc: New.
6165 * testsuite/demangle/abi_examples/14.cc: New.
6166 * testsuite/demangle/abi_examples/15.cc: New.
6167 * testsuite/demangle/abi_examples/16.cc: New.
6168 * testsuite/demangle/abi_examples/17.cc: New.
6169 * testsuite/demangle/abi_examples/18.cc: New.
6170 * testsuite/demangle/abi_examples/19.cc: New.
6171 * testsuite/demangle/abi_examples/20.cc: New.
6172 * testsuite/demangle/abi_examples/21.cc: New.
6173 * testsuite/demangle/abi_examples/22.cc: New.
6174 * testsuite/demangle/abi_examples/23.cc: New.
6175 * testsuite/demangle/abi_examples/24.cc: New.
6176 * testsuite/demangle/abi_examples/25.cc: New.
6177 * testsuite/demangle/abi_examples/26.cc: New.
6178 * testsuite/demangle/abi_text/01.cc: New.
6179 * testsuite/demangle/abi_text/02.cc: New.
6180 * testsuite/demangle/abi_text/03.cc: New.
6181 * testsuite/demangle/abi_text/04.cc: New.
6182 * testsuite/demangle/abi_text/05.cc: New.
6183 * testsuite/demangle/abi_text/06.cc: New.
6184 * testsuite/demangle/abi_text/07.cc: New.
6185 * testsuite/demangle/abi_text/08.cc: New.
6186 * testsuite/demangle/abi_text/09.cc: New.
6187 * testsuite/demangle/abi_text/10.cc: New.
6188 * testsuite/demangle/abi_text/11.cc: New.
6189 * testsuite/demangle/abi_text/12.cc: New.
6190 * testsuite/demangle/abi_text/13.cc: New.
6191 * testsuite/demangle/abi_text/14.cc: New.
6192 * testsuite/demangle/regression/3111-1.cc: New.
6193 * testsuite/demangle/regression/3111-2.cc: New.
6194 * testsuite/demangle/regression/7986-01.cc: New.
6195 * testsuite/demangle/regression/7986-02.cc: New.
6196 * testsuite/demangle/regression/7986-03.cc: New.
6197 * testsuite/demangle/regression/7986-04.cc: New.
6198 * testsuite/demangle/regression/7986-05.cc: New.
6199 * testsuite/demangle/regression/7986-06.cc: New.
6200 * testsuite/demangle/regression/7986-07.cc: New.
6201 * testsuite/demangle/regression/7986-08.cc: New.
6202 * testsuite/demangle/regression/7986-09.cc: New.
6203 * testsuite/demangle/regression/7986-10.cc: New.
6204 * testsuite/demangle/regression/7986-11.cc: New.
6205 * testsuite/demangle/regression/7986-12.cc: New.
6206 * testsuite/demangle/regression/7986.cc: New.
6207 * testsuite/demangle/regression/8897.cc: New.
6208 * testsuite/demangle/regression/cw-01.cc: New.
6209 * testsuite/demangle/regression/cw-02.cc: New.
6210 * testsuite/demangle/regression/cw-03.cc: New.
6211 * testsuite/demangle/regression/cw-04.cc: New.
6212 * testsuite/demangle/regression/cw-05.cc: New.
6213 * testsuite/demangle/regression/cw-06.cc: New.
6214 * testsuite/demangle/regression/cw-07.cc: New.
6215 * testsuite/demangle/regression/cw-08.cc: New.
6216 * testsuite/demangle/regression/cw-09.cc: New.
6217 * testsuite/demangle/regression/cw-10.cc: New.
6218 * testsuite/demangle/regression/cw-11.cc: New.
6219 * testsuite/demangle/regression/cw-12.cc: New.
6220 * testsuite/demangle/regression/cw-13.cc: New.
6221 * testsuite/demangle/regression/cw-14.cc: New.
6222 * testsuite/demangle/regression/old.cc: New.
6224 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
6226 * docs/doxygen/Intro.3: Update with new (proper) names.
6227 * docs/doxygen/TODO: Update.
6228 * docs/doxygen/run_doxygen: More comments, fix up man pages.
6229 Fake entries for standard typedefs.
6230 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
6231 * docs/html/documentation.html: Top-level man page is now called
6233 * include/std/std_limits.h: Doxygenate.
6235 2003-02-25 Scott Snyder <snyder@fnal.gov>
6238 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
6239 Correct documentation.
6240 * include/bits/stl_multimap.h (lower_bound, upper_bound,
6241 equal_range): Likewise.
6243 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
6247 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
6248 __bump is true (uflow), always increment the read pointer
6249 (_M_in_cur) before returning successfully.
6250 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
6252 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
6253 Nathan Myers <ncm@cantrip.org>
6255 PR libstdc++/9404, PR libstdc++/9701 (partial)
6256 (aka pptr == epptr implies overflow)
6257 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6258 Consistently, _M_out_end points to the end of the buffer just
6260 (overflow): Tweak to use _M_out_buf_size().
6261 (_M_convert_to_external): The role of the old _M_out_end is
6262 now played by _M_out_lim.
6263 (_M_really_overflow): Likewise.
6264 (seekoff): Likewise.
6265 (setbuf): _M_out_end points to the end of the external buffer.
6266 * include/bits/sstream.tcc (overflow): Rewrote, taking into
6267 account the resolution of DR 169 (TC).
6268 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
6269 (seekpos): Use _M_string.capacity(); tweak.
6270 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
6271 * include/std/std_fstream.h (sync): The role of the old
6272 _M_out_end is now played by _M_out_lim.
6273 (_M_set_indeterminate): Use _M_set_determinate.
6274 (_M_set_determinate): _M_out_end is now _M_out_lim.
6275 (_M_is_indeterminate): Likewise.
6276 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
6277 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
6278 which have the information readily available as _M_string.capacity();
6279 for ate and app modes, pass the string size to _M_really_sync.
6280 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
6281 point to the end of the buffer (i.e., epptr) and to the string end,
6283 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
6284 which points to the right limit of the used put area.
6285 (_M_out_cur_move): The role of the old _M_out_end is now played
6287 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
6288 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
6290 (basic_streambuf()): Initialize _M_out_lim too.
6291 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
6292 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
6293 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
6295 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
6297 * testsuite/27_io/ios_base_storage.cc (main): Call
6300 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
6302 * include/bits/locale_facets.tcc (_M_convert_float): Replace
6303 numpunct facet accesses with data from __locale_cache.
6305 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
6307 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
6308 * docs/html/faq/index.txt: Regenerate.
6310 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
6312 * config/linker-map.gnu: Also export locking symbols needed for the
6313 generic atomicity.h case.
6315 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
6317 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6319 * configure: Rebuilt.
6321 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
6323 * include/bits/sstream.tcc (overflow): According to
6324 27.7.1.3, p5, actual output is performed by sputc(c).
6326 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
6329 * include/bits/stl_alloc.h: Remove all traces of assert().
6331 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
6333 * include/std/std_sstream.h (str()): the size of the
6334 current string may be different from the initial one
6335 whenever _M_out_end > _M_out_beg.
6336 * testsuite/27_io/stringbuf_members.cc (test07): Add.
6338 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
6341 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
6343 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
6345 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
6346 * testsuite/27_io/ios_members.cc (test03): New.
6348 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
6350 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
6351 (basic_ios::_M_cache_facets): Move into above.
6352 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
6354 (basic_ios::imbue): Force locale cache to be built.
6355 (basic_ios::_M_init): Create and initialize locale cache.
6356 * include/bits/ios_base.h (__locale_cache_base): Declare.
6357 (ios_base::_M_locale_cache): New.
6358 (ios_base::_M_cache): Define.
6359 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
6361 (__locale_cache_base,__locale_cache<_CharT>): New classes.
6362 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
6363 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
6364 cache literal string, grouping flag, thousands separator.
6365 (__locale_cache<_CharT>::__locale_cache): New.
6366 (__locale_cache<_CharT>::_M_init): New.
6367 * src/ios.cc: Clear _M_locale_cache in constructor.
6368 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
6371 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6373 * src/locale-inst.cc: Do not include <cassert>.
6374 * src/locale.cc: Likewise.
6376 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6379 * include/std/std_fstream.h: Declare underflow and uflow
6380 specializations, change generic definitions to do nothing.
6381 * src/fstream.cc: Add underflow and uflow specializations.
6383 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6386 * include/bits/fstream.tcc (_M_convert_to_external):
6387 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
6388 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
6390 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
6392 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
6393 * include/bits/basic_ios.tcc: Guard use of extern template.
6394 * include/std/std_iomanip.h: Same.
6395 * include/bits/streambuf.tcc: Same.
6396 * include/bits/stl_alloc.h: Same.
6397 * include/bits/locale_facets.tcc: Same.
6398 * include/bits/ostream.tcc: Same.
6399 * include/bits/istream.tcc: Same.
6400 * include/bits/fstream.tcc: Same.
6401 * include/bits/basic_string.tcc: Same.
6403 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
6405 * include/bits/ostream.tcc (sentry::sentry): Improve
6406 performance-wise the fix for libstdc++/9563.
6408 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
6410 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
6411 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
6412 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
6413 when we don't have static mutex initialization.
6414 (__exchange_and_add): Use _Atomic_add_mutex_once.
6415 * src/misc-inst.cc: Definitions of all the above.
6417 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
6420 * include/bits/ostream.tcc (sentry::sentry): Check
6421 the state of the stream after the preparation.
6422 * testsuite/27_io/ostream_sentry.cc (test02): Add.
6424 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
6426 * include/Makefile.am (stamp-std-precompile): Add rule.
6427 * include/Makefile.in: Regenerated.
6429 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
6430 Benjamin Kosnik <benjamin@redhat.com>
6432 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
6433 Add indexes into this array.
6434 (__num_base::_S_atoms): To _S_atoms_in.
6435 (num_put::_M_insert): Rename to _M_pad.
6436 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
6437 (num_put::_M_widen_int): Rename to _M_group_int.
6438 (num_put::_M_widen_float): Rename to _M_group_float.
6439 * include/bits/locale_facets.tcc (__int_to_char): New inline
6440 function and adapter functions.
6441 (num_put::_M_group_int): Streamline.
6442 (num_put::_M_group_float): Streamline.
6443 (num_put::_M_convert_int): Remove unused parameter names. Choose
6444 large enough buffer for text. Use __int_to_char instead of
6445 __convert_from_v. Formatted text is now at the end of the buffer.
6446 (num_put::_M_convert_float): Preliminary fixups.
6447 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
6448 (__int_to_char<unsigned long long>): Same.
6449 (__int_to_char<char, unsigned long>): New.
6450 (__int_to_char<char, unsigned long long>): New.
6451 (__int_to_char<wchar_t, unsigned long>): New.
6452 (__int_to_char<wchar_t, unsigned long long>): New.
6454 2003-02-11 Scott Snyder <snyder@fnal.gov>
6457 * include/bits/fstream.tcc (seekoff): Avoid operator+
6460 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
6463 * include/ext/stdio_filebuf.h
6464 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
6465 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
6466 Change to take a __size parameter of type size_t, not
6467 of type (template parameter dependent) int_type.
6468 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
6469 size vars to size_t.
6470 * testsuite/ext/stdio_filebuf.cc: Add.
6472 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
6473 Petur Runolfsson <peturr02@ru.is>
6476 * include/bits/streambuf.tcc (__copy_streambufs):
6477 Don't conditionalize the copy to __testput.
6478 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
6480 2002-02-11 DJ Delorie <dj@redhat.com>
6482 * acinclude.m4: Check for native targets that can't link at
6483 this point in the build.
6484 * aclocal.m4: Regenerate.
6485 * configure: Regenerate.
6487 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6489 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
6491 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
6494 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
6496 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
6497 unsigned char platforms.
6499 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
6502 * include/std/std_istream.h
6503 (basic_istream::sentry::operator bool()): Make const.
6504 * include/std/std_ostream.h
6505 (basic_ostream::sentry::operator bool()): Likewise.
6506 * testsuite/27_io/istream_sentry.cc (test03): Add.
6507 * testsuite/27_io/ostream_sentry.cc: Add.
6509 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
6512 Implement resolution of DR 231 (Ready)
6513 * include/bits/locale_facets.h (__num_base::_S_format_float):
6514 Change declaration: return void, remove __prec parameter.
6515 * src/locale.cc (__num_base::_S_format_float): Implement
6516 resolution of DR 231.
6517 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
6518 Tweak uses. Check for negative precision.
6519 * testsuite/22_locale/num_put/put/char/6.cc: Add
6520 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
6522 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
6524 * config/io/basic_file_libio.h: Fixups.
6525 * config/io/c_io_libio.h: Same.
6526 * libio/Makefile.am: Same.
6527 * libio/Makefile.in: Regenerated.
6529 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
6531 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
6532 Explicitly use the "C" locale.
6533 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
6535 2003-02-06 Petur Runolfsson <peturr02@ru.is>
6539 PR libstdc++/9028 (partial)
6545 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
6546 codecvt<wchar_t, char, mbstate_t>::do_length,
6547 codecvt<wchar_t, char, mbstate_t>::do_max_length):
6549 * config/locale/generic/codecvt_members.cc: ...here.
6550 * config/locale/gnu/codecvt_members.cc: ...and here.
6552 * config/locale/generic/codecvt_members.cc,
6553 * config/locale/gnu/codecvt_members.cc
6554 (codecvt<wchar_t, char, mbstate_t>::do_encoding
6555 codecvt<wchar_t, char, mbstate_t>::do_in,
6556 codecvt<wchar_t, char, mbstate_t>::do_length,
6557 codecvt<wchar_t, char, mbstate_t>::do_max_length,
6558 codecvt<wchar_t, char, mbstate_t>::do_out):
6559 New implementation that handles stateless encodings,
6562 * config/locale/generic/codecvt_members.cc,
6563 * config/locale/gnu/codecvt_members.cc,
6564 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
6565 * include/bits/codecvt.h,
6567 (codecvt::length, codecvt::do_length):
6568 Change type of first argument of length and do_length from
6569 'const state_type&' to 'state_type&' according to DR 75.
6571 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
6572 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
6573 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
6574 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
6575 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
6576 Cleanup and check for correct return value from encoding
6578 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
6579 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
6580 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
6581 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
6582 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
6583 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
6584 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
6585 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
6586 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
6587 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
6588 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
6589 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
6590 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
6591 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
6592 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
6593 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
6594 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
6595 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
6596 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
6597 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
6598 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
6599 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
6600 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
6601 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
6602 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
6603 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
6604 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
6605 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
6606 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
6607 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
6608 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
6609 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
6610 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
6611 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
6612 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
6613 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
6614 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
6616 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
6618 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
6619 (money_put::do_put): Same.
6621 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
6623 * include/bits/ios_base.h (ios_base): Document reserved storage.
6625 * include/bits/locale_facets.h: (struct __pad): Comment on
6627 (__verify_grouping): Same.
6628 (__add_grouping): Same.
6629 * include/bits/locale_facets.tcc (__verify_grouping): Move
6630 comments to declaration.
6631 (__add_grouping): Same.
6633 * include/bits/locale_facets.tcc:
6634 (__write<_CharT, _OutIter>): New function.
6635 (__write<_CharT>): New function specialization.
6636 (num_put::_M_insert): Remove explicit loop over iterator. Use
6638 (num_put::_M_widen_float): Remove __basefield.
6639 (num_put::_M_widen_int): Move __basefield to within grouping block.
6641 * include/bits/streambuf_iterator.h: Include <streambuf>.
6642 (ostreambuf_iterator::_M_put): Add.
6644 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
6646 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
6648 2003-02-04 Nathan Myers <ncm@cantrip.org>
6650 * testsuite/25_algorithms/min_max.cc (test02): Add.
6652 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6654 PR libstdc++/9439, PR libstdc++/9425
6655 * config/io/basic_file_stdio.cc
6656 (__basic_file<char>::seekoff, seekpos): Return -1L if
6658 * include/bits/fstream.tcc (basic_filebuf::seekoff):
6659 Check _M_file.seekoff return value; always return
6660 pos_type(off_type(-1)) in case of failure.
6661 (basic_filebuf::pbackfail): Check this->seekoff return
6662 value and return traits_type::eof() in case of failure.
6663 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
6665 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
6667 * include/std/std_ostream.h (ostream::_M_write): Declare.
6668 * ostream.tcc (ostream::_M_write): Define.
6669 (basic_ostream::write): Use it.
6670 (operator<<(basic_ostream, _CharT)): Ditto.
6671 (operator<<(basic_ostream, char)): Ditto.
6672 (operator<<(basic_ostream, _CharT*)): Ditto.
6673 (operator<<(basic_ostream, char*)): Ditto.
6674 (operator<<(basic_ostream, basic_string)): Ditto.
6676 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
6678 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
6680 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
6682 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
6683 add HTML comment about updating links if numbering changes.
6685 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6688 * include/bits/streambuf.tcc (sputbackc): Access
6689 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
6690 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6692 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6695 * include/bits/fstream.tcc (open): If the 'ate' repositioning
6696 operation fails, calls close _and_ returns a null pointer
6697 to indicate failure (27.8.1.3,4).
6698 * testsuite/27_io/filebuf_members.cc (test_06): Add.
6700 2003-02-04 Petur Runolfsson <peturr02@ru.is>
6702 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
6704 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
6706 * docs/html/27_io/howto.html: New section on stdio_filebuf.
6707 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
6708 * docs/html/documentation.html: Regenerate.
6710 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
6712 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
6713 * docs/html/17_intro/porting.html: Regenerate.
6715 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6716 Phil Edwards <pme@gcc.gnu.org>
6718 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
6719 numeric_limits for bits-per-word values.
6720 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
6721 Use __builtin_popcountl instead.
6722 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
6723 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
6724 Use __builtin_ctzl instead.
6725 (_S_bit_count, _S_first_one): Remove.
6726 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
6727 * src/Makefile.am (sources): Remove bitset.cc.
6728 * src/bitset.cc: Delete file.
6729 * src/Makefile.in: Regenerate.
6731 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
6733 PR libstdc++/9527, PR libstdc++/8713
6734 * docs/html/install.html: Mention glibc version requirement.
6735 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
6736 with 3.2.1+ (formatting bugfixes).
6737 * docs/html/faq/index.txt: Regenerate.
6739 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
6742 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
6745 * include/bits/valarray_before.h (__not_equal_to): Use != instead
6748 * testsuite/26_numerics/valarray_operators.cc: New test.
6750 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
6752 * docs/html/faq/index.html: Correct link to libg++ information.
6753 * docs/html/faq/index.txt: Regenerated.
6755 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
6756 Benjamin Kosnik <bkoz@redhat.com>
6758 Const correctness issue:
6759 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
6760 * include/bits/locale_classes.h
6761 (locale::_Impl::_M_facets): Change type to const facet**.
6762 (locale::_Impl::_M_install_facet): Change declaration to
6764 (locale::facet::_M_references): Make mutable.
6765 (locale::facet::_M_add_reference): Declare const.
6766 (locale::facet::_M_remove_reference): Likewise.
6767 * include/bits/locale_facets.tcc
6768 (use_facet(const locale&)): Tweak for const facet** _M_facets.
6769 (has_facet(const locale&)): Likewise.
6771 (locale::facet::_M_add_reference): Adjust definition.
6772 (locale::facet::_M_remove_reference): Likewise.
6774 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
6775 const facet** _M_facets.
6776 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
6777 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
6778 (locale::_Impl::_M_install_facet): Adjust definition to take
6779 const facet* and for const facet** _M_facets.
6780 * testsuite/22_locale/locale/cons/8.cc: Add.
6782 2003-01-29 Mark Mitchell <mark@codesourcery.com>
6784 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
6785 Use __FLT_HAS_INIFINITY__ to initialize.
6786 (numeric_limits<float>::has_quiet_NaN): Likewise.
6787 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
6789 (numeric_limits<double>::has_quiet_NaN): Likewise.
6790 (numeric_limits<long double>::has_infinity): Use
6791 __LDBL_HAS_INIFINITY__ to initialize.
6792 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
6794 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
6797 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
6798 with bases which are very ambiguous.
6800 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
6802 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
6803 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
6804 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
6805 * src/Makefile.in: Regenerate.
6806 * libsupc++/Makefile.in: Regenerate.
6808 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
6810 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
6811 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
6812 version_specific_libs is enabled.
6813 * aclocal.m4, configure: Rebuilt.
6815 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
6817 * include/bits/valarray_meta.h: Remove, split into ...
6818 * include/bits/valarray_before.h: ... this, and ...
6819 * include/bits/valarray_after.h: ... this.
6820 * include/std/std_valarray.h: Adjust.
6821 * include/Makefile.am (bits_headers): Adjust.
6822 * include/Makefile.in: Regenerate.
6824 2003-01-24 Andreas Schwab <schwab@suse.de>
6826 * config/linker-map.gnu: Fix for size_t variance.
6828 2003-01-23 Petur Runolfsson <peturr02@ru.is>
6831 * include/std/std_streambuf.h
6832 (basic_streambuf::basic_streambuf,
6833 basic_streambuf::~basic_streambuf,
6834 basic_streambuf::getloc, basic_streambuf::imbue):
6835 Remove _M_buf_locale_init
6836 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
6837 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6838 * testsuite/27_io/streambuf_members.cc (test08): Add.
6839 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
6841 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
6843 Revert include ordering.
6844 * config/locale/generic/c_locale.h: Add include guards.
6845 * config/locale/gnu/c_locale.h: Same.
6846 * include/bits/locale_classes.h: Remove cctype include.
6847 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
6848 * include/std/std_fstream.h: Remove streambuf include.
6849 * include/std/std_sstream.h: Remove streambuf include.
6851 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
6853 * configure.in (libtool_VERSION): To 6:0:0.
6854 * configure: Regenerated.
6855 * config/linker-map.gnu: Clean.
6857 * src/misc-inst.cc: Remove instantiations.
6859 * include/bits/stl_alloc.h (__malloc_alloc_template):
6861 (__default_alloc_template): To __pool_alloc.
6862 * src/stl-inst.cc: Same.
6863 * include/backward/alloc.h: Update.
6864 * testsuite/ext/allocators.cc: Update.
6866 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
6867 really try to remove these if possible.
6868 * src/locale.cc (std): Same.
6870 * testsuite/abi_check.cc (check_version): Add.
6872 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
6873 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
6874 Mark Mitchell <mark@codesourcery.com>
6877 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
6878 (basic_filebuf::underflow): Declare.
6881 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
6883 * include/bits/locale_facets.h: Move non-facet classes requiring
6885 * include/bits/locale_classes.h: New.
6886 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
6887 * include/bits/Makefile.in: Regenerate.
6889 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
6890 * config/locale/gnu/c_locale.h: ...here.
6891 * config/locale/generic/c_locale.h: Same.
6893 * include/bits/locale_facets.tcc: Move declarations to...
6894 * include/bits/locale_facets.h: ...here.
6895 * include/bits/basic_ios.h: Tweak includes accordingly.
6896 * include/std/std_sstream.h: Add streambuf include.
6897 * include/std/std_fstream.h: Ditto.
6898 * include/std/std_locale.h: Add locale_classes.h include.
6899 * include/std/std_iosfwd.h: Tweak.
6900 * src/concept-inst.cc: Add iterator include.
6902 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
6903 bits as unexported in the future.
6905 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
6907 Reshuffle 22_locale testsuite.
6908 * 22_locale/(codecvt.cc money_get.cc
6909 codecvt_members_char_char.cc money_get_members_char.cc
6910 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
6911 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
6912 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
6913 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
6914 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
6915 money_put_members_char.cc ctor_copy_dtor.cc
6916 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
6917 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
6918 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
6919 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
6920 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
6921 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
6922 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
6923 operators.cc ctype_widen_char.cc static_members.cc
6924 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
6925 global_templates.cc time_get_members_wchar_t.cc, members.cc,
6926 time_put.cc, messages_byname.cc, time_put_members_char.cc,
6927 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
6928 Split up into individual test cases...
6929 * 22_locale/codecvt/1.cc: New.
6930 * 22_locale/codecvt/2.cc: New.
6931 * 22_locale/codecvt/always_noconv/char/1.cc: New.
6932 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
6933 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
6934 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
6935 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
6936 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
6937 * 22_locale/codecvt/encoding/char/1.cc: New.
6938 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
6939 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
6940 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
6941 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
6942 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
6943 * 22_locale/codecvt/in/char/1.cc: New.
6944 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
6945 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
6946 * 22_locale/codecvt/in/wchar_t/1.cc: New.
6947 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
6948 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
6949 * 22_locale/codecvt/length/char/1.cc: New.
6950 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
6951 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
6952 * 22_locale/codecvt/length/wchar_t/1.cc: New.
6953 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
6954 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
6955 * 22_locale/codecvt/max_length/char/1.cc: New.
6956 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
6957 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
6958 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
6959 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
6960 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
6961 * 22_locale/codecvt/out/char/1.cc: New.
6962 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
6963 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
6964 * 22_locale/codecvt/out/wchar_t/1.cc: New.
6965 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
6966 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
6967 * 22_locale/codecvt/unicode/char.cc: New.
6968 * 22_locale/codecvt/unicode/wchar_t.cc: New.
6969 * 22_locale/codecvt/unshift/char/1.cc: New.
6970 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
6971 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
6972 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
6973 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
6974 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
6975 * 22_locale/collate/1.cc: New.
6976 * 22_locale/collate/2.cc: New.
6977 * 22_locale/collate/compare/char/1.cc: New.
6978 * 22_locale/collate/compare/char/2.cc: New.
6979 * 22_locale/collate/compare/char/wrapped_env.cc: New.
6980 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
6981 * 22_locale/collate/compare/wchar_t/1.cc: New.
6982 * 22_locale/collate/compare/wchar_t/2.cc: New.
6983 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
6984 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
6985 * 22_locale/collate/hash/char/1.cc: New.
6986 * 22_locale/collate/hash/char/2.cc: New.
6987 * 22_locale/collate/hash/char/wrapped_env.cc: New.
6988 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
6989 * 22_locale/collate/hash/wchar_t/1.cc: New.
6990 * 22_locale/collate/hash/wchar_t/2.cc: New.
6991 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
6992 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
6993 * 22_locale/collate/transform/char/2.cc: New.
6994 * 22_locale/collate/transform/char/wrapped_env.cc: New.
6995 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
6996 * 22_locale/collate/transform/wchar_t/2.cc: New.
6997 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
6998 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
6999 * 22_locale/collate_byname/1.cc: New.
7000 * 22_locale/ctype/1.cc: New.
7001 * 22_locale/ctype/2.cc: New.
7002 * 22_locale/ctype/cons/char/1.cc: New.
7003 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
7004 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
7005 * 22_locale/ctype/is/char/1.cc: New.
7006 * 22_locale/ctype/is/char/2.cc: New.
7007 * 22_locale/ctype/is/char/3.cc: New.
7008 * 22_locale/ctype/is/char/wrapped_env.cc: New.
7009 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
7010 * 22_locale/ctype/is/wchar_t/1.cc: New.
7011 * 22_locale/ctype/is/wchar_t/2.cc: New.
7012 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
7013 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
7014 * 22_locale/ctype/narrow/char/1.cc: New.
7015 * 22_locale/ctype/narrow/char/2.cc: New.
7016 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
7017 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
7018 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
7019 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
7020 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
7021 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
7022 * 22_locale/ctype/scan/char/1.cc: New.
7023 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
7024 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
7025 * 22_locale/ctype/scan/wchar_t/1.cc: New.
7026 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
7027 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
7028 * 22_locale/ctype/to/char/1.cc: New.
7029 * 22_locale/ctype/to/char/wrapped_env.cc: New.
7030 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
7031 * 22_locale/ctype/to/wchar_t/1.cc: New.
7032 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
7033 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
7034 * 22_locale/ctype/widen/char/1.cc: New.
7035 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
7036 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
7037 * 22_locale/ctype/widen/wchar_t/1.cc: New.
7038 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
7039 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
7040 * 22_locale/facet/1.cc: New.
7041 * 22_locale/facet/2.cc: New.
7042 * 22_locale/global_templates/1.cc: New.
7043 * 22_locale/locale/cons/1.cc: New.
7044 * 22_locale/locale/cons/2.cc: New.
7045 * 22_locale/locale/cons/3.cc: New.
7046 * 22_locale/locale/cons/4.cc: New.
7047 * 22_locale/locale/cons/5.cc: New.
7048 * 22_locale/locale/cons/6.cc: New.
7049 * 22_locale/locale/cons/7.cc: New.
7050 * 22_locale/locale/global_locale_objects/1.cc: New.
7051 * 22_locale/locale/global_locale_objects/2.cc: New.
7052 * 22_locale/locale/global_locale_objects/3.cc: New.
7053 * 22_locale/locale/operations/1.cc: New.
7054 * 22_locale/locale/operations/2.cc: New.
7055 * 22_locale/messages/1.cc: New.
7056 * 22_locale/messages/2.cc: New.
7057 * 22_locale/messages/members/char/1.cc: New.
7058 * 22_locale/messages/members/char/2.cc: New.
7059 * 22_locale/messages/members/char/3.cc: New.
7060 * 22_locale/messages/members/char/wrapped_env.cc: New.
7061 * 22_locale/messages/members/char/wrapped_locale.cc: New.
7062 * 22_locale/messages_byname/1.cc: New.
7063 * 22_locale/money_get/1.cc: New.
7064 * 22_locale/money_get/2.cc: New.
7065 * 22_locale/money_get/get/char/1.cc: New.
7066 * 22_locale/money_get/get/char/2.cc: New.
7067 * 22_locale/money_get/get/char/3.cc: New.
7068 * 22_locale/money_get/get/char/4.cc: New.
7069 * 22_locale/money_get/get/char/5.cc: New.
7070 * 22_locale/money_get/get/char/6.cc: New.
7071 * 22_locale/money_get/get/char/7.cc: New.
7072 * 22_locale/money_get/get/char/8.cc: New.
7073 * 22_locale/money_get/get/char/wrapped_env.cc: New.
7074 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
7075 * 22_locale/money_get/get/wchar_t/1.cc: New.
7076 * 22_locale/money_get/get/wchar_t/2.cc: New.
7077 * 22_locale/money_get/get/wchar_t/3.cc: New.
7078 * 22_locale/money_get/get/wchar_t/4.cc: New.
7079 * 22_locale/money_get/get/wchar_t/5.cc: New.
7080 * 22_locale/money_get/get/wchar_t/6.cc: New.
7081 * 22_locale/money_get/get/wchar_t/7.cc: New.
7082 * 22_locale/money_get/get/wchar_t/8.cc: New.
7083 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
7084 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
7085 * 22_locale/money_put/1.cc: New.
7086 * 22_locale/money_put/2.cc: New.
7087 * 22_locale/money_put/put/char/1.cc: New.
7088 * 22_locale/money_put/put/char/2.cc: New.
7089 * 22_locale/money_put/put/char/3.cc: New.
7090 * 22_locale/money_put/put/char/4.cc: New.
7091 * 22_locale/money_put/put/char/5.cc: New.
7092 * 22_locale/money_put/put/char/6.cc: New.
7093 * 22_locale/money_put/put/char/wrapped_env.cc: New.
7094 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
7095 * 22_locale/money_put/put/wchar_t/1.cc: New.
7096 * 22_locale/money_put/put/wchar_t/2.cc: New.
7097 * 22_locale/money_put/put/wchar_t/3.cc: New.
7098 * 22_locale/money_put/put/wchar_t/4.cc: New.
7099 * 22_locale/money_put/put/wchar_t/5.cc: New.
7100 * 22_locale/money_put/put/wchar_t/6.cc: New.
7101 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
7102 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
7103 * 22_locale/moneypunct/1.cc: New.
7104 * 22_locale/moneypunct/2.cc: New.
7105 * 22_locale/moneypunct/3.cc: New.
7106 * 22_locale/moneypunct/members/char/1.cc: New.
7107 * 22_locale/moneypunct/members/char/2.cc: New.
7108 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
7109 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
7110 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
7111 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
7112 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
7113 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
7114 * 22_locale/moneypunct_byname/1.cc: New.
7115 * 22_locale/num_get/1.cc: New.
7116 * 22_locale/num_get/2.cc: New.
7117 * 22_locale/num_get/get/char/1.cc: New.
7118 * 22_locale/num_get/get/char/2.cc: New.
7119 * 22_locale/num_get/get/char/3.cc: New.
7120 * 22_locale/num_get/get/char/4.cc: New.
7121 * 22_locale/num_get/get/char/5.cc: New.
7122 * 22_locale/num_get/get/char/6.cc: New.
7123 * 22_locale/num_get/get/char/wrapped_env.cc: New.
7124 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
7125 * 22_locale/num_get/get/wchar_t/1.cc: New.
7126 * 22_locale/num_get/get/wchar_t/2.cc: New.
7127 * 22_locale/num_get/get/wchar_t/3.cc: New.
7128 * 22_locale/num_get/get/wchar_t/4.cc: New.
7129 * 22_locale/num_get/get/wchar_t/5.cc: New.
7130 * 22_locale/num_get/get/wchar_t/6.cc: New.
7131 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
7132 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
7133 * 22_locale/num_put/1.cc: New.
7134 * 22_locale/num_put/2.cc: New.
7135 * 22_locale/num_put/put/char/1.cc: New.
7136 * 22_locale/num_put/put/char/2.cc: New.
7137 * 22_locale/num_put/put/char/3.cc: New.
7138 * 22_locale/num_put/put/char/4.cc: New.
7139 * 22_locale/num_put/put/char/5.cc: New.
7140 * 22_locale/num_put/put/char/wrapped_env.cc: New.
7141 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
7142 * 22_locale/num_put/put/wchar_t/1.cc: New.
7143 * 22_locale/num_put/put/wchar_t/2.cc: New.
7144 * 22_locale/num_put/put/wchar_t/3.cc: New.
7145 * 22_locale/num_put/put/wchar_t/4.cc: New.
7146 * 22_locale/num_put/put/wchar_t/5.cc: New.
7147 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
7148 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
7149 * 22_locale/numpunct/1.cc: New.
7150 * 22_locale/numpunct/2.cc: New.
7151 * 22_locale/numpunct/members/char/1.cc: New.
7152 * 22_locale/numpunct/members/char/2.cc: New.
7153 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
7154 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
7155 * 22_locale/numpunct/members/wchar_t/1.cc: New.
7156 * 22_locale/numpunct/members/wchar_t/2.cc: New.
7157 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
7158 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
7159 * 22_locale/numpunct_byname/1.cc: New.
7160 * 22_locale/numpunct_byname/2.cc: New.
7161 * 22_locale/time_get/1.cc: New.
7162 * 22_locale/time_get/2.cc: New.
7163 * 22_locale/time_get/date_order/char/1.cc: New.
7164 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
7165 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
7166 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
7167 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
7168 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
7169 * 22_locale/time_get/get_date/char/1.cc: New.
7170 * 22_locale/time_get/get_date/char/2.cc: New.
7171 * 22_locale/time_get/get_date/char/3.cc: New.
7172 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
7173 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
7174 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
7175 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
7176 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
7177 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
7178 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
7179 * 22_locale/time_get/get_monthname/char/1.cc: New.
7180 * 22_locale/time_get/get_monthname/char/2.cc: New.
7181 * 22_locale/time_get/get_monthname/char/3.cc: New.
7182 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
7183 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
7184 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
7185 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
7186 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
7187 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
7188 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
7189 * 22_locale/time_get/get_time/char/1.cc: New.
7190 * 22_locale/time_get/get_time/char/2.cc: New.
7191 * 22_locale/time_get/get_time/char/3.cc: New.
7192 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
7193 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
7194 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
7195 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
7196 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
7197 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
7198 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
7199 * 22_locale/time_get/get_weekday/char/1.cc: New.
7200 * 22_locale/time_get/get_weekday/char/2.cc: New.
7201 * 22_locale/time_get/get_weekday/char/3.cc: New.
7202 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
7203 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
7204 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
7205 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
7206 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
7207 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
7208 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
7209 * 22_locale/time_get/get_year/char/1.cc: New.
7210 * 22_locale/time_get/get_year/char/3.cc: New.
7211 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
7212 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
7213 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
7214 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
7215 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
7216 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
7217 * 22_locale/time_put/1.cc: New.
7218 * 22_locale/time_put/2.cc: New.
7219 * 22_locale/time_put/put/char/1.cc: New.
7220 * 22_locale/time_put/put/char/10.cc: New.
7221 * 22_locale/time_put/put/char/2.cc: New.
7222 * 22_locale/time_put/put/char/3.cc: New.
7223 * 22_locale/time_put/put/char/4.cc: New.
7224 * 22_locale/time_put/put/char/5.cc: New.
7225 * 22_locale/time_put/put/char/6.cc: New.
7226 * 22_locale/time_put/put/char/7.cc: New.
7227 * 22_locale/time_put/put/char/8.cc: New.
7228 * 22_locale/time_put/put/char/9.cc: New.
7229 * 22_locale/time_put/put/char/wrapped_env.cc: New.
7230 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
7231 * 22_locale/time_put/put/wchar_t/1.cc: New.
7232 * 22_locale/time_put/put/wchar_t/10.cc: New.
7233 * 22_locale/time_put/put/wchar_t/2.cc: New.
7234 * 22_locale/time_put/put/wchar_t/3.cc: New.
7235 * 22_locale/time_put/put/wchar_t/4.cc: New.
7236 * 22_locale/time_put/put/wchar_t/5.cc: New.
7237 * 22_locale/time_put/put/wchar_t/6.cc: New.
7238 * 22_locale/time_put/put/wchar_t/7.cc: New.
7239 * 22_locale/time_put/put/wchar_t/8.cc: New.
7240 * 22_locale/time_put/put/wchar_t/9.cc: New.
7241 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
7242 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
7244 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
7246 * config/locale/generic/messages_members.h
7247 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
7248 unqualified members of base clasess.
7250 2003-01-16 Mark Mitchell <mark@codesourcery.com>
7251 Jeffrey Oldham <oldham@codesourcery.com>
7253 * config/locale/gnu/messages_members.h: Use this-> to refer to
7254 unqualified members of base clasess.
7255 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
7256 * include/bits/codecvt.h: Likewise.
7257 * include/bits/deque.tcc: Likewise.
7258 * include/bits/fstream.tcc: Likewise.
7259 * include/bits/istream.tcc: Likewise.
7260 * include/bits/list.tcc: Likewise.
7261 * include/bits/locale_facets.h: Likewise.
7262 * include/bits/ostream.tcc: Likewise.
7263 * include/bits/sstream.tcc: Likewise.
7264 * include/bits/stl_bvector.h: Likewise.
7265 * include/bits/stl_deque.h: Likewise.
7266 * include/bits/stl_list.h: Likewise.
7267 * include/bits/stl_tree.h: Likewise.
7268 * include/bits/stl_vector.h: Likewise.
7269 * include/bits/vector.tcc: Likewise.
7270 * include/ext/ropeimpl.h: Likewise.
7271 * include/ext/stdio_filebuf.h: Likewise.
7272 * include/ext/stl_rope.h: Likewise.
7273 * include/std/std_fstream.h: Likewise.
7274 * include/std/std_sstream.h: Likewise.
7276 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
7278 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
7280 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
7282 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
7283 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
7284 * aclocal.m4: Regenerate.
7285 * configure: Regenerate.
7286 * testsuite/Makefile.am (all-local): Add conditional rule to
7287 generate testsuite_wchar_t.
7288 * testsuite/Makefile.in: Regenerate.
7289 * testsuite/lib/libstdc++-v3-dg.exp
7290 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
7291 testsuite_wchar_t is not present in the build directory.
7292 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
7293 Remove setulimit bits.
7294 * testsuite/26_numerics/complex_value.cc: Set to noopts.
7295 * testsuite/Makefile.am (CLEANFILES): Add.
7296 * testsuite/Makefile.in: Regenerate.
7298 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7300 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
7303 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
7305 Further conform g++'s __vmi_class_type_info to the C++ ABI
7307 * libsupc++/cxxabi.h
7308 (__vmi_class_type_info::__flags_masks): Remove enumerations not
7309 required by the specification.
7311 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
7313 Renames, namespaces for testsuite utilities.
7314 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
7315 (gnu_allocator_tracker): Rename to allocation_tracker.
7316 (gnu_new_allocator): Rename to tracker_alloc.
7317 (__set_testsuite_memlimit): Rename to set_memory_limits.
7318 (gnu_assignment_operator): Rename to assignment_operator.
7319 (gnu_destructor): Rename to destructor.
7320 (gnu_copy_tracker): Rename to copy_tracker.
7321 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
7322 (run_tests_wrapped_locale): New.
7323 (run_tests_wrapped_env): New.
7324 * testsuite/testsuite_hooks.cc: Same.
7325 (class locale_data): Add.
7326 (class enviornment_variable): Add.
7327 (class not_found): Add.
7328 * testsuite/testsuite_allocator.h: Same.
7329 * testsuite/testsuite_allocator.cc: Same.
7330 * testsuite/23_containers/deque_ctor.cc
7331 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
7333 Change gnu_new_allocator to tracker_alloc.
7334 Change gnu_counting_struct to counter.
7335 Change gnu_copy_tracker to copy_tracker.
7336 Change gnu_copy_constructor to copy_constructor.
7337 Change gnu_assignment_operator to assignment_operator.
7339 * testsuite/23_containers/vector_capacity.cc: Same.
7340 * testsuite/23_containers/vector_ctor.cc (test01): Same.
7341 * testsuite/23_containers/list_modifiers.cc: Change
7342 gnu_copy_tracker to copy_tracker.
7343 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
7344 __set_testsuite_memlimit to set_memory_limits.
7345 * testsuite/21_strings/insert.cc (main): Same.
7346 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
7347 * testsuite/27_io/stringstream.cc: Same.
7348 * testsuite/27_io/stringbuf.cc: Same.
7349 * testsuite/27_io/streambuf.cc: Same.
7350 * testsuite/27_io/ostream.cc: Same.
7351 * testsuite/27_io/istream.cc: Same.
7352 * testsuite/27_io/fstream.cc: Same.
7353 * testsuite/lib/libstdc++-v3-dg.exp
7354 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
7355 three levels deeper in glob patterns.
7357 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
7359 * docs/doxygen/tables.html: Finished now.
7360 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
7361 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
7364 * include/bits/deque.tcc, include/bits/stl_alloc.h,
7365 include/bits/stl_deque.h, include/bits/stl_list.h,
7366 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
7369 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
7371 * configure.in: Revert.
7372 * configure: Regenerate.
7374 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
7376 * include/Makefile.am (install-data-local): Prepend
7377 $(DESTDIR) to destination paths in all (un)installation
7378 commands. Use ${c_base_builddir} and ${std_builddir}
7379 as destination subdirectories to achieve consistency with
7380 preceding mkinstalldirs commands. No effect because both
7381 variables contain "." only.
7382 * include/Makefile.in: Regenerate.
7384 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
7386 * include/Makefile.am (stamp-*): Add checks for existing stamps.
7387 * include/Makefile.in: Regenerate.
7389 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
7390 * aclocal.m4: Regenerate.
7392 * configure.in: Don't add new multi-do rules every time the
7393 directory is reconfigured.
7394 * configure: Regenerate.
7396 2003-01-08 Brad Spencer <spencer@infointeractive.com>
7397 Nathan Myers <ncm@cantrip.org>
7399 * src/Makefile.am (stamp-debug): Clean.
7400 * src/Makefile.in: Regenerate.
7402 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
7405 * Makefile.am (distclean-multi): Fix.
7406 * Makefile.in: Regenerate.
7408 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
7410 * include/bits/locale_facets.h (messages): Move ctor, dtor
7412 (__timepunct): Same.
7413 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
7414 definitions. Conditionalize for GNU systems.
7415 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
7417 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
7418 definitions. Conditionalize for GNU systems.
7419 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
7421 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
7422 * src/locale.cc: Define.
7423 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
7425 * config/locale/gnu/time_members.h: Use it.
7426 * config/locale/gnu/messages_members.h: Use it.
7427 * config/linker-map.gnu: Add locale::facets details.
7428 * include/Makefile.am (target_headers_extra): Add time_members.h.
7429 * include/Makefile.in: Regenerate.
7430 * acinclude.m4: Export CTIME_H.
7431 * aclocal.m4: Regenerate.
7432 * configure: Regnerate.
7434 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
7437 (codecvt<char, char, mbstate_t>::do_in, do_out):
7438 Tweak parameters to avoid unused parameter warnings.
7440 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
7443 * include/bits/locale_facets.cc (num_put::_M_convert_float):
7444 Limit __prec to digits10 + 2, not digits10 + 1, taking into
7445 account the possibility of %{g,G} conversion specifiers
7446 inside _S_format_float.
7447 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
7449 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7451 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
7452 libstdc++-v3-list-sourcefiles): Additionally handle files one
7453 level deeper in glob patterns.
7455 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
7456 * testsuite/27_io/istream_extractor_arith/01.cc,
7457 testsuite/27_io/istream_extractor_arith/02.cc,
7458 testsuite/27_io/istream_extractor_arith/03.cc,
7459 testsuite/27_io/istream_extractor_arith/06.cc,
7460 testsuite/27_io/istream_extractor_arith/07.cc,
7461 testsuite/27_io/istream_extractor_arith/08.cc,
7462 testsuite/27_io/istream_extractor_arith/09.cc,
7463 testsuite/27_io/istream_extractor_arith/10.cc,
7464 testsuite/27_io/istream_extractor_arith/11.cc,
7465 testsuite/27_io/istream_extractor_arith/12.cc,
7466 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
7467 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
7470 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
7474 (codecvt<char, char, mbstate_t>::do_in, do_out):
7475 Implement the resolution of DR19 (TC).
7476 * testsuite/22_locale/codecvt_members_char_char.cc
7479 2003-01-02 Jason Merrill <jason@redhat.com>
7481 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
7482 *__mem is also an output.
7483 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.