1 2003-11-14 Paolo Carlini <pcarlini@suse.de>
3 * docs/html/ext/howto.html: Add entries for DR 63, 75
4 and 305; tweak entries for DR 60 and 328.
6 2003-11-13 Douglas Gregor <gregod@cs.rpi.edu>
8 * docs/html/debug.html: Users are allowed to specialize in
9 namespace __gnu_debug, unlike in the Apple version of the debug
10 mode. Clear up a confusing double-negative. Note that
11 std::basic_string does provide extra debugging capabilities, but
13 * include/bits/basic_string.tcc: Make sure there's never an
14 ambiguity when calling __is_null_pointer.
15 * include/debug/deque: (deque::erase) Properly handle invalidation
16 when erasing at the end of the deque.
17 * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
18 (vector::clear): Set the guaranteed capacity to 0.
19 * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
20 iterator invalidation when erasing at the end of the deque.
22 2003-11-13 Paolo Carlini <pcarlini@suse.de>
23 Petur Runolfsson <peturr02@ru.is>
26 * include/bits/fstream.tcc (imbue): Don't touch the stored
28 * include/std/std_streambuf.h (imbue): According to the
29 standard, base class version does nothing.
30 (pubimbue): Store the locale.
31 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
32 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
33 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
34 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
35 * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
36 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
37 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
38 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
40 2003-11-13 Petur Runolfsson <peturr02@ru.is>
43 * include/bits/ostream.tcc
44 (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
45 basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
46 basic_ostream::operator<<(ios_base& (*)(ios_base&))):
47 Implement the resolution of DR 60 (TC): These are not formatted
48 output functions so don't construct sentry objects and don't
50 (basic_ostream::put, basic_ostream::write): Implement the
51 resolution of DR 63 (TC) by catching exceptions and setting
53 (basic_ostream::flush): Implement the resolution of DR 60 (TC):
54 This is not an unformatted output function so don't construct
56 * testsuite/testsuite_io.h (sync_streambuf): Define.
57 * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
58 * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
59 * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
60 * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
62 2003-11-13 Paolo Carlini <pcarlini@suse.de>
64 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
65 Fix, closely following the testcase included in the PR.
66 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
67 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
68 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
70 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
72 * docs/html/17_intro/configury.html: XHTML tweak.
74 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
76 * docs/html/debug_mode.html: XHTML fixes.
78 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
80 * docs/html/debug_mode.html: Update.
81 * docs/html/17_intro/TODO: Update.
83 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
85 * include/bits/c++config: Move using directive...
86 * include/debug/formatter.h: ...here.
88 2003-11-12 Carlo Wood <carlo@alinoe.com>
92 (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
93 (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
94 (session<Allocator>::next_peek() const): Added.
95 (decode_non_negative_decimal_integer(string_type&)):
96 Renamed from decode_decimal_integer(string_type&).
97 (session<Allocator>::decode_nested_name):
98 Decode <template_param> as well.
99 (session<Allocator>::add_substitution):
100 Handle <template-param> for <nested-name>'s.
101 (enum xary_nt): Added.
102 (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
103 (symbol_name_table_c): Updated for `entry_st::type' and additional
104 operators (unary `operator+' and `sizeof(type)').
105 (offset_table_c): Updated for new operators (causing a new hash map).
106 (decode_operator_name): Match the updated hash map.
107 (session<Allocator>::decode_expression):
108 Support for `sizeof ([typename] type)' (st),
109 dependent names (sr) and casting operator (cv). Handle
110 `entry_st::type'. Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
111 and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
112 (session<Allocator>::decode_type_with_postfix):
113 Support `extern "C"' function types (FY).
114 * testsuite/demangle/regression/cw-16.cc: Added tests for the
116 * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
119 2003-11-11 Paolo Carlini <pcarlini@suse.de>
122 * include/bits/fstream.tcc (setbuf): Don't do anything
123 after open(), in particular don't discard data.
124 (_M_allocate_internal_buffer): Tweak to not allocate memory
125 in case the buffer is provided by the user via setbuf.
126 * include/ext/stdio_filebuf.h: Tweak comment.
127 * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
128 * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
129 * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
130 setbuf does nothing after open().
131 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
133 2003-11-11 Doug Gregor <gregod@cs.rpi.edu>
135 * docs/html/debug.html: Document libstdc++ debug mode.
136 * docs/html/debug_mode.html: Document libstdc++ debug mode design.
137 * docs/html/test.html: Document how to test under debug mode.
138 * docs/html/17_intro/howto.html: Document debug-mode macros.
139 * include/Makefile.am: Install debug-mode headers.
140 * src/Makefile.am: Include debug.cc.
141 * include/bits/basic_string.tcc:
142 (basic_string::_S_construct): Fix NULL pointer check.
143 (__is_null_pointer): New.
144 Add precondition annotations.
145 * include/bits/stream_iterator.h (istream_iterator,
146 ostream_iterator): Added precondition annotations.
147 * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
148 * include/bits/stl_queue.h (queue, priority_queue): Ditto.
149 * include/bits/stl_stack.h (stack): Ditto.
150 * include/bits/basic_string.h (basic_string): Ditto.
151 * include/bits/basic_string.tcc (basic_string): Ditto.
152 * include/std/std_memory.h (auto_ptr): Ditto.
153 * include/std/std_valarray.h (valarray): Ditto.
154 * include/bits/stl_algo.h: Added algorithm precondition
156 * include/bits/stl_algobase.h: Added algorithm precondition
158 * include/bits/stl_numeric.h: Ditto.
159 * include/ext/algorithm: Added algorithm precondition
161 (__is_heap): Moved away from here.
162 * include/bits/stl_heap.h: Added algorithm precondition
164 (__is_heap): Moved to the top of this file.
165 (__is_heap): Added iterator range overloads.
166 * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
167 with changes in std_memory.h.
168 * testsuite/23_containers/list/operators/4.cc: Don't verify
169 performance guarantees when in debug mode.
170 * testsuite/23_containers/bitset/invalidation/1.cc: New.
171 * testsuite/23_containers/deque/invalidation/1.cc: New.
172 * testsuite/23_containers/deque/invalidation/2.cc: New.
173 * testsuite/23_containers/deque/invalidation/3.cc: New.
174 * testsuite/23_containers/deque/invalidation/4.cc: New.
175 * testsuite/23_containers/list/invalidation/1.cc: New.
176 * testsuite/23_containers/list/invalidation/2.cc: New.
177 * testsuite/23_containers/list/invalidation/3.cc: New.
178 * testsuite/23_containers/list/invalidation/4.cc: New.
179 * testsuite/23_containers/map/invalidation/1.cc: New.
180 * testsuite/23_containers/map/invalidation/2.cc: New.
181 * testsuite/23_containers/multimap/invalidation/1.cc: New.
182 * testsuite/23_containers/multimap/invalidation/2.cc: New.
183 * testsuite/23_containers/multiset/invalidation/1.cc: New.
184 * testsuite/23_containers/multiset/invalidation/2.cc: New.
185 * testsuite/23_containers/set/invalidation/1.cc: New.
186 * testsuite/23_containers/set/invalidation/2.cc: New.
187 * testsuite/23_containers/vector/invalidation/1.cc: New.
188 * testsuite/23_containers/vector/invalidation/2.cc: New.
189 * testsuite/23_containers/vector/invalidation/3.cc: New.
190 * testsuite/23_containers/vector/invalidation/4.cc: New.
191 * testsuite/25_algorithms/heap.cc: Don't verify
192 performance guarantees when in debug mode.
193 * include/debug/bitset: New.
194 * include/debug/debug.h: New.
195 * include/debug/deque: New.
196 * include/debug/formatter.h: New.
197 * include/debug/hash_map: New.
198 * include/debug/hash_map.h: New.
199 * include/debug/hash_multimap.h: New.
200 * include/debug/hash_set: New.
201 * include/debug/hash_set.h: New.
202 * include/debug/hash_multiset.h: New.
203 * include/debug/list: New.
204 * include/debug/map: New.
205 * include/debug/map.h: New.
206 * include/debug/multimap.h: New.
207 * include/debug/multiset.h: New.
208 * include/debug/safe_base.h: New.
209 * include/debug/safe_iterator.h: New.
210 * include/debug/safe_iterator.tcc: New.
211 * include/debug/safe_sequence.h: New.
212 * include/debug/set: New.
213 * include/debug/set.h: New.
214 * include/debug/string: New.
215 * include/debug/vector: New.
217 * config/linker-map.gnu: Add debug mode symbols.
219 2003-11-11 Benjamin Kosnik <bkoz@redhat.com>
221 * src/string-inst.cc: Tweak namespaces.
222 * src/misc-inst.cc: Same.
223 * docs/html/debug.html: Edits.
224 * config/link-map.gnu: Remove cruft.
226 * include/bits/c++config: Add in namespace associations.
227 * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
229 * include/bits/deque.tcc: Same.
230 * include/bits/list.tcc: Same.
231 * include/bits/stl_bvector.h: Same.
232 * include/bits/stl_deque.h: Same.
233 * include/bits/stl_list.h: Same.
234 * include/bits/stl_map.h: Same.
235 * include/bits/stl_multimap.h: Same.
236 * include/bits/stl_multiset.h: Same.
237 * include/bits/stl_set.h: Same.
238 * include/bits/stl_vector.h: Same.
239 * include/bits/vector.tcc: Same.
241 * include/std/std_algorithm.h: Remove markup comments.
242 * include/std/std_functional.h: Same.
243 * include/std/std_iterator.h: Same.
244 * include/std/std_numeric.h: Same.
245 * include/std/std_utility.h: Same.
246 * include/bits/stl_queue.h: Formatting tweaks.
247 * include/bits/stl_stack.h: Same.
248 * include/std/std_deque.h: Include debugging version in debug mode.
249 * include/std/std_list.h: Same.
250 * include/std/std_map.h: Same.
251 * include/std/std_set.h: Same.
252 * include/std/std_vector.h: Same.
253 * include/std/std_queue.h: Use deque, vector.
254 * include/std/std_stack.h: Same.
256 2003-11-09 Paolo Carlini <pcarlini@suse.de>
258 * include/bits/locale_facets.tcc (_M_insert_int,
259 _M_insert_float): Move a couple of vars inside an if block.
261 2003-11-09 Paolo Carlini <pcarlini@suse.de>
264 * include/bits/locale_facets.tcc
265 (money_put::do_put(..., long double)): Fix conversion
266 specification as per DR 328 [WP].
267 * testsuite/22_locale/money_put/put/char/12971.cc: Add.
268 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
269 * docs/html/ext/howto.html: Add entry for DR 328.
271 2003-11-08 Paolo Carlini <pcarlini@suse.de>
274 * include/bits/list.tcc (merge): Implement resolution of
276 * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
279 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
282 2003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
284 * libsupc++/vec.cc: Conform to C++STYLE.
286 2003-11-07 Carlo Wood <carlo@alinoe.com>
289 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
290 (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
291 K, V, r and A qualifiers before processing them as a group.
292 * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
293 * testsuite/demangle/regression/cw-16.cc: New.
295 2003-11-07 Robert Millan <robertmh@gnu.org>
297 * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
298 * crossconfig.m4: Likewise.
299 * configure: Regenerate.
301 2003-11-07 Carlo Wood <carlo@alinoe.com>
303 * include/bits/demangle.h
304 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
305 string_type&, bool member_function_pointer_qualifiers):
306 Always separate the '[' of an array type with a space from
307 what is left of it, except when that is the closing bracket
308 of another array dimension.
310 2003-11-07 Carlo Wood <carlo@alinoe.com>
312 * include/bits/demangle.h
313 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
314 string_type&, bool) const): Made const.
315 (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
316 (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
317 std::ostream& operator<<(std::ostream&, qualifier const&),
318 std::ostream& operator<<(std::ostream&, qualifier_list const&),
319 qualifier_list<Allocator>::decode_qualifiers(string_type&,
320 string_type&, bool) const,
321 session<Allocator>::decode_type_with_postfix(string_type&,
322 string_type&, qualifier_list<Allocator>*))
323 Added and/or changed debug-only hooks and code.
325 2003-11-04 Jeffrey D. Oldham <oldham@codesourcery.com>
327 * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
328 immediately return. This reflects a C++ ABI change 2003 Nov 03.
329 (__cxa_vec_delete3): Likewise.
331 2003-11-03 Petur Runolfsson <peturr02@ru.is>
334 * include/bits/fstream.tcc: Delete _M_last_overflowed.
335 (basic_filebuf::basic_filebuf): Initialize _M_state_last.
336 (basic_filebuf::open, basic_filebuf::close): Assign
337 _M_state_beg to _M_state_cur and _M_state_last.
338 (basic_filebuf::close): Call _M_terminate_output to handle
339 unshift and flushing.
340 (basic_filebuf::underflow): Assign _M_state_last, throw
341 exception instead of calling abort when codecvt::max_length()
343 (basic_filebuf::seekoff): Use _M_state_last when calling
344 codecvt::length(), pass correct state to _M_seek.
345 (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
346 (basic_filebuf::_M_seek): Add __state_type parameter,
347 set _M_state_cur correctly, store the resulting state in
348 the return value and use _M_terminate_output to handle
349 flushing and unshift.
350 (basic_filebuf::_M_terminate_output): Flush contents of
351 output buffer, if any, then call codecvt::unshift as
352 needed and output the result.
353 (basic_filebuf::sync): Move here, don't modify _M_writing
356 * include/std/std_fstream.h
357 (basic_filebuf::_M_state_last): Declare it.
358 (basic_filebuf::_M_last_overflowed): Delete.
359 (basic_filebuf::_M_seek): Add __state_type parameter.
360 (basic_filebuf::sync): Declare only.
361 (basic_filebuf::_M_output_unshift): Delete.
362 (basic_filebuf::_M_terminate_output): Declare it.
364 * testsuite/testsuite_character.h:
365 Define character class and state class plus char_traits and
366 codecvt specializations for same for testing support for
369 * testsuite/27_io/basic_filebuf/close/12790-1.cc,
370 * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
371 * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
372 * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
373 * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
374 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
375 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
376 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
377 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
378 * testsuite/27_io/basic_filebuf/open/12790-1.cc,
379 * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
380 * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
381 * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
382 * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
383 * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
384 * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
385 * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
386 * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
387 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
388 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
389 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
390 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
391 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
392 * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
393 * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
394 * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
395 * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
396 * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
397 * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
398 * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
399 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
400 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
401 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
402 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
403 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
404 * testsuite/27_io/basic_filebuf/sync/char/1.cc,
405 * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
408 * testsuite/27_io/basic_filebuf/3.cc,
409 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
410 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
411 * testsuite/27_io/basic_fstream/3.cc,
412 * testsuite/27_io/basic_ifstream/3.cc,
413 * testsuite/27_io/basic_ofstream/3.cc:
414 Use streamoff as off_type and fpos<state_type> as pos_type.
416 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
417 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
418 Check that sync does *not* set _M_writing to false.
420 2003-11-03 Anthony Green <green@redhat.com>
422 * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
425 2003-11-03 Benjamin Kosnik <bkoz@redhat.com>
427 * include/bits/locale_facets.h (time_get::_M_extract_name): Add
429 * include/bits/locale_facets.tcc: Same, use it to allow
432 * include/bits/fstream.tcc: Spacing tweak.
433 * include/bits/istream.tcc: Same.
434 * include/bits/ostream.tcc: Same.
436 2003-10-30 Paolo Carlini <pcarlini@suse.de>
438 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
439 __mod is only assigned, never used its value, remove it.
441 2003-10-29 Paolo Carlini <pcarlini@suse.de>
443 * include/bits/locale_facets.tcc (time_get::do_get_year):
444 Absolutely avoid dereferencing end iterators.
445 (time_put::put): Minor clean up.
447 * include/bits/locale_facets.tcc: Cosmetic reformattings.
449 2003-10-29 Paolo Carlini <pcarlini@suse.de>
451 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
452 Revert the last commit, is not correct, sorry.
454 2003-10-29 Paolo Carlini <pcarlini@suse.de>
456 * config/locale/generic/c_locale.cc: Add back <cmath> and
459 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
462 2003-10-29 Paolo Carlini <pcarlini@suse.de>
464 * include/bits/locale_facets.tcc (time_put::put): Absolutely
465 avoid dereferencing end iterators; clean up.
467 * include/bits/locale_facets.tcc (num_get::_M_extract_float,
468 num_get::_M_extract_int): Minor tweak.
470 2003-10-29 Paolo Carlini <pcarlini@suse.de>
472 * include/bits/locale_facets.tcc: Remove some unnecessary
474 * config/locale/generic/c_locale.cc: Include <cerrno> here.
475 * config/locale/gnu/c_locale.cc: Likewise.
477 2003-10-28 Paolo Carlini <pcarlini@suse.de>
479 * include/bits/locale_facets.tcc
480 (money_get<>::do_get(..., string_type&)): Absolutely avoid
481 dereferencing end iterators; general clean up.
483 2003-10-28 Paolo Carlini <pcarlini@suse.de>
485 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
486 Absolutely avoid dereferencing end iterators.
487 (time_get::_M_extract_name): Likewise.
489 * include/bits/locale_facets.tcc
490 (time_get::_M_extract_via_format, case 'e'): Don't try to
491 be smart wrt returning the right __beg in case of parse
492 error, time_get::_M_extract_num must be fixed instead.
494 2003-10-27 Paolo Carlini <pcarlini@suse.de>
497 * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
498 * aclocal.m4: Regenerate.
499 * configure: Regenerate.
501 2003-10-27 Benjamin Kosnik <bkoz@redhat.com>
503 * docs/html/17_intro/TODO: Add links.
504 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
507 2003-10-27 Paolo Carlini <pcarlini@suse.de>
510 * include/bits/locale_facets.tcc
511 (time_get::_M_extract_via_format): Deal with code 'e'.
512 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
513 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
515 * include/bits/locale_facets.tcc
516 (time_get::_M_extract_via_format): Tweak to absolutely avoid
517 dereferencing end iterators.
519 * include/bits/locale_facets.h (__verify_grouping):
520 Const-ify second parameter.
521 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
522 * src/locale-inst.cc (__verify_grouping): Ditto.
524 2003-10-27 Paolo Carlini <pcarlini@suse.de>
526 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
527 Various things: 1- Avoid absolutely end iterator dereferences;
528 2- Improve performance-wise the code skipping leading zeros;
529 3- Fix two bugs wrt early bail out in case of parsing errors
530 (see testcases); 4- General clean up.
531 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
532 use __builtin_expect to favor base 10 inputs.
533 * testsuite/22_locale/num_get/get/char/7.cc: New.
534 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
536 2003-10-26 Paolo Carlini <pcarlini@suse.de>
538 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
539 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
541 2003-10-25 Paolo Carlini <pcarlini@suse.de>
543 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
544 __pos in only incremented, never used its value, remove it.
546 2003-10-24 Robert Millan <robertmh@gnu.org>
548 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
550 * aclocal.m4: Regenerated.
551 * configure: Regenerated.
553 2003-10-24 Paolo Carlini <pcarlini@suse.de>
555 * include/bits/locale_facets.tcc (money_get::do_get(...,
556 long double&): Properly size the temporary buffer.
557 * testsuite/22_locale/money_get/get/char/11.cc: New.
558 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
560 * include/bits/locale_facets.tcc (num_put::_M_group_int,
561 num_put::_M_group_float, money_put::do_put(..., const
562 string_type&), collate::do_compare, collate::do_transform):
563 Prefer basic_string::data() to c_str() when the '\0'
564 terminator is not really needed.
566 2003-10-24 Paolo Carlini <pcarlini@suse.de>
568 * include/bits/locale_facets.tcc (__verify_grouping):
569 Prefer '=' to an unnecessary '&='.
571 2003-10-24 Paolo Carlini <pcarlini@suse.de>
573 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
574 Tweak my fix for libstdc++/12657.
576 2003-10-24 Paolo Carlini <pcarlini@suse.de>
578 * include/bits/locale_facets.tcc (money_get::do_get(...,
579 string_type&): Minor tweak to the previous commit.
581 2003-10-24 Paolo Carlini <pcarlini@suse.de>
583 * include/bits/locale_facets.tcc (money_get::do_get(...,
584 string_type&): Disregard the previous commit: doesn't hurt but
585 doesn't accomplish anything useful either. This is the right
586 one, speeding up greatly the function in case of early fail.
588 2003-10-24 Paolo Carlini <pcarlini@suse.de>
590 * include/bits/locale_facets.tcc (money_get::do_get(...,
591 string_type&): Move an if block, thus minimizing the amount
592 of code processed anyway when __tmp_units.size() == 0.
594 2003-10-24 Paolo Carlini <pcarlini@suse.de>
596 * include/bits/locale_facets.tcc
597 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
600 2003-10-23 Benjamin Kosnik <bkoz@redhat.com>
602 * docs/html/documentation.html: Add a pointer to the doxygen style
604 * docs/html/17_intro/TODO: Update.
605 * docs/html/test.html: Add instructions for running a subset of
608 2003-10-23 Paolo Carlini <pcarlini@suse.de>
610 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
611 string_type&)): Use find_first_not_of to strip leading
612 zeros; if __tmp_units == "0" never prefix it with '-';
613 always fail if __tmp_units is empty.
614 * testsuite/22_locale/money_get/get/char/10.cc: New.
615 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
617 2003-10-23 Phil Edwards <phil@codesourcery.com>
619 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
622 2003-10-22 Paolo Carlini <pcarlini@suse.de>
624 * include/bits/locale_facets.tcc (__int_to_char): Remove
625 the const int parameter.
626 (_M_insert_int): Update caller.
627 * src/locale-inst.cc (__int_to_char): Update instantiations.
629 2003-10-22 Benjamin Kosnik <bkoz@redhat.com>
631 * include/bits/locale_facets.h: Correct byname facets for "C"
633 * config/locale/generic/ctype_members.cc: Same.
634 * config/locale/generic/messages_members.h: Same.
635 * config/locale/gnu/ctype_members.cc: Same.
636 * config/locale/gnu/messages_members.h: Same.
637 * include/bits/codecvt.h: Same.
638 * src/ctype.cc: Same.
639 * testsuite/22_locale/codecvt_byname/1.cc: New.
640 * testsuite/22_locale/collate/1.cc: Edit.
641 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
642 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
643 * testsuite/22_locale/ctype/1.cc: Derivation tests.
644 * testsuite/22_locale/ctype/11844.cc: Move...
645 * testsuite/22_locale/ctype_base/11844.cc: ...here.
646 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
647 * testsuite/22_locale/ctype_byname/1.cc: Name.
648 * testsuite/22_locale/messages_byname/1.cc: New.
649 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
650 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
651 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
652 * testsuite/22_locale/numpunct/1.cc: Edit.
653 * testsuite/22_locale/numpunct_byname/2.cc: Move...
654 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
655 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
656 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
658 2003-10-22 Paolo Carlini <pcarlini@suse.de>
661 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
662 checking for the availability of int64_t.
663 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
664 * configure.ac: Call here.
665 * acconfig.h: Add undef for the corresponding symbols.
666 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
667 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
668 (__basic_file<char>::seekoff): Likewise, call lseek64 when
669 available, otherwise lseek, checking the __off parameter.
670 * include/bits/postypes.h: Typedef __streamoff_base_type
671 to int64_t if available, otherwise long long.
672 * aclocal.m4: Regenerate.
673 * config.h.in: Likewise.
674 * configure: Likewise.
676 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
677 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
679 2003-10-22 Paolo Carlini <pcarlini@suse.de>
682 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
683 Implement resolution of DR 292 (WP).
684 * docs/html/ext/howto.html: Add entry for DR 292.
686 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
688 * include/ext/mt_allocator.h: Change include to gthr.h.
689 * include/ext/rope: Same. Add _Refcount_base definitions.
690 * include/ext/pool_allocator.h: Adjust namespaces.
691 * include/bits/stl_threads.h (_Refcount_base): Move.
692 Put remaining into namespace __gnu_cxx.
694 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
697 * include/bits/locale_facets.h (ctype<char>): Remove
698 __ctype_abstract_base.
699 (ctype<char>::do_is): Remove.
700 (ctype<char>::do_scan_is): Remove.
701 * src/ctype.cc: Same. Inline the rest.
702 * testsuite/22_locale/ctype/is/char/9858.cc: New.
703 * config/os/aix/ctype_noninline.h: Adjust ctor.
704 * config/os/bsd/freebsd/ctype_noninline.h: Same.
705 * config/os/bsd/netbsd/ctype_noninline.h: Same.
706 * config/os/djgpp/ctype_noninline.h: Same.
707 * config/os/generic/ctype_noninline.h: Same.
708 * config/os/gnu-linux/ctype_noninline.h: Same.
709 * config/os/hpux/ctype_noninline.h: Same.
710 * config/os/irix/irix5.2/ctype_noninline.h: Same.
711 * config/os/irix/irix6.5/ctype_noninline.h: Same.
712 * config/os/mingw32/ctype_noninline.h: Same.
713 * config/os/newlib/ctype_noninline.h: Same.
714 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
715 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
716 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
717 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
718 * config/os/windiss/ctype_noninline.h: Same.
720 2003-10-21 Paolo Carlini <pcarlini@suse.de>
722 * src/locale.cc: Tweak a comment.
723 * src/localename.cc: Move a comment.
725 2003-10-20 Benjamin Kosnik <bkoz@redhat.com>
728 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
729 * testsuite_hooks.cc: Same.
730 * 22_locale/numpunct/members/pod/1.cc: Edit.
731 * 22_locale/numpunct/members/pod/2.cc: Same.
732 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
733 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
734 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
735 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
736 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
737 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
738 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
739 * 27_io/basic_istream/sentry/pod/1.cc: New.
740 * 27_io/basic_ostream/sentry/pod/1.cc: New.
741 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
742 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
744 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
746 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
747 of external _MIPS_SIM_ABI32.
749 2003-10-20 Phil Edwards <phil@codesourcery.com>
751 * configure.ac: Fix comment typo.
752 * configure.host: Add vxworks to host_os switch.
753 * crossconfig.m4: Remove old commented os_include_dir variables
754 left over from autotools transition.
755 (*-vxworks): New stanza.
756 (*-windiss): Add missing symbols.
757 * configure: Regenerate.
758 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
759 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
761 * config/os/windiss/os_defines.h: Define __C9X__.
763 2003-10-19 David Edelsohn <edelsohn@gnu.org>
766 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
768 2003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
770 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
771 confusion of the use of the gthr API when __gthread_active_p()
774 2003-10-17 Benjamin Kosnik <bkoz@redhat.com>
776 * src/Makefile.am: Add new files.
777 * src/Makefile.in: Regenerate.
778 * src/globals.cc: Split into..
779 * src/globals_io.cc: New.
780 * src/globals_locale.cc: New.
781 * src/ios.cc: Split into...
782 * src/ios_init.cc: New.
783 * src/ios_locale.cc: New.
784 * src/locale-inst.cc: Split into..
785 * src/wlocale-inst.cc: New.
786 * src/locale-misc-inst.cc: New.
787 * src/locale.cc, src/localename: Split into...
788 * src/locale_facets.cc: New.
789 * src/locale_init.cc: New.
790 * src/wstring-inst.cc: Add copyright info.
792 2003-10-16 Petur Runolfsson <peturr02@ru.is>
797 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
798 Change return value from streampos to streamoff.
799 (__basic_file::seekpos): Delete.
800 * config/io/basic_file_stdio.h: Same.
801 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
802 * include/Makefile.am (bits_headers): Add bits/postypes.h.
803 * include/bits/char_traits.h: Include bits/postypes.h instead of
805 * include/bits/fstream.tcc (basic_filebuf::open,
806 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
807 values, use == and != instead.
808 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
810 (basic_filebuf::imbue): Don't use ! on pos_type values, use
811 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
812 * include/bits/postypes.h: New file.
813 Add __streamoff_base_type typedef, streamsize.
814 (streamoff, streampos, wstreampos): Define typedefs, with
815 streamoff defined as...
816 (streamoff): New class. Document implementation defined
818 (fpos): New implementation. Document implementation defined
820 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
821 explicit conversion from pos_type to off_type.
822 * include/std/std_iosfwd.h: Include bits/postypes.h instead
824 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
825 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
826 * testsuite/27_io/fpos/11450.cc: New test.
827 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
828 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
829 * testsuite/27_io/types/3.cc: New test.
831 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
833 * configure.host: Remove fpos_include_dir.
834 * configure.ac: Remove FPOS_INC_SRCDIR.
835 * configure: Regenerate.
836 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
837 * aclocal.m4: Regenerate.
838 * include/Makefile.am (host_headers): Remove fpos.h.
839 (bits_headers): Add postypes.h.
840 * include/Makefile.in: Regenerate.
841 * config/os/gnu-linux/fposh: Remove.
842 * config/os/generic/fpos.h: Remove.
844 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
845 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
846 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
847 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
848 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
849 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
850 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
851 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
852 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
853 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
854 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
855 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
856 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
857 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
858 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
859 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
860 * testsuite/27_io/objects/char/10.cc: Same.
862 2003-10-16 Paolo Carlini <pcarlini@suse.de>
864 * src/locale.cc (locale::locale(const char*)): ... one
865 more comparison missed in the previous commit.
867 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
869 * acconfig.h: Add HAVE_DRAND48.
870 * crossconfig.m4: Remove ISATTY.
871 * aclocal.m4: Regenerated.
872 * config.h.in: Regenerated.
873 * configure: Regenerated.
875 2003-10-16 Bernardo Innocenti <bernie@develer.com>
877 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
878 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
879 Document SMP safeness of asm macros.
881 2003-10-16 Paolo Carlini <pcarlini@suse.de>
883 * src/locale.cc (locale::locale(const char*)): Tweak
884 a couple of comparisons to use basic_string operators.
886 2003-10-16 Paolo Carlini <pcarlini@suse.de>
889 * config/locale/gnu/monetary_members.cc
890 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
891 Don't leak memory if new throws.
892 * src/locale.cc (locale::locale(const char*)): In order not
893 to leak memory in case new throws, use a basic_string type
894 for __res too and avoid strdup.
896 2003-10-14 Jeff Bailey <jbailey@nisa.net>
899 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
900 * configure: Regenerate.
902 2003-10-14 Carlo Wood <carlo@alinoe.com>
905 * include/bits/demangle.h (session<Allocator>::
906 decode_unqualified_name(string_type& output)): Fail on a
907 <operator-name> when decoding <template-argument>.
908 * testsuite/demangle/regression/cw-15.cc: New.
910 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
913 * include/bits/stl_algo.h (unique): Fix.
914 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
915 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
916 * testsuite/25_algorithms/unique/2.cc: New.
918 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
920 * src/localename.cc (_M_replace_categories, M_replace_facet):
921 Const-ify a couple of variables.
923 2003-10-14 Petur Runolfsson <peturr02@ru.is>
924 Andreas Tobler <a.tobler@schweiz.ch>
926 * src/locale.cc (locale::_S_initialize): Workaround a confusion
927 of the use of the gthr API when __gthread_active_p() returns true.
929 2003-10-12 Petur Runolfsson <peturr02@ru.is>
930 Paolo Carlini <pcarlini@unitus.it>
933 * src/strstream.cc (pbackfail): Fix to use to_int_type.
934 * testsuite/backward/11460.cc: New, from the PR.
936 2003-10-12 Paolo Carlini <pcarlini@unitus.it>
938 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
939 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
940 * include/bits/basic_string.tcc: Likewise.
941 * include/bits/ios_base.h: Likewise.
942 * include/bits/istream.tcc: Likewise.
943 * include/bits/locale_facets.tcc: Likewise.
944 * include/bits/ostream.tcc: Likewise.
945 * include/bits/stl_function.h: Likewise.
946 * include/bits/stl_multiset.h: Likewise.
947 * include/bits/stl_pair.h: Likewise.
948 * include/bits/stl_set.h: Likewise.
949 * include/bits/streambuf_iterator.h
950 * include/std/std_iosfwd.h: Likewise.
951 * include/std/std_istream.h: Likewise.
952 * include/std/std_sstream.h: Likewise.
953 * include/std/std_streambuf.h: Likewise.
954 * src/ios.cc: Likewise.
955 * include/bits/c++config:
956 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
957 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
958 dg-error directive due to removal of a blank line.
959 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
961 2003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
962 Paolo Carlini <pcarlini@unitus.it>
964 PR libstdc++/11844/11740 (cont)
965 * config/os/generic/ctype_inline.h (ctype<char>::is):
966 Generically, use a bitmasksize of 15 (instead of 10);
967 Fix the logic to actually return (M & m) != 0 as per
970 2003-10-11 Bernardo Innocenti <bernie@develer.com>
972 * crossconfig.m4 (*-uclinux*): New target.
973 * configure: Regenerate.
975 2003-10-10 Paolo Carlini <pcarlini@unitus.it>
977 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
978 Avoid unnecessarily calling __builtin_alloca and dealing
979 explicitly with width() smaller than zero.
980 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
981 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
982 const char*), operator<<(basic_ostream<char, _Traits>&,
983 const char*), operator<<(basic_ostream, const basic_string&)):
986 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
988 * config/linker-map.gnu: Make more *_type_info bits visible.
989 Move new/delete bits back into GLIBCXX space.
991 * include/bits/locale_classes.h: Move _M_id out of line, so that
992 locale::id::_S_highwater can be removed from the export list.
993 * src/locale.cc (locale::id::_M_id): Define.
995 2003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
997 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
1000 2003-10-09 Paolo Carlini <pcarlini@unitus.it>
1003 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
1004 to conform to the requirements of 22.2.1.
1005 * config/os/bsd/freebsd/ctype_base.h: Likewise.
1006 * config/os/djgpp/ctype_base.h: Likewise.
1007 * config/os/generic/ctype_base.h: Likewise.
1008 * config/os/gnu-linux/ctype_base.h: Likewise.
1009 * config/os/hpux/ctype_base.h: Likewise.
1010 * config/os/irix/irix6.5/ctype_base.h: Likewise.
1011 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
1012 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
1013 * testsuite/22_locale/ctype/11844.cc: New.
1015 * config/locale/generic/ctype_members.cc (do_is):
1016 Generically, use a bitmasksize of 15 (instead of 10), since
1017 we don't know the numerical encoding of the various categories
1018 in the underlying /usr/include/ctype.h.
1020 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1022 * src/string-inst.cc: Prune.
1023 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1024 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1026 2003-10-09 Petur Runolfsson <peturr02@ru.is>
1028 * src/io-inst.cc: Don't include iostream.
1029 * include/bits/ios_base.h (ios_base::failure): Use string.
1030 * src/Makefile.am: Add ios_failure.cc.
1031 * src/Makefile.in: Regenerate.
1032 * src/ios.cc: Move ios_base::failure definitions to...
1033 * src/ios_failure.cc: ...here. New.
1035 2003-10-09 Petur Runolfsson <peturr02@ru.is>
1038 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1039 Move code needed for both seekoff and seekpos...
1040 (basic_filebuf::_M_seek): ...here. New function.
1041 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
1042 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
1043 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
1045 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
1047 2003-10-08 Paolo Carlini <pcarlini@unitus.it>
1049 * include/bits/locale_facets.tcc: More minor cosmetic
1050 changes and const-ifications of some variables.
1052 2003-10-07 Paolo Carlini <pcarlini@unitus.it>
1054 * include/bits/locale_facets.tcc: Minor cosmetic changes
1055 and const-ifications of some variables.
1057 * include/bits/locale_facets.tcc
1058 (money_get::do_get(..., string_type&)): Simplify an if-else.
1060 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
1063 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
1064 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
1065 * config/locale/generic/ctype_members.cc: Same.
1066 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
1068 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
1070 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
1071 Improve performance-wise: avoid one traits::copy, avoid
1072 the __builtin_alloca, streamline.
1074 2003-10-05 Paolo Carlini <pcarlini@unitus.it>
1076 * include/bits/locale_facets.tcc
1077 (num_put::do_put(..., bool)): Prefer ?: to if-else.
1078 (time_get::_M_extract_name): Qualify min with std::.
1079 (__pad<>::_S_pad): Constify two variables; simplify an
1080 if-else statement factoring out some code.
1082 * include/bits/locale_facets.tcc: Minor cosmetic changes.
1084 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1086 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1087 Constify a couple of variables.
1088 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
1089 ++__beg to *__beg++.
1091 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1092 Petur Runolfsson <peturr02@ru.is>
1094 * include/ext/stdio_sync_filebuf.h: Don't include the whole
1095 <fstream>, only <streambuf> and <cstdio>.
1097 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1100 * include/bits/fstream.tcc (imbue): In case a codecvt facet
1101 is not available, set _M_codecvt = 0.
1102 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
1104 2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
1107 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
1109 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1111 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
1112 * src/locale.cc: Define.
1113 * src/localename.cc: Use it.
1114 * config/locale/generic/time_members.h: Same.
1115 * config/locale/gnu/messages_members.h: Same.
1116 * config/locale/gnu/time_members.h: Same.
1118 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
1121 * include/bits/fstream.tcc (seekoff): Ignore the openmode
1123 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
1124 seekpos): Remove the openmode argument.
1125 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
1126 seekpos): Remove redundant placeholder for the openmode argument.
1127 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
1128 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
1129 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
1130 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
1131 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
1133 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1135 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
1136 (locale::facet::_S_get_c_locale): Same.
1138 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1140 * config/linker-map.gnu: Export _S_get_c_locale instead of
1143 2003-10-02 Petur Runolfsson <peturr02@ru.is>
1145 * config/locale/generic/c_locale.cc
1146 (category_names, locale::_S_categories): Const qualify.
1147 * config/locale/gnu/c_locale.cc: Same.
1148 * config/locale/generic/time_members.h (__timepunct::__timepunct):
1149 Copy string contents before assigning to _M_name_timepunct,
1150 qualify strcpy and strlen with std::.
1151 * config/locale/gnu/time_members.h: Same.
1152 * config/locale/gnu/messages_members.h (messages::messages):
1153 Copy string contents before assigning to _M_name_messages,
1154 qualify strcpy and strlen with std::.
1155 * config/os/gnu-linux/ctype_noninline.h
1156 (ctype<char>::classic_table()): Don't call locale::classic().
1157 * include/bits/locale_classes.h
1158 (locale::_S_categories): Const qualify.
1159 (locale::_S_once, locale::_S_initialize_once,
1160 locale::facet::_S_once, locale::facet::_S_initialize_once,
1161 locale::facet::_S_get_c_locale): Declare.
1162 (locale::_S_initialize): Don't define.
1163 (locale::facet::_S_c_locale): Make private.
1164 (locale::facet::_S_c_name): Same, const qualify.
1165 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
1166 parameters, add throw() specifier.
1167 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
1168 messages::_M_name_messages): Const qualify.
1170 (locale::_S_once, locale::facet::_S_once): Define.
1171 (locale::classic): Move initialization code...
1172 (locale::_S_initialize_once): ...here.
1173 (locale::_S_initialize): Call _S_initialize_once through
1175 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
1176 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
1177 __gthread_once before returning _S_c_locale.
1178 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
1179 Drop unused parameters, add throw() specifier, don't initialize
1180 locale::facet::_S_c_locale and _S_c_name.
1182 * config/locale/generic/messages_members.h:
1183 Replace _S_c_locale with _S_get_c_locale().
1184 * config/locale/gnu/c_locale.cc: Same.
1185 * config/locale/gnu/messages_members.h: Same.
1186 * config/locale/gnu/numeric_members.cc: Same.
1187 * config/locale/gnu/time_members.cc: Same.
1188 * config/os/gnu-linux/ctype_noninline.h: Same.
1189 * include/bits/locale_facets.h: Same.
1190 * include/bits/locale_facets.tcc: Same.
1191 * src/codecvt.cc: Same.
1192 * src/ctype.cc: Same.
1194 2003-10-02 Carlo Wood <carlo@alinoe.com>
1196 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
1197 Decode symbols that start with _GLOBAL_[ID]_ differently: the
1198 trailing part ends with a terminating zero and is not necessarily an
1200 * src/demangle.cc (): Same.
1201 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
1203 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
1205 * testsuite/22_locale/locale/cons/12438.cc: Use
1206 __gnu_test::try_named_locale("").
1208 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1210 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
1211 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
1213 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
1214 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
1216 * config.h.in, configure: Regenerate.
1217 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
1220 2003-10-01 Nathan Myers <ncm@cantrip.org>
1222 * include/bits/locale_facets.tcc (time_put::put): Avoid
1223 expensive *__s++, in favor of *__s, ++__s.
1225 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
1227 * include/bits/locale_facets.tcc (time_put::put): Minor
1228 tweak to the previous commit.
1230 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
1233 * include/bits/locale_facets.tcc (time_put::put): Deal
1234 with the three issues pointed out by the PR.
1235 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
1236 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
1237 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
1238 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
1239 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
1241 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1243 * include/bits/stl_algo.h: Minor cosmetic reformattings.
1245 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1247 * include/bits/stl_algo.h (search_n): Tweak, to spare the
1250 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1252 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
1253 qualify exception name.
1255 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1258 * include/bits/locale_facets.tcc (locale::combine): Don't
1259 leak memory if _M_replace_facet throws.
1260 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
1262 * include/bits/locale_classes.h (locale::locale(const locale&,
1263 _Facet*)): Tweak, use consistently _M_remove_reference.
1265 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1267 PR libstdc++/12352 (cont)
1268 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
1269 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
1271 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
1272 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
1273 !_M_caches, !_M_names.
1275 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1277 * configure.host: Handle Solaris 2.5 micro releases explicitly.
1278 Remove wildcards from Solaris 2.6, 7-9: there were no
1280 Treat Solaris 10 and up like 7-9.
1282 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1284 * include/bits/stl_algo.h (search_n): Improve the previous
1285 fix as suggested by Martin.
1287 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1290 * include/bits/istream.tcc (peek): Set eofbit if sgetc
1292 * testsuite/27_io/basic_istream/peek/char/12296.cc:
1295 2003-09-29 Nathan Myers <ncm@cantrip.org>
1296 Paolo Carlini <pcarlini@unitus.it>
1299 * include/bits/stl_algo.h (search_n):
1300 Use iterator_traits<>::difference_type for __n.
1301 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
1303 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1305 * testsuite/22_locale/locale/cons/12352.cc:
1306 Use __attribute__((unused)) for test.
1308 2003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
1310 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
1311 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
1312 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
1314 2003-09-26 Brad Spencer <spencer@infointeractive.com>
1316 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
1317 Explicitly qualify exceptions.
1318 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
1319 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1320 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1321 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1323 2003-09-25 Paolo Carlini <pcarlini@unitus.it>
1326 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
1327 size_t)): Don't leak if memory allocations for _M_facets,
1328 _M_caches, and _M_names fail.
1329 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
1330 (locale::_Impl::_M_replace_categories(const _Impl*,
1332 (locale::_Impl::_M_install_facet(const locale::id*,
1333 const facet*)): Ditto.
1334 * include/bits/locale_classes.h (locale::locale(const locale&,
1335 _Facet*)): Don't leak memory.
1336 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
1338 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
1339 bool)): Qualify with std:: strcpy, tweak.
1340 * include/bits/locale_classes.h
1341 (locale::_Impl::_M_check_same_name): Qualify strcmp.
1343 2003-09-25 Brad Spencer <spencer@infointeractive.com>
1346 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
1348 * aclocal.m4: Regenerate.
1349 * config.h.in: Regenerate.
1350 * configure: Regenerate.
1351 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
1352 * config/io/basic_file_stdio.cc: Guard unistd.h.
1353 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
1354 * include/c_std/std_cwchar.h: Same.
1355 * include/c_std/std_cwctype.h: Same.
1357 2003-09-25 Benjamin Kosnik <bkoz@redhat.com>
1360 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
1361 * config/locale/generic/ctype_members.cc: Same.
1362 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
1363 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
1365 * config/os/generic/ctype_inline.h: Update.
1367 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
1369 * src/Makefile.am (version_dep): New variable.
1370 (libstdc___la_DEPENDENCIES): Use it to add dependency on
1371 libstdc++-symbol.ver only when using symbol versioning.
1372 * src/Makefile.in: Regenerate.
1374 2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
1376 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
1377 * testsuite/testsuite_hooks.h: Same.
1378 * testsuite/*/*.cc: Same.
1380 2003-09-22 Petur Runolfsson <peturr02@ru.is>
1382 * include/bits/istream.tcc (basic_istream::read,
1383 basic_istream::readsome, basic_istream::putback,
1384 basic_istream::unget, operator>>(basic_istream, CharT)):
1385 Avoid redundant setstate(failbit) calls when sentry::operator bool()
1388 2003-09-22 Carlo Wood <carlo@alinoe.com>
1391 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
1392 char const*, int, int)): Remove unused identifier
1393 cv_qualifier for overloaded constructor.
1395 2003-09-18 Benjamin Kosnik <bkoz@redhat.com>
1398 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
1399 WARN_FLAGS, remove -Wno-format.
1400 * aclocal.m4: Regenerate.
1401 * configure: Regenerate.
1403 2003-09-18 Petur Runolfsson <peturr02@ru.is>
1405 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
1406 * config/io/basic_file_stdio.h: Same.
1407 * include/std/std_fstream.h (__ctype_type): Delete.
1408 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
1410 2003-09-17 Benjamin Kosnik <bkoz@redhat.com>
1413 * configure.host (abi_baseline_pair): Error out on solaris2
1414 configurations without a minor version number.
1416 2003-09-13 Phil Edwards <phil@codesourcery.com>
1418 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
1419 if man pages are on.
1420 * docs/doxygen/user.cfg.in: And here.
1422 2003-09-10 Daniel Jacobowitz <drow@mvista.com>
1423 Andreas Jaeger <aj@suse.de>
1426 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
1427 abi_check if cross compiling.
1428 * aclocal.m4: Regenerated.
1429 * configure: Regenerated.
1431 2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
1433 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
1434 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
1435 (__cxa_vec_new3): Likewise.
1437 2003-09-10 Petur Runolfsson <peturr02@ru.is>
1439 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1440 Use codecvt::length to handle variable-width stateless encodings
1442 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
1443 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
1445 2003-09-10 Alan Modra <amodra@bigpond.net.au>
1447 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
1450 2003-09-09 Alan Modra <amodra@bigpond.net.au>
1452 * configure: Regenerate.
1454 2003-09-09 David Edelsohn <edelsohn@gnu.org>
1456 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
1457 qualifier from _S_synced_with_stdio.
1459 2003-09-09 Bernardo Innocenti <bernie@develer.com>
1461 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
1463 2003-09-04 Petur Runolfsson <peturr02@ru.is>
1466 * include/bits/fstream.tcc
1467 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
1468 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
1469 _M_ext_buf_size, _M_ext_next and _M_ext_end.
1470 (basic_filebuf::underflow): Handle variable-width stateless
1471 encodings (codecvt::encoding() == 0), including UTF-8.
1472 * include/std/std_fstream.h (basic_filebuf):
1473 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
1474 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
1475 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
1476 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
1477 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
1478 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
1479 * testsuite/27_io/objects/wchar_t/12.cc: New test.
1480 * testsuite/27_io/objects/wchar_t/13.cc: New test.
1482 2003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
1484 * docs/html/faq/index.html: Note that a namespace alias can't be
1485 used when specialising templates in extension namespace.
1486 * docs/html/faq/index.txt: Regenerate.
1488 2003-09-03 Petur Runolfsson <peturr02@ru.is>
1491 * include/ext/stdio_sync_filebuf.h
1492 (stdio_sync_filebuf::_M_unget_buf): Declare it.
1493 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
1494 (stdio_sync_filebuf::uflow): Store the returned character in
1496 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
1497 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
1498 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
1499 _M_unget_buf, if any, else eof().
1500 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
1501 _M_unget_buf, if any, else eof().
1502 * testsuite/27_io/objects/char/12048.cc: Rename to...
1503 * testsuite/27_io/objects/char/12048-1.cc: ...this.
1504 * testsuite/27_io/objects/char/12048-2.cc: New test.
1505 * testsuite/27_io/objects/char/12048-3.cc: New test.
1506 * testsuite/27_io/objects/char/12048-4.cc: New test.
1507 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
1508 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
1509 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
1510 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
1511 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
1512 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
1513 * testsuite/ext/stdio_sync_filebuf_char.cc
1514 (test02, test03, test04, test05): New tests.
1515 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
1516 (test02, test03, test04, test05): New tests.
1518 2003-09-03 Petur Runolfsson <peturr02@ru.is>
1520 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
1521 stringbuf or strstreambuf. Fix typos.
1523 2003-09-02 Phil Edwards <phil@codesourcery.com>
1525 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
1527 * config.h.in: Add _GLIBCXX_HOSTED.
1528 * libsupc++/eh_term_handler.cc: Test it here; initialize
1529 __terminate_handler to std::abort if freestanding.
1530 * aclocal.m4, configure: Regenerated.
1531 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
1533 2003-08-29 Nathan Myers <ncm@cantrip.org>
1536 * include/bits/locale_facets.tcc (__pad): delete dead code.
1538 2003-08-28 Alan Modra <amodra@bigpond.net.au>
1540 * configure.ac: Test $with_cross_host against $build_alias, not $build.
1541 * configure: Regenerate.
1543 2003-08-27 Petur Runolfsson <peturr02@ru.is>
1545 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
1546 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
1548 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1550 * Makefile.am: Remove trailing whitespace. Remove needless
1551 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
1552 * include/Makefile.am: Likewise.
1553 * libmath/Makefile.am: Likewise.
1554 * libsupc++/Makefile.am: Likewise.
1555 * po/Makefile.am: Likewise.
1556 * src/Makefile.am: Likewise.
1557 * testsuite/Makefile.am: Likewise.
1559 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
1560 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1561 testsuite/Makefile.in: Regenerated.
1563 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1565 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
1567 * aclocal.m4, configure: Regenerate.
1569 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
1571 * acinclude.m4: Include no-executables.m4.
1572 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
1573 * aclocal.m4: Regenerated.
1574 * configure: Regenerated.
1576 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
1578 * acinclude.m4: Don't call AC_ISC_POSIX.
1579 * aclocal.m4: Regenerated.
1580 * configure: Regenerated.
1582 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1584 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
1585 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
1586 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
1587 used elsewhere in this file.
1588 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
1589 * configure.ac: ...called here to expand all conditionals.
1590 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
1591 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
1592 (install-freestanding-headers): New target, a subset of
1593 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
1595 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1596 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1597 src/Makefile.in, testsuite/Makefile.in: Regenerated.
1599 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
1601 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
1602 pathnames from generated tag file.
1604 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
1606 * Makefile.am: Add comment.
1607 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
1609 * configure.ac: Use them both here, instead of hardcoded lists.
1611 * fragment.am: Add STAMP varaible.
1612 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
1614 (stamp-*): Move file creation rule outside of 'if' branches to
1615 ensure the stamp-* files are actually updated. Use $(STAMP).
1616 * src/Makefile.am: Remove now-nonexistant variable.
1617 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
1619 * po/Makefile.am: Include same fragment as all the others.
1621 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1622 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
1624 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
1626 * testsuite/data/cin_unget-1.txt: New.
1627 * testsuite/27_io/objects/char/12048.cc: New.
1629 2003-08-25 Zack Weinberg <zack@codesourcery.com>
1631 * config/os/hpux/os_defines.h: Unconditionally define
1632 _GLIBCXX_GTHREAD_USE_WEAK to 0.
1634 2003-08-19 Geoffrey Keating <geoffk@apple.com>
1636 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
1637 crosses to Darwin targets.
1638 * configure: Regenerate.
1640 2003-08-19 Petur Runolfsson <peturr02@ru.is>
1642 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
1644 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
1646 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
1647 in the patch from 3 minutes ago. Boy, is my face red.
1648 * configure: At least I remembered to regenerate this.
1650 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
1652 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
1653 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
1654 things from the top level.
1655 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
1656 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
1657 (currently unused). Strip the fake-VPATH shell fragment from
1658 automake-generated rules, if present.
1659 * linkage.m4: Add comment.
1661 * fragment.am: New file, containing factored-out common settings.
1662 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
1663 * Makefile.am: Include fragment.am. Remove common variables.
1664 * include/Makefile.am: Likewise.
1665 * libmath/Makefile.am: Likewise.
1666 * libsupc++/Makefile.am: Likewise.
1667 * po/Makefile.am: Likewise. Print rules during check.
1668 * src/Makefile.am: Likewise.
1669 * testsuite/Makefile.am: Likewise.
1671 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1672 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1673 src/Makefile.in, testsuite/Makefile.in: Regenerate.
1675 2003-08-11 John Levon <levon@movementarian.org>
1677 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
1678 remaining places for the name change from GLIBCPP_FORCE_NEW
1679 to GLIBCXX_FORCE_NEW
1681 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
1683 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
1685 * include/bits/basic_ios.tcc: Same.
1686 * include/bits/istream.tcc: Same.
1687 * include/bits/locale_facets.h: Same.
1688 * include/bits/ostream.tcc: Same.
1689 * include/std/std_istream.h: Same.
1690 * include/std/std_ostream.h: Same.
1691 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
1693 * include/ext/rope: Remove build warning.
1695 2003-08-11 Andreas Jaeger <aj@suse.de>
1697 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
1699 * include/Makefile.in: Regenerated.
1701 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
1703 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
1704 when calling AC_PROG_CC.
1705 * aclocal.m4, configure: Regenerate.
1707 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
1709 * acinclude.m4: Properly quote variable which will be expanded
1710 inside makefiles. Use CXX instead of CC to extract compiler info.
1711 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
1712 correct form in PACKAGE.
1713 * aclocal.m4, configure: Regenerate.
1715 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
1717 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
1718 (check-abi-verbose): Same.
1719 * testsuite/testsuite_performance.h (report_performance): Same.
1721 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
1723 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
1725 2003-08-07 Doug Gregor <dgregor@apple.com>
1727 * include/bits/char_traits.h (char_traits::not_eof): Match operand
1730 2003-08-07 Bernardo Innocenti <bernie@develer.com>
1733 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
1734 Replace variants with new BSET-based version.
1736 2003-08-07 Carlo Wood <carlo@alinoe.com>
1738 * include/bits/demangle.h: Do not use cctype functions that depend
1741 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
1743 * configure.in: Rename...
1744 * configure.ac: ...to this.
1745 * docs/html/17_intro/porting.texi: Update name.
1747 * docs/html/17_intro/porting.html: Regenerate.
1748 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1749 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1750 testsuite/Makefile.in: Regenerate (picks up new dependancy).
1752 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
1754 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
1755 pipe, open the window to let out the fumes, redo the option-handling
1756 logic to properly execute the detection test.
1757 * aclocal.m4, configure: Regenerate.
1759 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1761 Convert to new autotools.
1762 * acconfig.h: Update with correct names.
1763 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
1764 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
1765 * configure.in: Update. Split hardcoded cross-configury settings
1767 * crossconfig.m4: ...here. New file. Contents untouched.
1768 * acinclude.m4: Reorganize and rewrite as needed. Split large
1770 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
1772 * scripts/testsuite_flags.in: Update.
1774 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
1775 variables (already generated by automake).
1776 * include/Makefile.am: Ditto.
1777 * libmath/Makefile.am: Ditto.
1778 * libsupc++/Makefile.am: Ditto.
1779 * po/Makefile.am: Ditto.
1780 * src/Makefile.am: Ditto.
1782 * aclocal.m4: Regenerate using new versions.
1783 * config.h.in: Ditto.
1785 * Makefile.in: Ditto.
1786 * include/Makefile.in: Ditto.
1787 * libmath/Makefile.in: Ditto.
1788 * libsupc++/Makefile.in: Ditto.
1789 * po/Makefile.in: Ditto.
1790 * src/Makefile.in: Ditto.
1791 * testsuite/Makefile.in: Ditto.
1793 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1795 * po/libstdc++.pot: Re-extract/regenerate.
1797 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1799 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
1800 Remove unneeded variable assignments. Leave them for automake.
1801 * testsuite/lib/libstdc++-v3.exp: Rename...
1802 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
1804 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
1805 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
1808 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1810 * docs/doxygen/guide.html: run_doxygen uses bash.
1811 * docs/doxygen/mainpage.html: We'll be shipping tag files.
1812 * docs/doxygen/run_doxygen: Tweaks and improvements.
1813 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
1814 * docs/html/install.html: Update autoconf/automake requirements.
1815 * docs/html/test.html: Add section describing DejaGNU support.
1816 * docs/html/17_intro/confdeps.dot: New file, generates...
1817 * docs/html/17_intro/confdeps.png: ...this new file.
1818 * docs/html/Makefile: Generated here.
1819 * docs/html/17_intro/configury.html: New file.
1821 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
1823 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
1824 * testsuite/lib/libstdc++-v3.exp: ...to this.
1825 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
1827 2003-07-31 Doug Gregor <dgregor@apple.com>
1829 Add user specialization tests.
1830 * testsuite/23_containers/deque/1.cc: New.
1831 * testsuite/23_containers/list/1.cc: New.
1832 * testsuite/23_containers/map/1.cc: New.
1833 * testsuite/23_containers/multimap/1.cc: New.
1834 * testsuite/23_containers/multiset/1.cc: New.
1835 * testsuite/23_containers/set/1.cc: New.
1836 * testsuite/23_containers/vector/1.cc: New.
1838 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
1840 Reshuffle 23_containers testsuite.
1841 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
1842 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
1843 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
1844 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
1845 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
1846 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
1847 vector_resize.cc: Split into...
1848 * 23_containers/bitset/cons/1.cc: New.
1849 * 23_containers/bitset/cons/6282.cc: New.
1850 * 23_containers/bitset/count/6124.cc: New.
1851 * 23_containers/bitset/operations/1.cc: New.
1852 * 23_containers/bitset/operations/2.cc: New.
1853 * 23_containers/bitset/test/1.cc: New.
1854 * 23_containers/bitset/to_ulong/1.cc: New.
1855 * 23_containers/deque/cons/1.cc: New.
1856 * 23_containers/deque/cons/2.cc: New.
1857 * 23_containers/deque/operators/1.cc: New.
1858 * 23_containers/list/capacity/1.cc: New.
1859 * 23_containers/list/cons/1.cc: New.
1860 * 23_containers/list/cons/2.cc: New.
1861 * 23_containers/list/cons/3.cc: New.
1862 * 23_containers/list/cons/4.cc: New.
1863 * 23_containers/list/cons/5.cc: New.
1864 * 23_containers/list/cons/6.cc: New.
1865 * 23_containers/list/cons/7.cc: New.
1866 * 23_containers/list/cons/8.cc: New.
1867 * 23_containers/list/cons/9.cc: New.
1868 * 23_containers/list/modifiers/1.cc: New.
1869 * 23_containers/list/modifiers/2.cc: New.
1870 * 23_containers/list/modifiers/3.cc: New.
1871 * 23_containers/list/operators/1.cc: New.
1872 * 23_containers/list/operators/2.cc: New.
1873 * 23_containers/list/operators/3.cc: New.
1874 * 23_containers/list/operators/4.cc: New.
1875 * 23_containers/map/insert/1.cc: New.
1876 * 23_containers/map/operators/1.cc: New.
1877 * 23_containers/map/operators/1_neg.cc: New.
1878 * 23_containers/multiset/insert/1.cc: New.
1879 * 23_containers/priority_queue/members/7161.cc: New.
1880 * 23_containers/queue/members/7157.cc: New.
1881 * 23_containers/set/operators/1_neg.cc: New.
1882 * 23_containers/stack/members/7158.cc: New.
1883 * 23_containers/vector/bool/1.cc: New.
1884 * 23_containers/vector/bool/6886.cc: New.
1885 * 23_containers/vector/capacity/1.cc: New.
1886 * 23_containers/vector/capacity/2.cc: New.
1887 * 23_containers/vector/capacity/8230.cc: New.
1888 * 23_containers/vector/cons/1.cc: New.
1889 * 23_containers/vector/cons/2.cc: New.
1890 * 23_containers/vector/cons/3.cc: New.
1891 * 23_containers/vector/cons/4.cc: New.
1892 * 23_containers/vector/cons/6513.cc: New.
1893 * 23_containers/vector/element_access/1.cc: New.
1894 * 23_containers/vector/modifiers/1.cc: New.
1895 * 23_containers/vector/modifiers/2.cc: New.
1896 * 23_containers/vector/resize/1.cc: New.
1898 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1900 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
1902 * testsuite/thread/pthread2.cc: Likewise.
1903 * testsuite/thread/pthread3.cc: Likewise.
1904 * testsuite/thread/pthread4.cc: Likewise.
1905 * testsuite/thread/pthread5.cc: Likewise.
1906 * testsuite/thread/pthread6.cc: Likewise.
1907 * testsuite/thread/pthread7-rope.cc: Likewise.
1909 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
1911 * include/bits/c++config: Partial reversion (comment placement) of
1914 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
1916 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
1917 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
1918 (_GLIBCXX_AT_AT): Remove.
1919 (__USE_MALLOC): Remove.
1920 * include/std/std_fstream.h: Modify.
1921 * include/bits/basic_ios.h: Same.
1922 * include/bits/valarray_array.h: Same.
1923 * include/c_std/std_cmath.h: Same.
1924 * include/c_std/cmath.tcc: Same.
1925 * include/std/std_vector.h: Same.
1926 * include/std/std_string.h: Same.
1927 * include/std/std_stack.h: Same.
1928 * include/std/std_queue.h: Same.
1929 * include/std/std_list.h: Same.
1930 * include/std/std_deque.h: Same.
1931 * include/std/std_streambuf.h: Same.
1932 * include/std/std_sstream.h: Same.
1933 * include/std/std_ostream.h: Same.
1934 * include/std/std_istream.h: Same.
1935 * include/bits/valarray_array.tcc: Same, format.
1937 * include/c/std_cctype.h: Fix include guards.
1938 * include/c/std_cerrno.h: Same.
1939 * include/c/std_cfloat.h: Same.
1940 * include/c/std_climits.h: Same.
1941 * include/c/std_clocale.h: Same.
1942 * include/c/std_cmath.h: Same.
1943 * include/c/std_csetjmp.h: Same.
1944 * include/c/std_csignal.h: Same.
1945 * include/c/std_cstdarg.h: Same.
1946 * include/c/std_cstddef.h: Same.
1947 * include/c/std_cstdio.h: Same.
1948 * include/c/std_cstdlib.h: Same.
1949 * include/c/std_cstring.h: Same.
1950 * include/c/std_ctime.h: Same.
1951 * include/c/std_cwchar.h: Same.
1952 * include/c/std_cwctype.h: Same.
1953 * include/c_std/cmath.tcc: Same.
1954 * include/c_std/std_cmath.h: Same.
1956 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
1959 * include/bits/stl_tree.h: Replace C-style casts with C++-style
1960 casts. Changes to avoid casting away constness. Eliminate
1961 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
1962 initialization lists. Move out implementation of __black_count()
1964 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
1965 Rename_Rb_tree_base_iterator::_M_increment() to
1966 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
1968 * config/linker-map.gnu: Add and change symbols here.
1970 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
1972 * docs/html/22_locale/howto.html: Use locale::classic() instead
1975 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
1977 * testsuite/testsuite_hooks.h: Remove list include.
1978 (func_callback): Define as unique type, not std::list.
1979 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
1980 * testsuite/libstdc++-v3.dg/dg.exp: Same.
1981 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
1982 * testsuite/23_containers/bitset_ctor.cc:
1983 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
1984 * testsuite/18_support/numeric_limits.cc: Same.
1985 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
1986 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
1987 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
1988 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
1989 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
1990 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
1991 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
1992 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
1993 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
1994 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
1995 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
1996 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
1997 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
1998 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
1999 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
2000 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
2001 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
2002 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
2003 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
2004 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
2005 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
2006 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
2007 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
2008 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
2009 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
2010 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
2011 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
2012 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
2013 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
2014 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
2015 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
2016 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
2017 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
2018 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
2019 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
2020 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
2021 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
2022 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
2023 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
2024 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
2025 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
2026 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
2027 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
2028 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
2029 * testsuite/23_containers/bitset_ctor.cc: Same.
2030 * testsuite/23_containers/bitset_shift.cc: Same.
2031 * testsuite/23_containers/vector_ctor.cc: Same.
2032 * testsuite/23_containers/vector_element_access.cc: Same.
2033 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
2034 * testsuite/24_iterators/iterator.cc: Same.
2035 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
2036 * testsuite/25_algorithms/lower_bound.cc: Same.
2037 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
2038 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
2039 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
2040 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
2041 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
2042 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
2043 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
2044 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
2045 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
2046 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
2047 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2050 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2052 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
2053 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
2054 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
2055 GLIBCPP to GLIBCXX (and explain as needed).
2057 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2061 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2063 * testsuite/22_locale/messages/members/char/1.cc,
2064 testsuite/22_locale/messages/members/char/2.cc,
2065 testsuite/22_locale/messages/members/char/3.cc,
2066 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
2067 the origin of LOCALEDIR.
2068 * testsuite/lib/libstdc++-v3.exp: New file.
2070 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
2072 * include/bits/char_traits.h: Update copyright, tweak.
2073 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
2076 2003-07-24 Matt Austern <austern@apple.com>
2078 * /include/bits/char_traits.h (class char_traits): Put all the
2079 real work into the new class template __gnu_cxx::char_traits.
2080 Gave generic definitions for member functions. Types are taken
2081 from the new class template __gnu_cxx::_Char_types.
2082 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
2083 file. Test of std::char_traits<short>, which serves as a test of
2084 the char_traits primary template.
2086 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
2088 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
2090 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
2092 * testsuite/23_containers/map_operators.cc: Conform to
2093 container requirement as value must be Assignable.
2095 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
2097 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
2098 tests not only generation of pch files, but also their use.
2099 * aclocal.m4, configure: Rebuilt.
2101 2003-07-23 Steve Ellcey <sje@cup.hp.com>
2103 * config/cpu/hppa/atomicity.h: Change
2104 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
2105 to match misc-inst.cc
2107 2003-07-23 Steve Ellcey <sje@cup.hp.com>
2109 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
2110 * include/c_std/std_cctype.h: Ditto.
2111 * include/c_std/std_cerrno.h: Ditto.
2112 * include/c_std/std_cfloat.h: Ditto.
2113 * include/c_std/std_climits.h: Ditto.
2114 * include/c_std/std_clocale.h: Ditto.
2115 * include/c_std/std_cmath.h: Ditto.
2116 * include/c_std/std_csetjmp.h: Ditto.
2117 * include/c_std/std_csignal.h: Ditto.
2118 * include/c_std/std_cstdarg.h: Ditto.
2119 * include/c_std/std_cstddef.h: Ditto.
2120 * include/c_std/std_cstdio.h: Ditto.
2121 * include/c_std/std_cstdlib.h: Ditto.
2122 * include/c_std/std_cstring.h: Ditto.
2123 * include/c_std/std_ctime.h: Ditto.
2124 * include/c_std/std_cwchar.h: Ditto.
2125 * include/c_std/std_cwctype.h: Ditto.
2126 * include/std/std_algorithm.h: Ditto.
2127 * include/std/std_bitset.h: Ditto.
2128 * include/std/std_complex.h: Ditto.
2129 * include/std/std_deque.h: Ditto.
2130 * include/std/std_fstream.h: Ditto.
2131 * include/std/std_functional.h: Ditto.
2132 * include/std/std_iomanip.h: Ditto.
2133 * include/std/std_ios.h: Ditto.
2134 * include/std/std_iosfwd.h: Ditto.
2135 * include/std/std_iostream.h: Ditto.
2136 * include/std/std_istream.h: Ditto.
2137 * include/std/std_iterator.h: Ditto.
2138 * include/std/std_limits.h: Ditto.
2139 * include/std/std_list.h: Ditto.
2140 * include/std/std_locale.h: Ditto.
2141 * include/std/std_map.h: Ditto.
2142 * include/std/std_memory.h: Ditto.
2143 * include/std/std_numeric.h: Ditto.
2144 * include/std/std_ostream.h: Ditto.
2145 * include/std/std_queue.h: Ditto.
2146 * include/std/std_set.h: Ditto.
2147 * include/std/std_sstream.h: Ditto.
2148 * include/std/std_stack.h: Ditto.
2149 * include/std/std_stdexcept.h: Ditto.
2150 * include/std/std_streambuf.h: Ditto.
2151 * include/std/std_string.h: Ditto.
2152 * include/std/std_utility.h: Ditto.
2153 * include/std/std_valarray.h: Ditto.
2154 * include/std/std_vector.h: Ditto.
2156 2003-07-22 Doug Gregor <dgregor@apple.com>
2158 * include/bits/basic_string.h (basic_string::insert): Deprecate
2161 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
2163 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
2165 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
2166 (test03): Include typeinfo for bad_cast.
2167 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2168 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2169 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2171 2003-07-21 Doug Gregor <dgregor@apple.com>
2173 * include/bits/boost_concept_check.h:
2174 (_EqualityComparableConcept::__constraints): Remove != from the
2175 list of constraints; it is not listed in Table 28 of the C++98
2178 2003-07-18 Andreas Jaeger <aj@suse.de>
2180 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
2181 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
2182 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
2183 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2185 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
2187 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
2188 * config/locale/generic/messages_members.h: Tweaks.
2189 * config/locale/generic/monetary_members.cc
2190 (moneypunct::_M_initialize_moneypunct): Use cache.
2191 (moneypunct::~moneypunct): Delete cache.
2192 * config/locale/generic/time_members.cc:
2193 (__timepunct::_M_initialize_timepunct): Use cache.
2194 * config/locale/generic/time_members.h:
2195 (__timepunct::~__timepunct): Delete cache.
2196 (__timepunct::__timepunct): Set cache.
2197 * config/locale/gnu/messages_members.h: Tweaks.
2198 * config/locale/gnu/monetary_members.cc:
2199 (moneypunct::_M_initialize_moneypunct): Use cache.
2200 (moneypunct::~moneypunct): Delete cache.
2201 * config/locale/gnu/time_members.cc:
2202 (__timepunct::_M_initialize_timepunct): Use cache.
2203 * config/locale/gnu/time_members.h:
2204 (__timepunct::~__timepunct): Delete cache.
2205 (__timepunct::__timepunct): Set cache.
2206 * include/bits/locale_facets.h (__timepunct_cache): New.
2207 (__moneypunct_cache): New.
2208 * include/bits/locale_facets.tcc: Tweak.
2209 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
2210 * src/locale-inst.cc: Instantiate caches.
2211 * src/globals.cc: Add "C" caches.
2212 * src/localename.cc: Use external "C" caches.
2214 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
2216 * docs/doxygen/guide.html: Fix typo.
2218 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2220 * include/ext/pod_char_traits.h: Add state template argument.
2222 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2224 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
2225 (num_get::_M_convert_int): To _M_insert_int.
2226 (num_get::_M_convert_float): To _M_insert_float.
2227 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2228 Use caches for ctype, num_get.
2229 (num_get::_M_extract_int): Same.
2230 (num_get::get(bool)): Same.
2231 (__verify_grouping): Use size_t.
2232 * src/locale-inst.cc: Update.
2233 * src/locale.cc: Adjust _S_atoms_in.
2235 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
2237 * docs/doxygen/mainpage.html: Move building/writing instructions...
2238 * docs/doxygen/guide.html: ...to here. New file.
2240 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
2242 * docs/html/ext/howto.html: Update URL for SGI STL docs.
2243 * docs/html/faq/index.html: Same.
2244 * docs/html/faq/index.txt: Regenerate.
2246 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
2249 * include/bits/locale_facets.tcc (money_get::do_get):
2250 Strip only _leading_ zeros.
2251 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
2252 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
2254 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2256 * include/ext/hash_map (class hash_multimap): Remove extra
2257 semicolons from __glibcxx_class_requires3 entries.
2258 * include/ext/hash_set (class hash_set): Ditto.
2259 (class hash_multiset): Ditto.
2261 2003-07-15 Petur Runolfsson <peturr02@ru.is>
2263 * include/bits/char_traits.h (char_traits<wchar_t>::move):
2264 Change last parameter from int_type to size_t.
2266 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2268 * include/bits/stl_algo.h (includes, set_union, set_intersection,
2269 set_difference, set_symmetric_difference, max_element, min_element,
2270 next_permutation, prev_permutation, find_first_of, find_end):
2272 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
2273 restrictions in docs.
2274 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
2276 * docs/doxygen/doxygroups.cc (setoperations): New group.
2278 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2280 * include/bits/basic_string.h: Document public functions.
2281 * docs/doxygen/TODO: Update c21 todo.
2283 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2285 * include/bits/stl_list.h: Document more functions.
2286 * docs/doxygen/TODO: Update c23 todo.
2288 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2290 * config/locale/gnu/c_locale.h (__convert_from_v): One more
2293 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2295 * include/bits/stl_tempbuf.h: Qualify free with std::.
2296 * src/locale.cc: Include <cstdlib>, qualify getenv.
2298 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2300 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2301 <cstdio>. Qualify names.
2302 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
2304 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2305 Nathan C. Myers <ncm-nospam@cantrip.org>
2308 * include/std/std_fstream.h (xsputn): Declare only.
2309 * include/bits/fstream.tcc (xsputn): Define, optimize for the
2310 always_noconv() case: when __n is sufficiently large flush
2311 the buffer and issue a direct write, if possible combining the
2312 two with writev in __basic_file<>::xsputn_2.
2313 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
2315 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
2317 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
2318 the availability of writev in <sys/uio.h>.
2319 * configure.in: Call here.
2320 * acconfig.h: Add undef for the corresponding symbol.
2321 * aclocal.m4: Regenerate.
2322 * configure: Regenerate.
2323 * config.h.in: Regenerate.
2324 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
2326 * include/std/std_fstream.h (sync): Constify a variable.
2328 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
2330 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
2331 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2333 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
2335 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2336 <cstring> and <cstdlib>. Qualify names.
2338 2003-07-13 Mark Mitchell <mark@codesourcery.com>
2340 * config/locale/generic/c_locale.h: Include <cstdlib> and
2342 * include/bits/boost_concept_check.h: Add this-> to unqualified
2344 * include/bits/deque.tcc: Likewise.
2345 * include/bits/locale_facets.h : Likewise.
2346 * include/bits/ostream.tcc: Likewise.
2347 * include/bits/stl_algo.h: Likewise.
2348 * include/bits/stl_bvector.h: Likewise.
2349 * include/bits/stl_deque.h: Likewise.
2350 * include/bits/stl_list.h: Likewise.
2351 * include/bits/stl_tree.h: Likewise.
2352 * include/bits/stl_vector.h: Likewise.
2353 * include/bits/vector.tcc: Likewise.
2354 * include/ext/rope: Likewise.
2355 * include/ext/ropeimpl.h: Likewise.
2356 * include/ext/stdio_filebuf.h: Likewise.
2358 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
2360 * include/bits/basic_ios.h (copyfmt): Document.
2361 * include/bits/ios_base.h (event, event_callback, register_callback,
2362 xalloc, iword, pword): Document.
2363 (imbue, ~ios_base): Update docs on callbacks.
2365 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
2367 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
2368 warning messages if the environment cannot support symbol versioning.
2369 (port_specific_symbol_file): It's plural, add an 's' on the end.
2370 * configure.host: Likewise.
2371 * src/Makefile.am: Likewise.
2372 * config/linker-map.gnu: Remove one semicolon, heh.
2373 * scripts/extract_symvers: Don't assume useful 'export' syntax.
2374 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
2375 * aclocal.m4, configure, src/Makefile.in: Regenerated.
2377 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
2379 * include/bits/locale_facets.tcc: Use function object for
2380 __use_cache instead of template function. Partially specialize for
2382 * include/bits/locale_classes.h: Update friend declaration for
2384 (_M_install_cache): No throw exception specs.
2385 * src/locale.cc: Remove __use_cache specializations.
2386 * include/ext/pod_char_traits.h (length): Tweak.
2387 * include/bits/locale_facets.h (__numpunct_cache): Remove
2389 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
2391 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
2392 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
2393 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
2394 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
2395 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
2396 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
2398 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
2400 * src/ios.cc (_M_grow_words): Fix spelling.
2402 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
2404 * include/bits/stl_tree.h: Move larger member functions in
2405 _Rb_tree_base_iterator and _Rb_tree_node to...
2406 * src/stl_tree.cc: Here.
2407 * src/Makefile.in: Add stl_tree.cc.
2408 * src/Makefile.in: Regenerated.
2409 * config/linker-map.gnu: Add symbols here.
2411 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2413 * testsuite/ext/pod_char_traits.cc: New.
2414 * include/ext/pod_char_traits.h: New.
2415 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
2416 * include/Makefile.in: Regenerate.
2417 * docs/html/21_strings/howto.html: Update.
2419 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
2421 * testsuite/performance/list_create_fill_sort.cc: New.
2423 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2425 * config/locale/generic/numeric_members.cc: Correct type info.
2426 * config/locale/gnu/numeric_members.cc: Same.
2427 * include/bits/locale_facets.h: Same.
2429 * include/bits/char_traits.h: Correct spacing.
2431 * src/locale.cc: Wrap to 80 col.
2433 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
2435 * include/std/std_complex.h: Partially revert last
2436 changes: cmath functions must not be qualified.
2438 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
2440 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
2441 2.11 with globbing backport fix.
2442 * aclocal.m4, configure: Regenerated.
2444 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
2446 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
2447 if output is at all possible (!_M_reading), cannot be active.
2449 * include/std/std_fstream.h: Tweak comments to doxygen style.
2451 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
2453 * include/bits/locale_classes.h: Fully qualify standard
2454 functions with std::, thus avoiding Koenig lookup.
2455 * include/bits/locale_facets.tcc: Likewise.
2456 * src/locale.cc: Likewise.
2457 * src/localename.cc: Likewise.
2459 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
2461 * include/bits/allocator_traits.h: Fix doxygen markup.
2462 * include/ext/mt_allocator.h: Likewise.
2464 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
2466 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
2468 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2470 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
2471 requirement. Add port_specific_symbol_file variable.
2472 * configure.host: Add docs for port_specific_symbol_file.
2473 Clean up try_cpu block for x86.
2474 * config/linker-map.gnu: No more "last symbol can't have a
2475 semicolon" kaka. Add hook for port-specific symbols.
2476 * src/Makefile.am: Remove trailing whitespace.
2477 (libstdc++-symbol.ver): Detect the presence of port-specific
2478 symbols, and add them accordingly.
2480 * docs/html/17_intro/porting.texi: Bring up to date.
2482 * src/Makefile.in, aclocal.m4, configure,
2483 docs/html/17_intro/porting.html: Regenerated.
2485 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2487 * scripts/create_testsuite_files: New file.
2488 * testsuite/Makefile.am (all-local, check-performance): Use it.
2489 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
2490 * testsuite/Makefile.in: Regenerated.
2492 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
2494 * testsuite/performance/fstream_seek_write.cc: Likewise.
2495 * testsuite/performance/ofstream_insert_float.cc: Likewise.
2496 * testsuite/performance/ofstream_insert_int.cc: Likewise.
2497 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
2499 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
2501 * include/bits/stl_list.h: Performance and memory usage
2502 improvements. In particular, the behaviour of the constructor and
2503 destructor as the list header node is no longer dynamically
2504 allocated/de-allocated.
2505 * include/bits/list.tcc: Likewise.
2507 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
2509 * include/std/std_complex.h: Fully qualify standard
2510 functions with std::, thus avoiding Koenig lookup.
2511 * include/std/std_memory.h: Likewise.
2512 * include/std/std_valarray.h: Likewise.
2514 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
2516 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
2517 variable for grandparent and use const
2519 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
2521 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
2522 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
2523 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
2524 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
2525 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
2526 * testsuite/27_io/objects/char/7.cc: Ditto
2527 * testsuite/27_io/objects/char/9661-1.cc: Ditto
2529 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
2531 * include/std/std_bitset.h: Fully qualify standard
2532 functions with std::, thus avoiding Koenig lookup.
2534 * include/std/std_fstream.h: Change comment to doxygen style.
2536 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2538 * include/std/std_limits.h: More CPP->CXX changes.
2539 * scripts/check_survey.in: Likewise.
2541 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2543 Move from CPP to CXX.
2544 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
2545 * testsuite/Makefile.am: Same.
2546 * testsuite/Makefile.in: Regenerate.
2547 * po/Makefile.am: Same.
2548 * po/Makefile.in: Regenerate.
2549 * libsupc++/Makefile.am: Same.
2550 * libsupc++/Makefile.in: Regenerate.
2551 * libmath/Makefile.am: Same.
2552 * libmath/Makefile.in: Regenerate.
2553 * include/Makefile.am: Same.
2554 * include/Makefile.in: Regenerate.
2555 * src/Makefile.am: Same.
2556 * src/Makefile.in: Regenerate.
2558 * configure.host: Same.
2559 * configure.in: Same.
2560 * configure: Regenerate.
2561 * acinclude.m4: Same.
2563 * src: Change all files in this directory.
2565 * include: Same, standardize include guards.
2569 2003-07-04 Zack Weinberg <zack@codesourcery.com>
2571 * testsuite/22_locale/collate/compare/wchar_t/2.cc
2572 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
2573 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
2574 * testsuite/22_locale/collate/hash/wchar_t/2.cc
2575 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
2576 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
2577 * testsuite/22_locale/collate/transform/wchar_t/2.cc
2578 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
2579 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2580 XFAIL on all targets.
2582 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2584 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
2585 * aclocal.m4: Regenerate.
2586 * configure: Regenerate.
2588 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
2590 * include/bits/locale_facets.tcc (__int_to_char): Move common case
2593 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2594 Petur Runolfsson <peturr02@ru.is>
2596 * config/io/basic_file_stdio.cc: Revert.
2598 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2600 * include/bits/deque.tcc: Fully qualify standard
2601 functions with std::, thus avoiding Koenig lookup.
2602 * include/bits/gslice_array.h: Likewise.
2603 * include/bits/indirect_array.h: Likewise.
2604 * include/bits/list.tcc: Likewise.
2605 * include/bits/mask_array.h: Likewise.
2606 * include/bits/slice_array.h: Likewise.
2608 2003-07-04 Gawain Bolton <gbolton@free.fr>
2610 * include/bits/stl_tree.h: Performance and memory usage
2613 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
2615 * Makefile.am: Replace PWD with PWD_COMMAND.
2616 * Makefile.in: Regenerated.
2617 * docs/html/Makefile: Likewise.
2619 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2621 * include/bits/valarray_array.h: Fully qualify standard
2622 functions with std::, thus avoiding Koenig lookup.
2623 * include/bits/vector.tcc: Likewise.
2625 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2627 * include/Makefile.am: Update target_ to host_.
2628 * include/Makefile.in: Regenerate.
2629 * src/Makefile.am: Same.
2630 * src/Makefile.in: Regenerate.
2632 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
2634 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2636 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
2637 --enable-libstdcxx-debug-flags.
2638 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
2639 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
2640 * aclocal.m4: Regenerate.
2642 * docs/html/configopts.html: Update.
2644 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2646 Revert the fix for libstdc++/11378.
2648 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2651 * include/std/std_fstream.h (xsputn): In the unbuffered case,
2652 provided always_noconv(), issue directly _M_file.xsputn.
2653 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
2655 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2657 * include/bits/stl_list.h: Fully qualify standard
2658 functions with std::, thus avoiding Koenig lookup.
2659 * include/bits/stl_queue.h: Likewise.
2660 * include/bits/stl_raw_storage_iter.h: Likewise.
2661 * include/bits/stl_tempbuf.h: Likewise.
2662 * include/bits/stl_tree.h: Likewise.
2663 * include/bits/stl_uninitialized.h: Likewise.
2664 * include/bits/stl_vector.h: Likewise.
2665 * include/ext/rope: Change includes order.
2667 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2669 * configure.host (fpos_include_dir): Fix.
2671 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2673 * include/bits/stl_heap.h: Fully qualify standard
2674 functions with std::, thus avoiding Koenig lookup.
2675 * include/bits/stl_iterator_base_funcs.h: Likewise.
2677 * include/bits/stl_algo.h: Qualify __iterator_category too.
2678 * include/bits/stl_algobase.h: Likewise.
2679 * include/bits/stl_bvector.h: Likewise.
2681 * include/bits/stl_algo.h: Don't qualify the pair type.
2683 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
2685 * include/Makefile.am (target_headers): Add fpos.h
2686 (bits_headers): Remove.
2687 * include/Makefile.in: Regenerate.
2688 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
2689 * configure: Regenerate.
2690 * configure.host: Add fpos_include_dir.
2691 * config/os/gnu-linux/fpos.h: New.
2692 * config/os/generic/fpos.h: Add.
2693 * include/bits/fpos.h: Remove.
2695 * config/io/c_io_stdio.h: Remove fpos_t typedef.
2697 * include/bits/fstream.tcc: Tweaks.
2698 * include/std/std_fstream.h: Same.
2700 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
2701 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
2702 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
2703 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
2704 * testsuite/27_io/fpos/1.cc: New.
2706 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
2707 Petur Runolfsson <peturr02@ru.is>
2709 * include/std/std_streambuf.h: Remove _M_pos.
2710 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
2711 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
2712 use fread/fwrite instead of read/write.
2713 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
2714 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
2715 before reading again.
2716 * testsuite/27_io/objects/char/6.cc: Tweak.
2718 2003-07-03 David Edelsohn <edelsohn@gnu.org>
2720 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
2721 _GLIBCPP_USE_WCHAR_T.
2723 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2725 * include/bits/basic_string.tcc (_M_replace_aux): Constify
2728 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2730 * include/bits/stl_bvector.h: Fully qualify standard
2731 functions with std::, thus avoiding Koenig lookup.
2732 * include/bits/stl_construct.h: Likewise.
2733 * include/bits/stl_deque.h: Likewise.
2735 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2737 * testsuite/22_locale/num_put/put/char/7.cc: Include
2738 <testsuite_hooks.h>, tweak.
2739 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
2741 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
2743 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
2744 check* targets, but not libs/programs).
2745 * testsuite/Makefile.in: Regenerate.
2747 2003-07-01 Roger Sayle <roger@eyesopen.com>
2749 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
2750 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
2751 * aclocal.m4: Regenerate.
2752 * configure: Regenerate.
2754 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
2756 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
2757 * aclocal.m4: Regenerated.
2758 * configure: Regenerated.
2760 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
2763 * include/bits/fstream.tcc (underflow): For encoding() == 0
2764 don't read more than __buflen chars.
2765 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
2766 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
2767 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
2768 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
2770 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
2772 * 22_locale/num_put/put/char/7.cc: New.
2773 * 22_locale/num_put/put/wchar_t/7.cc: New.
2775 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
2777 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
2778 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
2780 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
2782 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
2783 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
2784 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
2785 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
2786 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
2787 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
2788 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
2789 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
2790 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
2791 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
2792 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
2793 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
2794 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
2795 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
2796 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
2797 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
2798 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
2799 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
2800 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
2801 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
2802 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
2803 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
2804 * data/seekoff-1.tst: Remove.
2805 * data/seekoff-1io.tst: New.
2806 * data/seekoff-1out.tst: New.
2807 * data/seekoff-2.tst: Remove.
2808 * data/seekoff-2io.tst: New.
2809 * data/seekoff-2out.tst: New.
2811 * data/seekpos-1.tst: Remove.
2812 * data/seekpos-1io.tst: New.
2813 * data/seekpos-1out.tst: New.
2814 * data/seekpos-2.tst: Remove.
2815 * data/seekpos-2io.tst: New.
2816 * data/seekpos-2out.tst: New.
2817 * data/seekpos.txt: New.
2819 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
2821 * src/locale.cc (__use_cache<numpunct>): Move from here ...
2822 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
2825 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2827 * include/bits/stl_algobase.h: Fully qualify standard
2828 functions with std::, thus avoiding Koenig lookup.
2830 2003-06-30 Doug Gregor <dgregor@apple.com>
2832 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
2833 subscripting empty string.
2835 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
2837 * testsuite/Makefile.am (check-am): Do not override.
2838 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
2839 * testsuite/Makefile.in: Regenerate.
2841 2003-06-30 Doug Gregor <dgregor@apple.com>
2843 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
2844 Don't initialize an insert_iterator with a singular iterator.
2846 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
2848 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
2849 * aclocal.m4: Regenerate.
2850 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
2851 GLIBCPP_ENABLE_PCH, default to yes.
2852 * configure: Regenerate.
2853 * docs/html/configopts.html: Add --enable-pch.
2855 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
2857 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
2858 (libstdc++-v3-init): Also set LD_RUN_PATH.
2860 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2862 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
2863 from here to filebuf and stringbuf.
2864 (~basic_streambuf()): Don't set _M_mode.
2865 (basic_streambuf()): Don't set _M_mode.
2866 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
2867 (~basic_filebuf()): Clean up.
2868 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
2869 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
2870 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
2871 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
2872 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
2873 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
2874 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
2876 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2878 * include/std/std_fstream.h (_M_underflow): Remove.
2879 (uflow): Remove, inherited from streambuf.
2880 (underflow): Only declare.
2881 * include/bits/fstream.tcc (_M_underflow): Rename to
2882 underflow, to which is equivalent for __bump == false,
2884 * include/std/std_sstream.h (_M_underflow): Remove.
2885 (uflow): Remove, inherited from streambuf.
2886 (underflow): Only declare.
2887 * include/bits/sstream.tcc (_M_underflow): Rename to
2888 underflow, to which is equivalent for __bump == false,
2891 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2893 * include/bits/stl_algo.h: Fully qualify standard functions
2894 with std::, thus avoiding Koenig lookup.
2896 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2898 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
2899 Improve type correctness-wise.
2900 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
2902 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
2904 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
2907 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2909 * include/std/std_streambuf.h (uflow): According to
2910 27.5.2.4.3,p16, don't check gptr() < egptr().
2912 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
2915 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
2916 (seekpos): Likewise.
2917 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
2919 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
2922 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
2924 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
2925 output name to libstdc++-v3-performance.sum.
2926 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
2927 * testsuite/Makefile.in: Regenerate.
2929 2003-06-27 Matthias Klose <doko@debian.org>
2931 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
2932 output of abi-check in libstdc++-v3-abi.sum.
2933 * testsuite/Makefile.in: Regenerate.
2935 2003-06-27 Krister Walfridsson <cato@df.lth.se>
2937 * config/os/bsd/netbsd/ctype_noninline.h
2938 (_C_ctype_): Declare.
2939 (ctype<char>::classic_table): Return _C_ctype_ + 1.
2940 (ctype<char>::ctype): Use classic_table.
2942 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
2943 Nathan C. Myers <ncm-nospam@cantrip.org>
2946 * include/bits/fstream.tcc (_M_underflow): Properly estimate
2947 the worst-case number of external bytes for a given get area.
2948 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
2950 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
2951 Petur Runolfsson <peturr02@ru.is>
2954 * include/bits/fstream.tcc (overflow): Properly estimate the
2955 worst-case number of external bytes for a given put area
2956 (by using codecvt::max_length()).
2957 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
2958 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
2959 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
2960 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
2962 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
2964 * config/linker-map.gnu: Remove ; after __numpunct_cache.
2966 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
2968 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
2969 to the imbued locale.
2970 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
2972 (num_put::_M_convert_float): Use.
2974 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
2975 Jerry Quinn <jlquinn@optonline.net>
2977 * config/linker-map.gnu: Add __numpunct_cache.
2978 * config/locale/gnu/numeric_members.cc
2979 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
2980 all elements for "C" locale.
2981 (numpunct::~numpunct): Delete _M_data.
2982 * config/locale/generic/numeric_members.cc: Same.
2983 * include/bits/basic_ios.tcc
2984 (basic_ios::init): Remove __locale_cache bits.
2985 (basic_ios::_M_cache_locale): Same.
2986 * include/bits/ios_base.h: Same. Tweaks.
2987 * include/bits/locale_classes.h: Tweaks. Reorder classes.
2988 (__use_cache): Make friends with _Impl, locale.
2989 (_Impl::_M_caches): Add.
2990 (_Impl::_M_install_cache): Add.
2991 * include/bits/locale_facets.h (__numpunct_cache): New.
2992 (numpunct): Encapsulate data members in __numpunct_cache member,
2993 _M_data. Adjust virtuals.
2994 (numpunct::numpunct): New ctor for the same.
2995 (__locale_cache_base): Remove.
2996 (__locale_cache): Remove.
2997 * include/bits/locale_facets.tcc (__use_cache): New function,
2999 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
3000 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
3001 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
3002 * src/locale-inst.cc: Same. Add __numpunct_cache.
3003 * src/locale.cc: Tweak inlines.
3004 (__use_cache): Define specializations.
3005 * src/localename.cc: Use global bits.
3006 (_Impl::~Impl): Deal with __numpunct_cache destruction.
3007 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
3008 (_Impl::_M_init_facet): Take into account __numpunct_cache.
3009 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
3010 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3012 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
3013 Paolo Carlini <pcarlini@unitus.it>
3015 * testsuite/performance/filebuf_copy.cc: New, testing char
3018 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
3019 Nathan C. Myers <ncm-nospam@cantrip.org>
3021 * include/bits/fstream.tcc (_M_underflow): When the actual
3022 end of file is reached, set 'uncommitted' mode to allow a
3023 next write without an intervening seek (see C++98 27.8.1.1,2
3025 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
3027 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
3029 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3030 sputc): Move inline, from here...
3031 * include/std/std_streambuf.h: ... to here.
3033 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
3034 sputbackc, sungetc, sputc): Use __builtin_expect.
3036 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
3038 * docs/doxygen/mainpage.html: Use a useful title.
3040 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3042 * docs/html/documentation.html: Remove assignment info.
3043 * docs/html/17_intro/contribute.html: Edits.
3044 * docs/html/17_intro/libstdc++-assign.tx: Remove.
3046 * docs/html/test.html: Update.
3050 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3051 Ulrich Drepper <drepper@redhat.com>
3053 * testsuite/testsuite_performance.h: Tweak mallinfo.
3055 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
3056 Nathan C. Myers <ncm-nospam@cantrip.org>
3058 * include/std/std_fstream.h (_M_filepos): Remove.
3059 (_M_reading, _M_writing): New, encode the various I/O modes:
3060 'read', 'write' and 'uncommitted'.
3061 (sync): If there is something to flush, do it, then go to
3063 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
3064 with three different cases: __off > 0 (upon underflow),
3065 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
3067 (_M_underflow): Don't call overflow, set _M_reading to true
3069 (pbackfail): Set _M_reading to true on pback creation, tweak.
3070 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
3071 set _M_writing to true on success, tweak.
3072 (seekoff): Simplify, set _M_reading, _M_writing to false, call
3073 _M_set_buffer(-1) ('uncommitted').
3074 (open, close, setbuf): Set _M_reading, _M_writing to false and
3075 call _M_set_buffer(-1), tweak.
3076 (basic_filebuf): Don't set _M_buf_unified.
3077 (_M_destroy_internal_buffer): Don't call setg and setp.
3078 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
3079 _M_writing and _M_set_buffer(-1).
3080 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
3081 _M_out_lim, _M_buf_unified): Remove.
3082 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
3083 (setp): Don't set _M_out_lim.
3084 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
3085 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
3086 upon open the mode is 'uncommitted' and therefore the put area
3088 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
3089 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
3090 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
3091 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
3092 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
3093 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
3094 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3095 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
3096 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
3097 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
3098 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
3099 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
3100 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
3101 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
3102 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
3103 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
3104 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
3105 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
3106 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
3107 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
3109 * include/bits/fstream.tcc (showmanyc): Use only the
3110 documented derivation interface to basic_streambuf (gptr(),
3111 setg(), etc.) to work right with user specializations.
3112 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3113 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
3114 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
3116 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
3119 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
3121 * configure.host (freebsd*): Set abi_baseline_pair.
3122 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
3123 (at or near first release) to 3.3.
3124 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
3125 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
3126 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
3128 * include/ext/mt_allocator.h: Portability.
3129 * testsuite/testsuite_performance.h: Likewise.
3131 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
3133 * docs/html/17_intro/libstdc++-assign.txt: Update address.
3135 * testsuite/performance/ifstream_getline.cc: Fix.
3137 2003-06-23 Doug Gregor <dgregor@apple.com>
3139 * include/bits/boost_concept_check.h: Don't use _D or _R for type
3142 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
3143 Nathan C. Myers <ncm-nospam@cantrip.org>
3145 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
3146 is now used only for filebuf, when _M_buf_unified is true.
3147 epgtr() plays the role of _M_out_lim but it's only updated
3148 upon overflow, underflow, uflow, seekoff/pos.
3149 * include/bits/sstream.tcc (_M_underflow): New, implements
3150 stringbuf::underflow and uflow.
3151 (seekoff, seekpos): Tweak, use _M_update_egptr.
3152 * include/std/std_sstream.h (str): Rewrote, deal correctly
3153 with the new logic, in particular, when pptr() > egptr().
3154 (_M_sync): When __testout && !__testin set all the get area
3155 pointers to the current string end.
3156 (_M_update_egptr): New, internal function updating egptr()
3157 to the actual string end.
3158 (_M_underflow): New, declare.
3159 (underflow): Dispatch to _M_underflow(false).
3160 (uflow): Dispatch to _M_underflow(true).
3162 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
3163 seekpos): Use only the documented derivation interface to
3164 basic_streambuf (gptr(), setg(), etc.) to work right with
3165 user specializations.
3166 * include/std/std_sstream.h (str, _M_sync): Likewise.
3168 2003-06-20 Doug Gregor <dgregor@apple.com>
3170 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
3171 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
3172 dereference end iterator.
3173 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
3174 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
3175 index equal to the length of a string.
3176 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
3177 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
3178 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
3179 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
3180 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
3181 * testsuite/23_containers/list_modifiers.cc: Don't dereference
3182 singular reverse iterator.
3183 * testsuite/23_containers/vector_bool.cc: Don't increment singular
3185 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
3187 2003-06-20 Doug Gregor <dgregor@apple.com>
3189 * include/bits/basic_string.h (basic_string::replace): Dispatch
3190 _InputIterator version based on _Is_integer.
3191 * include/bits/basic_string.tcc (basic_string::replace):
3192 Renamed replace(iterator, iterator, size_type, _CharT) to
3194 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
3195 Test basic_string::assign(_InputIterator, _InputIterator),
3196 which calls basic_string::replace(iterator, iterator,
3197 _Input_iterator, _InputIterator).
3199 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
3201 * testsuite/testsuite_performance.h (resource_counter): Don't use
3202 mallinfo at the moment.
3204 2003-06-20 Matthias Klose <doko@debian.org>
3206 * configure.host: Set try_cpu to target_cpu for existing
3209 2003-06-19 Andreas Jaeger <aj@suse.de>
3211 * testsuite/Makefile.am (extract_symvers): Revert accidental
3213 * testsuite/Makefile.in: Regenerate.
3215 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
3216 * configure: Regenerated.
3218 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
3220 * include/std/std_sstream.h (_M_sync): Make non virtual.
3222 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
3224 * testsuite/testsuite_performance.h (time_counter): New.
3225 (resource_counter): New.
3226 (report_performance): New.
3227 (start_counters): New.
3228 (stop_counters): New.
3229 (clear_counters): New.
3230 * testsuite/performance/allocator.cc: Instrument.
3231 * testsuite/performance/cout_insert_int.cc: Same.
3232 * testsuite/performance/complex_norm.cc: Same.
3233 * testsuite/performance/filebuf_sputc.cc: New.
3234 * testsuite/performance/fstream_seek_write.cc: Same.
3235 * testsuite/performance/ifstream_getline.cc: Same.
3236 * testsuite/performance/map_create_fill.cc: Same.
3237 * testsuite/performance/ofstream_insert_float.cc: Same.
3238 * testsuite/performance/ofstream_insert_int.cc: Same.
3239 * testsuite/performance/string_append.cc: Convert.
3240 * scripts/check_performance: New.
3241 * testsuite/Makefile.am (check-performance): New.
3244 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
3245 Benjamin Kosnik <bkoz@redhat.com>
3247 * include/std/std_sstream.h (setbuf): Check __n >= 0.
3248 * include/bits/fstream.tcc (setbuf): Tweak.
3250 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
3252 * include/bits/sstream.tcc (seekoff): We can't seek beyond
3253 _M_out_lim, therefore _M_move_out_cur boils down to simply
3254 updating _M_out_cur.
3255 (seekpos): Likewise, clean up.
3257 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
3258 Paolo Carlini <pcarlini@unitus.it>
3260 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
3261 simply equivalent to the unbuffered case (0, 0) as far as
3262 _M_buf_size is concerned.
3264 2003-06-18 Andreas Jaeger <aj@suse.de>
3266 * testsuite/Makefile.am (new-abi-baseline): Create baseline
3268 (baseline_file): Use baseline_dir.
3269 (baseline_dir): New.
3270 (mkinstalldirs): New.
3272 * acinclude.m4: Rename baseline_file to baseline_dir, strip
3273 filename from baseline_dir.
3275 * testsuite/Makefile.in: Regenerated.
3276 * Makefile.in: Regenerated.
3277 * aclocal.m4: Regenerated.
3278 * configure: Regenerated.
3280 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3282 * configure.in: Missed check_survey bit.
3283 * configure: Regenerated.
3285 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3288 * config/abi/extract_symvers: Move to...
3289 * scripts/extract_symvers: ...here.
3290 * mkcheck.in: Move to..
3291 * scripts/check_survey.in: ...here.
3292 * testsuite_flags.in: Move to..
3293 * scripts/testsuite_flags.in: ...here.
3294 * configure.in: Change check and testsuite_flags locations.
3295 * configure: Regenerate.
3296 * testsuite/Makefile.am (current_symbols.txt): Change location.
3297 * testsuite/Makefile.in: Regenerate.
3298 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3299 location of testsuite_flags.
3300 * Makefile.am (check-script): Move..
3301 (check-script-install): Move...
3302 * testsuite/Makefile.am: ... here.
3303 * testsuite/Makefile.in: Regenerate.
3304 * Makefile.in: Regenerate.
3306 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3308 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
3310 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
3312 * Makefile.am (check-abi): Move...
3313 (new-abi-baseline): Move...
3314 * testsuite/Makefile.am: ...here.
3315 (new-abi-baseline): Conditionalize.
3316 (check-abi): Conditionalize.
3317 (check-abi-verbose): New.
3318 * Makefile.in: Regenerate.
3319 * testsuite/Makefile.in: Regenerate.
3320 * configure.in: Consolidate testsuite configure bits.
3321 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
3322 * configure: Regenerate.
3323 * aclocal.m4: Regenerate.
3324 * testsuite/abi_check.cc: Add --check-verbose.
3325 Only output detailed information if --check-verbose.
3327 2003-06-16 Andreas Jaeger <aj@suse.de>
3329 * testsuite/abi_check.cc: Create summary report.
3331 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
3333 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
3334 for systems with BUFSIZ != 8192.
3335 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3336 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
3339 2003-06-16 Andreas Jaeger <aj@suse.de>
3341 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
3342 check-abi multilib aware.
3343 * aclocal.m4: Regenerate.
3344 * configure: Regenerate.
3346 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
3347 Andreas Jaeger <aj@suse.de>
3349 * configure.host: Set x86_64 abi_baseline pair correctly.
3351 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
3353 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
3354 fix for missing seeks between gets and puts into...
3355 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
3356 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
3357 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
3358 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
3359 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
3360 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
3362 2003-06-15 Richard Henderson <rth@redhat.com>
3364 * config/linker-map.gnu: Export virtual function thunks for
3367 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
3369 * config/abi/i686-pc-linux-gnu: To..
3370 * config/abi/i486-linux-gnu: ...this.
3371 * config/abi/alphaev67-unknown-linux-gnu: To..
3372 * config/abi/alpha-linux-gnu: ...this.
3373 * config/abi/ia64-unknown-linux-gnu: To...
3374 * config/abi/ia64-linux-gnu: ...this.
3375 * config/abi/x86_64-unknown-linux-gnu: To...
3376 * config/abi/x86_64-linux-gnu: ...this.
3377 * config/abi/i386-unknown-freebsd4: To...
3378 * config/abi/i386-freebsd4: ...this.
3379 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
3381 * configure.host: abi_baseline_triplet to abi_baseline_pair.
3382 Simplify cpu bits so that abi_baseline_pair can use the same
3384 * acinclude.m4: Same.
3385 * aclocal.m4: Regenerate.
3386 * configure.in: Can't get enable_abi_check to yes unless native.
3387 * configure: Regenerate.
3389 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
3391 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
3392 fix for missing seeks between gets and puts into...
3393 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
3394 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
3395 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
3396 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
3397 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
3398 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
3399 for missing seeks between gets and puts.
3400 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
3401 * testsuite/data/seekoff-1.tst: New.
3402 * testsuite/data/seekoff-2.tst: New.
3403 * testsuite/data/seekpos-1.tst: New.
3404 * testsuite/data/seekpos-2.tst: New.
3406 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
3408 Avoid multi-processor bus contention on increment/decrement-and-
3409 test of the reference count in the empty-string object, by comparing
3410 addresses first, and never touching the reference count of the empty-
3412 * include/bits/basic_string.h:
3413 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
3415 (_Rep::_S_empty_rep()): New accessor.
3416 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
3417 a base class _Rep_base.
3418 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
3419 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
3420 since no longer must increment its refcount.
3421 * include/bits/basic_string.tcc:
3422 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
3423 return immediately. The former might be unnecessary. The latter
3424 prevents begin() and end() from cloning it unnecessarily.
3425 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3426 input_iterator_tag), _S_construct(_InIterator, _InIterator,
3427 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
3428 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
3429 (_M_mutate): Check for the empty string and treat it as shared.
3430 This is necessary here because _M_mutate is sometimes called with
3431 all-zero arguments; in all other uses of _M_is_shared, the test comes
3434 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
3436 * src/allocator-inst.cc: Explicitly instantiate.
3437 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
3439 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
3441 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
3443 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
3444 * aclocal.m4: Regenerate.
3445 * Makefile.am (SUBDIRS): Remove libio.
3446 * Makefile.in: Regenerate.
3447 * configure.in: Same.
3448 * configure: Regenerate.
3449 * config/io/basic_file_libio.cc: Remove.
3450 * config/io/basic_file_libio.h: Remove.
3451 * config/io/c_io_libio_codecvt.c: Remove.
3452 * config/io/c_io_libio.h: Remove.
3454 * src/Makefile.am: Same.
3455 * src/Makefile.in: Regenerate.
3456 * docs/html/configopts.html: Edits.
3457 * docs/html/explanations.html: Edits.
3459 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
3461 * include/bits/stl_alloc.h (__debug_alloc): Move out.
3462 (__malloc_alloc): Same.
3463 (__pool_alloc): Same.
3464 (__new_alloc): Same.
3466 * include/bits/allocator.h: ...this.
3467 * include/bits/stl_deque.h: Modify comment.
3468 * include/bits/stl_tree.h: Modify include.
3469 * include/std/std_memory.h: Same.
3470 * include/ext/rope: Same.
3471 * include/ext/slist: Same.
3472 * include/std/std_vector.h: Same.
3473 * include/std/std_stack.h: Same.
3474 * include/std/std_queue.h: Same.
3475 * include/std/std_list.h: Same.
3476 * include/std/std_deque.h: Same.
3477 * include/backward/alloc.h: Same.
3478 * include/ext/debug_allocator.h: New.
3479 * include/ext/malloc_allocator.h: New.
3480 * include/ext/pool_allocator.h: New.
3481 * include/ext/new_allocator.h: New.
3482 * include/bits/pthread_allocimpl.h: Remove.
3483 * include/bits/stl_pthread_alloc.h: Remove.
3484 * include/Makefile.am (ext_headers): Add.
3485 * include/Makefile.in: Regenerate.
3486 * src/stl-inst.cc: Use __gnu_cxx namespace.
3487 * src/stl-inst.cc: Move to...
3488 * src/allocator-inst.cc: Here.
3489 * src/Makefile.am (sources): Update.
3490 * src/Makefile.in: Regenerate.
3491 * config/linker-map.gnu: Remove __pool_alloc bits.
3492 * testsuite/ext/headers.cc: Add.
3493 * testsuite/ext/allocators.cc: Fixup.
3495 2003-06-11 Stefan Olsson <stefan@snon.net>
3496 Ola Rönnerup <fnolis@home.se>
3498 * include/Makefile.am (ext_headers): Add.
3499 * include/Makefile.in: Regenerate.
3500 * include/ext/mt_allocator.h: New file.
3502 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3504 * include/bits/fstream.tcc (close): Clean up a bit.
3506 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
3508 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
3509 - the saved _M_in_cur, that is - cannot be null.
3510 (sync): Constify a variable.
3512 * include/std/std_streambuf.h: Tweak a comment.
3513 (in_avail): Constify a variable.
3515 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
3517 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
3518 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
3519 correctness of container::iterator typedefs. Fix whitespace.
3520 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
3522 * docs/html/documentation.html: Regenerate.
3524 * include/bits/basic_string.h, include/bits/basic_string.tcc,
3525 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
3526 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3527 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
3528 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
3529 include/bits/stl_vector.h, include/bits/vector.tcc,
3530 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
3531 Change _Iter names to _Iterator, and __pos to __position.
3533 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
3534 include/bits/stl_multiset.h, include/bits/stl_set.h:
3535 Remove emacs markers.
3537 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
3539 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3541 * include/bits/fstream.tcc (overflow): According to
3542 27.5.2.4.5, overflow() returns not_eof(eof()).
3543 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
3544 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
3546 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3548 * include/bits/fstream.tcc (_M_underflow): Check overflow return
3549 value; tweak slightly.
3551 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
3553 * include/bits/fstream.tcc (_M_underflow): Do not special
3554 case the unbuffered case, which really means simply a one char
3556 (basic_filebuf): Initialize _M_buf_size.
3557 (setbuf): Unbuffered means _M_buf_size == 1, since only
3558 _M_buf_size - 1 == 0 chars are going to be used for the
3559 put area and 1 for the get area.
3560 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
3561 (~basic_streambuf): Tweak.
3562 (basic_streambuf): Do not initialize _M_buf_size.
3563 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
3564 (~basic_filebuf): Tweak.
3565 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
3566 unbuffered situation (i.e., put area pointers NULL).
3567 * include/bits/streambuf.tcc (sbumpc): Clean up.
3568 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
3569 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
3570 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
3571 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
3572 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
3573 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
3574 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
3576 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
3578 * acinclude.m4: Move all AM_CONDITIONAL calls out.
3579 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
3581 * configure.in: Centralize AM_CONDITIONALs so that they are always
3582 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
3583 * aclocal.m4, configure: Regenerated.
3585 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
3587 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
3589 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
3591 * include/bits/stl_iterator.h
3592 (reverse_iterator::reverse_iterator()): Apply DR235: default
3593 constructor default-initializes data member. Instantiated on a
3594 pointer type, the member has to end up equal to zero.
3596 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
3598 * include/bits/stl_alloc.h: Cleanups.
3599 * include/ext/functional: Same.
3600 * include/ext/hash_map: Same.
3601 * include/ext/hash_set: Same.
3602 * include/ext/iterator: Same.
3603 * include/ext/memory: Same.
3604 * include/ext/numeric: Same.
3605 * include/ext/rb_tree: Same.
3606 * include/ext/ropeimpl.h: Same.
3607 * include/ext/slist: Same.
3608 * include/ext/stdio_filebuf.h: Same.
3609 * include/ext/stdio_sync_filebuf.h: Same.
3610 * include/ext/stl_rope.h: Move to...
3611 * include/ext/rope: ...here.
3612 * include/ext/stl_hash_fun.h: Move to...
3613 * include/ext/hash_fun.h: ...here.
3614 * include/ext/stl_hashtable.h: Move to...
3615 * include/ext/hashtable.h: ...here.
3616 * include/backward/hashtable.h: Reflect new names.
3617 * include/Makefile.am: Same.
3618 * include/Makefile.in: Regenerated.
3620 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
3623 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
3624 * include/bits/stl_algobase.h: Tweak.
3625 * include/std/std_fstream.h: Move _M_buf_size to...
3626 * include/std/std_streambuf.h: ...here. Modify.
3627 * include/bits/streambuf.tcc: Same.
3628 * testsuite/testsuite_hooks.h: Tweak.
3629 * testsuite/testsuite_io.h (constraint_filebuf): New.
3630 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
3631 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
3632 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
3633 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
3634 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
3635 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
3636 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
3637 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
3638 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
3639 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
3640 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
3641 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
3642 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
3643 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
3644 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
3645 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
3646 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
3647 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
3648 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
3649 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
3650 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
3651 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
3652 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
3653 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
3654 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
3655 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
3656 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
3657 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
3658 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
3659 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
3660 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
3661 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
3662 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
3663 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
3664 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
3665 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
3666 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
3667 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
3668 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
3669 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
3670 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
3671 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
3672 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
3673 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
3674 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
3675 * testsuite/data/sgetc.txt: New.
3676 * testsuite/data/sgetn.txt: New.
3678 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
3681 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
3682 Deal with width() smaller than zero.
3683 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
3684 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
3685 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
3686 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
3687 operator<<(basic_ostream, const basic_string&)): Likewise.
3689 * testsuite/27_io/basic_istream/extractors_character/char/
3690 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3691 * testsuite/27_io/basic_ostream/inserters_character/char/
3692 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3693 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
3694 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
3696 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3698 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
3699 .gch compilation works.
3700 * aclocal.m4, configure: Regenerate.
3701 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
3702 initialize PCHFLAGS.
3704 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
3706 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
3707 erase(iterator), erase(iterator, iterator), c_str,
3708 compare(const basic_string&)): Constify various variables.
3709 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
3710 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
3711 _S_create, resize, _M_replace, _M_replace_safe,
3712 append(const basic_string&), append(const basic_string&, size_type,
3713 size_type), append(const _CharT*, size_type), append(size_type,
3714 _CharT), operator+(const _CharT*, const basic_string&),
3715 operator+(_CharT, const basic_string&), replace(iterator, iterator,
3716 size_type, _CharT), find(const _CharT*, size_type, size_type),
3717 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
3718 rfind(_CharT, size_type), compare(size_type, size_type,
3719 const basic_string&), compare(size_type, size_type,
3720 const basic_string&, size_type, size_type), compare(const _CharT*),
3721 compare(size_type, size_type, const _CharT*), compare(size_type,
3722 size_type, const _CharT*, size_type)): Likewise.
3724 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
3726 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
3727 'if' branch less obscure.
3729 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
3732 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
3734 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
3735 (__atomic_add): likewise.
3737 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3739 * include/bits/sstream.tcc (pbackfail): Minor clean up and
3740 reformatting, consistent with basic_filebuf::pbackfail.
3742 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
3745 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
3746 __attribute__ ((__unused__)).
3747 * config/os/aix/atomicity.h: Likewise.
3749 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3752 * include/bits/fstream.tcc (pbackfail): If the pback buffer
3753 is already active don't try to store in it a second char.
3754 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
3756 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
3758 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3760 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
3763 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3765 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
3766 instead of unnecessarily taking the address of _M_pback.
3767 (xsgetn): Simplify slightly for a single char pback buffer.
3769 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3771 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
3772 variables and two 'if', clean up.
3774 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3776 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
3777 not _M_out_end, since the former actually points to the string
3778 end (vs buffer end).
3779 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
3781 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
3783 * docs/doxygen/filter: New file.
3784 * docs/doxygen/filter.sed: New file.
3785 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
3786 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
3787 * docs/html/documentation.html: Fix links to doxygen pages.
3789 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
3791 * include/bits/fstream.tcc (_M_convert_to_external): Don't
3792 check for __ilen > 0.
3794 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
3797 * include/bits/stl_iterator.h (class __normal_iterator):
3798 Don't inherit from iterator, add missing typedefs.
3800 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
3802 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
3803 * testsuite/24_iterators/reverse_iterator/1.cc: New.
3804 * testsuite/24_iterators/reverse_iterator/2.cc: New.
3805 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
3808 2003-05-27 Steve Ellcey <sje@cup.hp.com>
3810 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
3812 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
3813 _LIBUNWIND_STD_ABI is set.
3815 2003-05-26 Brendan Kehoe <brendan@zen.org>
3817 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
3818 make sure the number of digits required after the decimal-point
3819 (if any) is exactly the value returned by frac_digits().
3820 * testsuite/22_locale/money_get/get/char/9.cc: New.
3821 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
3823 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
3825 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
3828 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
3831 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
3832 (_M_pback): No array necessary.
3833 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
3834 unbuffered case, coalesec into ...
3835 (basic_filebuf::overflow): ...this.
3836 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
3837 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
3839 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
3841 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
3842 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
3843 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
3844 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
3845 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
3846 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
3847 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
3848 libsupc++/eh_unex_handler.cc, libsupc++/exception,
3849 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
3850 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
3851 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
3852 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
3853 Replace "GNU CC" with "GCC".
3855 * include/backward/new.h: Replace "GNU CC" with "GCC".
3857 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
3860 * configure.in: Switch target to host, don't assume newlib.
3861 (target_alias): Remove.
3862 * configure: Regenerate.
3863 * acinclude.m4: Same.
3864 * aclocal.m4: Regenerate.
3865 * configure.target: Same. Rename to...
3866 * configure.host: This.
3868 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
3870 * include/std/std_fstream.h (_S_pback_size): Remove definition.
3871 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
3873 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
3874 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
3875 of _S_pback_size for systems with no COMDAT or weak support.
3876 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
3877 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
3878 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
3879 * testsuite/27_io/basic_fstream/3.cc: Likewise.
3880 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3881 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
3882 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
3883 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
3884 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
3886 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
3888 * include/bits/fstream.tcc (_M_underflow): Simplify:
3889 !__testout implies _M_filepos == _M_in_end, therefore
3890 the first _M_file.seekoff call is never issued.
3892 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
3894 * configure.in: Sort cross table.
3895 * configure: Regenerate.
3897 2003-05-22 Brad Spencer <spencer@infointeractive.com>
3900 * configure.in: Add Solaris cross bits.
3902 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
3904 * libstdc++-v3/config/os/mingw32/os_defines.h
3905 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
3906 (NOMINMAX): Define. Update copyright year.
3908 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
3910 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
3912 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
3914 * docs/html/faq/index.html: Fix typo.
3915 * docs/html/faq/index.txt: Regenerate.
3917 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
3919 * docs/html/test.html: Fix markup.
3921 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
3923 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
3925 Update copyright year.
3927 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
3929 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
3931 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
3933 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
3934 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
3936 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3938 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
3939 Cast via void* to avoid -Wcast-align warnings.
3940 (__default_alloc_template::_S_refill): Likewise.
3942 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
3944 * testsuite/README: Move to...
3945 * docs/html/test.html: ...here. Add documentation.
3946 * docs/html/install.html: Move testing bits out..
3947 * docs/html/documentation.html: Add separate testing link.
3948 * testsuite/performance: Add.
3949 * testsuite/performance/allocator.cc: New.
3950 * testsuite/performance/complex_norm.cc: New.
3951 * testsuite/performance/cout_insert_int.cc: New.
3952 * testsuite/performance/fstream_seek_write.cc: New.
3953 * testsuite/performance/ifstream_getline.cc: New.
3954 * testsuite/performance/map_create_fill.cc: New.
3955 * testsuite/performance/ofstream_insert_float.cc: New.
3956 * testsuite/performance/ofstream_insert_int.cc: New.
3957 * testsuite/performance/string_append.cc: New.
3958 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
3961 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
3964 * include/std/std_complex.h (pow): Tidy.
3966 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
3968 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
3969 that upon filebuf::close() 27.8.1.1,3 is enforced.
3971 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
3973 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
3975 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
3976 Nathan Myers <ncm@cantrip.org>
3978 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
3979 _M_convert_to_external only once (_M_buf_size is now the size of
3980 the put area + 1 for the overflow char of a full area); call
3981 _M_set_buffer instead of _M_set_indeterminate.
3982 (setbuf): Don't accept a buffer smaller than 2 chars.
3983 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
3984 instead of _M_set_determinate.
3985 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
3986 (seekoff): Likewise.
3987 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
3988 std::ios_base::openmode, bool, size_t),
3989 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
3991 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
3992 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
3994 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
3995 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
3996 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
3997 the put area is now BUFSIZ - 1.
3998 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
3999 that now the smallest _M_buf_size is 2 (still fails, for the same
4002 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
4004 * testsuite/thread/pthread4.cc: Tweak test.
4006 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
4008 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
4009 excess errors dg marker, use dg-errors instead.
4010 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
4011 * testsuite/20_util/auto_ptr_neg.cc: Same.
4013 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4015 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
4017 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
4018 Initialize _M_codecvt.
4019 (basic_filebuf::imbue): Same.
4020 (basic_filebuf::showmanyc): Use it.
4021 (basic_filebuf::underflow): Use it.
4022 (basic_filebuf::_M_convert_to_external): Use it.
4023 (basic_filebuf::seekoff): Use it.
4024 (basic_filebuf::imbue): Use it, tweaks.
4025 * include/bits/localefwd.h (__check_facet): New.
4026 * include/bits/locale_classes.h: Tweaks.
4027 * include/bits/locale_facets.tcc: Tweaks.
4028 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
4029 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
4030 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
4031 * include/bits/basic_ios.tcc: Same.
4032 * include/bits/istream.tcc: Same.
4033 * include/bits/ostream.tcc: Same.
4034 * include/std/std_streambuf.h: Same.
4035 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
4036 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
4037 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
4038 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
4039 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
4040 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
4042 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
4044 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
4045 unnecessary includes and unused string literals.
4046 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
4047 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
4048 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
4049 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
4051 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4053 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
4055 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
4057 * include/std/std_fstream.h (_M_convert_to_external): Change
4058 to return bool, take two less streamsize parameters.
4059 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
4060 consistently definition.
4061 (_M_overflow): Adjust call points.
4063 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4065 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
4067 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
4069 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
4070 * testsuite/Makefile.in: Regenerate.
4072 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
4074 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
4075 * testsuite/Makefile.in: Regenerate.
4077 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4080 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
4081 (acos): Handle integer argument.
4100 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
4101 (__enable_if): Likewise.
4102 * testsuite/26_numerics/cmath/overloads.C: New test.
4104 2003-05-10 Petur Runolfsson <peturr02@ru.is>
4109 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
4110 implementation, based on old wchar_t specialization, add support
4111 for codecvt::in() return value of codecvt_base::noconv, remove
4112 _M_file.sys_ungetc() call.
4113 * include/std/std_fstream.h (basic_file::underflow,
4114 basic_file::uflow, basic_file::_M_underflow): Remove
4115 specialization declarations, call _M_underflow from generic versions
4116 of underflow and uflow.
4117 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
4118 basic_file::_M_underflow): Remove specializations.
4119 * src/Makefile.am (sources): Remove fstream.cc.
4120 * src/Makefile.in: Regenerated.
4121 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
4122 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
4123 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
4124 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
4126 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
4128 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
4130 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
4132 (__basic_file::xsputn): Same.
4133 (__basic_file::seekoff): Same.
4134 (__basic_file::seekpos): Same.
4135 (__basic_file::showmanyc): Same.
4136 * config/io/basic_file_stdio.cc: Same.
4137 * include/std/std_fstream.h: Same.
4138 * include/bits/fstream.tcc: Same.
4139 * src/fstream.cc: Same.
4140 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
4142 2003-05-10 Petur Runolfsson <peturr02@ru.is>
4147 * include/ext/stdio_sync_filebuf.h: New file.
4148 (basic_stdiobuf): New.
4149 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
4150 * include/Makefile.in: Regenerate.
4151 * include/bits/ios_base.h (Init::_S_create_buffers,
4152 Init::_S_destroy_buffers): Remove declarations.
4153 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
4154 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
4155 * src/ios.cc (Init::_S_create_buffers,
4156 Init::_S_destroy_buffers): Remove.
4157 (Init::Init): Create and use syncronized buffers.
4158 (ios_base::sync_with_stdio): Destroy syncronized buffers,
4159 create and install unsyncronized buffers.
4160 * testsuite/27_io/objects/char/10.cc: New test.
4161 * testsuite/27_io/objects/char/9.cc: New test.
4162 * testsuite/27_io/objects/char/9661-1.cc: New test.
4163 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
4164 * testsuite/27_io/objects/char/9661-2_xin.in: New.
4165 * testsuite/27_io/objects/wchar_t/1.cc: New test.
4166 * testsuite/27_io/objects/wchar_t/10.cc: New test.
4167 * testsuite/27_io/objects/wchar_t/2.cc: New test.
4168 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
4169 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
4170 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
4171 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
4172 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
4173 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
4174 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
4175 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
4176 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
4177 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
4178 * testsuite/27_io/objects/wchar_t/5.cc: New test.
4179 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
4180 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
4181 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
4182 * testsuite/27_io/objects/wchar_t/6.cc: New test.
4183 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
4184 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
4185 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
4186 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
4187 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
4188 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
4189 * testsuite/27_io/objects/wchar_t/7.cc: New test.
4190 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
4191 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
4192 * testsuite/27_io/objects/wchar_t/8.cc: New test.
4193 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
4194 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
4195 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
4196 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
4197 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
4198 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
4199 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
4200 * testsuite/ext/stdiobuf_char.cc: New test.
4201 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
4203 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
4205 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
4206 unnecessary includes and unused string literals.
4207 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
4209 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
4211 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
4213 2003-05-07 Richard Henderson <rth@redhat.com>
4216 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
4217 (__cxa_end_catch): Likewise.
4218 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
4219 _Unwind_Resume_or_Rethrow.
4220 * libsupc++/eh_personality.cc (empty_exception_spec): New.
4221 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
4222 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
4223 exceptions. Don't push terminate/unexpected to cxa functions.
4224 (__cxa_call_unexpected): Remove foreign exception fixmes.
4226 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
4228 * testsuite/27_io/ios_base/cons: New.
4229 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
4230 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
4232 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
4234 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
4236 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
4237 there is no buffer or __testget == !__testinit.
4240 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
4241 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
4243 * include/std/std_fstream.h (_M_destroy_pback): Don't set
4244 unnecessarily _M_pback_cur_save and _M_pback_end_save.
4246 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
4248 * include/std/std_sstream.h (_M_sync): Minor tweak.
4250 * include/bits/fstream.tcc (close): No need to call
4251 _M_destroy_pback, setting _M_pback_init to false suffices
4254 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
4256 * include/bits/stl_algo.h: Enums as _S_.
4257 * include/bits/stl_tree.h: Same.
4258 * include/bits/stl_bvector.h: Same.
4259 * include/bits/ios_base.h: Same.
4260 * include/bits/stl_alloc.h: Same.
4261 * include/ext/stl_hashtable.h: Same.
4262 * src/ios.cc: And here.
4264 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
4265 * include/bits/sstream.tcc: Same.
4267 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
4269 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
4271 * include/bits/locale_facets.h (__num_base): Remove protected.
4272 Use _S_[io]* names for enumerations.
4273 (_S_format_int): Remove.
4274 * include/bits/locale_facets.tcc: Same.
4275 * src/locale.cc: Same.
4277 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
4279 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
4281 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
4282 * docs/html/faq/index.txt: Regenerated.
4284 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
4285 Matt Kraai <kraai@alumni.cmu.edu>
4287 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
4290 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
4292 * configure.target (mips*): Use the generic atomicity.h by default.
4294 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
4295 (Inspired by an alternate patch from Danny Smith.)
4297 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
4298 (_Swap_lock_struct<>): ...and the horse it rode in on.
4299 * src/globals.cc (_Swap_lock_struct<>): Likewise.
4300 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
4301 member to support...
4302 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
4303 visibility rules related to POSIX threads.
4304 * testsuite/thread/pthread7-rope.cc: New test.
4306 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
4308 * testsuite/21_strings/basic_string/find/char/3.cc: New
4309 file, testing basic_string<char>::find_first_not_of.
4310 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
4311 Likewise for basic_string<wchar_t>.
4313 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
4315 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
4317 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
4319 * include/Makefile.am (CLEANFILES): Remove PCH files in target
4321 * include/Makefile.in: Regenerate.
4323 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
4325 * include/std/std_sstream.h (str()): Tidy.
4327 2003-05-02 Nathan Myers <ncm@cantrip.org>
4328 Paolo Carlini <pcarlini@unitus.it>
4330 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
4332 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
4334 * include/bits/basic_string.h (swap): Remove redundant template
4335 parameters from declaration of non-template member function.
4337 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
4339 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
4340 * configure.in: Move libintl.h header test...
4341 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
4342 the NLS-related test results into one symbol.
4343 * src/functexcept.cc: Use it here.
4344 * aclocal.m4, config.h.in, configure: Regenerated.
4346 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4348 * include/bits/sstream.tcc (overflow): Instead of calling
4349 str(), then _M_string.reserve, thus copying the contents
4350 of the current buffer two times, just copy the latter in
4351 a temporary, then use the 'swap trick'.
4353 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4355 * include/std/std_sstream.h (str()): Revert the best of the
4356 previous 'improvement', incorrect due to the COW nature of
4357 v3 basic_string; simplify.
4359 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4361 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
4362 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
4364 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
4366 * testsuite/abi_check.cc (check_version): Update known versions.
4367 Check added symbols for version_name != base version. Add missing
4368 symbols to incompatible list.
4370 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
4372 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
4373 * aclocal.m4: Regenerated.
4374 * configure: Regenerated.
4376 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4378 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
4379 Const-ify some variables.
4380 (basic_streambuf::xsputn): Likewise; change the type of some
4381 variables to size_t.
4382 (__copy_streambufs): Change some variables to size_t.
4384 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4386 * include/std/std_sstream.h (str()): Avoid constructing
4387 a basic_string temporary not only when it would turn out
4388 to be zero-sized but also when identical to the current
4391 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4393 * include/ext/stdio_filebuf.h
4394 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
4395 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
4396 Shorten a bit (-10 lines) by factoring out some code.
4398 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
4400 * acinclude.m4: Add bit missing from previous patch.
4401 * aclocal.m4, configure: Regenerated.
4403 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
4405 * docs/doxygen/mainpage.html: Bring up to date.
4406 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
4408 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
4409 breaks everything. Don't scan them.
4410 * docs/html/documentation.html: Point to "Write after approval"
4413 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
4415 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
4416 of libc if message translations are being used. Fix info text in
4417 xieee_1003.1-2001 case.
4418 * aclocal.m4, configure: Regenerate.
4420 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
4421 Loren J. Rittle <ljrittle@acm.org>
4422 Martin v. Loewis <martin@v.loewis.de>
4424 * config/cpu/i386/atomicity.h: New file.
4426 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
4428 * include/bits/fstream.tcc (open): Change to single return.
4430 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
4432 * include/std/std_sstream.h (underflow): Change to single return.
4434 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4436 * include/std/std_streambuf.h (_M_buf): is currently
4437 used only for basic_filebuf, therefore move it there.
4438 (basic_streambuf(), ~basic_streambuf()): Adjust.
4439 * include/std/std_fstream.h (_M_buf): Moved here.
4440 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
4441 is actually redundant for basic_stringbuf.
4442 (_M_really_sync): Likewise.
4443 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4444 * include/bits/sstream.tcc (seekoff): Adjust.
4446 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4448 * src/localename.cc: Standardize exception strings.
4449 * src/locale.cc: Same.
4451 * include/bits/basic_string.tcc: Same.
4452 * include/bits/basic_ios.tcc: Same.
4453 * include/std/std_bitset.h: Same.
4454 * include/ext/ropeimpl.h: Same.
4455 * include/bits/stl_vector.h: Same.
4456 * include/bits/stl_deque.h: Same.
4457 * include/bits/stl_bvector.h: Same.
4458 * config/locale/generic/c_locale.cc: Same.
4459 * config/locale/gnu/c_locale.cc: Same.
4460 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
4462 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
4464 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4466 * include/std/std_streambuf.h (_M_buf_size): is currently
4467 used only for basic_filebuf, therefore move it there.
4468 (basic_streambuf(), ~basic_streambuf()): Adjust.
4469 * include/std/std_fstream.h (_M_buf_size): Moved here.
4470 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4472 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4474 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
4475 _M_buf_size (synced input is now correctly dealt with
4476 elsewhere); when the output buffer is full don't fall back
4477 to a snextc-sputc loop, call overflow instead.
4479 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4481 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
4482 the innermost 'if' by factoring out some code.
4484 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
4486 * configure.in: Test for libintl.h.
4487 * include/bits/c++config: Define __N for everybody.
4488 * include/bits/basic_string.h, include/bits/stl_bvector.h,
4489 include/bits/stl_deque.h, include/bits/stl_vector.h,
4490 include/std/std_bitset.h: Wrap all __throw* text with __N.
4491 * po/Makefile.am (pot): New rule, mostly working.
4492 * src/functexcept.cc: Call gettext on all __throw* arguments when
4493 -fexceptions is in effect.
4494 * po/Makefile.in, config.h.in, configure: Regenerate.
4496 2003-04-28 Petur Runolfsson <peturr02@ru.is>
4499 * include/bits/ios_base.h (Init::_S_ios_create,
4500 Init::_S_ios_destroy): Remove declarations.
4501 (Init::_S_create_buffers,
4502 Init::_S_destroy_buffers): Declare
4503 * src/ios.cc (Init::_S_ios_create): Remove
4504 (Init::_S_create_buffers): Create buffers and add to streams.
4505 (Init::_S_ios_destroy): Rename to...
4506 (Init::_S_destroy_buffers): this.
4507 (Init::Init): Only construct streams once.
4508 (Init::~Init): Flush streams, don't destroy them.
4509 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
4510 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
4511 * testsuite/27_io/objects/char/5.cc: New test.
4512 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
4513 * testsuite/27_io/objects/char/6.cc: New test.
4514 * testsuite/27_io/objects/char/7.cc: New test.
4516 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4518 * testsuite/27_io/objects/char/8.cc: New test.
4520 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4522 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
4523 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
4525 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
4527 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
4528 _M_destroy_pback. _M_pback_create to
4529 _M_create_pback. _M_underflow_common to
4530 _M_underflow. _M_really_overflow to _M_overflow.
4531 * include/bits/fstream.tcc: Same.
4532 * src/fstream.cc: Same.
4533 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
4534 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
4535 * include/bits/streambuf.tcc: Same.
4536 * include/bits/fstream.tcc: Same.
4537 * include/bits/sstream.tcc: Same.
4539 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
4541 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
4542 from fixed size array.
4543 (locale): Change _S_categories as well.
4545 * include/bits/locale_facets.tcc: Tweak.
4546 * config/locale/gnu/c_locale.cc: Assign _S_categories.
4547 * config/locale/generic/c_locale.cc: Same.
4548 * src/locale.cc: Tweak.
4549 * src/globals.cc: Change facet_name to name_vec, add names_c.
4550 * src/localename.cc: Use them.
4551 (locale::_Impl::~_Impl): Destroy _M_names.
4552 (locale::_Impl::_Impl): Create _M_names.
4554 2003-04-27 Andreas Schwab <schwab@suse.de>
4556 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
4557 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
4559 2003-04-27 Nathan Myers <ncm@cantrip.org>
4561 Move some basic_string members out of line because
4562 they are too big to reasonably be inline.
4563 * include/bits/basic_string.h
4564 (assign(const basic_string&, size_type, size_type),
4565 assign(const _CharT*, size_type),
4566 insert(size_type, const basic_string&, size_type, size_type),
4567 insert(size_type, const _CharT*, size_type),
4568 replace(size_type, size_type, const _CharT*, size_type)):
4569 Move from here to...
4570 * include/bits/basic_string.tcc: ...here.
4572 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4574 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
4575 the innermost 'if' by factoring out some code.
4577 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4579 * include/bits/streambuf.tcc (__copy_streambufs): Don't
4580 use in_avail(), simplify.
4582 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4584 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
4585 in basic_stringbuf it's unused.
4587 * include/std/std_sstream.h (underflow): consistently use
4588 _M_in_cur, not gptr().
4590 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
4591 Phil Edwards <pme@gcc.gnu.org>
4593 * testsuite_flags.in: Guard against the possibility
4594 of having "xgcc" as a part of a folder name in the
4595 path to the GCC build folder.
4596 * testsuite/Makefile.am: Likewise.
4597 * testsuite/Makefile.in: Regenerated.
4599 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
4602 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
4603 exception specifications.
4604 (basic_filebuf::close): Same.
4605 (basic_filebuf::_M_pback_destroy): Same.
4606 (basic_filebuf::_M_destroy_internal_buffer): Same.
4607 (basic_filebuf): Remove __res_type typedef.
4608 * src/fstream.cc: Same.
4609 * include/bits/fstream.tcc
4610 (basic_filebuf::_M_convert_to_external): Simplify.
4611 (basic_filebuf::seekoff): Use has_facet before use_facet.
4612 (basic_filebuf::close): Add exception specification of throw().
4613 * testsuite/27_io/basic_filebuf/cons: New.
4614 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
4615 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
4616 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
4617 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
4619 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
4621 * include/bits/locale_classes.h
4622 (locale::_S_extra_categories_size): Remove.
4623 * src/locale.cc: Remove _S_extra_categories_size.
4624 * src/localename.cc: Same.
4625 * config/locale/gnu/c_locale.cc: Same.
4626 * config/locale/generic/c_locale.cc: Same.
4628 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
4630 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
4632 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
4634 * docs/html/17_intro/howto.html: Update some links.
4635 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
4636 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
4637 * docs/html/ext/howto.html: Link to demangler notes and API.
4638 * docs/html/faq/index.html: Remove trailing whitespace.
4639 (1.4, 2.4, 3.8, 4.1): Bring up to date.
4640 (5.6): Change to a bulleted list.
4642 * docs/html/faq/index.txt, docs/html/documentation.html,
4643 docs/html/17_intro/porting.html: Regenerate.
4645 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
4647 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
4648 belongs to basic_filebuf.
4649 * testsuite/27_io/basic_fstream/3.cc: Likewise.
4650 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4651 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
4652 instantiation (now belongs to basic_filebuf).
4653 * testsuite/27_io/basic_iostream/3.cc: Likewise.
4654 * testsuite/27_io/basic_istream/3.cc: Likewise.
4655 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4656 _S_pback_size now belongs to basic_filebuf.
4657 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
4658 instantiation (now belongs to basic_filebuf).
4659 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
4660 belongs to basic_filebuf.
4661 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
4662 instantiation (now belongs to basic_filebuf).
4663 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
4664 _S_pback_size now belongs to basic_filebuf.
4665 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
4666 instantiation (now belongs to basic_filebuf).
4667 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
4669 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
4670 instantiation (now belongs to basic_filebuf).
4671 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
4673 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
4675 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
4676 * configure: Regenerated.
4678 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
4680 * config/locale/generic/c_locale.h (__convert_from_v): Use
4683 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
4685 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
4686 implementation only.
4687 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
4688 Comment and change to comply with DR 60 and the effect on gcount().
4689 * include/std/std_istream.h: Update comments.
4690 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
4691 comments about reasons for tests. Test sync() against gcount().
4692 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
4693 for effect on gcount().
4694 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
4695 for effect on gcount().
4697 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
4699 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
4702 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
4704 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
4705 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4706 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
4707 (basic_streambuf::basic_streambuf()): Adjust.
4708 * include/std/std_fstream.h (_S_pback_size, _M_pback,
4709 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4710 _M_pback_create(), _M_pback_destroy()): Moved here
4711 from basic_streambuf.
4712 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
4714 (basic_filebuf::_S_pback_size): Add declaration.
4715 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
4718 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4720 Consistently use _M_in_beg instead of eback(), _M_in_cur
4721 instead of gptr(), and so on.
4722 * include/bits/fstream.tcc (pbackfail, imbue): Here.
4723 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
4724 * include/bits/streambuf.tcc (sbumpc, sputbackc,
4725 __copy_streambufs): Ditto.
4726 * include/std/std_streambuf.h (sgetc): Ditto.
4728 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4730 * include/bits/sstream.tcc (pbackfail, overflow):
4733 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4735 * include/std/std_streambuf.h (uflow()): It's used only by
4736 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
4737 therefore do not consider the _M_buf_unified == true case.
4739 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
4741 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
4743 * docs/html/ext/howto.html ('LWG Issues'):
4744 Add issues 19, 90, 171, 231, 271.
4746 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
4748 * include/bits/sstream.tcc (pbackfail): Remove redundant
4749 NULL pointer check from test involving _M_in_*.
4750 (overflow, seekoff, seekpos): Const qualify bool variables.
4751 * include/std/std_sstream.h (underflow): Remove redundant
4752 NULL pointer check from test involving _M_in_*.
4753 (_M_really_sync): Const qualify bool variables.
4754 * src/fstream.cc (_M_underflow_common): Remove redundant
4755 NULL pointer check from test involving _M_in_*, const qualify
4758 * include/std/std_streambuf.h (sgetc): Remove redundant
4761 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
4763 According to 5.9 para 2 (second bullet) for pointers p, q
4764 pointing to the same type, with p == 0 and q == 0, (p < q)
4766 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
4767 seekoff): Remove redundant NULL pointer checks from tests
4768 involving _M_out_* and _M_in_*, const qualify bool variables.
4769 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
4770 qualify bool variables.
4771 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
4772 Remove redundant NULL pointer checks from tests involving
4773 _M_out_* and _M_in_*, const qualify bool variables.
4774 * include/std/std_fstream.h (sync): Likewise.
4775 (_M_is_indeterminate): Const qualify bool variables.
4776 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
4777 NULL pointer checks from tests involving _M_out_* and _M_in_*,
4778 const qualify bool variables.
4779 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
4782 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
4784 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
4785 C99 FP macros, if actually captured.
4787 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
4788 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4789 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4790 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4791 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
4793 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4794 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4795 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4796 * include/c_std/std_cstdlib.h: Use new macros.
4797 * include/c_std/std_cstdio.h: Use new macros.
4798 * include/c_std/std_cwchar.h: Use new macros.
4800 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
4803 * include/bits/ostream.tcc: Catch all exceptions for formatted
4804 output, instead of std::exception and derivatives.
4805 * include/bits/istream.tcc: Same.
4806 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
4807 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
4808 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
4809 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
4810 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
4811 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
4814 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
4816 * include/bits/c++config: Minor cosmetic tweaks.
4818 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
4820 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
4821 * include/Makefile.am (pch_input): Find in ${target_builddir}.
4822 (pch_output): Rename to...
4823 (pch_output_builddir): ..this. Find in ${target_builddir}.
4824 (pch_source): Tweak.
4825 (pch_build): Key off a built file.
4826 (pch_output rule): Rename to...
4827 (pch_input rule): ...this. Produce ${pch_output_builddir}
4828 instead of ${pch_output}.
4829 (install-pch rule): Install ${pch_output_builddir}.
4830 * include/Makefile.in: Regenerated.
4832 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
4834 * include/std/std_streambuf.h (setp): _M_out_lim, being
4835 the end limit of used put area, is set equal to _M_out_beg.
4837 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
4839 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
4840 * aclocal.m4: Regenerated.
4841 * configure.in: Remove old demangler bits.
4843 * configure: Regenerate.
4844 * config.h.in: Regenerate.
4845 * include/Makefile.am (allstamps): Now allstamped.
4846 (allcreated): Define this.
4847 (all-local): Use 'em.
4848 Conditionally define pch_build, pch_install based on
4850 (${pch_output}): New rule.
4851 (install-pch): New rule.
4852 (install-headers): New rule.
4853 (install-data-local): Install headers and conditionally pch.
4854 * include/Makefile.in: Regenerate.
4855 * testsuite_flags.in (--build-cxx): Use pch file.
4857 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
4859 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
4861 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
4862 Paolo Carlini <pcarlini at unitus dot it>
4865 * docs/html/27_io/howto.html
4866 ('The buffering is screwing up my program!'): Explain that
4867 opening counts as an I/O operation.
4869 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
4871 * testsuite/thread/pthread1.cc: Enable for darwin test.
4872 * testsuite/thread/pthread2.cc: Same.
4873 * testsuite/thread/pthread3.cc: Same.
4874 * testsuite/thread/pthread4.cc: Same.
4875 * testsuite/thread/pthread5.cc: Same.
4876 * testsuite/thread/pthread6.cc: Same.
4878 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
4881 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
4882 Populate it with multiple legal ways to obtain the C99 float
4883 transcendentals. Use them instead of direct global reference.
4884 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
4885 * docs/html/17_intro/porting.texi
4886 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4887 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4888 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
4889 * config/os/bsd/freebsd/os_defines.h
4890 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4891 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4892 * testsuite/26_numerics/c_math_dynamic.cc: New file.
4894 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
4895 Benjamin Kosnik <bkoz@redhat.com>
4897 * config/os/generic/ctype_inline.h: Fix.
4899 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
4901 * testsuite/testsuite_hooks.h
4902 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
4903 Change to try_named_locale.
4904 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
4906 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
4908 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
4909 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
4910 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
4911 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
4912 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
4913 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
4914 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
4915 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
4916 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
4917 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
4918 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
4919 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
4920 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
4921 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
4922 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
4923 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
4924 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
4925 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
4926 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
4927 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
4928 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
4929 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
4930 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
4931 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
4932 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
4933 * testsuite/22_locale/collate/compare/char/1.cc: Same.
4934 * testsuite/22_locale/collate/compare/char/2.cc: Same.
4935 * testsuite/22_locale/collate/compare/char/3.cc: Same.
4936 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
4937 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
4938 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
4939 * testsuite/22_locale/collate/hash/char/2.cc: Same.
4940 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
4941 * testsuite/22_locale/collate/transform/char/2.cc: Same.
4942 * testsuite/22_locale/collate/transform/char/3.cc: Same.
4943 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
4944 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
4945 * testsuite/22_locale/collate_byname/1.cc: Same.
4946 * testsuite/22_locale/ctype/is/char/2.cc: Same.
4947 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
4948 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
4949 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
4950 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
4951 * testsuite/22_locale/facet/2.cc: Same.
4952 * testsuite/22_locale/locale/cons/2.cc: Same.
4953 * testsuite/22_locale/locale/cons/4.cc: Same.
4954 * testsuite/22_locale/locale/cons/5.cc: Same.
4955 * testsuite/22_locale/locale/cons/7.cc: Same.
4956 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
4957 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
4958 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
4959 * testsuite/22_locale/messages/members/char/1.cc: Same.
4960 * testsuite/22_locale/messages/members/char/2.cc: Same.
4961 * testsuite/22_locale/messages/members/char/3.cc: Same.
4962 * testsuite/22_locale/messages_byname/1.cc: Same.
4963 * testsuite/22_locale/money_get/get/char/1.cc: Same.
4964 * testsuite/22_locale/money_get/get/char/2.cc: Same.
4965 * testsuite/22_locale/money_get/get/char/3.cc: Same.
4966 * testsuite/22_locale/money_get/get/char/4.cc: Same.
4967 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
4968 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
4969 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
4970 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
4971 * testsuite/22_locale/money_put/put/char/1.cc: Same.
4972 * testsuite/22_locale/money_put/put/char/2.cc: Same.
4973 * testsuite/22_locale/money_put/put/char/3.cc: Same.
4974 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
4975 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
4976 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
4977 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
4978 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
4979 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
4980 * testsuite/22_locale/num_get/get/char/1.cc: Same.
4981 * testsuite/22_locale/num_get/get/char/2.cc: Same.
4982 * testsuite/22_locale/num_get/get/char/3.cc: Same.
4983 * testsuite/22_locale/num_get/get/char/5.cc: Same.
4984 * testsuite/22_locale/num_get/get/char/6.cc: Same.
4985 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
4986 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
4987 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
4988 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
4989 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
4990 * testsuite/22_locale/num_put/put/char/1.cc: Same.
4991 * testsuite/22_locale/num_put/put/char/2.cc: Same.
4992 * testsuite/22_locale/num_put/put/char/3.cc: Same.
4993 * testsuite/22_locale/num_put/put/char/5.cc: Same.
4994 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
4995 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
4996 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
4997 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
4998 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
4999 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
5000 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
5001 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
5002 * testsuite/22_locale/numpunct_byname/1.cc: Same.
5003 * testsuite/22_locale/numpunct_byname/2.cc: Same.
5004 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
5005 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
5006 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
5007 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
5008 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
5009 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
5010 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
5011 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
5012 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
5013 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
5014 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
5015 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
5016 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
5017 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
5018 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
5019 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
5020 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
5021 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
5022 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
5023 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
5024 * testsuite/22_locale/time_put/put/char/1.cc: Same.
5025 * testsuite/22_locale/time_put/put/char/2.cc: Same.
5026 * testsuite/22_locale/time_put/put/char/3.cc: Same.
5027 * testsuite/22_locale/time_put/put/char/4.cc: Same.
5028 * testsuite/22_locale/time_put/put/char/5.cc: Same.
5029 * testsuite/22_locale/time_put/put/char/6.cc: Same.
5030 * testsuite/22_locale/time_put/put/char/7.cc: Same.
5031 * testsuite/22_locale/time_put/put/char/8.cc: Same.
5032 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
5033 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
5034 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
5035 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
5036 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
5037 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
5038 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
5039 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
5040 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
5041 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
5042 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
5043 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
5044 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
5046 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
5048 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
5049 solaris includes, not generic.
5051 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
5053 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
5055 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
5056 * include/bits/concept_check.h: Fix multi-line comment.
5057 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
5058 when target is *-*-freebsd*.
5060 2003-04-14 Nathan Myers <ncm@cantrip.org>
5061 Paolo Carlini <pcarlini@unitus.it>
5063 PR libstdc++/9701 (in_avail())
5064 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
5065 doesn't care if there is anything in some putback cell.
5066 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
5068 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
5069 unused string literals.
5071 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
5073 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
5074 _M_out_end, _M_set_indeterminate() does it.
5076 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5078 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
5080 2003-04-12 David Edelsohn <edelsohn@gnu.org>
5082 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5083 Change basic_streambuf instantiation to "unsigned char".
5084 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5086 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
5088 Remove _M_buf_size_opt, use directly _M_buf_size instead.
5089 * include/bits/fstream.tcc
5090 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
5091 references to _M_buf_size_opt.
5092 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
5093 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
5094 __bufsize to __in_avail and __size_opt to __buf_size.
5095 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
5096 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
5097 * include/std/std_streambuf.h (~basic_streambuf(),
5098 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
5099 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
5100 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
5101 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
5102 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
5103 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
5104 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
5105 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
5106 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
5107 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
5108 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
5109 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
5110 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
5112 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
5114 * include/ext/stdio_filebuf.h
5115 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
5116 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
5117 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
5118 since a stack-based buffer is used for small values of the size_t
5120 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
5121 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
5122 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
5124 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
5127 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
5128 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
5130 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5132 * testsuite/22_locale/locale/cons/3.cc: Split.
5133 * testsuite/22_locale/locale/cons/7222-c.cc: New.
5134 * testsuite/22_locale/locale/cons/7222-env.cc: New.
5135 Check before trying to create a locale from the environment.
5136 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
5137 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
5140 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5142 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
5143 locale to construct this hybrid locale, not the global locale.
5145 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5147 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
5148 instantiation for AIX.
5149 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5150 * testsuite/25_algorithms/min_max.cc: Same.
5152 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5154 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
5155 twice. Always set _M_cfile to 0 when stream was open.
5157 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5159 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
5160 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
5161 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
5162 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
5163 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
5164 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
5165 ifstream_members.cc, instantiations.cc, ios.cc,
5166 ios_base_callbacks.cc, ios_base_members_static-1.tst,
5167 ios_base_members_static.cc, ios_base_storage.cc,
5168 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
5169 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
5170 iostream.cc, iostream_members.cc, istream.cc,
5171 istream_exception.cc, istream_extractor_char.cc,
5172 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
5173 istream_extractor_other-2.tst, istream_extractor_other.cc,
5174 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
5175 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
5176 istream_sentry.cc, istream_unformatted-1.tst,
5177 istream_unformatted-1.txt, istream_unformatted.cc,
5178 istringstream.cc, istringstream_members.cc,
5179 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
5180 ofstream_members.cc, ostream.cc, ostream_exception.cc,
5181 ostream_fail.cc, ostream_inserter_arith.cc,
5182 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
5183 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
5184 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
5185 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
5186 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
5187 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
5188 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
5189 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
5190 wide_stream_objects.cc, istream_extractor_arith/01.cc,
5191 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
5192 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
5193 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
5194 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
5195 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
5197 * 27_io/basic_filebuf/1.cc: New.
5198 * 27_io/basic_filebuf/2.cc: New.
5199 * 27_io/basic_filebuf/3.cc: New.
5200 * 27_io/basic_filebuf/4.cc: New.
5201 * 27_io/basic_filebuf/close/char/1.cc: New.
5202 * 27_io/basic_filebuf/close/char/2.cc: New.
5203 * 27_io/basic_filebuf/close/char/3.cc: New.
5204 * 27_io/basic_filebuf/close/char/4879.cc: New.
5205 * 27_io/basic_filebuf/close/char/9964.cc: New.
5206 * 27_io/basic_filebuf/imbue/char/1.cc: New.
5207 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
5208 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
5209 * 27_io/basic_filebuf/is_open/char/1.cc: New.
5210 * 27_io/basic_filebuf/open/char/1.cc: New.
5211 * 27_io/basic_filebuf/open/char/2.cc: New.
5212 * 27_io/basic_filebuf/open/char/3.cc: New.
5213 * 27_io/basic_filebuf/open/char/9507.cc: New.
5214 * 27_io/basic_filebuf/overflow/char/1.cc: New.
5215 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
5216 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
5217 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
5218 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
5219 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
5220 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
5221 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
5222 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
5223 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
5224 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
5225 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
5226 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
5227 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
5228 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
5229 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
5230 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
5231 * 27_io/basic_filebuf/snextc/char/1.cc: New.
5232 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
5233 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
5234 * 27_io/basic_filebuf/sputc/char/1.cc: New.
5235 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
5236 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
5237 * 27_io/basic_filebuf/sputn/char/1.cc: New.
5238 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
5239 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
5240 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
5241 * 27_io/basic_filebuf/sync/char/1057.cc: New.
5242 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
5243 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
5244 * 27_io/basic_fstream/1.cc: New.
5245 * 27_io/basic_fstream/2.cc: New.
5246 * 27_io/basic_fstream/3.cc: New.
5247 * 27_io/basic_fstream/4.cc: New.
5248 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
5249 * 27_io/basic_ifstream/1.cc: New.
5250 * 27_io/basic_ifstream/2.cc: New.
5251 * 27_io/basic_ifstream/3.cc: New.
5252 * 27_io/basic_ifstream/4.cc: New.
5253 * 27_io/basic_ifstream/cons/char/1.cc: New.
5254 * 27_io/basic_ifstream/open/char/1.cc: New.
5255 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
5256 * 27_io/basic_ios/1.cc: New.
5257 * 27_io/basic_ios/2.cc: New.
5258 * 27_io/basic_ios/3.cc: New.
5259 * 27_io/basic_ios/4.cc: New.
5260 * 27_io/basic_ios/clear/char/1.cc: New.
5261 * 27_io/basic_ios/cons/char/1.cc: New.
5262 * 27_io/basic_ios/cons/char/2.cc: New.
5263 * 27_io/basic_ios/cons/char/3.cc: New.
5264 * 27_io/basic_ios/copyfmt/char/1.cc: New.
5265 * 27_io/basic_ios/copyfmt/char/2.cc: New.
5266 * 27_io/basic_ios/exceptions/char/1.cc: New.
5267 * 27_io/basic_ios/locales/char/1.cc: New.
5268 * 27_io/basic_iostream/1.cc: New.
5269 * 27_io/basic_iostream/2.cc: New.
5270 * 27_io/basic_iostream/3.cc: New.
5271 * 27_io/basic_iostream/4.cc: New.
5272 * 27_io/basic_istream/1.cc: New.
5273 * 27_io/basic_istream/2.cc: New.
5274 * 27_io/basic_istream/3.cc: New.
5275 * 27_io/basic_istream/4.cc: New.
5276 * 27_io/basic_istream/exceptions/char/9561.cc: New.
5277 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
5278 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
5279 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
5280 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
5281 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
5282 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
5283 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
5284 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
5285 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
5286 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
5287 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
5288 * 27_io/basic_istream/extractors_character/char/1.cc: New.
5289 * 27_io/basic_istream/extractors_character/char/2.cc: New.
5290 * 27_io/basic_istream/extractors_character/char/3.cc: New.
5291 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
5292 * 27_io/basic_istream/extractors_other/char/1.cc: New.
5293 * 27_io/basic_istream/extractors_other/char/2.cc: New.
5294 * 27_io/basic_istream/extractors_other/char/3.cc: New.
5295 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
5296 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
5297 * 27_io/basic_istream/get/char/1.cc: New.
5298 * 27_io/basic_istream/get/char/2.cc: New.
5299 * 27_io/basic_istream/getline/char/1.cc: New.
5300 * 27_io/basic_istream/getline/char/2.cc: New.
5301 * 27_io/basic_istream/getline/char/3.cc: New.
5302 * 27_io/basic_istream/ignore/char/1.cc: New.
5303 * 27_io/basic_istream/ignore/char/6360.cc: New.
5304 * 27_io/basic_istream/ignore/char/7220.cc: New.
5305 * 27_io/basic_istream/peek/char/1.cc: New.
5306 * 27_io/basic_istream/peek/char/6414.cc: New.
5307 * 27_io/basic_istream/putback/char/1.cc: New.
5308 * 27_io/basic_istream/read/char/1.cc: New.
5309 * 27_io/basic_istream/read/char/2.cc: New.
5310 * 27_io/basic_istream/read/char/3.cc: New.
5311 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
5312 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
5313 * 27_io/basic_istream/readsome/char/8258.cc: New.
5314 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
5315 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
5316 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
5317 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
5318 * 27_io/basic_istream/seekg/char/fstream.cc: New.
5319 * 27_io/basic_istream/seekg/char/sstream.cc: New.
5320 * 27_io/basic_istream/sentry/char/1.cc: New.
5321 * 27_io/basic_istream/sentry/char/2.cc: New.
5322 * 27_io/basic_istream/sentry/char/3.cc: New.
5323 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
5324 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
5325 * 27_io/basic_istream/tellg/char/1.cc: New.
5326 * 27_io/basic_istream/tellg/char/8348.cc: New.
5327 * 27_io/basic_istream/tellg/char/fstream.cc: New.
5328 * 27_io/basic_istream/tellg/char/sstream.cc: New.
5329 * 27_io/basic_istream/ws/char/1.cc: New.
5330 * 27_io/basic_istringstream/1.cc: New.
5331 * 27_io/basic_istringstream/2.cc: New.
5332 * 27_io/basic_istringstream/3.cc: New.
5333 * 27_io/basic_istringstream/4.cc: New.
5334 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
5335 * 27_io/basic_istringstream/str/char/1.cc: New.
5336 * 27_io/basic_ofstream/1.cc: New.
5337 * 27_io/basic_ofstream/2.cc: New.
5338 * 27_io/basic_ofstream/3.cc: New.
5339 * 27_io/basic_ofstream/4.cc: New.
5340 * 27_io/basic_ofstream/cons/char/2.cc: New.
5341 * 27_io/basic_ofstream/open/char/1.cc: New.
5342 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
5343 * 27_io/basic_ostream/1.cc: New.
5344 * 27_io/basic_ostream/2.cc: New.
5345 * 27_io/basic_ostream/3.cc: New.
5346 * 27_io/basic_ostream/4.cc: New.
5347 * 27_io/basic_ostream/cons/char/9827.cc: New.
5348 * 27_io/basic_ostream/endl/char/1.cc: New.
5349 * 27_io/basic_ostream/ends/char/1.cc: New.
5350 * 27_io/basic_ostream/ends/char/2.cc: New.
5351 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
5352 * 27_io/basic_ostream/flush/char/1.cc: New.
5353 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
5354 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
5355 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
5356 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
5357 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
5358 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
5359 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
5360 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
5361 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
5362 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
5363 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
5364 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
5365 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
5366 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
5367 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
5368 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
5369 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
5370 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
5371 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
5372 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
5373 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
5374 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
5375 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
5376 * 27_io/basic_ostream/sentry/char/1.cc: New.
5377 * 27_io/basic_ostream/sentry/char/2.cc: New.
5378 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
5379 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
5380 * 27_io/basic_ostream/tellp/char/1.cc: New.
5381 * 27_io/basic_ostream/tellp/char/2.cc: New.
5382 * 27_io/basic_ostringstream/1.cc: New.
5383 * 27_io/basic_ostringstream/2.cc: New.
5384 * 27_io/basic_ostringstream/3.cc: New.
5385 * 27_io/basic_ostringstream/4.cc: New.
5386 * 27_io/basic_ostringstream/cons/char/3.cc: New.
5387 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
5388 * 27_io/basic_ostringstream/str/char/1.cc: New.
5389 * 27_io/basic_ostringstream/str/char/2.cc: New.
5390 * 27_io/basic_streambuf/1.cc: New.
5391 * 27_io/basic_streambuf/2.cc: New.
5392 * 27_io/basic_streambuf/3.cc: New.
5393 * 27_io/basic_streambuf/cons/char/1.cc: New.
5394 * 27_io/basic_streambuf/imbue/char/1.cc: New.
5395 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
5396 * 27_io/basic_streambuf/overflow/char/1.cc: New.
5397 * 27_io/basic_streambuf/overflow/char/2.cc: New.
5398 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
5399 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
5400 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
5401 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
5402 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
5403 * 27_io/basic_streambuf/sputn/char/1.cc: New.
5404 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
5405 * 27_io/basic_streambuf/sync/char/1057.cc: New.
5406 * 27_io/basic_stringbuf/1.cc: New.
5407 * 27_io/basic_stringbuf/2.cc: New.
5408 * 27_io/basic_stringbuf/3.cc: New.
5409 * 27_io/basic_stringbuf/4.cc: New.
5410 * 27_io/basic_stringbuf/5.cc: New.
5411 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
5412 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
5413 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
5414 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
5415 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
5416 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
5417 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
5418 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
5419 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
5420 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
5421 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
5422 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
5423 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
5424 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
5425 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
5426 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
5427 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
5428 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
5429 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
5430 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
5431 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
5432 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
5433 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
5434 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
5435 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
5436 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
5437 * 27_io/basic_stringbuf/str/char/1.cc: New.
5438 * 27_io/basic_stringbuf/str/char/2.cc: New.
5439 * 27_io/basic_stringbuf/str/char/3.cc: New.
5440 * 27_io/basic_stringbuf/str/char/3955.cc: New.
5441 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
5442 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
5443 * 27_io/basic_stringstream/1.cc: New.
5444 * 27_io/basic_stringstream/2.cc: New.
5445 * 27_io/basic_stringstream/3.cc: New.
5446 * 27_io/basic_stringstream/4.cc: New.
5447 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
5448 * 27_io/basic_stringstream/str/char/1.cc: New.
5449 * 27_io/basic_stringstream/str/char/2.cc: New.
5450 * 27_io/basic_stringstream/str/char/3.cc: New.
5451 * 27_io/basic_stringstream/str/char/4.cc: New.
5452 * 27_io/fpos/1.cc: New.
5453 * 27_io/fpos/2.cc: New.
5454 * 27_io/fpos/3.cc: New.
5455 * 27_io/ios_base/callbacks/1.cc: New.
5456 * 27_io/ios_base/state/1.cc: New.
5457 * 27_io/ios_base/storage/1.cc: New.
5458 * 27_io/ios_base/storage/2.cc: New.
5459 * 27_io/ios_base/storage/3.cc: New.
5460 * 27_io/ios_base/sync_with_stdio/1.cc: New.
5461 * 27_io/ios_base/sync_with_stdio/2.cc: New.
5462 * 27_io/manipulators/adjustfield/char/1.cc: New.
5463 * 27_io/manipulators/adjustfield/char/2.cc: New.
5464 * 27_io/manipulators/basefield/char/1.cc: New.
5465 * 27_io/manipulators/standard/char/1.cc: New.
5466 * 27_io/manipulators/standard/char/2.cc: New.
5467 * 27_io/objects/char/1.cc: New.
5468 * 27_io/objects/char/2.cc: New.
5469 * 27_io/objects/char/2523-1_xin.cc: New.
5470 * 27_io/objects/char/2523-1_xin.in: New.
5471 * 27_io/objects/char/2523-2_xin.cc: New.
5472 * 27_io/objects/char/2523-2_xin.in: New.
5473 * 27_io/objects/char/3045.cc: New.
5474 * 27_io/objects/char/3647.cc: New.
5475 * 27_io/objects/char/3_xin.cc: New.
5476 * 27_io/objects/char/3_xin.in: New.
5477 * 27_io/objects/char/4_xin.cc: New.
5478 * 27_io/objects/char/4_xin.in: New.
5479 * 27_io/objects/char/5268.cc: New.
5480 * 27_io/objects/char/5280_xin.cc: New.
5481 * 27_io/objects/char/5280_xin.in: New.
5482 * 27_io/objects/char/6548_xin.cc: New.
5483 * 27_io/objects/char/6548_xin.in: New.
5484 * 27_io/objects/char/6648-1_xin.cc: New.
5485 * 27_io/objects/char/6648-1_xin.in: New.
5486 * 27_io/objects/char/6648-2_xin.cc: New.
5487 * 27_io/objects/char/6648-2_xin.in: New.
5488 * 27_io/objects/char/7744_xin.cc: New.
5489 * 27_io/objects/char/7744_xin.in: New.
5490 * 27_io/objects/wchar_t/1.cc: New.
5491 * 27_io/types/1.cc: New.
5492 * 27_io/types/2.cc: New.
5493 * data/filebuf_members-1.tst: New.
5494 * data/filebuf_members-1.txt: New.
5495 * data/filebuf_virtuals-1.tst: New.
5496 * data/filebuf_virtuals-1.txt: New.
5497 * data/filebuf_virtuals-2.tst: New.
5498 * data/filebuf_virtuals-3.tst: New.
5499 * data/ifstream_members-1.tst: New.
5500 * data/ifstream_members-1.txt: New.
5501 * data/ios_base_members_static-1.tst: New.
5502 * data/istream_extractor_other-1.tst: New.
5503 * data/istream_extractor_other-1.txt: New.
5504 * data/istream_extractor_other-2.tst: New.
5505 * data/istream_seeks-1.tst: New.
5506 * data/istream_seeks-1.txt: New.
5507 * data/istream_seeks-2.tst: New.
5508 * data/istream_seeks-3.tst: New.
5509 * data/istream_unformatted-1.tst: New.
5510 * data/istream_unformatted-1.txt: New.
5511 * data/ofstream_members-1.tst: New.
5512 * data/ostream_inserter_char-1.tst: New.
5513 * data/ostream_inserter_char-1.txt: New.
5514 * data/ostream_inserter_other-1.tst: New.
5515 * data/ostream_inserter_other-2.tst: New.
5516 * data/ostream_seeks-1.tst: New.
5518 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5520 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
5521 requirement that __mode must be strict input or output.
5523 * include/std/std_streambuf.h (basic_streambuf::setp): Set
5526 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
5527 output string shouldn't core.
5528 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
5530 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
5532 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
5535 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5537 * testsuite/data: New directory.
5538 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
5539 to copy files from the testsuite data directory.
5540 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
5541 testfiles containing _xin, which now means this is an interactive
5542 test and should be run with the interactive dejagnu hooks.
5543 * testsuite/Makefile.am: Remove testsuite_* files.
5544 * testsuite/Makefile.in: Regenerate.
5546 2003-04-09 Zack Weinberg <zack@codesourcery.com>
5548 * docs/html/install.html: Document complete list of locales
5549 required by test suite. Document procedure for installing
5550 said locales under Debian. Solicit instructions for other
5553 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
5555 * include/bits/sstream.tcc (overflow): Make sure operands of min
5556 and max have the same type.
5558 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
5561 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
5564 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
5566 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
5567 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
5568 Don't set _M_out_end.
5569 (basic_filebuf::overflow): Replace _M_out_buf_size() with
5570 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
5571 * include/bits/sstream.tcc (basic_stringbuf::overflow):
5572 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
5573 * include/bits/streambuf.tcc (basic_streambuf::sputc):
5574 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
5575 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
5576 _M_out_end - _M_out_cur.
5577 (__copy_streambufs): Likewise.
5578 * include/std/std_fstream.h (_M_set_determinate): Set
5581 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
5583 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
5584 _M_convert_to_external, _M_really_overflow, seekoff): Fix
5585 test for synced buffer.
5586 * include/std/std_fstream.h (sync): Likewise.
5587 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5588 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
5590 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
5592 * include/std/std_sstream.h (basic_istringstream): Adjust
5594 (basic_ostringstream): Same.
5595 (basic_stringstream): Same.
5596 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
5597 (basic_ofstream): Same.
5598 (basic_fstream): Same.
5599 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
5600 that does not call init.
5601 * include/std/std_istream.h (basic_istream): Same.
5602 (basic_iostream): Construct istream, ostream uninitialized, use
5603 init to initialize just once. Add protected ctor that does not
5606 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
5607 Nathan Myers <ncm@cantrip.org>
5610 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
5612 (basic_filebuf<>::showmanyc): Use the information provided
5613 by codecvt and __basic_file<>::showmanyc_helper to implement
5614 a non-trivial showmanyc.
5615 * config/io/basic_file_stdio.h
5616 (__basic_file<>::showmanyc_helper): New, declare.
5617 * config/io/basic_file_stdio.cc
5618 (__basic_file<>::showmanyc_helper): Define.
5619 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
5620 (__basic_file<char>::open): Don't call fcntl().
5621 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
5622 GLIBCPP_CHECK_POLL): New macros.
5623 * configure.in: Call here.
5624 * acconfig.h: Add #undefs for the corresponding symbols.
5625 * aclocal.m4: Regenerate.
5626 * configure: Regenerate.
5627 * config.h.in: Regenerate.
5629 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
5631 * config/linker-map.gnu: Remove string export restrictions.
5633 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
5635 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
5636 find_first_of, find_last_of and find_last_not_of tests.
5637 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
5638 tests here, new file.
5639 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
5640 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
5641 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
5642 wchar_t find_first_of tests here, new file.
5643 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
5645 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
5647 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
5648 wchar_t find_last_of tests here.
5649 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
5650 wchar_t find_last_not_of tests here.
5652 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
5654 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
5655 Correct return value.
5657 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
5660 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
5661 * include/std/std_complex.h (norm): Use faster,
5662 less accurate computation for builtin float types under --fast-math.
5664 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
5666 * testsuite/testsuite_hooks.h: Fix warning nits.
5668 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
5670 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
5671 Only .set mips2 for the o32 ABI.
5673 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
5675 * testsuite/21_strings/char_traits/requirements/char/1.cc:
5676 Test char not wchar_t.
5678 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
5680 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
5681 Correct size, taking into account sizeof(wchar_t).
5683 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
5685 Reshuffle 21_strings testsuite.
5686 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
5687 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
5688 element_access.cc, operations.cc, char_traits_requirements.cc,
5689 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
5690 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
5691 wchar_t tests as follows.
5692 * 21_strings/basic_string/append/char/1.cc: New.
5693 * 21_strings/basic_string/append/wchar_t/1.cc: New.
5694 * 21_strings/basic_string/assign/char/1.cc: New.
5695 * 21_strings/basic_string/assign/char/2.cc: New.
5696 * 21_strings/basic_string/assign/char/3.cc: New.
5697 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
5698 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
5699 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
5700 * 21_strings/basic_string/capacity/1.cc: New.
5701 * 21_strings/basic_string/capacity/char/1.cc: New.
5702 * 21_strings/basic_string/capacity/char/2.cc: New.
5703 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
5704 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
5705 * 21_strings/basic_string/compare/char/1.cc: New.
5706 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
5707 * 21_strings/basic_string/cons/char/1.cc: New.
5708 * 21_strings/basic_string/cons/char/2.cc: New.
5709 * 21_strings/basic_string/cons/char/3.cc: New.
5710 * 21_strings/basic_string/cons/char/4.cc: New.
5711 * 21_strings/basic_string/cons/char/5.cc: New.
5712 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
5713 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
5714 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
5715 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
5716 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
5717 * 21_strings/basic_string/element_access/char/1.cc: New.
5718 * 21_strings/basic_string/element_access/char/2.cc: New.
5719 * 21_strings/basic_string/element_access/char/3.cc: New.
5720 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
5721 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
5722 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
5723 * 21_strings/basic_string/find/char/1.cc: New.
5724 * 21_strings/basic_string/find/wchar_t/1.cc: New.
5725 * 21_strings/basic_string/insert/char/1.cc: New.
5726 * 21_strings/basic_string/insert/char/2.cc: New.
5727 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
5728 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
5729 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
5730 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
5731 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
5732 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
5733 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
5734 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
5735 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
5736 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
5737 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
5738 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
5739 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
5740 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
5741 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
5742 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
5743 * 21_strings/basic_string/operators/char/1.cc: New.
5744 * 21_strings/basic_string/operators/char/2.cc: New.
5745 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
5746 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
5747 * 21_strings/basic_string/replace/char/1.cc: New.
5748 * 21_strings/basic_string/replace/char/2.cc: New.
5749 * 21_strings/basic_string/replace/char/3.cc: New.
5750 * 21_strings/basic_string/replace/char/4.cc: New.
5751 * 21_strings/basic_string/replace/char/5.cc: New.
5752 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
5753 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
5754 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
5755 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
5756 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
5757 * 21_strings/basic_string/rfind/char/1.cc: New.
5758 * 21_strings/basic_string/rfind/char/2.cc: New.
5759 * 21_strings/basic_string/rfind/char/3.cc: New.
5760 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
5761 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
5762 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
5763 * 21_strings/basic_string/substr/char/1.cc: New.
5764 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
5765 * 21_strings/c_strings/char/1.cc: New.
5766 * 21_strings/c_strings/char/2.cc: New.
5767 * 21_strings/c_strings/wchar_t/1.cc: New.
5768 * 21_strings/c_strings/wchar_t/2.cc: New.
5769 * 21_strings/char_traits/requirements/char/1.cc: New.
5770 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
5771 * 21_strings/char_traits/typedefs/char/1.cc: New.
5773 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
5774 Petur Runolfsson <peturr02@ru.is>
5777 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5778 basic_filebuf<wchar_t>::_M_underflow_common):
5779 if (gptr() < egptr()) return *gptr().
5780 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
5782 * testsuite/27_io/filebuf_members.cc (test_04): Minor
5783 changes: unlink fifo before making it, fix spelling error.
5785 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
5787 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
5788 * testsuite/Makefile.in: Regenerate.
5789 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
5792 2003-03-17 Petur Runolfsson <peturr02@ru.is>
5795 * include/bits/fstream.tcc (basic_filebuf::close):
5796 Always close file, even when write fails.
5797 * testsuite/27_io/filebuf_members.cc (test_07): New test.
5799 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
5801 * libsupc++/Makefile.am (C_COMPILE): Remove.
5802 (LTCOMPILE): Likewise.
5803 * libsupc++/Makefile.in: Regenerate.
5805 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
5807 * testsuite/23_containers/bitset_members.cc: Add test variable.
5808 * testsuite/23_containers/map_insert.cc: Same.
5809 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
5810 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
5811 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5812 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5813 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5814 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
5815 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
5816 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5817 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5818 * testsuite/27_io/istream_exception.cc: Same.
5819 * testsuite/27_io/filebuf_virtuals.cc: Same.
5820 * testsuite/27_io/stringbuf_virtuals.cc: Same.
5821 * testsuite/27_io/ostream_inserter_arith.cc: Same.
5822 * testsuite/26_numerics/valarray_operators.cc: Same.
5823 * testsuite/26_numerics/slice.cc: Same.
5824 * testsuite/26_numerics/slice_array_assignment.cc: Same.
5825 * testsuite/24_iterators/istream_iterator.cc: Same.
5826 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
5828 2003-03-14 Petur Runolfsson <peturr02@ru.is>
5832 * config/locale/generic/ctype_members.cc,
5833 * config/locale/gnu/ctype_members.cc
5834 (ctype<wchar_t>::do_widen(char)): Cast argument to
5835 unsigned char before passing to btowc.
5836 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
5837 Convert characters with btowc instead of mbsrtowcs.
5838 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
5840 Convert characters with wctob instead of wcsrtombs.
5841 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
5842 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
5843 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
5845 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
5847 * include/stdc++.h: New.
5848 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
5849 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
5850 * include/Makefile.in: Regenerate.
5851 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
5852 (--cxxflags): Put -g -O2 here.
5853 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
5855 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
5857 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
5858 missing named locale.
5860 2003-03-14 Andreas Schwab <schwab@suse.de>
5862 * configure.in: Only append to makefiles that are newly created to
5863 avoid multiple multi-do/multi-clean rules.
5864 * configure: Rebuilt.
5866 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
5868 * docs/html/configopts.html, docs/html/documentation.html,
5869 docs/html/explanations.html, docs/html/install.html,
5870 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
5871 invalid XHTML and make page header style consistent.
5873 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
5875 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
5876 * docs/html/faq/index.txt: Regenerate.
5877 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
5879 2003-03-12 Andreas Schwab <schwab@suse.de>
5881 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
5882 glibcpp_toolexeclibdir.
5883 * aclocal.m4, configure: Rebuilt.
5885 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
5887 * docs/html/faq/index.html: Update text about location of headers.
5888 * docs/html/faq/index.txt: Regenerate.
5890 2003-03-11 Carlo Wood <carlo@alinoe.com>
5892 * include/bits/demangle.h: Prepend accessors of
5893 class qualifier with 'get_' in order to fix warnings
5894 when compiling with -Wshadow.
5896 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
5898 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
5900 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
5902 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
5903 report lack of setenv().
5905 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5907 * config/io/basic_file_stdio.cc: include <unistd.h>.
5909 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5910 Nathan Myers <ncm@cantrip.org>
5913 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
5914 seekoff, seekpos): Add a boolean parameter __stdio.
5915 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
5916 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
5917 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
5919 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
5920 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
5921 * include/std/std_fstream.h (sync): Likewise.
5922 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
5923 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
5924 libstdc++/8399 commit involving isatty(0).
5925 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
5926 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
5927 * configure.in: Remove call.
5928 * aclocal.m4: Regenerate.
5929 * config.h.in: Regenerate.
5930 * configure: Regenerate.
5931 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
5933 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5936 * include/bits/fstream.tcc (overflow): don't write EOF to file.
5937 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
5939 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
5942 * include/bits/basic_ios.h (_M_setstate): New.
5943 * include/bits/ostream.tcc (operator<<): Use it.
5944 * include/bits/istream.tcc (operator>>): Use it.
5945 * include/std/std_ostream.h (operator<<): Make friends.
5946 * include/std/std_istream.h (operator>>): Make friends.
5947 * testsuite/27_io/ostream_exception.cc,
5948 testsuite/27_io/istream_exception.cc: New tests.
5950 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
5952 * include/bits/locale_facets.tcc: Fix typo.
5954 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
5956 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
5958 * config/locale/generic/c_locale.cc
5959 (locale::facet::_S_create_c_locale): Throw runtime exception when
5960 unsupported language is specified.
5961 * testsuite/testsuite_hooks.h
5962 (run_test_wrapped_generic_locale_exception_catcher): New function.
5963 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
5964 Suppress runtime exception thrown by generic implementation.
5965 (run_tests_wrapped_env): Likewise.
5966 (run_test_wrapped_generic_locale_exception_catcher): New function.
5967 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
5968 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
5969 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
5970 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
5971 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
5972 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
5973 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
5974 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
5975 * testsuite/22_locale/facet/2.cc: New test wrap.
5976 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
5977 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
5978 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
5979 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
5980 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
5981 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
5982 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
5983 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
5984 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
5985 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
5986 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
5987 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
5988 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
5989 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
5990 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
5991 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
5992 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
5993 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
5994 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
5995 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
5996 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
5997 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
5998 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
5999 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
6000 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
6001 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
6002 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
6003 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
6004 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
6005 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
6006 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
6007 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
6008 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
6009 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
6010 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
6011 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
6012 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
6013 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
6014 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
6015 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
6016 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
6017 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
6018 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
6019 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
6020 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
6021 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
6022 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
6023 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
6024 * testsuite/27_io/ios_members.cc: New test wrap.
6025 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
6027 * testsuite/27_io/streambuf_members.cc: New test wrap.
6028 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
6030 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
6031 Petur Runolfsson <peturr02@ru.is>
6034 * include/bits/streambuf.tcc (__copy_streambufs): Use
6035 sgetn-sputn only when sputn cannot fail, otherwise fall back
6036 to safe snextc-sputc.
6037 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
6039 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6041 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
6042 locale cache for truename and falsename.
6044 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6046 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
6047 _M_word_size initialization.
6049 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6051 * include/bits/fstream.tcc (_M_convert_to_external):
6052 Set __elen to zero if codecvt::out eventually fails.
6054 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6057 * include/bits/fstream.tcc (_M_really_overflow): Check
6058 for _M_convert_to_external possible failures.
6059 * include/std/std_fstream.h (sync): Check _M_really_overflow
6060 return value and return -1 in case of failure.
6061 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
6063 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6066 * include/bits/istream.tcc (operator>>(_CharT*),
6067 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
6068 * testsuite/27_io/stringstream.cc (test02): Add.
6070 * include/bits/istream.tcc (operator>>(_CharT*)):
6071 Assign a char_type to *__s.
6073 2003-03-07 Petur Runolfsson <peturr02@ru.is>
6076 * include/bits/locale_facets.tcc
6077 (collate::do_compare, collate::do_transform):
6078 Handle nul characters in input.
6079 * testsuite/22_locale/collate/compare/char/3.cc: New test.
6080 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
6081 * testsuite/22_locale/collate/transform/char/3.cc: New test.
6082 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
6084 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
6086 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
6088 * testsuite/27_io/ostream_fail.cc: New test.
6090 2003-03-07 Matthias Klose <doko@debian.org>
6092 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
6093 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
6094 * Makefile.in: Regenerate.
6095 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
6097 AM_MAKEFLAGS: Pass gxx_include_dir.
6098 * libsupc++/Makefile.in: Regenerate.
6100 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
6102 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
6103 mask. Test setting small-numbered pword and iword slots. Test
6104 behavior at limit of numeric_limits::max. Check that values are
6105 still good after failures.
6107 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
6109 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
6110 (ios_base::ios_base): Set _M_word, _M_word_size.
6111 (ios_base::~ios_base): Remove redundant test.
6112 * testsuite/27_io/ios_base_storage.cc (test03): New.
6114 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
6116 * src/strstream.cc, include/bits/basic_string.tcc: Remove
6117 incorrect whitespace added in my previous change.
6119 2003-03-05 Carlo Wood <carlo@alinoe.com>
6121 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
6122 _S_initialized() in order to allow debugging libraries to detect
6123 when the std streams are initialized from an overloaded operator
6126 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
6128 * libsupc++/demangle.h: Move to..
6129 * include/bits/demangle.h: ...here.
6130 * src/demangle.cc: Adjust include.
6131 * include/Makefile.am (bits_headers): Add.
6132 * include/Makefile.in: Regenerate.
6134 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
6136 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
6138 * config/linker-map.gnu: Filter typeinfo and vtable info.
6140 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
6142 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
6143 new failure. Throw exception if badbit and exception mask when ix
6144 >= numeric_limits<int>::max().
6146 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
6148 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
6149 min and max have the same type.
6150 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
6152 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
6154 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
6155 * include/Makefile.in: Regenerate.
6157 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
6159 * testsuite/abi_check.cc (report_symbol_info): Add version info.
6161 * config/linker-map.gnu: Hide more stuff.
6162 * include/Makefile.am: Cleanups.
6163 * include/Makefile.in: Regenerate.
6165 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
6167 * config/locale/generic/messages_members.h (messages::messages):
6168 Remove name from unused parameter.
6170 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
6172 * src/Makefile.am (sources): Add demangle.cc.
6175 * src/Makefile.in: Regenerate.
6176 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
6177 * libsupc++/Makefile.in: Regenerate.
6179 * testsuite/testsuite_hooks.h
6180 (__gnu_cxx_test::verify_demangle): New.
6181 * testsuite/testsuite_hooks.cc: Define.
6183 2003-02-27 Carlo Wood <carlo@alinoe.com>
6185 * src/demangle.cc: New.
6186 * libsupc++/demangle.h: New.
6188 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
6189 Carlo Wood <carlo@alinoe.com>
6191 * testsuite/demangle/abi_examples/01.cc: New.
6192 * testsuite/demangle/abi_examples/02.cc: New.
6193 * testsuite/demangle/abi_examples/03.cc: New.
6194 * testsuite/demangle/abi_examples/04.cc: New.
6195 * testsuite/demangle/abi_examples/05.cc: New.
6196 * testsuite/demangle/abi_examples/06.cc: New.
6197 * testsuite/demangle/abi_examples/07.cc: New.
6198 * testsuite/demangle/abi_examples/08.cc: New.
6199 * testsuite/demangle/abi_examples/09.cc: New.
6200 * testsuite/demangle/abi_examples/10.cc: New.
6201 * testsuite/demangle/abi_examples/11.cc: New.
6202 * testsuite/demangle/abi_examples/12.cc: New.
6203 * testsuite/demangle/abi_examples/13.cc: New.
6204 * testsuite/demangle/abi_examples/14.cc: New.
6205 * testsuite/demangle/abi_examples/15.cc: New.
6206 * testsuite/demangle/abi_examples/16.cc: New.
6207 * testsuite/demangle/abi_examples/17.cc: New.
6208 * testsuite/demangle/abi_examples/18.cc: New.
6209 * testsuite/demangle/abi_examples/19.cc: New.
6210 * testsuite/demangle/abi_examples/20.cc: New.
6211 * testsuite/demangle/abi_examples/21.cc: New.
6212 * testsuite/demangle/abi_examples/22.cc: New.
6213 * testsuite/demangle/abi_examples/23.cc: New.
6214 * testsuite/demangle/abi_examples/24.cc: New.
6215 * testsuite/demangle/abi_examples/25.cc: New.
6216 * testsuite/demangle/abi_examples/26.cc: New.
6217 * testsuite/demangle/abi_text/01.cc: New.
6218 * testsuite/demangle/abi_text/02.cc: New.
6219 * testsuite/demangle/abi_text/03.cc: New.
6220 * testsuite/demangle/abi_text/04.cc: New.
6221 * testsuite/demangle/abi_text/05.cc: New.
6222 * testsuite/demangle/abi_text/06.cc: New.
6223 * testsuite/demangle/abi_text/07.cc: New.
6224 * testsuite/demangle/abi_text/08.cc: New.
6225 * testsuite/demangle/abi_text/09.cc: New.
6226 * testsuite/demangle/abi_text/10.cc: New.
6227 * testsuite/demangle/abi_text/11.cc: New.
6228 * testsuite/demangle/abi_text/12.cc: New.
6229 * testsuite/demangle/abi_text/13.cc: New.
6230 * testsuite/demangle/abi_text/14.cc: New.
6231 * testsuite/demangle/regression/3111-1.cc: New.
6232 * testsuite/demangle/regression/3111-2.cc: New.
6233 * testsuite/demangle/regression/7986-01.cc: New.
6234 * testsuite/demangle/regression/7986-02.cc: New.
6235 * testsuite/demangle/regression/7986-03.cc: New.
6236 * testsuite/demangle/regression/7986-04.cc: New.
6237 * testsuite/demangle/regression/7986-05.cc: New.
6238 * testsuite/demangle/regression/7986-06.cc: New.
6239 * testsuite/demangle/regression/7986-07.cc: New.
6240 * testsuite/demangle/regression/7986-08.cc: New.
6241 * testsuite/demangle/regression/7986-09.cc: New.
6242 * testsuite/demangle/regression/7986-10.cc: New.
6243 * testsuite/demangle/regression/7986-11.cc: New.
6244 * testsuite/demangle/regression/7986-12.cc: New.
6245 * testsuite/demangle/regression/7986.cc: New.
6246 * testsuite/demangle/regression/8897.cc: New.
6247 * testsuite/demangle/regression/cw-01.cc: New.
6248 * testsuite/demangle/regression/cw-02.cc: New.
6249 * testsuite/demangle/regression/cw-03.cc: New.
6250 * testsuite/demangle/regression/cw-04.cc: New.
6251 * testsuite/demangle/regression/cw-05.cc: New.
6252 * testsuite/demangle/regression/cw-06.cc: New.
6253 * testsuite/demangle/regression/cw-07.cc: New.
6254 * testsuite/demangle/regression/cw-08.cc: New.
6255 * testsuite/demangle/regression/cw-09.cc: New.
6256 * testsuite/demangle/regression/cw-10.cc: New.
6257 * testsuite/demangle/regression/cw-11.cc: New.
6258 * testsuite/demangle/regression/cw-12.cc: New.
6259 * testsuite/demangle/regression/cw-13.cc: New.
6260 * testsuite/demangle/regression/cw-14.cc: New.
6261 * testsuite/demangle/regression/old.cc: New.
6263 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
6265 * docs/doxygen/Intro.3: Update with new (proper) names.
6266 * docs/doxygen/TODO: Update.
6267 * docs/doxygen/run_doxygen: More comments, fix up man pages.
6268 Fake entries for standard typedefs.
6269 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
6270 * docs/html/documentation.html: Top-level man page is now called
6272 * include/std/std_limits.h: Doxygenate.
6274 2003-02-25 Scott Snyder <snyder@fnal.gov>
6277 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
6278 Correct documentation.
6279 * include/bits/stl_multimap.h (lower_bound, upper_bound,
6280 equal_range): Likewise.
6282 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
6286 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
6287 __bump is true (uflow), always increment the read pointer
6288 (_M_in_cur) before returning successfully.
6289 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
6291 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
6292 Nathan Myers <ncm@cantrip.org>
6294 PR libstdc++/9404, PR libstdc++/9701 (partial)
6295 (aka pptr == epptr implies overflow)
6296 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6297 Consistently, _M_out_end points to the end of the buffer just
6299 (overflow): Tweak to use _M_out_buf_size().
6300 (_M_convert_to_external): The role of the old _M_out_end is
6301 now played by _M_out_lim.
6302 (_M_really_overflow): Likewise.
6303 (seekoff): Likewise.
6304 (setbuf): _M_out_end points to the end of the external buffer.
6305 * include/bits/sstream.tcc (overflow): Rewrote, taking into
6306 account the resolution of DR 169 (TC).
6307 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
6308 (seekpos): Use _M_string.capacity(); tweak.
6309 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
6310 * include/std/std_fstream.h (sync): The role of the old
6311 _M_out_end is now played by _M_out_lim.
6312 (_M_set_indeterminate): Use _M_set_determinate.
6313 (_M_set_determinate): _M_out_end is now _M_out_lim.
6314 (_M_is_indeterminate): Likewise.
6315 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
6316 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
6317 which have the information readily available as _M_string.capacity();
6318 for ate and app modes, pass the string size to _M_really_sync.
6319 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
6320 point to the end of the buffer (i.e., epptr) and to the string end,
6322 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
6323 which points to the right limit of the used put area.
6324 (_M_out_cur_move): The role of the old _M_out_end is now played
6326 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
6327 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
6329 (basic_streambuf()): Initialize _M_out_lim too.
6330 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
6331 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
6332 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
6334 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
6336 * testsuite/27_io/ios_base_storage.cc (main): Call
6339 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
6341 * include/bits/locale_facets.tcc (_M_convert_float): Replace
6342 numpunct facet accesses with data from __locale_cache.
6344 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
6346 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
6347 * docs/html/faq/index.txt: Regenerate.
6349 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
6351 * config/linker-map.gnu: Also export locking symbols needed for the
6352 generic atomicity.h case.
6354 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
6356 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6358 * configure: Rebuilt.
6360 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
6362 * include/bits/sstream.tcc (overflow): According to
6363 27.7.1.3, p5, actual output is performed by sputc(c).
6365 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
6368 * include/bits/stl_alloc.h: Remove all traces of assert().
6370 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
6372 * include/std/std_sstream.h (str()): the size of the
6373 current string may be different from the initial one
6374 whenever _M_out_end > _M_out_beg.
6375 * testsuite/27_io/stringbuf_members.cc (test07): Add.
6377 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
6380 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
6382 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
6384 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
6385 * testsuite/27_io/ios_members.cc (test03): New.
6387 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
6389 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
6390 (basic_ios::_M_cache_facets): Move into above.
6391 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
6393 (basic_ios::imbue): Force locale cache to be built.
6394 (basic_ios::_M_init): Create and initialize locale cache.
6395 * include/bits/ios_base.h (__locale_cache_base): Declare.
6396 (ios_base::_M_locale_cache): New.
6397 (ios_base::_M_cache): Define.
6398 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
6400 (__locale_cache_base,__locale_cache<_CharT>): New classes.
6401 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
6402 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
6403 cache literal string, grouping flag, thousands separator.
6404 (__locale_cache<_CharT>::__locale_cache): New.
6405 (__locale_cache<_CharT>::_M_init): New.
6406 * src/ios.cc: Clear _M_locale_cache in constructor.
6407 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
6410 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6412 * src/locale-inst.cc: Do not include <cassert>.
6413 * src/locale.cc: Likewise.
6415 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6418 * include/std/std_fstream.h: Declare underflow and uflow
6419 specializations, change generic definitions to do nothing.
6420 * src/fstream.cc: Add underflow and uflow specializations.
6422 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6425 * include/bits/fstream.tcc (_M_convert_to_external):
6426 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
6427 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
6429 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
6431 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
6432 * include/bits/basic_ios.tcc: Guard use of extern template.
6433 * include/std/std_iomanip.h: Same.
6434 * include/bits/streambuf.tcc: Same.
6435 * include/bits/stl_alloc.h: Same.
6436 * include/bits/locale_facets.tcc: Same.
6437 * include/bits/ostream.tcc: Same.
6438 * include/bits/istream.tcc: Same.
6439 * include/bits/fstream.tcc: Same.
6440 * include/bits/basic_string.tcc: Same.
6442 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
6444 * include/bits/ostream.tcc (sentry::sentry): Improve
6445 performance-wise the fix for libstdc++/9563.
6447 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
6449 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
6450 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
6451 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
6452 when we don't have static mutex initialization.
6453 (__exchange_and_add): Use _Atomic_add_mutex_once.
6454 * src/misc-inst.cc: Definitions of all the above.
6456 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
6459 * include/bits/ostream.tcc (sentry::sentry): Check
6460 the state of the stream after the preparation.
6461 * testsuite/27_io/ostream_sentry.cc (test02): Add.
6463 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
6465 * include/Makefile.am (stamp-std-precompile): Add rule.
6466 * include/Makefile.in: Regenerated.
6468 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
6469 Benjamin Kosnik <benjamin@redhat.com>
6471 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
6472 Add indexes into this array.
6473 (__num_base::_S_atoms): To _S_atoms_in.
6474 (num_put::_M_insert): Rename to _M_pad.
6475 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
6476 (num_put::_M_widen_int): Rename to _M_group_int.
6477 (num_put::_M_widen_float): Rename to _M_group_float.
6478 * include/bits/locale_facets.tcc (__int_to_char): New inline
6479 function and adapter functions.
6480 (num_put::_M_group_int): Streamline.
6481 (num_put::_M_group_float): Streamline.
6482 (num_put::_M_convert_int): Remove unused parameter names. Choose
6483 large enough buffer for text. Use __int_to_char instead of
6484 __convert_from_v. Formatted text is now at the end of the buffer.
6485 (num_put::_M_convert_float): Preliminary fixups.
6486 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
6487 (__int_to_char<unsigned long long>): Same.
6488 (__int_to_char<char, unsigned long>): New.
6489 (__int_to_char<char, unsigned long long>): New.
6490 (__int_to_char<wchar_t, unsigned long>): New.
6491 (__int_to_char<wchar_t, unsigned long long>): New.
6493 2003-02-11 Scott Snyder <snyder@fnal.gov>
6496 * include/bits/fstream.tcc (seekoff): Avoid operator+
6499 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
6502 * include/ext/stdio_filebuf.h
6503 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
6504 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
6505 Change to take a __size parameter of type size_t, not
6506 of type (template parameter dependent) int_type.
6507 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
6508 size vars to size_t.
6509 * testsuite/ext/stdio_filebuf.cc: Add.
6511 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
6512 Petur Runolfsson <peturr02@ru.is>
6515 * include/bits/streambuf.tcc (__copy_streambufs):
6516 Don't conditionalize the copy to __testput.
6517 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
6519 2002-02-11 DJ Delorie <dj@redhat.com>
6521 * acinclude.m4: Check for native targets that can't link at
6522 this point in the build.
6523 * aclocal.m4: Regenerate.
6524 * configure: Regenerate.
6526 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6528 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
6530 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
6533 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
6535 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
6536 unsigned char platforms.
6538 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
6541 * include/std/std_istream.h
6542 (basic_istream::sentry::operator bool()): Make const.
6543 * include/std/std_ostream.h
6544 (basic_ostream::sentry::operator bool()): Likewise.
6545 * testsuite/27_io/istream_sentry.cc (test03): Add.
6546 * testsuite/27_io/ostream_sentry.cc: Add.
6548 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
6551 Implement resolution of DR 231 (Ready)
6552 * include/bits/locale_facets.h (__num_base::_S_format_float):
6553 Change declaration: return void, remove __prec parameter.
6554 * src/locale.cc (__num_base::_S_format_float): Implement
6555 resolution of DR 231.
6556 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
6557 Tweak uses. Check for negative precision.
6558 * testsuite/22_locale/num_put/put/char/6.cc: Add
6559 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
6561 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
6563 * config/io/basic_file_libio.h: Fixups.
6564 * config/io/c_io_libio.h: Same.
6565 * libio/Makefile.am: Same.
6566 * libio/Makefile.in: Regenerated.
6568 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
6570 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
6571 Explicitly use the "C" locale.
6572 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
6574 2003-02-06 Petur Runolfsson <peturr02@ru.is>
6578 PR libstdc++/9028 (partial)
6584 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
6585 codecvt<wchar_t, char, mbstate_t>::do_length,
6586 codecvt<wchar_t, char, mbstate_t>::do_max_length):
6588 * config/locale/generic/codecvt_members.cc: ...here.
6589 * config/locale/gnu/codecvt_members.cc: ...and here.
6591 * config/locale/generic/codecvt_members.cc,
6592 * config/locale/gnu/codecvt_members.cc
6593 (codecvt<wchar_t, char, mbstate_t>::do_encoding
6594 codecvt<wchar_t, char, mbstate_t>::do_in,
6595 codecvt<wchar_t, char, mbstate_t>::do_length,
6596 codecvt<wchar_t, char, mbstate_t>::do_max_length,
6597 codecvt<wchar_t, char, mbstate_t>::do_out):
6598 New implementation that handles stateless encodings,
6601 * config/locale/generic/codecvt_members.cc,
6602 * config/locale/gnu/codecvt_members.cc,
6603 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
6604 * include/bits/codecvt.h,
6606 (codecvt::length, codecvt::do_length):
6607 Change type of first argument of length and do_length from
6608 'const state_type&' to 'state_type&' according to DR 75.
6610 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
6611 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
6612 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
6613 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
6614 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
6615 Cleanup and check for correct return value from encoding
6617 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
6618 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
6619 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
6620 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
6621 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
6622 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
6623 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
6624 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
6625 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
6626 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
6627 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
6628 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
6629 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
6630 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
6631 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
6632 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
6633 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
6634 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
6635 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
6636 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
6637 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
6638 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
6639 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
6640 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
6641 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
6642 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
6643 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
6644 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
6645 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
6646 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
6647 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
6648 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
6649 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
6650 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
6651 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
6652 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
6653 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
6655 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
6657 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
6658 (money_put::do_put): Same.
6660 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
6662 * include/bits/ios_base.h (ios_base): Document reserved storage.
6664 * include/bits/locale_facets.h: (struct __pad): Comment on
6666 (__verify_grouping): Same.
6667 (__add_grouping): Same.
6668 * include/bits/locale_facets.tcc (__verify_grouping): Move
6669 comments to declaration.
6670 (__add_grouping): Same.
6672 * include/bits/locale_facets.tcc:
6673 (__write<_CharT, _OutIter>): New function.
6674 (__write<_CharT>): New function specialization.
6675 (num_put::_M_insert): Remove explicit loop over iterator. Use
6677 (num_put::_M_widen_float): Remove __basefield.
6678 (num_put::_M_widen_int): Move __basefield to within grouping block.
6680 * include/bits/streambuf_iterator.h: Include <streambuf>.
6681 (ostreambuf_iterator::_M_put): Add.
6683 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
6685 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
6687 2003-02-04 Nathan Myers <ncm@cantrip.org>
6689 * testsuite/25_algorithms/min_max.cc (test02): Add.
6691 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6693 PR libstdc++/9439, PR libstdc++/9425
6694 * config/io/basic_file_stdio.cc
6695 (__basic_file<char>::seekoff, seekpos): Return -1L if
6697 * include/bits/fstream.tcc (basic_filebuf::seekoff):
6698 Check _M_file.seekoff return value; always return
6699 pos_type(off_type(-1)) in case of failure.
6700 (basic_filebuf::pbackfail): Check this->seekoff return
6701 value and return traits_type::eof() in case of failure.
6702 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
6704 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
6706 * include/std/std_ostream.h (ostream::_M_write): Declare.
6707 * ostream.tcc (ostream::_M_write): Define.
6708 (basic_ostream::write): Use it.
6709 (operator<<(basic_ostream, _CharT)): Ditto.
6710 (operator<<(basic_ostream, char)): Ditto.
6711 (operator<<(basic_ostream, _CharT*)): Ditto.
6712 (operator<<(basic_ostream, char*)): Ditto.
6713 (operator<<(basic_ostream, basic_string)): Ditto.
6715 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
6717 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
6719 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
6721 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
6722 add HTML comment about updating links if numbering changes.
6724 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6727 * include/bits/streambuf.tcc (sputbackc): Access
6728 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
6729 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6731 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6734 * include/bits/fstream.tcc (open): If the 'ate' repositioning
6735 operation fails, calls close _and_ returns a null pointer
6736 to indicate failure (27.8.1.3,4).
6737 * testsuite/27_io/filebuf_members.cc (test_06): Add.
6739 2003-02-04 Petur Runolfsson <peturr02@ru.is>
6741 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
6743 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
6745 * docs/html/27_io/howto.html: New section on stdio_filebuf.
6746 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
6747 * docs/html/documentation.html: Regenerate.
6749 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
6751 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
6752 * docs/html/17_intro/porting.html: Regenerate.
6754 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6755 Phil Edwards <pme@gcc.gnu.org>
6757 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
6758 numeric_limits for bits-per-word values.
6759 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
6760 Use __builtin_popcountl instead.
6761 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
6762 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
6763 Use __builtin_ctzl instead.
6764 (_S_bit_count, _S_first_one): Remove.
6765 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
6766 * src/Makefile.am (sources): Remove bitset.cc.
6767 * src/bitset.cc: Delete file.
6768 * src/Makefile.in: Regenerate.
6770 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
6772 PR libstdc++/9527, PR libstdc++/8713
6773 * docs/html/install.html: Mention glibc version requirement.
6774 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
6775 with 3.2.1+ (formatting bugfixes).
6776 * docs/html/faq/index.txt: Regenerate.
6778 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
6781 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
6784 * include/bits/valarray_before.h (__not_equal_to): Use != instead
6787 * testsuite/26_numerics/valarray_operators.cc: New test.
6789 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
6791 * docs/html/faq/index.html: Correct link to libg++ information.
6792 * docs/html/faq/index.txt: Regenerated.
6794 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
6795 Benjamin Kosnik <bkoz@redhat.com>
6797 Const correctness issue:
6798 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
6799 * include/bits/locale_classes.h
6800 (locale::_Impl::_M_facets): Change type to const facet**.
6801 (locale::_Impl::_M_install_facet): Change declaration to
6803 (locale::facet::_M_references): Make mutable.
6804 (locale::facet::_M_add_reference): Declare const.
6805 (locale::facet::_M_remove_reference): Likewise.
6806 * include/bits/locale_facets.tcc
6807 (use_facet(const locale&)): Tweak for const facet** _M_facets.
6808 (has_facet(const locale&)): Likewise.
6810 (locale::facet::_M_add_reference): Adjust definition.
6811 (locale::facet::_M_remove_reference): Likewise.
6813 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
6814 const facet** _M_facets.
6815 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
6816 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
6817 (locale::_Impl::_M_install_facet): Adjust definition to take
6818 const facet* and for const facet** _M_facets.
6819 * testsuite/22_locale/locale/cons/8.cc: Add.
6821 2003-01-29 Mark Mitchell <mark@codesourcery.com>
6823 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
6824 Use __FLT_HAS_INIFINITY__ to initialize.
6825 (numeric_limits<float>::has_quiet_NaN): Likewise.
6826 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
6828 (numeric_limits<double>::has_quiet_NaN): Likewise.
6829 (numeric_limits<long double>::has_infinity): Use
6830 __LDBL_HAS_INIFINITY__ to initialize.
6831 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
6833 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
6836 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
6837 with bases which are very ambiguous.
6839 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
6841 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
6842 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
6843 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
6844 * src/Makefile.in: Regenerate.
6845 * libsupc++/Makefile.in: Regenerate.
6847 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
6849 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
6850 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
6851 version_specific_libs is enabled.
6852 * aclocal.m4, configure: Rebuilt.
6854 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
6856 * include/bits/valarray_meta.h: Remove, split into ...
6857 * include/bits/valarray_before.h: ... this, and ...
6858 * include/bits/valarray_after.h: ... this.
6859 * include/std/std_valarray.h: Adjust.
6860 * include/Makefile.am (bits_headers): Adjust.
6861 * include/Makefile.in: Regenerate.
6863 2003-01-24 Andreas Schwab <schwab@suse.de>
6865 * config/linker-map.gnu: Fix for size_t variance.
6867 2003-01-23 Petur Runolfsson <peturr02@ru.is>
6870 * include/std/std_streambuf.h
6871 (basic_streambuf::basic_streambuf,
6872 basic_streambuf::~basic_streambuf,
6873 basic_streambuf::getloc, basic_streambuf::imbue):
6874 Remove _M_buf_locale_init
6875 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
6876 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6877 * testsuite/27_io/streambuf_members.cc (test08): Add.
6878 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
6880 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
6882 Revert include ordering.
6883 * config/locale/generic/c_locale.h: Add include guards.
6884 * config/locale/gnu/c_locale.h: Same.
6885 * include/bits/locale_classes.h: Remove cctype include.
6886 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
6887 * include/std/std_fstream.h: Remove streambuf include.
6888 * include/std/std_sstream.h: Remove streambuf include.
6890 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
6892 * configure.in (libtool_VERSION): To 6:0:0.
6893 * configure: Regenerated.
6894 * config/linker-map.gnu: Clean.
6896 * src/misc-inst.cc: Remove instantiations.
6898 * include/bits/stl_alloc.h (__malloc_alloc_template):
6900 (__default_alloc_template): To __pool_alloc.
6901 * src/stl-inst.cc: Same.
6902 * include/backward/alloc.h: Update.
6903 * testsuite/ext/allocators.cc: Update.
6905 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
6906 really try to remove these if possible.
6907 * src/locale.cc (std): Same.
6909 * testsuite/abi_check.cc (check_version): Add.
6911 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
6912 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
6913 Mark Mitchell <mark@codesourcery.com>
6916 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
6917 (basic_filebuf::underflow): Declare.
6920 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
6922 * include/bits/locale_facets.h: Move non-facet classes requiring
6924 * include/bits/locale_classes.h: New.
6925 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
6926 * include/bits/Makefile.in: Regenerate.
6928 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
6929 * config/locale/gnu/c_locale.h: ...here.
6930 * config/locale/generic/c_locale.h: Same.
6932 * include/bits/locale_facets.tcc: Move declarations to...
6933 * include/bits/locale_facets.h: ...here.
6934 * include/bits/basic_ios.h: Tweak includes accordingly.
6935 * include/std/std_sstream.h: Add streambuf include.
6936 * include/std/std_fstream.h: Ditto.
6937 * include/std/std_locale.h: Add locale_classes.h include.
6938 * include/std/std_iosfwd.h: Tweak.
6939 * src/concept-inst.cc: Add iterator include.
6941 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
6942 bits as unexported in the future.
6944 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
6946 Reshuffle 22_locale testsuite.
6947 * 22_locale/(codecvt.cc money_get.cc
6948 codecvt_members_char_char.cc money_get_members_char.cc
6949 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
6950 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
6951 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
6952 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
6953 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
6954 money_put_members_char.cc ctor_copy_dtor.cc
6955 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
6956 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
6957 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
6958 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
6959 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
6960 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
6961 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
6962 operators.cc ctype_widen_char.cc static_members.cc
6963 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
6964 global_templates.cc time_get_members_wchar_t.cc, members.cc,
6965 time_put.cc, messages_byname.cc, time_put_members_char.cc,
6966 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
6967 Split up into individual test cases...
6968 * 22_locale/codecvt/1.cc: New.
6969 * 22_locale/codecvt/2.cc: New.
6970 * 22_locale/codecvt/always_noconv/char/1.cc: New.
6971 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
6972 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
6973 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
6974 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
6975 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
6976 * 22_locale/codecvt/encoding/char/1.cc: New.
6977 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
6978 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
6979 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
6980 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
6981 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
6982 * 22_locale/codecvt/in/char/1.cc: New.
6983 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
6984 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
6985 * 22_locale/codecvt/in/wchar_t/1.cc: New.
6986 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
6987 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
6988 * 22_locale/codecvt/length/char/1.cc: New.
6989 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
6990 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
6991 * 22_locale/codecvt/length/wchar_t/1.cc: New.
6992 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
6993 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
6994 * 22_locale/codecvt/max_length/char/1.cc: New.
6995 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
6996 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
6997 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
6998 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
6999 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
7000 * 22_locale/codecvt/out/char/1.cc: New.
7001 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
7002 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
7003 * 22_locale/codecvt/out/wchar_t/1.cc: New.
7004 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
7005 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
7006 * 22_locale/codecvt/unicode/char.cc: New.
7007 * 22_locale/codecvt/unicode/wchar_t.cc: New.
7008 * 22_locale/codecvt/unshift/char/1.cc: New.
7009 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
7010 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
7011 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
7012 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
7013 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
7014 * 22_locale/collate/1.cc: New.
7015 * 22_locale/collate/2.cc: New.
7016 * 22_locale/collate/compare/char/1.cc: New.
7017 * 22_locale/collate/compare/char/2.cc: New.
7018 * 22_locale/collate/compare/char/wrapped_env.cc: New.
7019 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
7020 * 22_locale/collate/compare/wchar_t/1.cc: New.
7021 * 22_locale/collate/compare/wchar_t/2.cc: New.
7022 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
7023 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
7024 * 22_locale/collate/hash/char/1.cc: New.
7025 * 22_locale/collate/hash/char/2.cc: New.
7026 * 22_locale/collate/hash/char/wrapped_env.cc: New.
7027 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
7028 * 22_locale/collate/hash/wchar_t/1.cc: New.
7029 * 22_locale/collate/hash/wchar_t/2.cc: New.
7030 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
7031 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
7032 * 22_locale/collate/transform/char/2.cc: New.
7033 * 22_locale/collate/transform/char/wrapped_env.cc: New.
7034 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
7035 * 22_locale/collate/transform/wchar_t/2.cc: New.
7036 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
7037 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
7038 * 22_locale/collate_byname/1.cc: New.
7039 * 22_locale/ctype/1.cc: New.
7040 * 22_locale/ctype/2.cc: New.
7041 * 22_locale/ctype/cons/char/1.cc: New.
7042 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
7043 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
7044 * 22_locale/ctype/is/char/1.cc: New.
7045 * 22_locale/ctype/is/char/2.cc: New.
7046 * 22_locale/ctype/is/char/3.cc: New.
7047 * 22_locale/ctype/is/char/wrapped_env.cc: New.
7048 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
7049 * 22_locale/ctype/is/wchar_t/1.cc: New.
7050 * 22_locale/ctype/is/wchar_t/2.cc: New.
7051 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
7052 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
7053 * 22_locale/ctype/narrow/char/1.cc: New.
7054 * 22_locale/ctype/narrow/char/2.cc: New.
7055 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
7056 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
7057 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
7058 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
7059 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
7060 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
7061 * 22_locale/ctype/scan/char/1.cc: New.
7062 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
7063 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
7064 * 22_locale/ctype/scan/wchar_t/1.cc: New.
7065 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
7066 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
7067 * 22_locale/ctype/to/char/1.cc: New.
7068 * 22_locale/ctype/to/char/wrapped_env.cc: New.
7069 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
7070 * 22_locale/ctype/to/wchar_t/1.cc: New.
7071 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
7072 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
7073 * 22_locale/ctype/widen/char/1.cc: New.
7074 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
7075 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
7076 * 22_locale/ctype/widen/wchar_t/1.cc: New.
7077 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
7078 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
7079 * 22_locale/facet/1.cc: New.
7080 * 22_locale/facet/2.cc: New.
7081 * 22_locale/global_templates/1.cc: New.
7082 * 22_locale/locale/cons/1.cc: New.
7083 * 22_locale/locale/cons/2.cc: New.
7084 * 22_locale/locale/cons/3.cc: New.
7085 * 22_locale/locale/cons/4.cc: New.
7086 * 22_locale/locale/cons/5.cc: New.
7087 * 22_locale/locale/cons/6.cc: New.
7088 * 22_locale/locale/cons/7.cc: New.
7089 * 22_locale/locale/global_locale_objects/1.cc: New.
7090 * 22_locale/locale/global_locale_objects/2.cc: New.
7091 * 22_locale/locale/global_locale_objects/3.cc: New.
7092 * 22_locale/locale/operations/1.cc: New.
7093 * 22_locale/locale/operations/2.cc: New.
7094 * 22_locale/messages/1.cc: New.
7095 * 22_locale/messages/2.cc: New.
7096 * 22_locale/messages/members/char/1.cc: New.
7097 * 22_locale/messages/members/char/2.cc: New.
7098 * 22_locale/messages/members/char/3.cc: New.
7099 * 22_locale/messages/members/char/wrapped_env.cc: New.
7100 * 22_locale/messages/members/char/wrapped_locale.cc: New.
7101 * 22_locale/messages_byname/1.cc: New.
7102 * 22_locale/money_get/1.cc: New.
7103 * 22_locale/money_get/2.cc: New.
7104 * 22_locale/money_get/get/char/1.cc: New.
7105 * 22_locale/money_get/get/char/2.cc: New.
7106 * 22_locale/money_get/get/char/3.cc: New.
7107 * 22_locale/money_get/get/char/4.cc: New.
7108 * 22_locale/money_get/get/char/5.cc: New.
7109 * 22_locale/money_get/get/char/6.cc: New.
7110 * 22_locale/money_get/get/char/7.cc: New.
7111 * 22_locale/money_get/get/char/8.cc: New.
7112 * 22_locale/money_get/get/char/wrapped_env.cc: New.
7113 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
7114 * 22_locale/money_get/get/wchar_t/1.cc: New.
7115 * 22_locale/money_get/get/wchar_t/2.cc: New.
7116 * 22_locale/money_get/get/wchar_t/3.cc: New.
7117 * 22_locale/money_get/get/wchar_t/4.cc: New.
7118 * 22_locale/money_get/get/wchar_t/5.cc: New.
7119 * 22_locale/money_get/get/wchar_t/6.cc: New.
7120 * 22_locale/money_get/get/wchar_t/7.cc: New.
7121 * 22_locale/money_get/get/wchar_t/8.cc: New.
7122 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
7123 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
7124 * 22_locale/money_put/1.cc: New.
7125 * 22_locale/money_put/2.cc: New.
7126 * 22_locale/money_put/put/char/1.cc: New.
7127 * 22_locale/money_put/put/char/2.cc: New.
7128 * 22_locale/money_put/put/char/3.cc: New.
7129 * 22_locale/money_put/put/char/4.cc: New.
7130 * 22_locale/money_put/put/char/5.cc: New.
7131 * 22_locale/money_put/put/char/6.cc: New.
7132 * 22_locale/money_put/put/char/wrapped_env.cc: New.
7133 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
7134 * 22_locale/money_put/put/wchar_t/1.cc: New.
7135 * 22_locale/money_put/put/wchar_t/2.cc: New.
7136 * 22_locale/money_put/put/wchar_t/3.cc: New.
7137 * 22_locale/money_put/put/wchar_t/4.cc: New.
7138 * 22_locale/money_put/put/wchar_t/5.cc: New.
7139 * 22_locale/money_put/put/wchar_t/6.cc: New.
7140 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
7141 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
7142 * 22_locale/moneypunct/1.cc: New.
7143 * 22_locale/moneypunct/2.cc: New.
7144 * 22_locale/moneypunct/3.cc: New.
7145 * 22_locale/moneypunct/members/char/1.cc: New.
7146 * 22_locale/moneypunct/members/char/2.cc: New.
7147 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
7148 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
7149 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
7150 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
7151 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
7152 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
7153 * 22_locale/moneypunct_byname/1.cc: New.
7154 * 22_locale/num_get/1.cc: New.
7155 * 22_locale/num_get/2.cc: New.
7156 * 22_locale/num_get/get/char/1.cc: New.
7157 * 22_locale/num_get/get/char/2.cc: New.
7158 * 22_locale/num_get/get/char/3.cc: New.
7159 * 22_locale/num_get/get/char/4.cc: New.
7160 * 22_locale/num_get/get/char/5.cc: New.
7161 * 22_locale/num_get/get/char/6.cc: New.
7162 * 22_locale/num_get/get/char/wrapped_env.cc: New.
7163 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
7164 * 22_locale/num_get/get/wchar_t/1.cc: New.
7165 * 22_locale/num_get/get/wchar_t/2.cc: New.
7166 * 22_locale/num_get/get/wchar_t/3.cc: New.
7167 * 22_locale/num_get/get/wchar_t/4.cc: New.
7168 * 22_locale/num_get/get/wchar_t/5.cc: New.
7169 * 22_locale/num_get/get/wchar_t/6.cc: New.
7170 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
7171 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
7172 * 22_locale/num_put/1.cc: New.
7173 * 22_locale/num_put/2.cc: New.
7174 * 22_locale/num_put/put/char/1.cc: New.
7175 * 22_locale/num_put/put/char/2.cc: New.
7176 * 22_locale/num_put/put/char/3.cc: New.
7177 * 22_locale/num_put/put/char/4.cc: New.
7178 * 22_locale/num_put/put/char/5.cc: New.
7179 * 22_locale/num_put/put/char/wrapped_env.cc: New.
7180 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
7181 * 22_locale/num_put/put/wchar_t/1.cc: New.
7182 * 22_locale/num_put/put/wchar_t/2.cc: New.
7183 * 22_locale/num_put/put/wchar_t/3.cc: New.
7184 * 22_locale/num_put/put/wchar_t/4.cc: New.
7185 * 22_locale/num_put/put/wchar_t/5.cc: New.
7186 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
7187 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
7188 * 22_locale/numpunct/1.cc: New.
7189 * 22_locale/numpunct/2.cc: New.
7190 * 22_locale/numpunct/members/char/1.cc: New.
7191 * 22_locale/numpunct/members/char/2.cc: New.
7192 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
7193 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
7194 * 22_locale/numpunct/members/wchar_t/1.cc: New.
7195 * 22_locale/numpunct/members/wchar_t/2.cc: New.
7196 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
7197 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
7198 * 22_locale/numpunct_byname/1.cc: New.
7199 * 22_locale/numpunct_byname/2.cc: New.
7200 * 22_locale/time_get/1.cc: New.
7201 * 22_locale/time_get/2.cc: New.
7202 * 22_locale/time_get/date_order/char/1.cc: New.
7203 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
7204 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
7205 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
7206 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
7207 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
7208 * 22_locale/time_get/get_date/char/1.cc: New.
7209 * 22_locale/time_get/get_date/char/2.cc: New.
7210 * 22_locale/time_get/get_date/char/3.cc: New.
7211 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
7212 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
7213 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
7214 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
7215 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
7216 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
7217 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
7218 * 22_locale/time_get/get_monthname/char/1.cc: New.
7219 * 22_locale/time_get/get_monthname/char/2.cc: New.
7220 * 22_locale/time_get/get_monthname/char/3.cc: New.
7221 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
7222 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
7223 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
7224 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
7225 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
7226 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
7227 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
7228 * 22_locale/time_get/get_time/char/1.cc: New.
7229 * 22_locale/time_get/get_time/char/2.cc: New.
7230 * 22_locale/time_get/get_time/char/3.cc: New.
7231 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
7232 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
7233 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
7234 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
7235 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
7236 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
7237 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
7238 * 22_locale/time_get/get_weekday/char/1.cc: New.
7239 * 22_locale/time_get/get_weekday/char/2.cc: New.
7240 * 22_locale/time_get/get_weekday/char/3.cc: New.
7241 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
7242 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
7243 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
7244 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
7245 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
7246 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
7247 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
7248 * 22_locale/time_get/get_year/char/1.cc: New.
7249 * 22_locale/time_get/get_year/char/3.cc: New.
7250 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
7251 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
7252 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
7253 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
7254 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
7255 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
7256 * 22_locale/time_put/1.cc: New.
7257 * 22_locale/time_put/2.cc: New.
7258 * 22_locale/time_put/put/char/1.cc: New.
7259 * 22_locale/time_put/put/char/10.cc: New.
7260 * 22_locale/time_put/put/char/2.cc: New.
7261 * 22_locale/time_put/put/char/3.cc: New.
7262 * 22_locale/time_put/put/char/4.cc: New.
7263 * 22_locale/time_put/put/char/5.cc: New.
7264 * 22_locale/time_put/put/char/6.cc: New.
7265 * 22_locale/time_put/put/char/7.cc: New.
7266 * 22_locale/time_put/put/char/8.cc: New.
7267 * 22_locale/time_put/put/char/9.cc: New.
7268 * 22_locale/time_put/put/char/wrapped_env.cc: New.
7269 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
7270 * 22_locale/time_put/put/wchar_t/1.cc: New.
7271 * 22_locale/time_put/put/wchar_t/10.cc: New.
7272 * 22_locale/time_put/put/wchar_t/2.cc: New.
7273 * 22_locale/time_put/put/wchar_t/3.cc: New.
7274 * 22_locale/time_put/put/wchar_t/4.cc: New.
7275 * 22_locale/time_put/put/wchar_t/5.cc: New.
7276 * 22_locale/time_put/put/wchar_t/6.cc: New.
7277 * 22_locale/time_put/put/wchar_t/7.cc: New.
7278 * 22_locale/time_put/put/wchar_t/8.cc: New.
7279 * 22_locale/time_put/put/wchar_t/9.cc: New.
7280 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
7281 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
7283 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
7285 * config/locale/generic/messages_members.h
7286 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
7287 unqualified members of base clasess.
7289 2003-01-16 Mark Mitchell <mark@codesourcery.com>
7290 Jeffrey Oldham <oldham@codesourcery.com>
7292 * config/locale/gnu/messages_members.h: Use this-> to refer to
7293 unqualified members of base clasess.
7294 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
7295 * include/bits/codecvt.h: Likewise.
7296 * include/bits/deque.tcc: Likewise.
7297 * include/bits/fstream.tcc: Likewise.
7298 * include/bits/istream.tcc: Likewise.
7299 * include/bits/list.tcc: Likewise.
7300 * include/bits/locale_facets.h: Likewise.
7301 * include/bits/ostream.tcc: Likewise.
7302 * include/bits/sstream.tcc: Likewise.
7303 * include/bits/stl_bvector.h: Likewise.
7304 * include/bits/stl_deque.h: Likewise.
7305 * include/bits/stl_list.h: Likewise.
7306 * include/bits/stl_tree.h: Likewise.
7307 * include/bits/stl_vector.h: Likewise.
7308 * include/bits/vector.tcc: Likewise.
7309 * include/ext/ropeimpl.h: Likewise.
7310 * include/ext/stdio_filebuf.h: Likewise.
7311 * include/ext/stl_rope.h: Likewise.
7312 * include/std/std_fstream.h: Likewise.
7313 * include/std/std_sstream.h: Likewise.
7315 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
7317 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
7319 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
7321 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
7322 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
7323 * aclocal.m4: Regenerate.
7324 * configure: Regenerate.
7325 * testsuite/Makefile.am (all-local): Add conditional rule to
7326 generate testsuite_wchar_t.
7327 * testsuite/Makefile.in: Regenerate.
7328 * testsuite/lib/libstdc++-v3-dg.exp
7329 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
7330 testsuite_wchar_t is not present in the build directory.
7331 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
7332 Remove setulimit bits.
7333 * testsuite/26_numerics/complex_value.cc: Set to noopts.
7334 * testsuite/Makefile.am (CLEANFILES): Add.
7335 * testsuite/Makefile.in: Regenerate.
7337 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7339 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
7342 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
7344 Further conform g++'s __vmi_class_type_info to the C++ ABI
7346 * libsupc++/cxxabi.h
7347 (__vmi_class_type_info::__flags_masks): Remove enumerations not
7348 required by the specification.
7350 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
7352 Renames, namespaces for testsuite utilities.
7353 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
7354 (gnu_allocator_tracker): Rename to allocation_tracker.
7355 (gnu_new_allocator): Rename to tracker_alloc.
7356 (__set_testsuite_memlimit): Rename to set_memory_limits.
7357 (gnu_assignment_operator): Rename to assignment_operator.
7358 (gnu_destructor): Rename to destructor.
7359 (gnu_copy_tracker): Rename to copy_tracker.
7360 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
7361 (run_tests_wrapped_locale): New.
7362 (run_tests_wrapped_env): New.
7363 * testsuite/testsuite_hooks.cc: Same.
7364 (class locale_data): Add.
7365 (class enviornment_variable): Add.
7366 (class not_found): Add.
7367 * testsuite/testsuite_allocator.h: Same.
7368 * testsuite/testsuite_allocator.cc: Same.
7369 * testsuite/23_containers/deque_ctor.cc
7370 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
7372 Change gnu_new_allocator to tracker_alloc.
7373 Change gnu_counting_struct to counter.
7374 Change gnu_copy_tracker to copy_tracker.
7375 Change gnu_copy_constructor to copy_constructor.
7376 Change gnu_assignment_operator to assignment_operator.
7378 * testsuite/23_containers/vector_capacity.cc: Same.
7379 * testsuite/23_containers/vector_ctor.cc (test01): Same.
7380 * testsuite/23_containers/list_modifiers.cc: Change
7381 gnu_copy_tracker to copy_tracker.
7382 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
7383 __set_testsuite_memlimit to set_memory_limits.
7384 * testsuite/21_strings/insert.cc (main): Same.
7385 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
7386 * testsuite/27_io/stringstream.cc: Same.
7387 * testsuite/27_io/stringbuf.cc: Same.
7388 * testsuite/27_io/streambuf.cc: Same.
7389 * testsuite/27_io/ostream.cc: Same.
7390 * testsuite/27_io/istream.cc: Same.
7391 * testsuite/27_io/fstream.cc: Same.
7392 * testsuite/lib/libstdc++-v3-dg.exp
7393 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
7394 three levels deeper in glob patterns.
7396 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
7398 * docs/doxygen/tables.html: Finished now.
7399 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
7400 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
7403 * include/bits/deque.tcc, include/bits/stl_alloc.h,
7404 include/bits/stl_deque.h, include/bits/stl_list.h,
7405 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
7408 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
7410 * configure.in: Revert.
7411 * configure: Regenerate.
7413 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
7415 * include/Makefile.am (install-data-local): Prepend
7416 $(DESTDIR) to destination paths in all (un)installation
7417 commands. Use ${c_base_builddir} and ${std_builddir}
7418 as destination subdirectories to achieve consistency with
7419 preceding mkinstalldirs commands. No effect because both
7420 variables contain "." only.
7421 * include/Makefile.in: Regenerate.
7423 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
7425 * include/Makefile.am (stamp-*): Add checks for existing stamps.
7426 * include/Makefile.in: Regenerate.
7428 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
7429 * aclocal.m4: Regenerate.
7431 * configure.in: Don't add new multi-do rules every time the
7432 directory is reconfigured.
7433 * configure: Regenerate.
7435 2003-01-08 Brad Spencer <spencer@infointeractive.com>
7436 Nathan Myers <ncm@cantrip.org>
7438 * src/Makefile.am (stamp-debug): Clean.
7439 * src/Makefile.in: Regenerate.
7441 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
7444 * Makefile.am (distclean-multi): Fix.
7445 * Makefile.in: Regenerate.
7447 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
7449 * include/bits/locale_facets.h (messages): Move ctor, dtor
7451 (__timepunct): Same.
7452 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
7453 definitions. Conditionalize for GNU systems.
7454 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
7456 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
7457 definitions. Conditionalize for GNU systems.
7458 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
7460 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
7461 * src/locale.cc: Define.
7462 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
7464 * config/locale/gnu/time_members.h: Use it.
7465 * config/locale/gnu/messages_members.h: Use it.
7466 * config/linker-map.gnu: Add locale::facets details.
7467 * include/Makefile.am (target_headers_extra): Add time_members.h.
7468 * include/Makefile.in: Regenerate.
7469 * acinclude.m4: Export CTIME_H.
7470 * aclocal.m4: Regenerate.
7471 * configure: Regnerate.
7473 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
7476 (codecvt<char, char, mbstate_t>::do_in, do_out):
7477 Tweak parameters to avoid unused parameter warnings.
7479 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
7482 * include/bits/locale_facets.cc (num_put::_M_convert_float):
7483 Limit __prec to digits10 + 2, not digits10 + 1, taking into
7484 account the possibility of %{g,G} conversion specifiers
7485 inside _S_format_float.
7486 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
7488 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7490 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
7491 libstdc++-v3-list-sourcefiles): Additionally handle files one
7492 level deeper in glob patterns.
7494 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
7495 * testsuite/27_io/istream_extractor_arith/01.cc,
7496 testsuite/27_io/istream_extractor_arith/02.cc,
7497 testsuite/27_io/istream_extractor_arith/03.cc,
7498 testsuite/27_io/istream_extractor_arith/06.cc,
7499 testsuite/27_io/istream_extractor_arith/07.cc,
7500 testsuite/27_io/istream_extractor_arith/08.cc,
7501 testsuite/27_io/istream_extractor_arith/09.cc,
7502 testsuite/27_io/istream_extractor_arith/10.cc,
7503 testsuite/27_io/istream_extractor_arith/11.cc,
7504 testsuite/27_io/istream_extractor_arith/12.cc,
7505 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
7506 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
7509 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
7513 (codecvt<char, char, mbstate_t>::do_in, do_out):
7514 Implement the resolution of DR19 (TC).
7515 * testsuite/22_locale/codecvt_members_char_char.cc
7518 2003-01-02 Jason Merrill <jason@redhat.com>
7520 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
7521 *__mem is also an output.
7522 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.