1 2003-11-18 Jonathan Wakely <redi@gcc.gnu.org>
3 * docs/html/configopts.html, docs/html/debug.html,
4 docs/html/documentation.html, docs/html/explanations.html,
5 docs/html/install.html, docs/html/17_intro/contribute.html,
6 docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
7 docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
8 docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
9 docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
10 docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
11 docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
12 docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
13 docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
14 docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
16 2003-11-18 Paolo Carlini <pcarlini@suse.de>
19 * include/bits/fstream.tcc (imbue): For encodings != -1 it's
20 always ok to imbue a new locale, provided seekoff(0, cur, ...)
21 doesn't fail, of course.
22 (underflow): In order for the above to work, deal gracefully
23 with _M_codecvt->in returning codecvt_base::error while
24 (__ilen = __iend - this->eback()) > 0: it just means __ilen
25 correctly converted internal characters before an error.
26 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
28 2003-11-17 Paolo Carlini <pcarlini@suse.de>
30 * include/bits/locale_facets.tcc: Fix typo in comment.
32 2003-11-17 Paolo Carlini <pcarlini@suse.de>
34 * testsuite/22_locale/num_put/put/char/8.cc: New test,
35 summarizing the discussion ensuing libstdc++/12988.
36 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
38 2003-11-15 Paolo Carlini <pcarlini@suse.de>
40 * include/std/std_fstream.h: Tweak a comment.
42 2003-11-15 Roger Sayle <roger@eyesopen.com>
44 * include/c_std/std_cmath.h: Don't import C99's float transcendentals
45 into the __gnu_cxx::__c99_binding namespace.
46 (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
47 ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
48 GCC's math builtins, i.e. __builtin_foo.
49 * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
50 ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
51 ldexpf, ldexpl, modff, modfl): Provide stub implementations.
53 2003-11-14 Paolo Carlini <pcarlini@suse.de>
55 * testsuite/22_locale/locale/cons/12352.cc: Use
56 __gnu_test::try_named_locale.
58 2003-11-14 Paolo Carlini <pcarlini@suse.de>
60 * docs/html/ext/howto.html: Add entries for DR 63, 75
61 and 305; tweak entries for DR 60 and 328.
63 2003-11-13 Douglas Gregor <gregod@cs.rpi.edu>
65 * docs/html/debug.html: Users are allowed to specialize in
66 namespace __gnu_debug, unlike in the Apple version of the debug
67 mode. Clear up a confusing double-negative. Note that
68 std::basic_string does provide extra debugging capabilities, but
70 * include/bits/basic_string.tcc: Make sure there's never an
71 ambiguity when calling __is_null_pointer.
72 * include/debug/deque: (deque::erase) Properly handle invalidation
73 when erasing at the end of the deque.
74 * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
75 (vector::clear): Set the guaranteed capacity to 0.
76 * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
77 iterator invalidation when erasing at the end of the deque.
79 2003-11-13 Paolo Carlini <pcarlini@suse.de>
80 Petur Runolfsson <peturr02@ru.is>
83 * include/bits/fstream.tcc (imbue): Don't touch the stored
85 * include/std/std_streambuf.h (imbue): According to the
86 standard, base class version does nothing.
87 (pubimbue): Store the locale.
88 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
89 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
90 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
91 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
92 * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
93 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
94 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
95 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
97 2003-11-13 Petur Runolfsson <peturr02@ru.is>
100 * include/bits/ostream.tcc
101 (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
102 basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
103 basic_ostream::operator<<(ios_base& (*)(ios_base&))):
104 Implement the resolution of DR 60 (TC): These are not formatted
105 output functions so don't construct sentry objects and don't
107 (basic_ostream::put, basic_ostream::write): Implement the
108 resolution of DR 63 (TC) by catching exceptions and setting
110 (basic_ostream::flush): Implement the resolution of DR 60 (TC):
111 This is not an unformatted output function so don't construct
113 * testsuite/testsuite_io.h (sync_streambuf): Define.
114 * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
115 * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
116 * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
117 * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
119 2003-11-13 Paolo Carlini <pcarlini@suse.de>
121 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
122 Fix, closely following the testcase included in the PR.
123 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
124 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
125 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
127 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
129 * docs/html/17_intro/configury.html: XHTML tweak.
131 2003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
133 * docs/html/debug_mode.html: XHTML fixes.
135 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
137 * docs/html/debug_mode.html: Update.
138 * docs/html/17_intro/TODO: Update.
140 2003-11-12 Benjamin Kosnik <bkoz@redhat.com>
142 * include/bits/c++config: Move using directive...
143 * include/debug/formatter.h: ...here.
145 2003-11-12 Carlo Wood <carlo@alinoe.com>
149 (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
150 (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
151 (session<Allocator>::next_peek() const): Added.
152 (decode_non_negative_decimal_integer(string_type&)):
153 Renamed from decode_decimal_integer(string_type&).
154 (session<Allocator>::decode_nested_name):
155 Decode <template_param> as well.
156 (session<Allocator>::add_substitution):
157 Handle <template-param> for <nested-name>'s.
158 (enum xary_nt): Added.
159 (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
160 (symbol_name_table_c): Updated for `entry_st::type' and additional
161 operators (unary `operator+' and `sizeof(type)').
162 (offset_table_c): Updated for new operators (causing a new hash map).
163 (decode_operator_name): Match the updated hash map.
164 (session<Allocator>::decode_expression):
165 Support for `sizeof ([typename] type)' (st),
166 dependent names (sr) and casting operator (cv). Handle
167 `entry_st::type'. Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
168 and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
169 (session<Allocator>::decode_type_with_postfix):
170 Support `extern "C"' function types (FY).
171 * testsuite/demangle/regression/cw-16.cc: Added tests for the
173 * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
176 2003-11-11 Paolo Carlini <pcarlini@suse.de>
179 * include/bits/fstream.tcc (setbuf): Don't do anything
180 after open(), in particular don't discard data.
181 (_M_allocate_internal_buffer): Tweak to not allocate memory
182 in case the buffer is provided by the user via setbuf.
183 * include/ext/stdio_filebuf.h: Tweak comment.
184 * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
185 * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
186 * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
187 setbuf does nothing after open().
188 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
190 2003-11-11 Doug Gregor <gregod@cs.rpi.edu>
192 * docs/html/debug.html: Document libstdc++ debug mode.
193 * docs/html/debug_mode.html: Document libstdc++ debug mode design.
194 * docs/html/test.html: Document how to test under debug mode.
195 * docs/html/17_intro/howto.html: Document debug-mode macros.
196 * include/Makefile.am: Install debug-mode headers.
197 * src/Makefile.am: Include debug.cc.
198 * include/bits/basic_string.tcc:
199 (basic_string::_S_construct): Fix NULL pointer check.
200 (__is_null_pointer): New.
201 Add precondition annotations.
202 * include/bits/stream_iterator.h (istream_iterator,
203 ostream_iterator): Added precondition annotations.
204 * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
205 * include/bits/stl_queue.h (queue, priority_queue): Ditto.
206 * include/bits/stl_stack.h (stack): Ditto.
207 * include/bits/basic_string.h (basic_string): Ditto.
208 * include/bits/basic_string.tcc (basic_string): Ditto.
209 * include/std/std_memory.h (auto_ptr): Ditto.
210 * include/std/std_valarray.h (valarray): Ditto.
211 * include/bits/stl_algo.h: Added algorithm precondition
213 * include/bits/stl_algobase.h: Added algorithm precondition
215 * include/bits/stl_numeric.h: Ditto.
216 * include/ext/algorithm: Added algorithm precondition
218 (__is_heap): Moved away from here.
219 * include/bits/stl_heap.h: Added algorithm precondition
221 (__is_heap): Moved to the top of this file.
222 (__is_heap): Added iterator range overloads.
223 * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
224 with changes in std_memory.h.
225 * testsuite/23_containers/list/operators/4.cc: Don't verify
226 performance guarantees when in debug mode.
227 * testsuite/23_containers/bitset/invalidation/1.cc: New.
228 * testsuite/23_containers/deque/invalidation/1.cc: New.
229 * testsuite/23_containers/deque/invalidation/2.cc: New.
230 * testsuite/23_containers/deque/invalidation/3.cc: New.
231 * testsuite/23_containers/deque/invalidation/4.cc: New.
232 * testsuite/23_containers/list/invalidation/1.cc: New.
233 * testsuite/23_containers/list/invalidation/2.cc: New.
234 * testsuite/23_containers/list/invalidation/3.cc: New.
235 * testsuite/23_containers/list/invalidation/4.cc: New.
236 * testsuite/23_containers/map/invalidation/1.cc: New.
237 * testsuite/23_containers/map/invalidation/2.cc: New.
238 * testsuite/23_containers/multimap/invalidation/1.cc: New.
239 * testsuite/23_containers/multimap/invalidation/2.cc: New.
240 * testsuite/23_containers/multiset/invalidation/1.cc: New.
241 * testsuite/23_containers/multiset/invalidation/2.cc: New.
242 * testsuite/23_containers/set/invalidation/1.cc: New.
243 * testsuite/23_containers/set/invalidation/2.cc: New.
244 * testsuite/23_containers/vector/invalidation/1.cc: New.
245 * testsuite/23_containers/vector/invalidation/2.cc: New.
246 * testsuite/23_containers/vector/invalidation/3.cc: New.
247 * testsuite/23_containers/vector/invalidation/4.cc: New.
248 * testsuite/25_algorithms/heap.cc: Don't verify
249 performance guarantees when in debug mode.
250 * include/debug/bitset: New.
251 * include/debug/debug.h: New.
252 * include/debug/deque: New.
253 * include/debug/formatter.h: New.
254 * include/debug/hash_map: New.
255 * include/debug/hash_map.h: New.
256 * include/debug/hash_multimap.h: New.
257 * include/debug/hash_set: New.
258 * include/debug/hash_set.h: New.
259 * include/debug/hash_multiset.h: New.
260 * include/debug/list: New.
261 * include/debug/map: New.
262 * include/debug/map.h: New.
263 * include/debug/multimap.h: New.
264 * include/debug/multiset.h: New.
265 * include/debug/safe_base.h: New.
266 * include/debug/safe_iterator.h: New.
267 * include/debug/safe_iterator.tcc: New.
268 * include/debug/safe_sequence.h: New.
269 * include/debug/set: New.
270 * include/debug/set.h: New.
271 * include/debug/string: New.
272 * include/debug/vector: New.
274 * config/linker-map.gnu: Add debug mode symbols.
276 2003-11-11 Benjamin Kosnik <bkoz@redhat.com>
278 * src/string-inst.cc: Tweak namespaces.
279 * src/misc-inst.cc: Same.
280 * docs/html/debug.html: Edits.
281 * config/link-map.gnu: Remove cruft.
283 * include/bits/c++config: Add in namespace associations.
284 * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
286 * include/bits/deque.tcc: Same.
287 * include/bits/list.tcc: Same.
288 * include/bits/stl_bvector.h: Same.
289 * include/bits/stl_deque.h: Same.
290 * include/bits/stl_list.h: Same.
291 * include/bits/stl_map.h: Same.
292 * include/bits/stl_multimap.h: Same.
293 * include/bits/stl_multiset.h: Same.
294 * include/bits/stl_set.h: Same.
295 * include/bits/stl_vector.h: Same.
296 * include/bits/vector.tcc: Same.
298 * include/std/std_algorithm.h: Remove markup comments.
299 * include/std/std_functional.h: Same.
300 * include/std/std_iterator.h: Same.
301 * include/std/std_numeric.h: Same.
302 * include/std/std_utility.h: Same.
303 * include/bits/stl_queue.h: Formatting tweaks.
304 * include/bits/stl_stack.h: Same.
305 * include/std/std_deque.h: Include debugging version in debug mode.
306 * include/std/std_list.h: Same.
307 * include/std/std_map.h: Same.
308 * include/std/std_set.h: Same.
309 * include/std/std_vector.h: Same.
310 * include/std/std_queue.h: Use deque, vector.
311 * include/std/std_stack.h: Same.
313 2003-11-09 Paolo Carlini <pcarlini@suse.de>
315 * include/bits/locale_facets.tcc (_M_insert_int,
316 _M_insert_float): Move a couple of vars inside an if block.
318 2003-11-09 Paolo Carlini <pcarlini@suse.de>
321 * include/bits/locale_facets.tcc
322 (money_put::do_put(..., long double)): Fix conversion
323 specification as per DR 328 [WP].
324 * testsuite/22_locale/money_put/put/char/12971.cc: Add.
325 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
326 * docs/html/ext/howto.html: Add entry for DR 328.
328 2003-11-08 Paolo Carlini <pcarlini@suse.de>
331 * include/bits/list.tcc (merge): Implement resolution of
333 * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
336 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
339 2003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
341 * libsupc++/vec.cc: Conform to C++STYLE.
343 2003-11-07 Carlo Wood <carlo@alinoe.com>
346 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
347 (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
348 K, V, r and A qualifiers before processing them as a group.
349 * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
350 * testsuite/demangle/regression/cw-16.cc: New.
352 2003-11-07 Robert Millan <robertmh@gnu.org>
354 * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
355 * crossconfig.m4: Likewise.
356 * configure: Regenerate.
358 2003-11-07 Carlo Wood <carlo@alinoe.com>
360 * include/bits/demangle.h
361 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
362 string_type&, bool member_function_pointer_qualifiers):
363 Always separate the '[' of an array type with a space from
364 what is left of it, except when that is the closing bracket
365 of another array dimension.
367 2003-11-07 Carlo Wood <carlo@alinoe.com>
369 * include/bits/demangle.h
370 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
371 string_type&, bool) const): Made const.
372 (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
373 (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
374 std::ostream& operator<<(std::ostream&, qualifier const&),
375 std::ostream& operator<<(std::ostream&, qualifier_list const&),
376 qualifier_list<Allocator>::decode_qualifiers(string_type&,
377 string_type&, bool) const,
378 session<Allocator>::decode_type_with_postfix(string_type&,
379 string_type&, qualifier_list<Allocator>*))
380 Added and/or changed debug-only hooks and code.
382 2003-11-04 Jeffrey D. Oldham <oldham@codesourcery.com>
384 * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
385 immediately return. This reflects a C++ ABI change 2003 Nov 03.
386 (__cxa_vec_delete3): Likewise.
388 2003-11-03 Petur Runolfsson <peturr02@ru.is>
391 * include/bits/fstream.tcc: Delete _M_last_overflowed.
392 (basic_filebuf::basic_filebuf): Initialize _M_state_last.
393 (basic_filebuf::open, basic_filebuf::close): Assign
394 _M_state_beg to _M_state_cur and _M_state_last.
395 (basic_filebuf::close): Call _M_terminate_output to handle
396 unshift and flushing.
397 (basic_filebuf::underflow): Assign _M_state_last, throw
398 exception instead of calling abort when codecvt::max_length()
400 (basic_filebuf::seekoff): Use _M_state_last when calling
401 codecvt::length(), pass correct state to _M_seek.
402 (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
403 (basic_filebuf::_M_seek): Add __state_type parameter,
404 set _M_state_cur correctly, store the resulting state in
405 the return value and use _M_terminate_output to handle
406 flushing and unshift.
407 (basic_filebuf::_M_terminate_output): Flush contents of
408 output buffer, if any, then call codecvt::unshift as
409 needed and output the result.
410 (basic_filebuf::sync): Move here, don't modify _M_writing
413 * include/std/std_fstream.h
414 (basic_filebuf::_M_state_last): Declare it.
415 (basic_filebuf::_M_last_overflowed): Delete.
416 (basic_filebuf::_M_seek): Add __state_type parameter.
417 (basic_filebuf::sync): Declare only.
418 (basic_filebuf::_M_output_unshift): Delete.
419 (basic_filebuf::_M_terminate_output): Declare it.
421 * testsuite/testsuite_character.h:
422 Define character class and state class plus char_traits and
423 codecvt specializations for same for testing support for
426 * testsuite/27_io/basic_filebuf/close/12790-1.cc,
427 * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
428 * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
429 * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
430 * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
431 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
432 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
433 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
434 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
435 * testsuite/27_io/basic_filebuf/open/12790-1.cc,
436 * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
437 * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
438 * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
439 * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
440 * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
441 * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
442 * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
443 * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
444 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
445 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
446 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
447 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
448 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
449 * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
450 * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
451 * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
452 * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
453 * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
454 * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
455 * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
456 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
457 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
458 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
459 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
460 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
461 * testsuite/27_io/basic_filebuf/sync/char/1.cc,
462 * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
465 * testsuite/27_io/basic_filebuf/3.cc,
466 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
467 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
468 * testsuite/27_io/basic_fstream/3.cc,
469 * testsuite/27_io/basic_ifstream/3.cc,
470 * testsuite/27_io/basic_ofstream/3.cc:
471 Use streamoff as off_type and fpos<state_type> as pos_type.
473 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
474 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
475 Check that sync does *not* set _M_writing to false.
477 2003-11-03 Anthony Green <green@redhat.com>
479 * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
482 2003-11-03 Benjamin Kosnik <bkoz@redhat.com>
484 * include/bits/locale_facets.h (time_get::_M_extract_name): Add
486 * include/bits/locale_facets.tcc: Same, use it to allow
489 * include/bits/fstream.tcc: Spacing tweak.
490 * include/bits/istream.tcc: Same.
491 * include/bits/ostream.tcc: Same.
493 2003-10-30 Paolo Carlini <pcarlini@suse.de>
495 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
496 __mod is only assigned, never used its value, remove it.
498 2003-10-29 Paolo Carlini <pcarlini@suse.de>
500 * include/bits/locale_facets.tcc (time_get::do_get_year):
501 Absolutely avoid dereferencing end iterators.
502 (time_put::put): Minor clean up.
504 * include/bits/locale_facets.tcc: Cosmetic reformattings.
506 2003-10-29 Paolo Carlini <pcarlini@suse.de>
508 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
509 Revert the last commit, is not correct, sorry.
511 2003-10-29 Paolo Carlini <pcarlini@suse.de>
513 * config/locale/generic/c_locale.cc: Add back <cmath> and
516 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
519 2003-10-29 Paolo Carlini <pcarlini@suse.de>
521 * include/bits/locale_facets.tcc (time_put::put): Absolutely
522 avoid dereferencing end iterators; clean up.
524 * include/bits/locale_facets.tcc (num_get::_M_extract_float,
525 num_get::_M_extract_int): Minor tweak.
527 2003-10-29 Paolo Carlini <pcarlini@suse.de>
529 * include/bits/locale_facets.tcc: Remove some unnecessary
531 * config/locale/generic/c_locale.cc: Include <cerrno> here.
532 * config/locale/gnu/c_locale.cc: Likewise.
534 2003-10-28 Paolo Carlini <pcarlini@suse.de>
536 * include/bits/locale_facets.tcc
537 (money_get<>::do_get(..., string_type&)): Absolutely avoid
538 dereferencing end iterators; general clean up.
540 2003-10-28 Paolo Carlini <pcarlini@suse.de>
542 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
543 Absolutely avoid dereferencing end iterators.
544 (time_get::_M_extract_name): Likewise.
546 * include/bits/locale_facets.tcc
547 (time_get::_M_extract_via_format, case 'e'): Don't try to
548 be smart wrt returning the right __beg in case of parse
549 error, time_get::_M_extract_num must be fixed instead.
551 2003-10-27 Paolo Carlini <pcarlini@suse.de>
554 * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
555 * aclocal.m4: Regenerate.
556 * configure: Regenerate.
558 2003-10-27 Benjamin Kosnik <bkoz@redhat.com>
560 * docs/html/17_intro/TODO: Add links.
561 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
564 2003-10-27 Paolo Carlini <pcarlini@suse.de>
567 * include/bits/locale_facets.tcc
568 (time_get::_M_extract_via_format): Deal with code 'e'.
569 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
570 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
572 * include/bits/locale_facets.tcc
573 (time_get::_M_extract_via_format): Tweak to absolutely avoid
574 dereferencing end iterators.
576 * include/bits/locale_facets.h (__verify_grouping):
577 Const-ify second parameter.
578 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
579 * src/locale-inst.cc (__verify_grouping): Ditto.
581 2003-10-27 Paolo Carlini <pcarlini@suse.de>
583 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
584 Various things: 1- Avoid absolutely end iterator dereferences;
585 2- Improve performance-wise the code skipping leading zeros;
586 3- Fix two bugs wrt early bail out in case of parsing errors
587 (see testcases); 4- General clean up.
588 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
589 use __builtin_expect to favor base 10 inputs.
590 * testsuite/22_locale/num_get/get/char/7.cc: New.
591 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
593 2003-10-26 Paolo Carlini <pcarlini@suse.de>
595 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
596 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
598 2003-10-25 Paolo Carlini <pcarlini@suse.de>
600 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
601 __pos in only incremented, never used its value, remove it.
603 2003-10-24 Robert Millan <robertmh@gnu.org>
605 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
607 * aclocal.m4: Regenerated.
608 * configure: Regenerated.
610 2003-10-24 Paolo Carlini <pcarlini@suse.de>
612 * include/bits/locale_facets.tcc (money_get::do_get(...,
613 long double&): Properly size the temporary buffer.
614 * testsuite/22_locale/money_get/get/char/11.cc: New.
615 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
617 * include/bits/locale_facets.tcc (num_put::_M_group_int,
618 num_put::_M_group_float, money_put::do_put(..., const
619 string_type&), collate::do_compare, collate::do_transform):
620 Prefer basic_string::data() to c_str() when the '\0'
621 terminator is not really needed.
623 2003-10-24 Paolo Carlini <pcarlini@suse.de>
625 * include/bits/locale_facets.tcc (__verify_grouping):
626 Prefer '=' to an unnecessary '&='.
628 2003-10-24 Paolo Carlini <pcarlini@suse.de>
630 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
631 Tweak my fix for libstdc++/12657.
633 2003-10-24 Paolo Carlini <pcarlini@suse.de>
635 * include/bits/locale_facets.tcc (money_get::do_get(...,
636 string_type&): Minor tweak to the previous commit.
638 2003-10-24 Paolo Carlini <pcarlini@suse.de>
640 * include/bits/locale_facets.tcc (money_get::do_get(...,
641 string_type&): Disregard the previous commit: doesn't hurt but
642 doesn't accomplish anything useful either. This is the right
643 one, speeding up greatly the function in case of early fail.
645 2003-10-24 Paolo Carlini <pcarlini@suse.de>
647 * include/bits/locale_facets.tcc (money_get::do_get(...,
648 string_type&): Move an if block, thus minimizing the amount
649 of code processed anyway when __tmp_units.size() == 0.
651 2003-10-24 Paolo Carlini <pcarlini@suse.de>
653 * include/bits/locale_facets.tcc
654 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
657 2003-10-23 Benjamin Kosnik <bkoz@redhat.com>
659 * docs/html/documentation.html: Add a pointer to the doxygen style
661 * docs/html/17_intro/TODO: Update.
662 * docs/html/test.html: Add instructions for running a subset of
665 2003-10-23 Paolo Carlini <pcarlini@suse.de>
667 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
668 string_type&)): Use find_first_not_of to strip leading
669 zeros; if __tmp_units == "0" never prefix it with '-';
670 always fail if __tmp_units is empty.
671 * testsuite/22_locale/money_get/get/char/10.cc: New.
672 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
674 2003-10-23 Phil Edwards <phil@codesourcery.com>
676 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
679 2003-10-22 Paolo Carlini <pcarlini@suse.de>
681 * include/bits/locale_facets.tcc (__int_to_char): Remove
682 the const int parameter.
683 (_M_insert_int): Update caller.
684 * src/locale-inst.cc (__int_to_char): Update instantiations.
686 2003-10-22 Benjamin Kosnik <bkoz@redhat.com>
688 * include/bits/locale_facets.h: Correct byname facets for "C"
690 * config/locale/generic/ctype_members.cc: Same.
691 * config/locale/generic/messages_members.h: Same.
692 * config/locale/gnu/ctype_members.cc: Same.
693 * config/locale/gnu/messages_members.h: Same.
694 * include/bits/codecvt.h: Same.
695 * src/ctype.cc: Same.
696 * testsuite/22_locale/codecvt_byname/1.cc: New.
697 * testsuite/22_locale/collate/1.cc: Edit.
698 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
699 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
700 * testsuite/22_locale/ctype/1.cc: Derivation tests.
701 * testsuite/22_locale/ctype/11844.cc: Move...
702 * testsuite/22_locale/ctype_base/11844.cc: ...here.
703 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
704 * testsuite/22_locale/ctype_byname/1.cc: Name.
705 * testsuite/22_locale/messages_byname/1.cc: New.
706 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
707 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
708 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
709 * testsuite/22_locale/numpunct/1.cc: Edit.
710 * testsuite/22_locale/numpunct_byname/2.cc: Move...
711 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
712 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
713 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
715 2003-10-22 Paolo Carlini <pcarlini@suse.de>
718 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
719 checking for the availability of int64_t.
720 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
721 * configure.ac: Call here.
722 * acconfig.h: Add undef for the corresponding symbols.
723 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
724 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
725 (__basic_file<char>::seekoff): Likewise, call lseek64 when
726 available, otherwise lseek, checking the __off parameter.
727 * include/bits/postypes.h: Typedef __streamoff_base_type
728 to int64_t if available, otherwise long long.
729 * aclocal.m4: Regenerate.
730 * config.h.in: Likewise.
731 * configure: Likewise.
733 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
734 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
736 2003-10-22 Paolo Carlini <pcarlini@suse.de>
739 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
740 Implement resolution of DR 292 (WP).
741 * docs/html/ext/howto.html: Add entry for DR 292.
743 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
745 * include/ext/mt_allocator.h: Change include to gthr.h.
746 * include/ext/rope: Same. Add _Refcount_base definitions.
747 * include/ext/pool_allocator.h: Adjust namespaces.
748 * include/bits/stl_threads.h (_Refcount_base): Move.
749 Put remaining into namespace __gnu_cxx.
751 2003-10-21 Benjamin Kosnik <bkoz@redhat.com>
754 * include/bits/locale_facets.h (ctype<char>): Remove
755 __ctype_abstract_base.
756 (ctype<char>::do_is): Remove.
757 (ctype<char>::do_scan_is): Remove.
758 * src/ctype.cc: Same. Inline the rest.
759 * testsuite/22_locale/ctype/is/char/9858.cc: New.
760 * config/os/aix/ctype_noninline.h: Adjust ctor.
761 * config/os/bsd/freebsd/ctype_noninline.h: Same.
762 * config/os/bsd/netbsd/ctype_noninline.h: Same.
763 * config/os/djgpp/ctype_noninline.h: Same.
764 * config/os/generic/ctype_noninline.h: Same.
765 * config/os/gnu-linux/ctype_noninline.h: Same.
766 * config/os/hpux/ctype_noninline.h: Same.
767 * config/os/irix/irix5.2/ctype_noninline.h: Same.
768 * config/os/irix/irix6.5/ctype_noninline.h: Same.
769 * config/os/mingw32/ctype_noninline.h: Same.
770 * config/os/newlib/ctype_noninline.h: Same.
771 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
772 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
773 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
774 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
775 * config/os/windiss/ctype_noninline.h: Same.
777 2003-10-21 Paolo Carlini <pcarlini@suse.de>
779 * src/locale.cc: Tweak a comment.
780 * src/localename.cc: Move a comment.
782 2003-10-20 Benjamin Kosnik <bkoz@redhat.com>
785 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
786 * testsuite_hooks.cc: Same.
787 * 22_locale/numpunct/members/pod/1.cc: Edit.
788 * 22_locale/numpunct/members/pod/2.cc: Same.
789 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
790 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
791 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
792 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
793 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
794 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
795 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
796 * 27_io/basic_istream/sentry/pod/1.cc: New.
797 * 27_io/basic_ostream/sentry/pod/1.cc: New.
798 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
799 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
801 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
803 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
804 of external _MIPS_SIM_ABI32.
806 2003-10-20 Phil Edwards <phil@codesourcery.com>
808 * configure.ac: Fix comment typo.
809 * configure.host: Add vxworks to host_os switch.
810 * crossconfig.m4: Remove old commented os_include_dir variables
811 left over from autotools transition.
812 (*-vxworks): New stanza.
813 (*-windiss): Add missing symbols.
814 * configure: Regenerate.
815 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
816 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
818 * config/os/windiss/os_defines.h: Define __C9X__.
820 2003-10-19 David Edelsohn <edelsohn@gnu.org>
823 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
825 2003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
827 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
828 confusion of the use of the gthr API when __gthread_active_p()
831 2003-10-17 Benjamin Kosnik <bkoz@redhat.com>
833 * src/Makefile.am: Add new files.
834 * src/Makefile.in: Regenerate.
835 * src/globals.cc: Split into..
836 * src/globals_io.cc: New.
837 * src/globals_locale.cc: New.
838 * src/ios.cc: Split into...
839 * src/ios_init.cc: New.
840 * src/ios_locale.cc: New.
841 * src/locale-inst.cc: Split into..
842 * src/wlocale-inst.cc: New.
843 * src/locale-misc-inst.cc: New.
844 * src/locale.cc, src/localename: Split into...
845 * src/locale_facets.cc: New.
846 * src/locale_init.cc: New.
847 * src/wstring-inst.cc: Add copyright info.
849 2003-10-16 Petur Runolfsson <peturr02@ru.is>
854 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
855 Change return value from streampos to streamoff.
856 (__basic_file::seekpos): Delete.
857 * config/io/basic_file_stdio.h: Same.
858 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
859 * include/Makefile.am (bits_headers): Add bits/postypes.h.
860 * include/bits/char_traits.h: Include bits/postypes.h instead of
862 * include/bits/fstream.tcc (basic_filebuf::open,
863 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
864 values, use == and != instead.
865 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
867 (basic_filebuf::imbue): Don't use ! on pos_type values, use
868 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
869 * include/bits/postypes.h: New file.
870 Add __streamoff_base_type typedef, streamsize.
871 (streamoff, streampos, wstreampos): Define typedefs, with
872 streamoff defined as...
873 (streamoff): New class. Document implementation defined
875 (fpos): New implementation. Document implementation defined
877 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
878 explicit conversion from pos_type to off_type.
879 * include/std/std_iosfwd.h: Include bits/postypes.h instead
881 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
882 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
883 * testsuite/27_io/fpos/11450.cc: New test.
884 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
885 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
886 * testsuite/27_io/types/3.cc: New test.
888 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
890 * configure.host: Remove fpos_include_dir.
891 * configure.ac: Remove FPOS_INC_SRCDIR.
892 * configure: Regenerate.
893 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
894 * aclocal.m4: Regenerate.
895 * include/Makefile.am (host_headers): Remove fpos.h.
896 (bits_headers): Add postypes.h.
897 * include/Makefile.in: Regenerate.
898 * config/os/gnu-linux/fposh: Remove.
899 * config/os/generic/fpos.h: Remove.
901 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
902 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
903 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
904 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
905 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
906 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
907 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
908 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
909 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
910 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
911 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
912 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
913 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
914 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
915 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
916 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
917 * testsuite/27_io/objects/char/10.cc: Same.
919 2003-10-16 Paolo Carlini <pcarlini@suse.de>
921 * src/locale.cc (locale::locale(const char*)): ... one
922 more comparison missed in the previous commit.
924 2003-10-16 Benjamin Kosnik <bkoz@redhat.com>
926 * acconfig.h: Add HAVE_DRAND48.
927 * crossconfig.m4: Remove ISATTY.
928 * aclocal.m4: Regenerated.
929 * config.h.in: Regenerated.
930 * configure: Regenerated.
932 2003-10-16 Bernardo Innocenti <bernie@develer.com>
934 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
935 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
936 Document SMP safeness of asm macros.
938 2003-10-16 Paolo Carlini <pcarlini@suse.de>
940 * src/locale.cc (locale::locale(const char*)): Tweak
941 a couple of comparisons to use basic_string operators.
943 2003-10-16 Paolo Carlini <pcarlini@suse.de>
946 * config/locale/gnu/monetary_members.cc
947 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
948 Don't leak memory if new throws.
949 * src/locale.cc (locale::locale(const char*)): In order not
950 to leak memory in case new throws, use a basic_string type
951 for __res too and avoid strdup.
953 2003-10-14 Jeff Bailey <jbailey@nisa.net>
956 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
957 * configure: Regenerate.
959 2003-10-14 Carlo Wood <carlo@alinoe.com>
962 * include/bits/demangle.h (session<Allocator>::
963 decode_unqualified_name(string_type& output)): Fail on a
964 <operator-name> when decoding <template-argument>.
965 * testsuite/demangle/regression/cw-15.cc: New.
967 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
970 * include/bits/stl_algo.h (unique): Fix.
971 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
972 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
973 * testsuite/25_algorithms/unique/2.cc: New.
975 2003-10-14 Paolo Carlini <pcarlini@unitus.it>
977 * src/localename.cc (_M_replace_categories, M_replace_facet):
978 Const-ify a couple of variables.
980 2003-10-14 Petur Runolfsson <peturr02@ru.is>
981 Andreas Tobler <a.tobler@schweiz.ch>
983 * src/locale.cc (locale::_S_initialize): Workaround a confusion
984 of the use of the gthr API when __gthread_active_p() returns true.
986 2003-10-12 Petur Runolfsson <peturr02@ru.is>
987 Paolo Carlini <pcarlini@unitus.it>
990 * src/strstream.cc (pbackfail): Fix to use to_int_type.
991 * testsuite/backward/11460.cc: New, from the PR.
993 2003-10-12 Paolo Carlini <pcarlini@unitus.it>
995 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
996 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
997 * include/bits/basic_string.tcc: Likewise.
998 * include/bits/ios_base.h: Likewise.
999 * include/bits/istream.tcc: Likewise.
1000 * include/bits/locale_facets.tcc: Likewise.
1001 * include/bits/ostream.tcc: Likewise.
1002 * include/bits/stl_function.h: Likewise.
1003 * include/bits/stl_multiset.h: Likewise.
1004 * include/bits/stl_pair.h: Likewise.
1005 * include/bits/stl_set.h: Likewise.
1006 * include/bits/streambuf_iterator.h
1007 * include/std/std_iosfwd.h: Likewise.
1008 * include/std/std_istream.h: Likewise.
1009 * include/std/std_sstream.h: Likewise.
1010 * include/std/std_streambuf.h: Likewise.
1011 * src/ios.cc: Likewise.
1012 * include/bits/c++config:
1013 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
1014 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
1015 dg-error directive due to removal of a blank line.
1016 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1018 2003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
1019 Paolo Carlini <pcarlini@unitus.it>
1021 PR libstdc++/11844/11740 (cont)
1022 * config/os/generic/ctype_inline.h (ctype<char>::is):
1023 Generically, use a bitmasksize of 15 (instead of 10);
1024 Fix the logic to actually return (M & m) != 0 as per
1027 2003-10-11 Bernardo Innocenti <bernie@develer.com>
1029 * crossconfig.m4 (*-uclinux*): New target.
1030 * configure: Regenerate.
1032 2003-10-10 Paolo Carlini <pcarlini@unitus.it>
1034 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
1035 Avoid unnecessarily calling __builtin_alloca and dealing
1036 explicitly with width() smaller than zero.
1037 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
1038 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
1039 const char*), operator<<(basic_ostream<char, _Traits>&,
1040 const char*), operator<<(basic_ostream, const basic_string&)):
1043 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1045 * config/linker-map.gnu: Make more *_type_info bits visible.
1046 Move new/delete bits back into GLIBCXX space.
1048 * include/bits/locale_classes.h: Move _M_id out of line, so that
1049 locale::id::_S_highwater can be removed from the export list.
1050 * src/locale.cc (locale::id::_M_id): Define.
1052 2003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
1054 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
1057 2003-10-09 Paolo Carlini <pcarlini@unitus.it>
1060 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
1061 to conform to the requirements of 22.2.1.
1062 * config/os/bsd/freebsd/ctype_base.h: Likewise.
1063 * config/os/djgpp/ctype_base.h: Likewise.
1064 * config/os/generic/ctype_base.h: Likewise.
1065 * config/os/gnu-linux/ctype_base.h: Likewise.
1066 * config/os/hpux/ctype_base.h: Likewise.
1067 * config/os/irix/irix6.5/ctype_base.h: Likewise.
1068 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
1069 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
1070 * testsuite/22_locale/ctype/11844.cc: New.
1072 * config/locale/generic/ctype_members.cc (do_is):
1073 Generically, use a bitmasksize of 15 (instead of 10), since
1074 we don't know the numerical encoding of the various categories
1075 in the underlying /usr/include/ctype.h.
1077 2003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1079 * src/string-inst.cc: Prune.
1080 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1081 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1083 2003-10-09 Petur Runolfsson <peturr02@ru.is>
1085 * src/io-inst.cc: Don't include iostream.
1086 * include/bits/ios_base.h (ios_base::failure): Use string.
1087 * src/Makefile.am: Add ios_failure.cc.
1088 * src/Makefile.in: Regenerate.
1089 * src/ios.cc: Move ios_base::failure definitions to...
1090 * src/ios_failure.cc: ...here. New.
1092 2003-10-09 Petur Runolfsson <peturr02@ru.is>
1095 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1096 Move code needed for both seekoff and seekpos...
1097 (basic_filebuf::_M_seek): ...here. New function.
1098 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
1099 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
1100 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
1102 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
1104 2003-10-08 Paolo Carlini <pcarlini@unitus.it>
1106 * include/bits/locale_facets.tcc: More minor cosmetic
1107 changes and const-ifications of some variables.
1109 2003-10-07 Paolo Carlini <pcarlini@unitus.it>
1111 * include/bits/locale_facets.tcc: Minor cosmetic changes
1112 and const-ifications of some variables.
1114 * include/bits/locale_facets.tcc
1115 (money_get::do_get(..., string_type&)): Simplify an if-else.
1117 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
1120 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
1121 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
1122 * config/locale/generic/ctype_members.cc: Same.
1123 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
1125 2003-10-06 Paolo Carlini <pcarlini@unitus.it>
1127 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
1128 Improve performance-wise: avoid one traits::copy, avoid
1129 the __builtin_alloca, streamline.
1131 2003-10-05 Paolo Carlini <pcarlini@unitus.it>
1133 * include/bits/locale_facets.tcc
1134 (num_put::do_put(..., bool)): Prefer ?: to if-else.
1135 (time_get::_M_extract_name): Qualify min with std::.
1136 (__pad<>::_S_pad): Constify two variables; simplify an
1137 if-else statement factoring out some code.
1139 * include/bits/locale_facets.tcc: Minor cosmetic changes.
1141 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1143 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1144 Constify a couple of variables.
1145 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
1146 ++__beg to *__beg++.
1148 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1149 Petur Runolfsson <peturr02@ru.is>
1151 * include/ext/stdio_sync_filebuf.h: Don't include the whole
1152 <fstream>, only <streambuf> and <cstdio>.
1154 2003-10-04 Paolo Carlini <pcarlini@unitus.it>
1157 * include/bits/fstream.tcc (imbue): In case a codecvt facet
1158 is not available, set _M_codecvt = 0.
1159 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
1161 2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
1164 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
1166 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1168 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
1169 * src/locale.cc: Define.
1170 * src/localename.cc: Use it.
1171 * config/locale/generic/time_members.h: Same.
1172 * config/locale/gnu/messages_members.h: Same.
1173 * config/locale/gnu/time_members.h: Same.
1175 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
1178 * include/bits/fstream.tcc (seekoff): Ignore the openmode
1180 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
1181 seekpos): Remove the openmode argument.
1182 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
1183 seekpos): Remove redundant placeholder for the openmode argument.
1184 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
1185 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
1186 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
1187 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
1188 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
1190 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1192 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
1193 (locale::facet::_S_get_c_locale): Same.
1195 2003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1197 * config/linker-map.gnu: Export _S_get_c_locale instead of
1200 2003-10-02 Petur Runolfsson <peturr02@ru.is>
1202 * config/locale/generic/c_locale.cc
1203 (category_names, locale::_S_categories): Const qualify.
1204 * config/locale/gnu/c_locale.cc: Same.
1205 * config/locale/generic/time_members.h (__timepunct::__timepunct):
1206 Copy string contents before assigning to _M_name_timepunct,
1207 qualify strcpy and strlen with std::.
1208 * config/locale/gnu/time_members.h: Same.
1209 * config/locale/gnu/messages_members.h (messages::messages):
1210 Copy string contents before assigning to _M_name_messages,
1211 qualify strcpy and strlen with std::.
1212 * config/os/gnu-linux/ctype_noninline.h
1213 (ctype<char>::classic_table()): Don't call locale::classic().
1214 * include/bits/locale_classes.h
1215 (locale::_S_categories): Const qualify.
1216 (locale::_S_once, locale::_S_initialize_once,
1217 locale::facet::_S_once, locale::facet::_S_initialize_once,
1218 locale::facet::_S_get_c_locale): Declare.
1219 (locale::_S_initialize): Don't define.
1220 (locale::facet::_S_c_locale): Make private.
1221 (locale::facet::_S_c_name): Same, const qualify.
1222 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
1223 parameters, add throw() specifier.
1224 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
1225 messages::_M_name_messages): Const qualify.
1227 (locale::_S_once, locale::facet::_S_once): Define.
1228 (locale::classic): Move initialization code...
1229 (locale::_S_initialize_once): ...here.
1230 (locale::_S_initialize): Call _S_initialize_once through
1232 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
1233 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
1234 __gthread_once before returning _S_c_locale.
1235 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
1236 Drop unused parameters, add throw() specifier, don't initialize
1237 locale::facet::_S_c_locale and _S_c_name.
1239 * config/locale/generic/messages_members.h:
1240 Replace _S_c_locale with _S_get_c_locale().
1241 * config/locale/gnu/c_locale.cc: Same.
1242 * config/locale/gnu/messages_members.h: Same.
1243 * config/locale/gnu/numeric_members.cc: Same.
1244 * config/locale/gnu/time_members.cc: Same.
1245 * config/os/gnu-linux/ctype_noninline.h: Same.
1246 * include/bits/locale_facets.h: Same.
1247 * include/bits/locale_facets.tcc: Same.
1248 * src/codecvt.cc: Same.
1249 * src/ctype.cc: Same.
1251 2003-10-02 Carlo Wood <carlo@alinoe.com>
1253 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
1254 Decode symbols that start with _GLOBAL_[ID]_ differently: the
1255 trailing part ends with a terminating zero and is not necessarily an
1257 * src/demangle.cc (): Same.
1258 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
1260 2003-10-02 Paolo Carlini <pcarlini@unitus.it>
1262 * testsuite/22_locale/locale/cons/12438.cc: Use
1263 __gnu_test::try_named_locale("").
1265 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1267 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
1268 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
1270 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
1271 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
1273 * config.h.in, configure: Regenerate.
1274 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
1277 2003-10-01 Nathan Myers <ncm@cantrip.org>
1279 * include/bits/locale_facets.tcc (time_put::put): Avoid
1280 expensive *__s++, in favor of *__s, ++__s.
1282 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
1284 * include/bits/locale_facets.tcc (time_put::put): Minor
1285 tweak to the previous commit.
1287 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
1290 * include/bits/locale_facets.tcc (time_put::put): Deal
1291 with the three issues pointed out by the PR.
1292 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
1293 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
1294 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
1295 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
1296 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
1298 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1300 * include/bits/stl_algo.h: Minor cosmetic reformattings.
1302 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1304 * include/bits/stl_algo.h (search_n): Tweak, to spare the
1307 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1309 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
1310 qualify exception name.
1312 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1315 * include/bits/locale_facets.tcc (locale::combine): Don't
1316 leak memory if _M_replace_facet throws.
1317 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
1319 * include/bits/locale_classes.h (locale::locale(const locale&,
1320 _Facet*)): Tweak, use consistently _M_remove_reference.
1322 2003-09-30 Paolo Carlini <pcarlini@unitus.it>
1324 PR libstdc++/12352 (cont)
1325 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
1326 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
1328 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
1329 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
1330 !_M_caches, !_M_names.
1332 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1334 * configure.host: Handle Solaris 2.5 micro releases explicitly.
1335 Remove wildcards from Solaris 2.6, 7-9: there were no
1337 Treat Solaris 10 and up like 7-9.
1339 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1341 * include/bits/stl_algo.h (search_n): Improve the previous
1342 fix as suggested by Martin.
1344 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1347 * include/bits/istream.tcc (peek): Set eofbit if sgetc
1349 * testsuite/27_io/basic_istream/peek/char/12296.cc:
1352 2003-09-29 Nathan Myers <ncm@cantrip.org>
1353 Paolo Carlini <pcarlini@unitus.it>
1356 * include/bits/stl_algo.h (search_n):
1357 Use iterator_traits<>::difference_type for __n.
1358 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
1360 2003-09-29 Paolo Carlini <pcarlini@unitus.it>
1362 * testsuite/22_locale/locale/cons/12352.cc:
1363 Use __attribute__((unused)) for test.
1365 2003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
1367 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
1368 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
1369 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
1371 2003-09-26 Brad Spencer <spencer@infointeractive.com>
1373 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
1374 Explicitly qualify exceptions.
1375 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
1376 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1377 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1378 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1380 2003-09-25 Paolo Carlini <pcarlini@unitus.it>
1383 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
1384 size_t)): Don't leak if memory allocations for _M_facets,
1385 _M_caches, and _M_names fail.
1386 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
1387 (locale::_Impl::_M_replace_categories(const _Impl*,
1389 (locale::_Impl::_M_install_facet(const locale::id*,
1390 const facet*)): Ditto.
1391 * include/bits/locale_classes.h (locale::locale(const locale&,
1392 _Facet*)): Don't leak memory.
1393 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
1395 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
1396 bool)): Qualify with std:: strcpy, tweak.
1397 * include/bits/locale_classes.h
1398 (locale::_Impl::_M_check_same_name): Qualify strcmp.
1400 2003-09-25 Brad Spencer <spencer@infointeractive.com>
1403 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
1405 * aclocal.m4: Regenerate.
1406 * config.h.in: Regenerate.
1407 * configure: Regenerate.
1408 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
1409 * config/io/basic_file_stdio.cc: Guard unistd.h.
1410 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
1411 * include/c_std/std_cwchar.h: Same.
1412 * include/c_std/std_cwctype.h: Same.
1414 2003-09-25 Benjamin Kosnik <bkoz@redhat.com>
1417 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
1418 * config/locale/generic/ctype_members.cc: Same.
1419 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
1420 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
1422 * config/os/generic/ctype_inline.h: Update.
1424 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
1426 * src/Makefile.am (version_dep): New variable.
1427 (libstdc___la_DEPENDENCIES): Use it to add dependency on
1428 libstdc++-symbol.ver only when using symbol versioning.
1429 * src/Makefile.in: Regenerate.
1431 2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
1433 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
1434 * testsuite/testsuite_hooks.h: Same.
1435 * testsuite/*/*.cc: Same.
1437 2003-09-22 Petur Runolfsson <peturr02@ru.is>
1439 * include/bits/istream.tcc (basic_istream::read,
1440 basic_istream::readsome, basic_istream::putback,
1441 basic_istream::unget, operator>>(basic_istream, CharT)):
1442 Avoid redundant setstate(failbit) calls when sentry::operator bool()
1445 2003-09-22 Carlo Wood <carlo@alinoe.com>
1448 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
1449 char const*, int, int)): Remove unused identifier
1450 cv_qualifier for overloaded constructor.
1452 2003-09-18 Benjamin Kosnik <bkoz@redhat.com>
1455 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
1456 WARN_FLAGS, remove -Wno-format.
1457 * aclocal.m4: Regenerate.
1458 * configure: Regenerate.
1460 2003-09-18 Petur Runolfsson <peturr02@ru.is>
1462 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
1463 * config/io/basic_file_stdio.h: Same.
1464 * include/std/std_fstream.h (__ctype_type): Delete.
1465 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
1467 2003-09-17 Benjamin Kosnik <bkoz@redhat.com>
1470 * configure.host (abi_baseline_pair): Error out on solaris2
1471 configurations without a minor version number.
1473 2003-09-13 Phil Edwards <phil@codesourcery.com>
1475 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
1476 if man pages are on.
1477 * docs/doxygen/user.cfg.in: And here.
1479 2003-09-10 Daniel Jacobowitz <drow@mvista.com>
1480 Andreas Jaeger <aj@suse.de>
1483 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
1484 abi_check if cross compiling.
1485 * aclocal.m4: Regenerated.
1486 * configure: Regenerated.
1488 2003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
1490 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
1491 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
1492 (__cxa_vec_new3): Likewise.
1494 2003-09-10 Petur Runolfsson <peturr02@ru.is>
1496 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1497 Use codecvt::length to handle variable-width stateless encodings
1499 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
1500 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
1502 2003-09-10 Alan Modra <amodra@bigpond.net.au>
1504 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
1507 2003-09-09 Alan Modra <amodra@bigpond.net.au>
1509 * configure: Regenerate.
1511 2003-09-09 David Edelsohn <edelsohn@gnu.org>
1513 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
1514 qualifier from _S_synced_with_stdio.
1516 2003-09-09 Bernardo Innocenti <bernie@develer.com>
1518 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
1520 2003-09-04 Petur Runolfsson <peturr02@ru.is>
1523 * include/bits/fstream.tcc
1524 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
1525 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
1526 _M_ext_buf_size, _M_ext_next and _M_ext_end.
1527 (basic_filebuf::underflow): Handle variable-width stateless
1528 encodings (codecvt::encoding() == 0), including UTF-8.
1529 * include/std/std_fstream.h (basic_filebuf):
1530 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
1531 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
1532 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
1533 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
1534 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
1535 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
1536 * testsuite/27_io/objects/wchar_t/12.cc: New test.
1537 * testsuite/27_io/objects/wchar_t/13.cc: New test.
1539 2003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
1541 * docs/html/faq/index.html: Note that a namespace alias can't be
1542 used when specialising templates in extension namespace.
1543 * docs/html/faq/index.txt: Regenerate.
1545 2003-09-03 Petur Runolfsson <peturr02@ru.is>
1548 * include/ext/stdio_sync_filebuf.h
1549 (stdio_sync_filebuf::_M_unget_buf): Declare it.
1550 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
1551 (stdio_sync_filebuf::uflow): Store the returned character in
1553 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
1554 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
1555 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
1556 _M_unget_buf, if any, else eof().
1557 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
1558 _M_unget_buf, if any, else eof().
1559 * testsuite/27_io/objects/char/12048.cc: Rename to...
1560 * testsuite/27_io/objects/char/12048-1.cc: ...this.
1561 * testsuite/27_io/objects/char/12048-2.cc: New test.
1562 * testsuite/27_io/objects/char/12048-3.cc: New test.
1563 * testsuite/27_io/objects/char/12048-4.cc: New test.
1564 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
1565 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
1566 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
1567 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
1568 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
1569 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
1570 * testsuite/ext/stdio_sync_filebuf_char.cc
1571 (test02, test03, test04, test05): New tests.
1572 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
1573 (test02, test03, test04, test05): New tests.
1575 2003-09-03 Petur Runolfsson <peturr02@ru.is>
1577 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
1578 stringbuf or strstreambuf. Fix typos.
1580 2003-09-02 Phil Edwards <phil@codesourcery.com>
1582 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
1584 * config.h.in: Add _GLIBCXX_HOSTED.
1585 * libsupc++/eh_term_handler.cc: Test it here; initialize
1586 __terminate_handler to std::abort if freestanding.
1587 * aclocal.m4, configure: Regenerated.
1588 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
1590 2003-08-29 Nathan Myers <ncm@cantrip.org>
1593 * include/bits/locale_facets.tcc (__pad): delete dead code.
1595 2003-08-28 Alan Modra <amodra@bigpond.net.au>
1597 * configure.ac: Test $with_cross_host against $build_alias, not $build.
1598 * configure: Regenerate.
1600 2003-08-27 Petur Runolfsson <peturr02@ru.is>
1602 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
1603 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
1605 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1607 * Makefile.am: Remove trailing whitespace. Remove needless
1608 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
1609 * include/Makefile.am: Likewise.
1610 * libmath/Makefile.am: Likewise.
1611 * libsupc++/Makefile.am: Likewise.
1612 * po/Makefile.am: Likewise.
1613 * src/Makefile.am: Likewise.
1614 * testsuite/Makefile.am: Likewise.
1616 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
1617 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1618 testsuite/Makefile.in: Regenerated.
1620 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1622 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
1624 * aclocal.m4, configure: Regenerate.
1626 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
1628 * acinclude.m4: Include no-executables.m4.
1629 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
1630 * aclocal.m4: Regenerated.
1631 * configure: Regenerated.
1633 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
1635 * acinclude.m4: Don't call AC_ISC_POSIX.
1636 * aclocal.m4: Regenerated.
1637 * configure: Regenerated.
1639 2003-08-27 Phil Edwards <pme@gcc.gnu.org>
1641 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
1642 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
1643 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
1644 used elsewhere in this file.
1645 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
1646 * configure.ac: ...called here to expand all conditionals.
1647 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
1648 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
1649 (install-freestanding-headers): New target, a subset of
1650 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
1652 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1653 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1654 src/Makefile.in, testsuite/Makefile.in: Regenerated.
1656 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
1658 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
1659 pathnames from generated tag file.
1661 2003-08-26 Phil Edwards <pme@gcc.gnu.org>
1663 * Makefile.am: Add comment.
1664 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
1666 * configure.ac: Use them both here, instead of hardcoded lists.
1668 * fragment.am: Add STAMP varaible.
1669 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
1671 (stamp-*): Move file creation rule outside of 'if' branches to
1672 ensure the stamp-* files are actually updated. Use $(STAMP).
1673 * src/Makefile.am: Remove now-nonexistant variable.
1674 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
1676 * po/Makefile.am: Include same fragment as all the others.
1678 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1679 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
1681 2003-08-26 Loren J. Rittle <ljrittle@acm.org>
1683 * testsuite/data/cin_unget-1.txt: New.
1684 * testsuite/27_io/objects/char/12048.cc: New.
1686 2003-08-25 Zack Weinberg <zack@codesourcery.com>
1688 * config/os/hpux/os_defines.h: Unconditionally define
1689 _GLIBCXX_GTHREAD_USE_WEAK to 0.
1691 2003-08-19 Geoffrey Keating <geoffk@apple.com>
1693 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
1694 crosses to Darwin targets.
1695 * configure: Regenerate.
1697 2003-08-19 Petur Runolfsson <peturr02@ru.is>
1699 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
1701 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
1703 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
1704 in the patch from 3 minutes ago. Boy, is my face red.
1705 * configure: At least I remembered to regenerate this.
1707 2003-08-17 Phil Edwards <pme@gcc.gnu.org>
1709 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
1710 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
1711 things from the top level.
1712 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
1713 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
1714 (currently unused). Strip the fake-VPATH shell fragment from
1715 automake-generated rules, if present.
1716 * linkage.m4: Add comment.
1718 * fragment.am: New file, containing factored-out common settings.
1719 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
1720 * Makefile.am: Include fragment.am. Remove common variables.
1721 * include/Makefile.am: Likewise.
1722 * libmath/Makefile.am: Likewise.
1723 * libsupc++/Makefile.am: Likewise.
1724 * po/Makefile.am: Likewise. Print rules during check.
1725 * src/Makefile.am: Likewise.
1726 * testsuite/Makefile.am: Likewise.
1728 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1729 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1730 src/Makefile.in, testsuite/Makefile.in: Regenerate.
1732 2003-08-11 John Levon <levon@movementarian.org>
1734 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
1735 remaining places for the name change from GLIBCPP_FORCE_NEW
1736 to GLIBCXX_FORCE_NEW
1738 2003-08-11 Benjamin Kosnik <bkoz@redhat.com>
1740 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
1742 * include/bits/basic_ios.tcc: Same.
1743 * include/bits/istream.tcc: Same.
1744 * include/bits/locale_facets.h: Same.
1745 * include/bits/ostream.tcc: Same.
1746 * include/std/std_istream.h: Same.
1747 * include/std/std_ostream.h: Same.
1748 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
1750 * include/ext/rope: Remove build warning.
1752 2003-08-11 Andreas Jaeger <aj@suse.de>
1754 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
1756 * include/Makefile.in: Regenerated.
1758 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
1760 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
1761 when calling AC_PROG_CC.
1762 * aclocal.m4, configure: Regenerate.
1764 2003-08-11 Phil Edwards <pme@gcc.gnu.org>
1766 * acinclude.m4: Properly quote variable which will be expanded
1767 inside makefiles. Use CXX instead of CC to extract compiler info.
1768 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
1769 correct form in PACKAGE.
1770 * aclocal.m4, configure: Regenerate.
1772 2003-08-08 Benjamin Kosnik <bkoz@redhat.com>
1774 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
1775 (check-abi-verbose): Same.
1776 * testsuite/testsuite_performance.h (report_performance): Same.
1778 2003-08-08 Loren J. Rittle <ljrittle@acm.org>
1780 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
1782 2003-08-07 Doug Gregor <dgregor@apple.com>
1784 * include/bits/char_traits.h (char_traits::not_eof): Match operand
1787 2003-08-07 Bernardo Innocenti <bernie@develer.com>
1790 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
1791 Replace variants with new BSET-based version.
1793 2003-08-07 Carlo Wood <carlo@alinoe.com>
1795 * include/bits/demangle.h: Do not use cctype functions that depend
1798 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
1800 * configure.in: Rename...
1801 * configure.ac: ...to this.
1802 * docs/html/17_intro/porting.texi: Update name.
1804 * docs/html/17_intro/porting.html: Regenerate.
1805 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1806 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1807 testsuite/Makefile.in: Regenerate (picks up new dependancy).
1809 2003-08-05 Phil Edwards <pme@gcc.gnu.org>
1811 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
1812 pipe, open the window to let out the fumes, redo the option-handling
1813 logic to properly execute the detection test.
1814 * aclocal.m4, configure: Regenerate.
1816 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1818 Convert to new autotools.
1819 * acconfig.h: Update with correct names.
1820 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
1821 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
1822 * configure.in: Update. Split hardcoded cross-configury settings
1824 * crossconfig.m4: ...here. New file. Contents untouched.
1825 * acinclude.m4: Reorganize and rewrite as needed. Split large
1827 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
1829 * scripts/testsuite_flags.in: Update.
1831 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
1832 variables (already generated by automake).
1833 * include/Makefile.am: Ditto.
1834 * libmath/Makefile.am: Ditto.
1835 * libsupc++/Makefile.am: Ditto.
1836 * po/Makefile.am: Ditto.
1837 * src/Makefile.am: Ditto.
1839 * aclocal.m4: Regenerate using new versions.
1840 * config.h.in: Ditto.
1842 * Makefile.in: Ditto.
1843 * include/Makefile.in: Ditto.
1844 * libmath/Makefile.in: Ditto.
1845 * libsupc++/Makefile.in: Ditto.
1846 * po/Makefile.in: Ditto.
1847 * src/Makefile.in: Ditto.
1848 * testsuite/Makefile.in: Ditto.
1850 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1852 * po/libstdc++.pot: Re-extract/regenerate.
1854 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1856 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
1857 Remove unneeded variable assignments. Leave them for automake.
1858 * testsuite/lib/libstdc++-v3.exp: Rename...
1859 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
1861 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
1862 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
1865 2003-08-04 Phil Edwards <pme@gcc.gnu.org>
1867 * docs/doxygen/guide.html: run_doxygen uses bash.
1868 * docs/doxygen/mainpage.html: We'll be shipping tag files.
1869 * docs/doxygen/run_doxygen: Tweaks and improvements.
1870 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
1871 * docs/html/install.html: Update autoconf/automake requirements.
1872 * docs/html/test.html: Add section describing DejaGNU support.
1873 * docs/html/17_intro/confdeps.dot: New file, generates...
1874 * docs/html/17_intro/confdeps.png: ...this new file.
1875 * docs/html/Makefile: Generated here.
1876 * docs/html/17_intro/configury.html: New file.
1878 2003-07-31 Phil Edwards <pme@gcc.gnu.org>
1880 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
1881 * testsuite/lib/libstdc++-v3.exp: ...to this.
1882 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
1884 2003-07-31 Doug Gregor <dgregor@apple.com>
1886 Add user specialization tests.
1887 * testsuite/23_containers/deque/1.cc: New.
1888 * testsuite/23_containers/list/1.cc: New.
1889 * testsuite/23_containers/map/1.cc: New.
1890 * testsuite/23_containers/multimap/1.cc: New.
1891 * testsuite/23_containers/multiset/1.cc: New.
1892 * testsuite/23_containers/set/1.cc: New.
1893 * testsuite/23_containers/vector/1.cc: New.
1895 2003-07-31 Benjamin Kosnik <bkoz@redhat.com>
1897 Reshuffle 23_containers testsuite.
1898 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
1899 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
1900 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
1901 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
1902 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
1903 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
1904 vector_resize.cc: Split into...
1905 * 23_containers/bitset/cons/1.cc: New.
1906 * 23_containers/bitset/cons/6282.cc: New.
1907 * 23_containers/bitset/count/6124.cc: New.
1908 * 23_containers/bitset/operations/1.cc: New.
1909 * 23_containers/bitset/operations/2.cc: New.
1910 * 23_containers/bitset/test/1.cc: New.
1911 * 23_containers/bitset/to_ulong/1.cc: New.
1912 * 23_containers/deque/cons/1.cc: New.
1913 * 23_containers/deque/cons/2.cc: New.
1914 * 23_containers/deque/operators/1.cc: New.
1915 * 23_containers/list/capacity/1.cc: New.
1916 * 23_containers/list/cons/1.cc: New.
1917 * 23_containers/list/cons/2.cc: New.
1918 * 23_containers/list/cons/3.cc: New.
1919 * 23_containers/list/cons/4.cc: New.
1920 * 23_containers/list/cons/5.cc: New.
1921 * 23_containers/list/cons/6.cc: New.
1922 * 23_containers/list/cons/7.cc: New.
1923 * 23_containers/list/cons/8.cc: New.
1924 * 23_containers/list/cons/9.cc: New.
1925 * 23_containers/list/modifiers/1.cc: New.
1926 * 23_containers/list/modifiers/2.cc: New.
1927 * 23_containers/list/modifiers/3.cc: New.
1928 * 23_containers/list/operators/1.cc: New.
1929 * 23_containers/list/operators/2.cc: New.
1930 * 23_containers/list/operators/3.cc: New.
1931 * 23_containers/list/operators/4.cc: New.
1932 * 23_containers/map/insert/1.cc: New.
1933 * 23_containers/map/operators/1.cc: New.
1934 * 23_containers/map/operators/1_neg.cc: New.
1935 * 23_containers/multiset/insert/1.cc: New.
1936 * 23_containers/priority_queue/members/7161.cc: New.
1937 * 23_containers/queue/members/7157.cc: New.
1938 * 23_containers/set/operators/1_neg.cc: New.
1939 * 23_containers/stack/members/7158.cc: New.
1940 * 23_containers/vector/bool/1.cc: New.
1941 * 23_containers/vector/bool/6886.cc: New.
1942 * 23_containers/vector/capacity/1.cc: New.
1943 * 23_containers/vector/capacity/2.cc: New.
1944 * 23_containers/vector/capacity/8230.cc: New.
1945 * 23_containers/vector/cons/1.cc: New.
1946 * 23_containers/vector/cons/2.cc: New.
1947 * 23_containers/vector/cons/3.cc: New.
1948 * 23_containers/vector/cons/4.cc: New.
1949 * 23_containers/vector/cons/6513.cc: New.
1950 * 23_containers/vector/element_access/1.cc: New.
1951 * 23_containers/vector/modifiers/1.cc: New.
1952 * 23_containers/vector/modifiers/2.cc: New.
1953 * 23_containers/vector/resize/1.cc: New.
1955 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1957 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
1959 * testsuite/thread/pthread2.cc: Likewise.
1960 * testsuite/thread/pthread3.cc: Likewise.
1961 * testsuite/thread/pthread4.cc: Likewise.
1962 * testsuite/thread/pthread5.cc: Likewise.
1963 * testsuite/thread/pthread6.cc: Likewise.
1964 * testsuite/thread/pthread7-rope.cc: Likewise.
1966 2003-07-30 Phil Edwards <pme@gcc.gnu.org>
1968 * include/bits/c++config: Partial reversion (comment placement) of
1971 2003-07-30 Benjamin Kosnik <bkoz@redhat.com>
1973 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
1974 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
1975 (_GLIBCXX_AT_AT): Remove.
1976 (__USE_MALLOC): Remove.
1977 * include/std/std_fstream.h: Modify.
1978 * include/bits/basic_ios.h: Same.
1979 * include/bits/valarray_array.h: Same.
1980 * include/c_std/std_cmath.h: Same.
1981 * include/c_std/cmath.tcc: Same.
1982 * include/std/std_vector.h: Same.
1983 * include/std/std_string.h: Same.
1984 * include/std/std_stack.h: Same.
1985 * include/std/std_queue.h: Same.
1986 * include/std/std_list.h: Same.
1987 * include/std/std_deque.h: Same.
1988 * include/std/std_streambuf.h: Same.
1989 * include/std/std_sstream.h: Same.
1990 * include/std/std_ostream.h: Same.
1991 * include/std/std_istream.h: Same.
1992 * include/bits/valarray_array.tcc: Same, format.
1994 * include/c/std_cctype.h: Fix include guards.
1995 * include/c/std_cerrno.h: Same.
1996 * include/c/std_cfloat.h: Same.
1997 * include/c/std_climits.h: Same.
1998 * include/c/std_clocale.h: Same.
1999 * include/c/std_cmath.h: Same.
2000 * include/c/std_csetjmp.h: Same.
2001 * include/c/std_csignal.h: Same.
2002 * include/c/std_cstdarg.h: Same.
2003 * include/c/std_cstddef.h: Same.
2004 * include/c/std_cstdio.h: Same.
2005 * include/c/std_cstdlib.h: Same.
2006 * include/c/std_cstring.h: Same.
2007 * include/c/std_ctime.h: Same.
2008 * include/c/std_cwchar.h: Same.
2009 * include/c/std_cwctype.h: Same.
2010 * include/c_std/cmath.tcc: Same.
2011 * include/c_std/std_cmath.h: Same.
2013 2003-07-30 Gawain Bolton <gp.bolton@computer.org>
2016 * include/bits/stl_tree.h: Replace C-style casts with C++-style
2017 casts. Changes to avoid casting away constness. Eliminate
2018 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
2019 initialization lists. Move out implementation of __black_count()
2021 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
2022 Rename_Rb_tree_base_iterator::_M_increment() to
2023 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
2025 * config/linker-map.gnu: Add and change symbols here.
2027 2003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
2029 * docs/html/22_locale/howto.html: Use locale::classic() instead
2032 2003-07-28 Benjamin Kosnik <bkoz@redhat.com>
2034 * testsuite/testsuite_hooks.h: Remove list include.
2035 (func_callback): Define as unique type, not std::list.
2036 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
2037 * testsuite/libstdc++-v3.dg/dg.exp: Same.
2038 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
2039 * testsuite/23_containers/bitset_ctor.cc:
2040 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
2041 * testsuite/18_support/numeric_limits.cc: Same.
2042 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
2043 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
2044 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
2045 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
2046 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
2047 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
2048 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
2049 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
2050 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
2051 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
2052 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
2053 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
2054 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
2055 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
2056 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
2057 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
2058 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
2059 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
2060 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
2061 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
2062 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
2063 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
2064 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
2065 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
2066 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
2067 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
2068 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
2069 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
2070 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
2071 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
2072 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
2073 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
2074 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
2075 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
2076 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
2077 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
2078 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
2079 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
2080 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
2081 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
2082 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
2083 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
2084 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
2085 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
2086 * testsuite/23_containers/bitset_ctor.cc: Same.
2087 * testsuite/23_containers/bitset_shift.cc: Same.
2088 * testsuite/23_containers/vector_ctor.cc: Same.
2089 * testsuite/23_containers/vector_element_access.cc: Same.
2090 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
2091 * testsuite/24_iterators/iterator.cc: Same.
2092 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
2093 * testsuite/25_algorithms/lower_bound.cc: Same.
2094 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
2095 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
2096 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
2097 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
2098 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
2099 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
2100 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
2101 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
2102 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
2103 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
2104 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2107 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2109 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
2110 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
2111 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
2112 GLIBCPP to GLIBCXX (and explain as needed).
2114 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2118 2003-07-28 Phil Edwards <pme@gcc.gnu.org>
2120 * testsuite/22_locale/messages/members/char/1.cc,
2121 testsuite/22_locale/messages/members/char/2.cc,
2122 testsuite/22_locale/messages/members/char/3.cc,
2123 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
2124 the origin of LOCALEDIR.
2125 * testsuite/lib/libstdc++-v3.exp: New file.
2127 2003-07-25 Benjamin Kosnik <bkoz@redhat.com>
2129 * include/bits/char_traits.h: Update copyright, tweak.
2130 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
2133 2003-07-24 Matt Austern <austern@apple.com>
2135 * /include/bits/char_traits.h (class char_traits): Put all the
2136 real work into the new class template __gnu_cxx::char_traits.
2137 Gave generic definitions for member functions. Types are taken
2138 from the new class template __gnu_cxx::_Char_types.
2139 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
2140 file. Test of std::char_traits<short>, which serves as a test of
2141 the char_traits primary template.
2143 2003-07-24 Benjamin Kosnik <bkoz@redhat.com>
2145 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
2147 2003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
2149 * testsuite/23_containers/map_operators.cc: Conform to
2150 container requirement as value must be Assignable.
2152 2003-07-23 Alexandre Oliva <aoliva@redhat.com>
2154 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
2155 tests not only generation of pch files, but also their use.
2156 * aclocal.m4, configure: Rebuilt.
2158 2003-07-23 Steve Ellcey <sje@cup.hp.com>
2160 * config/cpu/hppa/atomicity.h: Change
2161 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
2162 to match misc-inst.cc
2164 2003-07-23 Steve Ellcey <sje@cup.hp.com>
2166 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
2167 * include/c_std/std_cctype.h: Ditto.
2168 * include/c_std/std_cerrno.h: Ditto.
2169 * include/c_std/std_cfloat.h: Ditto.
2170 * include/c_std/std_climits.h: Ditto.
2171 * include/c_std/std_clocale.h: Ditto.
2172 * include/c_std/std_cmath.h: Ditto.
2173 * include/c_std/std_csetjmp.h: Ditto.
2174 * include/c_std/std_csignal.h: Ditto.
2175 * include/c_std/std_cstdarg.h: Ditto.
2176 * include/c_std/std_cstddef.h: Ditto.
2177 * include/c_std/std_cstdio.h: Ditto.
2178 * include/c_std/std_cstdlib.h: Ditto.
2179 * include/c_std/std_cstring.h: Ditto.
2180 * include/c_std/std_ctime.h: Ditto.
2181 * include/c_std/std_cwchar.h: Ditto.
2182 * include/c_std/std_cwctype.h: Ditto.
2183 * include/std/std_algorithm.h: Ditto.
2184 * include/std/std_bitset.h: Ditto.
2185 * include/std/std_complex.h: Ditto.
2186 * include/std/std_deque.h: Ditto.
2187 * include/std/std_fstream.h: Ditto.
2188 * include/std/std_functional.h: Ditto.
2189 * include/std/std_iomanip.h: Ditto.
2190 * include/std/std_ios.h: Ditto.
2191 * include/std/std_iosfwd.h: Ditto.
2192 * include/std/std_iostream.h: Ditto.
2193 * include/std/std_istream.h: Ditto.
2194 * include/std/std_iterator.h: Ditto.
2195 * include/std/std_limits.h: Ditto.
2196 * include/std/std_list.h: Ditto.
2197 * include/std/std_locale.h: Ditto.
2198 * include/std/std_map.h: Ditto.
2199 * include/std/std_memory.h: Ditto.
2200 * include/std/std_numeric.h: Ditto.
2201 * include/std/std_ostream.h: Ditto.
2202 * include/std/std_queue.h: Ditto.
2203 * include/std/std_set.h: Ditto.
2204 * include/std/std_sstream.h: Ditto.
2205 * include/std/std_stack.h: Ditto.
2206 * include/std/std_stdexcept.h: Ditto.
2207 * include/std/std_streambuf.h: Ditto.
2208 * include/std/std_string.h: Ditto.
2209 * include/std/std_utility.h: Ditto.
2210 * include/std/std_valarray.h: Ditto.
2211 * include/std/std_vector.h: Ditto.
2213 2003-07-22 Doug Gregor <dgregor@apple.com>
2215 * include/bits/basic_string.h (basic_string::insert): Deprecate
2218 2003-07-21 Benjamin Kosnik <bkoz@redhat.com>
2220 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
2222 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
2223 (test03): Include typeinfo for bad_cast.
2224 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2225 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2226 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2228 2003-07-21 Doug Gregor <dgregor@apple.com>
2230 * include/bits/boost_concept_check.h:
2231 (_EqualityComparableConcept::__constraints): Remove != from the
2232 list of constraints; it is not listed in Table 28 of the C++98
2235 2003-07-18 Andreas Jaeger <aj@suse.de>
2237 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
2238 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
2239 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
2240 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2242 2003-07-17 Benjamin Kosnik <bkoz@redhat.com>
2244 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
2245 * config/locale/generic/messages_members.h: Tweaks.
2246 * config/locale/generic/monetary_members.cc
2247 (moneypunct::_M_initialize_moneypunct): Use cache.
2248 (moneypunct::~moneypunct): Delete cache.
2249 * config/locale/generic/time_members.cc:
2250 (__timepunct::_M_initialize_timepunct): Use cache.
2251 * config/locale/generic/time_members.h:
2252 (__timepunct::~__timepunct): Delete cache.
2253 (__timepunct::__timepunct): Set cache.
2254 * config/locale/gnu/messages_members.h: Tweaks.
2255 * config/locale/gnu/monetary_members.cc:
2256 (moneypunct::_M_initialize_moneypunct): Use cache.
2257 (moneypunct::~moneypunct): Delete cache.
2258 * config/locale/gnu/time_members.cc:
2259 (__timepunct::_M_initialize_timepunct): Use cache.
2260 * config/locale/gnu/time_members.h:
2261 (__timepunct::~__timepunct): Delete cache.
2262 (__timepunct::__timepunct): Set cache.
2263 * include/bits/locale_facets.h (__timepunct_cache): New.
2264 (__moneypunct_cache): New.
2265 * include/bits/locale_facets.tcc: Tweak.
2266 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
2267 * src/locale-inst.cc: Instantiate caches.
2268 * src/globals.cc: Add "C" caches.
2269 * src/localename.cc: Use external "C" caches.
2271 2003-07-17 Phil Edwards <pme@gcc.gnu.org>
2273 * docs/doxygen/guide.html: Fix typo.
2275 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2277 * include/ext/pod_char_traits.h: Add state template argument.
2279 2003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2281 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
2282 (num_get::_M_convert_int): To _M_insert_int.
2283 (num_get::_M_convert_float): To _M_insert_float.
2284 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2285 Use caches for ctype, num_get.
2286 (num_get::_M_extract_int): Same.
2287 (num_get::get(bool)): Same.
2288 (__verify_grouping): Use size_t.
2289 * src/locale-inst.cc: Update.
2290 * src/locale.cc: Adjust _S_atoms_in.
2292 2003-07-16 Phil Edwards <pme@gcc.gnu.org>
2294 * docs/doxygen/mainpage.html: Move building/writing instructions...
2295 * docs/doxygen/guide.html: ...to here. New file.
2297 2003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
2299 * docs/html/ext/howto.html: Update URL for SGI STL docs.
2300 * docs/html/faq/index.html: Same.
2301 * docs/html/faq/index.txt: Regenerate.
2303 2003-07-16 Paolo Carlini <pcarlini@unitus.it>
2306 * include/bits/locale_facets.tcc (money_get::do_get):
2307 Strip only _leading_ zeros.
2308 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
2309 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
2311 2003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2313 * include/ext/hash_map (class hash_multimap): Remove extra
2314 semicolons from __glibcxx_class_requires3 entries.
2315 * include/ext/hash_set (class hash_set): Ditto.
2316 (class hash_multiset): Ditto.
2318 2003-07-15 Petur Runolfsson <peturr02@ru.is>
2320 * include/bits/char_traits.h (char_traits<wchar_t>::move):
2321 Change last parameter from int_type to size_t.
2323 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2325 * include/bits/stl_algo.h (includes, set_union, set_intersection,
2326 set_difference, set_symmetric_difference, max_element, min_element,
2327 next_permutation, prev_permutation, find_first_of, find_end):
2329 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
2330 restrictions in docs.
2331 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
2333 * docs/doxygen/doxygroups.cc (setoperations): New group.
2335 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2337 * include/bits/basic_string.h: Document public functions.
2338 * docs/doxygen/TODO: Update c21 todo.
2340 2003-07-15 Jerry Quinn <jlquinn@optonline.net>
2342 * include/bits/stl_list.h: Document more functions.
2343 * docs/doxygen/TODO: Update c23 todo.
2345 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2347 * config/locale/gnu/c_locale.h (__convert_from_v): One more
2350 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2352 * include/bits/stl_tempbuf.h: Qualify free with std::.
2353 * src/locale.cc: Include <cstdlib>, qualify getenv.
2355 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2357 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2358 <cstdio>. Qualify names.
2359 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
2361 2003-07-14 Paolo Carlini <pcarlini@unitus.it>
2362 Nathan C. Myers <ncm-nospam@cantrip.org>
2365 * include/std/std_fstream.h (xsputn): Declare only.
2366 * include/bits/fstream.tcc (xsputn): Define, optimize for the
2367 always_noconv() case: when __n is sufficiently large flush
2368 the buffer and issue a direct write, if possible combining the
2369 two with writev in __basic_file<>::xsputn_2.
2370 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
2372 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
2374 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
2375 the availability of writev in <sys/uio.h>.
2376 * configure.in: Call here.
2377 * acconfig.h: Add undef for the corresponding symbol.
2378 * aclocal.m4: Regenerate.
2379 * configure: Regenerate.
2380 * config.h.in: Regenerate.
2381 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
2383 * include/std/std_fstream.h (sync): Constify a variable.
2385 2003-07-14 Benjamin Kosnik <bkoz@redhat.com>
2387 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
2388 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2390 2003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
2392 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2393 <cstring> and <cstdlib>. Qualify names.
2395 2003-07-13 Mark Mitchell <mark@codesourcery.com>
2397 * config/locale/generic/c_locale.h: Include <cstdlib> and
2399 * include/bits/boost_concept_check.h: Add this-> to unqualified
2401 * include/bits/deque.tcc: Likewise.
2402 * include/bits/locale_facets.h : Likewise.
2403 * include/bits/ostream.tcc: Likewise.
2404 * include/bits/stl_algo.h: Likewise.
2405 * include/bits/stl_bvector.h: Likewise.
2406 * include/bits/stl_deque.h: Likewise.
2407 * include/bits/stl_list.h: Likewise.
2408 * include/bits/stl_tree.h: Likewise.
2409 * include/bits/stl_vector.h: Likewise.
2410 * include/bits/vector.tcc: Likewise.
2411 * include/ext/rope: Likewise.
2412 * include/ext/ropeimpl.h: Likewise.
2413 * include/ext/stdio_filebuf.h: Likewise.
2415 2003-07-11 Jerry Quinn <jlquinn@optonline.net>
2417 * include/bits/basic_ios.h (copyfmt): Document.
2418 * include/bits/ios_base.h (event, event_callback, register_callback,
2419 xalloc, iword, pword): Document.
2420 (imbue, ~ios_base): Update docs on callbacks.
2422 2003-07-11 Phil Edwards <pme@gcc.gnu.org>
2424 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
2425 warning messages if the environment cannot support symbol versioning.
2426 (port_specific_symbol_file): It's plural, add an 's' on the end.
2427 * configure.host: Likewise.
2428 * src/Makefile.am: Likewise.
2429 * config/linker-map.gnu: Remove one semicolon, heh.
2430 * scripts/extract_symvers: Don't assume useful 'export' syntax.
2431 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
2432 * aclocal.m4, configure, src/Makefile.in: Regenerated.
2434 2003-07-09 Benjamin Kosnik <bkoz@redhat.com>
2436 * include/bits/locale_facets.tcc: Use function object for
2437 __use_cache instead of template function. Partially specialize for
2439 * include/bits/locale_classes.h: Update friend declaration for
2441 (_M_install_cache): No throw exception specs.
2442 * src/locale.cc: Remove __use_cache specializations.
2443 * include/ext/pod_char_traits.h (length): Tweak.
2444 * include/bits/locale_facets.h (__numpunct_cache): Remove
2446 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
2448 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
2449 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
2450 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
2451 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
2452 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
2453 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
2455 2003-07-09 Jerry Quinn <jlquinn@optonline.net>
2457 * src/ios.cc (_M_grow_words): Fix spelling.
2459 2003-07-09 Gawain Bolton <gp.bolton@computer.org>
2461 * include/bits/stl_tree.h: Move larger member functions in
2462 _Rb_tree_base_iterator and _Rb_tree_node to...
2463 * src/stl_tree.cc: Here.
2464 * src/Makefile.in: Add stl_tree.cc.
2465 * src/Makefile.in: Regenerated.
2466 * config/linker-map.gnu: Add symbols here.
2468 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2470 * testsuite/ext/pod_char_traits.cc: New.
2471 * include/ext/pod_char_traits.h: New.
2472 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
2473 * include/Makefile.in: Regenerate.
2474 * docs/html/21_strings/howto.html: Update.
2476 2003-07-08 Gawain Bolton <gp.bolton@computer.org>
2478 * testsuite/performance/list_create_fill_sort.cc: New.
2480 2003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2482 * config/locale/generic/numeric_members.cc: Correct type info.
2483 * config/locale/gnu/numeric_members.cc: Same.
2484 * include/bits/locale_facets.h: Same.
2486 * include/bits/char_traits.h: Correct spacing.
2488 * src/locale.cc: Wrap to 80 col.
2490 2003-07-07 Paolo Carlini <pcarlini@unitus.it>
2492 * include/std/std_complex.h: Partially revert last
2493 changes: cmath functions must not be qualified.
2495 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
2497 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
2498 2.11 with globbing backport fix.
2499 * aclocal.m4, configure: Regenerated.
2501 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
2503 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
2504 if output is at all possible (!_M_reading), cannot be active.
2506 * include/std/std_fstream.h: Tweak comments to doxygen style.
2508 2003-07-06 Paolo Carlini <pcarlini@unitus.it>
2510 * include/bits/locale_classes.h: Fully qualify standard
2511 functions with std::, thus avoiding Koenig lookup.
2512 * include/bits/locale_facets.tcc: Likewise.
2513 * src/locale.cc: Likewise.
2514 * src/localename.cc: Likewise.
2516 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
2518 * include/bits/allocator_traits.h: Fix doxygen markup.
2519 * include/ext/mt_allocator.h: Likewise.
2521 2003-07-06 Phil Edwards <pme@gcc.gnu.org>
2523 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
2525 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2527 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
2528 requirement. Add port_specific_symbol_file variable.
2529 * configure.host: Add docs for port_specific_symbol_file.
2530 Clean up try_cpu block for x86.
2531 * config/linker-map.gnu: No more "last symbol can't have a
2532 semicolon" kaka. Add hook for port-specific symbols.
2533 * src/Makefile.am: Remove trailing whitespace.
2534 (libstdc++-symbol.ver): Detect the presence of port-specific
2535 symbols, and add them accordingly.
2537 * docs/html/17_intro/porting.texi: Bring up to date.
2539 * src/Makefile.in, aclocal.m4, configure,
2540 docs/html/17_intro/porting.html: Regenerated.
2542 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2544 * scripts/create_testsuite_files: New file.
2545 * testsuite/Makefile.am (all-local, check-performance): Use it.
2546 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
2547 * testsuite/Makefile.in: Regenerated.
2549 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
2551 * testsuite/performance/fstream_seek_write.cc: Likewise.
2552 * testsuite/performance/ofstream_insert_float.cc: Likewise.
2553 * testsuite/performance/ofstream_insert_int.cc: Likewise.
2554 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
2556 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
2558 * include/bits/stl_list.h: Performance and memory usage
2559 improvements. In particular, the behaviour of the constructor and
2560 destructor as the list header node is no longer dynamically
2561 allocated/de-allocated.
2562 * include/bits/list.tcc: Likewise.
2564 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
2566 * include/std/std_complex.h: Fully qualify standard
2567 functions with std::, thus avoiding Koenig lookup.
2568 * include/std/std_memory.h: Likewise.
2569 * include/std/std_valarray.h: Likewise.
2571 2003-07-05 Gawain Bolton <gp.bolton@computer.org>
2573 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
2574 variable for grandparent and use const
2576 2003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
2578 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
2579 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
2580 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
2581 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
2582 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
2583 * testsuite/27_io/objects/char/7.cc: Ditto
2584 * testsuite/27_io/objects/char/9661-1.cc: Ditto
2586 2003-07-05 Paolo Carlini <pcarlini@unitus.it>
2588 * include/std/std_bitset.h: Fully qualify standard
2589 functions with std::, thus avoiding Koenig lookup.
2591 * include/std/std_fstream.h: Change comment to doxygen style.
2593 2003-07-05 Phil Edwards <pme@gcc.gnu.org>
2595 * include/std/std_limits.h: More CPP->CXX changes.
2596 * scripts/check_survey.in: Likewise.
2598 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2600 Move from CPP to CXX.
2601 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
2602 * testsuite/Makefile.am: Same.
2603 * testsuite/Makefile.in: Regenerate.
2604 * po/Makefile.am: Same.
2605 * po/Makefile.in: Regenerate.
2606 * libsupc++/Makefile.am: Same.
2607 * libsupc++/Makefile.in: Regenerate.
2608 * libmath/Makefile.am: Same.
2609 * libmath/Makefile.in: Regenerate.
2610 * include/Makefile.am: Same.
2611 * include/Makefile.in: Regenerate.
2612 * src/Makefile.am: Same.
2613 * src/Makefile.in: Regenerate.
2615 * configure.host: Same.
2616 * configure.in: Same.
2617 * configure: Regenerate.
2618 * acinclude.m4: Same.
2620 * src: Change all files in this directory.
2622 * include: Same, standardize include guards.
2626 2003-07-04 Zack Weinberg <zack@codesourcery.com>
2628 * testsuite/22_locale/collate/compare/wchar_t/2.cc
2629 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
2630 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
2631 * testsuite/22_locale/collate/hash/wchar_t/2.cc
2632 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
2633 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
2634 * testsuite/22_locale/collate/transform/wchar_t/2.cc
2635 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
2636 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2637 XFAIL on all targets.
2639 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2641 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
2642 * aclocal.m4: Regenerate.
2643 * configure: Regenerate.
2645 2003-07-04 Jerry Quinn <jlquinn@optonline.net>
2647 * include/bits/locale_facets.tcc (__int_to_char): Move common case
2650 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2651 Petur Runolfsson <peturr02@ru.is>
2653 * config/io/basic_file_stdio.cc: Revert.
2655 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2657 * include/bits/deque.tcc: Fully qualify standard
2658 functions with std::, thus avoiding Koenig lookup.
2659 * include/bits/gslice_array.h: Likewise.
2660 * include/bits/indirect_array.h: Likewise.
2661 * include/bits/list.tcc: Likewise.
2662 * include/bits/mask_array.h: Likewise.
2663 * include/bits/slice_array.h: Likewise.
2665 2003-07-04 Gawain Bolton <gbolton@free.fr>
2667 * include/bits/stl_tree.h: Performance and memory usage
2670 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
2672 * Makefile.am: Replace PWD with PWD_COMMAND.
2673 * Makefile.in: Regenerated.
2674 * docs/html/Makefile: Likewise.
2676 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2678 * include/bits/valarray_array.h: Fully qualify standard
2679 functions with std::, thus avoiding Koenig lookup.
2680 * include/bits/vector.tcc: Likewise.
2682 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2684 * include/Makefile.am: Update target_ to host_.
2685 * include/Makefile.in: Regenerate.
2686 * src/Makefile.am: Same.
2687 * src/Makefile.in: Regenerate.
2689 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
2691 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2693 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
2694 --enable-libstdcxx-debug-flags.
2695 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
2696 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
2697 * aclocal.m4: Regenerate.
2699 * docs/html/configopts.html: Update.
2701 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2703 Revert the fix for libstdc++/11378.
2705 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2708 * include/std/std_fstream.h (xsputn): In the unbuffered case,
2709 provided always_noconv(), issue directly _M_file.xsputn.
2710 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
2712 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2714 * include/bits/stl_list.h: Fully qualify standard
2715 functions with std::, thus avoiding Koenig lookup.
2716 * include/bits/stl_queue.h: Likewise.
2717 * include/bits/stl_raw_storage_iter.h: Likewise.
2718 * include/bits/stl_tempbuf.h: Likewise.
2719 * include/bits/stl_tree.h: Likewise.
2720 * include/bits/stl_uninitialized.h: Likewise.
2721 * include/bits/stl_vector.h: Likewise.
2722 * include/ext/rope: Change includes order.
2724 2003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2726 * configure.host (fpos_include_dir): Fix.
2728 2003-07-04 Paolo Carlini <pcarlini@unitus.it>
2730 * include/bits/stl_heap.h: Fully qualify standard
2731 functions with std::, thus avoiding Koenig lookup.
2732 * include/bits/stl_iterator_base_funcs.h: Likewise.
2734 * include/bits/stl_algo.h: Qualify __iterator_category too.
2735 * include/bits/stl_algobase.h: Likewise.
2736 * include/bits/stl_bvector.h: Likewise.
2738 * include/bits/stl_algo.h: Don't qualify the pair type.
2740 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
2742 * include/Makefile.am (target_headers): Add fpos.h
2743 (bits_headers): Remove.
2744 * include/Makefile.in: Regenerate.
2745 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
2746 * configure: Regenerate.
2747 * configure.host: Add fpos_include_dir.
2748 * config/os/gnu-linux/fpos.h: New.
2749 * config/os/generic/fpos.h: Add.
2750 * include/bits/fpos.h: Remove.
2752 * config/io/c_io_stdio.h: Remove fpos_t typedef.
2754 * include/bits/fstream.tcc: Tweaks.
2755 * include/std/std_fstream.h: Same.
2757 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
2758 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
2759 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
2760 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
2761 * testsuite/27_io/fpos/1.cc: New.
2763 2003-07-03 Benjamin Kosnik <bkoz@redhat.com>
2764 Petur Runolfsson <peturr02@ru.is>
2766 * include/std/std_streambuf.h: Remove _M_pos.
2767 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
2768 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
2769 use fread/fwrite instead of read/write.
2770 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
2771 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
2772 before reading again.
2773 * testsuite/27_io/objects/char/6.cc: Tweak.
2775 2003-07-03 David Edelsohn <edelsohn@gnu.org>
2777 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
2778 _GLIBCPP_USE_WCHAR_T.
2780 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2782 * include/bits/basic_string.tcc (_M_replace_aux): Constify
2785 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2787 * include/bits/stl_bvector.h: Fully qualify standard
2788 functions with std::, thus avoiding Koenig lookup.
2789 * include/bits/stl_construct.h: Likewise.
2790 * include/bits/stl_deque.h: Likewise.
2792 2003-07-02 Paolo Carlini <pcarlini@unitus.it>
2794 * testsuite/22_locale/num_put/put/char/7.cc: Include
2795 <testsuite_hooks.h>, tweak.
2796 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
2798 2003-07-01 Phil Edwards <pme@gcc.gnu.org>
2800 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
2801 check* targets, but not libs/programs).
2802 * testsuite/Makefile.in: Regenerate.
2804 2003-07-01 Roger Sayle <roger@eyesopen.com>
2806 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
2807 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
2808 * aclocal.m4: Regenerate.
2809 * configure: Regenerate.
2811 2003-07-01 Benjamin Kosnik <bkoz@redhat.com>
2813 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
2814 * aclocal.m4: Regenerated.
2815 * configure: Regenerated.
2817 2003-07-01 Paolo Carlini <pcarlini@unitus.it>
2820 * include/bits/fstream.tcc (underflow): For encoding() == 0
2821 don't read more than __buflen chars.
2822 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
2823 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
2824 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
2825 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
2827 2003-07-01 Jerry Quinn <jlquinn@optonline.net>
2829 * 22_locale/num_put/put/char/7.cc: New.
2830 * 22_locale/num_put/put/wchar_t/7.cc: New.
2832 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
2834 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
2835 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
2837 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
2839 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
2840 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
2841 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
2842 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
2843 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
2844 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
2845 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
2846 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
2847 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
2848 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
2849 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
2850 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
2851 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
2852 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
2853 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
2854 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
2855 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
2856 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
2857 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
2858 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
2859 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
2860 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
2861 * data/seekoff-1.tst: Remove.
2862 * data/seekoff-1io.tst: New.
2863 * data/seekoff-1out.tst: New.
2864 * data/seekoff-2.tst: Remove.
2865 * data/seekoff-2io.tst: New.
2866 * data/seekoff-2out.tst: New.
2868 * data/seekpos-1.tst: Remove.
2869 * data/seekpos-1io.tst: New.
2870 * data/seekpos-1out.tst: New.
2871 * data/seekpos-2.tst: Remove.
2872 * data/seekpos-2io.tst: New.
2873 * data/seekpos-2out.tst: New.
2874 * data/seekpos.txt: New.
2876 2003-06-30 Jerry Quinn <jlquinn@optonline.net>
2878 * src/locale.cc (__use_cache<numpunct>): Move from here ...
2879 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
2882 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2884 * include/bits/stl_algobase.h: Fully qualify standard
2885 functions with std::, thus avoiding Koenig lookup.
2887 2003-06-30 Doug Gregor <dgregor@apple.com>
2889 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
2890 subscripting empty string.
2892 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
2894 * testsuite/Makefile.am (check-am): Do not override.
2895 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
2896 * testsuite/Makefile.in: Regenerate.
2898 2003-06-30 Doug Gregor <dgregor@apple.com>
2900 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
2901 Don't initialize an insert_iterator with a singular iterator.
2903 2003-06-30 Benjamin Kosnik <bkoz@redhat.com>
2905 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
2906 * aclocal.m4: Regenerate.
2907 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
2908 GLIBCPP_ENABLE_PCH, default to yes.
2909 * configure: Regenerate.
2910 * docs/html/configopts.html: Add --enable-pch.
2912 2003-06-30 Phil Edwards <pme@gcc.gnu.org>
2914 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
2915 (libstdc++-v3-init): Also set LD_RUN_PATH.
2917 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2919 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
2920 from here to filebuf and stringbuf.
2921 (~basic_streambuf()): Don't set _M_mode.
2922 (basic_streambuf()): Don't set _M_mode.
2923 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
2924 (~basic_filebuf()): Clean up.
2925 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
2926 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
2927 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
2928 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
2929 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
2930 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
2931 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
2933 2003-06-30 Paolo Carlini <pcarlini@unitus.it>
2935 * include/std/std_fstream.h (_M_underflow): Remove.
2936 (uflow): Remove, inherited from streambuf.
2937 (underflow): Only declare.
2938 * include/bits/fstream.tcc (_M_underflow): Rename to
2939 underflow, to which is equivalent for __bump == false,
2941 * include/std/std_sstream.h (_M_underflow): Remove.
2942 (uflow): Remove, inherited from streambuf.
2943 (underflow): Only declare.
2944 * include/bits/sstream.tcc (_M_underflow): Rename to
2945 underflow, to which is equivalent for __bump == false,
2948 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2950 * include/bits/stl_algo.h: Fully qualify standard functions
2951 with std::, thus avoiding Koenig lookup.
2953 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2955 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
2956 Improve type correctness-wise.
2957 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
2959 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
2961 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
2964 2003-06-29 Paolo Carlini <pcarlini@unitus.it>
2966 * include/std/std_streambuf.h (uflow): According to
2967 27.5.2.4.3,p16, don't check gptr() < egptr().
2969 2003-06-28 Paolo Carlini <pcarlini@unitus.it>
2972 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
2973 (seekpos): Likewise.
2974 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
2976 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
2979 2003-06-27 Benjamin Kosnik <bkoz@redhat.com>
2981 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
2982 output name to libstdc++-v3-performance.sum.
2983 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
2984 * testsuite/Makefile.in: Regenerate.
2986 2003-06-27 Matthias Klose <doko@debian.org>
2988 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
2989 output of abi-check in libstdc++-v3-abi.sum.
2990 * testsuite/Makefile.in: Regenerate.
2992 2003-06-27 Krister Walfridsson <cato@df.lth.se>
2994 * config/os/bsd/netbsd/ctype_noninline.h
2995 (_C_ctype_): Declare.
2996 (ctype<char>::classic_table): Return _C_ctype_ + 1.
2997 (ctype<char>::ctype): Use classic_table.
2999 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
3000 Nathan C. Myers <ncm-nospam@cantrip.org>
3003 * include/bits/fstream.tcc (_M_underflow): Properly estimate
3004 the worst-case number of external bytes for a given get area.
3005 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
3007 2003-06-27 Paolo Carlini <pcarlini@unitus.it>
3008 Petur Runolfsson <peturr02@ru.is>
3011 * include/bits/fstream.tcc (overflow): Properly estimate the
3012 worst-case number of external bytes for a given put area
3013 (by using codecvt::max_length()).
3014 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
3015 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
3016 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
3017 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
3019 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
3021 * config/linker-map.gnu: Remove ; after __numpunct_cache.
3023 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3025 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
3026 to the imbued locale.
3027 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
3029 (num_put::_M_convert_float): Use.
3031 2003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3032 Jerry Quinn <jlquinn@optonline.net>
3034 * config/linker-map.gnu: Add __numpunct_cache.
3035 * config/locale/gnu/numeric_members.cc
3036 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
3037 all elements for "C" locale.
3038 (numpunct::~numpunct): Delete _M_data.
3039 * config/locale/generic/numeric_members.cc: Same.
3040 * include/bits/basic_ios.tcc
3041 (basic_ios::init): Remove __locale_cache bits.
3042 (basic_ios::_M_cache_locale): Same.
3043 * include/bits/ios_base.h: Same. Tweaks.
3044 * include/bits/locale_classes.h: Tweaks. Reorder classes.
3045 (__use_cache): Make friends with _Impl, locale.
3046 (_Impl::_M_caches): Add.
3047 (_Impl::_M_install_cache): Add.
3048 * include/bits/locale_facets.h (__numpunct_cache): New.
3049 (numpunct): Encapsulate data members in __numpunct_cache member,
3050 _M_data. Adjust virtuals.
3051 (numpunct::numpunct): New ctor for the same.
3052 (__locale_cache_base): Remove.
3053 (__locale_cache): Remove.
3054 * include/bits/locale_facets.tcc (__use_cache): New function,
3056 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
3057 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
3058 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
3059 * src/locale-inst.cc: Same. Add __numpunct_cache.
3060 * src/locale.cc: Tweak inlines.
3061 (__use_cache): Define specializations.
3062 * src/localename.cc: Use global bits.
3063 (_Impl::~Impl): Deal with __numpunct_cache destruction.
3064 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
3065 (_Impl::_M_init_facet): Take into account __numpunct_cache.
3066 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
3067 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3069 2003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
3070 Paolo Carlini <pcarlini@unitus.it>
3072 * testsuite/performance/filebuf_copy.cc: New, testing char
3075 2003-06-26 Paolo Carlini <pcarlini@unitus.it>
3076 Nathan C. Myers <ncm-nospam@cantrip.org>
3078 * include/bits/fstream.tcc (_M_underflow): When the actual
3079 end of file is reached, set 'uncommitted' mode to allow a
3080 next write without an intervening seek (see C++98 27.8.1.1,2
3082 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
3084 2003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
3086 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3087 sputc): Move inline, from here...
3088 * include/std/std_streambuf.h: ... to here.
3090 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
3091 sputbackc, sungetc, sputc): Use __builtin_expect.
3093 2003-06-24 Phil Edwards <pme@gcc.gnu.org>
3095 * docs/doxygen/mainpage.html: Use a useful title.
3097 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3099 * docs/html/documentation.html: Remove assignment info.
3100 * docs/html/17_intro/contribute.html: Edits.
3101 * docs/html/17_intro/libstdc++-assign.tx: Remove.
3103 * docs/html/test.html: Update.
3107 2003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3108 Ulrich Drepper <drepper@redhat.com>
3110 * testsuite/testsuite_performance.h: Tweak mallinfo.
3112 2003-06-24 Paolo Carlini <pcarlini@unitus.it>
3113 Nathan C. Myers <ncm-nospam@cantrip.org>
3115 * include/std/std_fstream.h (_M_filepos): Remove.
3116 (_M_reading, _M_writing): New, encode the various I/O modes:
3117 'read', 'write' and 'uncommitted'.
3118 (sync): If there is something to flush, do it, then go to
3120 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
3121 with three different cases: __off > 0 (upon underflow),
3122 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
3124 (_M_underflow): Don't call overflow, set _M_reading to true
3126 (pbackfail): Set _M_reading to true on pback creation, tweak.
3127 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
3128 set _M_writing to true on success, tweak.
3129 (seekoff): Simplify, set _M_reading, _M_writing to false, call
3130 _M_set_buffer(-1) ('uncommitted').
3131 (open, close, setbuf): Set _M_reading, _M_writing to false and
3132 call _M_set_buffer(-1), tweak.
3133 (basic_filebuf): Don't set _M_buf_unified.
3134 (_M_destroy_internal_buffer): Don't call setg and setp.
3135 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
3136 _M_writing and _M_set_buffer(-1).
3137 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
3138 _M_out_lim, _M_buf_unified): Remove.
3139 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
3140 (setp): Don't set _M_out_lim.
3141 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
3142 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
3143 upon open the mode is 'uncommitted' and therefore the put area
3145 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
3146 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
3147 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
3148 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
3149 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
3150 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
3151 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3152 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
3153 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
3154 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
3155 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
3156 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
3157 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
3158 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
3159 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
3160 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
3161 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
3162 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
3163 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
3164 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
3166 * include/bits/fstream.tcc (showmanyc): Use only the
3167 documented derivation interface to basic_streambuf (gptr(),
3168 setg(), etc.) to work right with user specializations.
3169 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3170 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
3171 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
3173 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
3176 2003-06-23 Loren J. Rittle <ljrittle@acm.org>
3178 * configure.host (freebsd*): Set abi_baseline_pair.
3179 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
3180 (at or near first release) to 3.3.
3181 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
3182 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
3183 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
3185 * include/ext/mt_allocator.h: Portability.
3186 * testsuite/testsuite_performance.h: Likewise.
3188 2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
3190 * docs/html/17_intro/libstdc++-assign.txt: Update address.
3192 * testsuite/performance/ifstream_getline.cc: Fix.
3194 2003-06-23 Doug Gregor <dgregor@apple.com>
3196 * include/bits/boost_concept_check.h: Don't use _D or _R for type
3199 2003-06-22 Paolo Carlini <pcarlini@unitus.it>
3200 Nathan C. Myers <ncm-nospam@cantrip.org>
3202 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
3203 is now used only for filebuf, when _M_buf_unified is true.
3204 epgtr() plays the role of _M_out_lim but it's only updated
3205 upon overflow, underflow, uflow, seekoff/pos.
3206 * include/bits/sstream.tcc (_M_underflow): New, implements
3207 stringbuf::underflow and uflow.
3208 (seekoff, seekpos): Tweak, use _M_update_egptr.
3209 * include/std/std_sstream.h (str): Rewrote, deal correctly
3210 with the new logic, in particular, when pptr() > egptr().
3211 (_M_sync): When __testout && !__testin set all the get area
3212 pointers to the current string end.
3213 (_M_update_egptr): New, internal function updating egptr()
3214 to the actual string end.
3215 (_M_underflow): New, declare.
3216 (underflow): Dispatch to _M_underflow(false).
3217 (uflow): Dispatch to _M_underflow(true).
3219 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
3220 seekpos): Use only the documented derivation interface to
3221 basic_streambuf (gptr(), setg(), etc.) to work right with
3222 user specializations.
3223 * include/std/std_sstream.h (str, _M_sync): Likewise.
3225 2003-06-20 Doug Gregor <dgregor@apple.com>
3227 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
3228 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
3229 dereference end iterator.
3230 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
3231 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
3232 index equal to the length of a string.
3233 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
3234 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
3235 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
3236 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
3237 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
3238 * testsuite/23_containers/list_modifiers.cc: Don't dereference
3239 singular reverse iterator.
3240 * testsuite/23_containers/vector_bool.cc: Don't increment singular
3242 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
3244 2003-06-20 Doug Gregor <dgregor@apple.com>
3246 * include/bits/basic_string.h (basic_string::replace): Dispatch
3247 _InputIterator version based on _Is_integer.
3248 * include/bits/basic_string.tcc (basic_string::replace):
3249 Renamed replace(iterator, iterator, size_type, _CharT) to
3251 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
3252 Test basic_string::assign(_InputIterator, _InputIterator),
3253 which calls basic_string::replace(iterator, iterator,
3254 _Input_iterator, _InputIterator).
3256 2003-06-20 Benjamin Kosnik <bkoz@redhat.com>
3258 * testsuite/testsuite_performance.h (resource_counter): Don't use
3259 mallinfo at the moment.
3261 2003-06-20 Matthias Klose <doko@debian.org>
3263 * configure.host: Set try_cpu to target_cpu for existing
3266 2003-06-19 Andreas Jaeger <aj@suse.de>
3268 * testsuite/Makefile.am (extract_symvers): Revert accidental
3270 * testsuite/Makefile.in: Regenerate.
3272 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
3273 * configure: Regenerated.
3275 2003-06-19 Paolo Carlini <pcarlini@unitus.it>
3277 * include/std/std_sstream.h (_M_sync): Make non virtual.
3279 2003-06-18 Benjamin Kosnik <bkoz@redhat.com>
3281 * testsuite/testsuite_performance.h (time_counter): New.
3282 (resource_counter): New.
3283 (report_performance): New.
3284 (start_counters): New.
3285 (stop_counters): New.
3286 (clear_counters): New.
3287 * testsuite/performance/allocator.cc: Instrument.
3288 * testsuite/performance/cout_insert_int.cc: Same.
3289 * testsuite/performance/complex_norm.cc: Same.
3290 * testsuite/performance/filebuf_sputc.cc: New.
3291 * testsuite/performance/fstream_seek_write.cc: Same.
3292 * testsuite/performance/ifstream_getline.cc: Same.
3293 * testsuite/performance/map_create_fill.cc: Same.
3294 * testsuite/performance/ofstream_insert_float.cc: Same.
3295 * testsuite/performance/ofstream_insert_int.cc: Same.
3296 * testsuite/performance/string_append.cc: Convert.
3297 * scripts/check_performance: New.
3298 * testsuite/Makefile.am (check-performance): New.
3301 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
3302 Benjamin Kosnik <bkoz@redhat.com>
3304 * include/std/std_sstream.h (setbuf): Check __n >= 0.
3305 * include/bits/fstream.tcc (setbuf): Tweak.
3307 2003-06-18 Paolo Carlini <pcarlini@unitus.it>
3309 * include/bits/sstream.tcc (seekoff): We can't seek beyond
3310 _M_out_lim, therefore _M_move_out_cur boils down to simply
3311 updating _M_out_cur.
3312 (seekpos): Likewise, clean up.
3314 2003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
3315 Paolo Carlini <pcarlini@unitus.it>
3317 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
3318 simply equivalent to the unbuffered case (0, 0) as far as
3319 _M_buf_size is concerned.
3321 2003-06-18 Andreas Jaeger <aj@suse.de>
3323 * testsuite/Makefile.am (new-abi-baseline): Create baseline
3325 (baseline_file): Use baseline_dir.
3326 (baseline_dir): New.
3327 (mkinstalldirs): New.
3329 * acinclude.m4: Rename baseline_file to baseline_dir, strip
3330 filename from baseline_dir.
3332 * testsuite/Makefile.in: Regenerated.
3333 * Makefile.in: Regenerated.
3334 * aclocal.m4: Regenerated.
3335 * configure: Regenerated.
3337 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3339 * configure.in: Missed check_survey bit.
3340 * configure: Regenerated.
3342 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3345 * config/abi/extract_symvers: Move to...
3346 * scripts/extract_symvers: ...here.
3347 * mkcheck.in: Move to..
3348 * scripts/check_survey.in: ...here.
3349 * testsuite_flags.in: Move to..
3350 * scripts/testsuite_flags.in: ...here.
3351 * configure.in: Change check and testsuite_flags locations.
3352 * configure: Regenerate.
3353 * testsuite/Makefile.am (current_symbols.txt): Change location.
3354 * testsuite/Makefile.in: Regenerate.
3355 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3356 location of testsuite_flags.
3357 * Makefile.am (check-script): Move..
3358 (check-script-install): Move...
3359 * testsuite/Makefile.am: ... here.
3360 * testsuite/Makefile.in: Regenerate.
3361 * Makefile.in: Regenerate.
3363 2003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3365 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
3367 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
3369 * Makefile.am (check-abi): Move...
3370 (new-abi-baseline): Move...
3371 * testsuite/Makefile.am: ...here.
3372 (new-abi-baseline): Conditionalize.
3373 (check-abi): Conditionalize.
3374 (check-abi-verbose): New.
3375 * Makefile.in: Regenerate.
3376 * testsuite/Makefile.in: Regenerate.
3377 * configure.in: Consolidate testsuite configure bits.
3378 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
3379 * configure: Regenerate.
3380 * aclocal.m4: Regenerate.
3381 * testsuite/abi_check.cc: Add --check-verbose.
3382 Only output detailed information if --check-verbose.
3384 2003-06-16 Andreas Jaeger <aj@suse.de>
3386 * testsuite/abi_check.cc: Create summary report.
3388 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
3390 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
3391 for systems with BUFSIZ != 8192.
3392 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3393 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
3396 2003-06-16 Andreas Jaeger <aj@suse.de>
3398 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
3399 check-abi multilib aware.
3400 * aclocal.m4: Regenerate.
3401 * configure: Regenerate.
3403 2003-06-16 Benjamin Kosnik <bkoz@redhat.com>
3404 Andreas Jaeger <aj@suse.de>
3406 * configure.host: Set x86_64 abi_baseline pair correctly.
3408 2003-06-16 Paolo Carlini <pcarlini@unitus.it>
3410 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
3411 fix for missing seeks between gets and puts into...
3412 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
3413 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
3414 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
3415 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
3416 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
3417 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
3419 2003-06-15 Richard Henderson <rth@redhat.com>
3421 * config/linker-map.gnu: Export virtual function thunks for
3424 2003-06-13 Benjamin Kosnik <bkoz@redhat.com>
3426 * config/abi/i686-pc-linux-gnu: To..
3427 * config/abi/i486-linux-gnu: ...this.
3428 * config/abi/alphaev67-unknown-linux-gnu: To..
3429 * config/abi/alpha-linux-gnu: ...this.
3430 * config/abi/ia64-unknown-linux-gnu: To...
3431 * config/abi/ia64-linux-gnu: ...this.
3432 * config/abi/x86_64-unknown-linux-gnu: To...
3433 * config/abi/x86_64-linux-gnu: ...this.
3434 * config/abi/i386-unknown-freebsd4: To...
3435 * config/abi/i386-freebsd4: ...this.
3436 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
3438 * configure.host: abi_baseline_triplet to abi_baseline_pair.
3439 Simplify cpu bits so that abi_baseline_pair can use the same
3441 * acinclude.m4: Same.
3442 * aclocal.m4: Regenerate.
3443 * configure.in: Can't get enable_abi_check to yes unless native.
3444 * configure: Regenerate.
3446 2003-06-13 Paolo Carlini <pcarlini@unitus.it>
3448 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
3449 fix for missing seeks between gets and puts into...
3450 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
3451 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
3452 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
3453 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
3454 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
3455 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
3456 for missing seeks between gets and puts.
3457 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
3458 * testsuite/data/seekoff-1.tst: New.
3459 * testsuite/data/seekoff-2.tst: New.
3460 * testsuite/data/seekpos-1.tst: New.
3461 * testsuite/data/seekpos-2.tst: New.
3463 2003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
3465 Avoid multi-processor bus contention on increment/decrement-and-
3466 test of the reference count in the empty-string object, by comparing
3467 addresses first, and never touching the reference count of the empty-
3469 * include/bits/basic_string.h:
3470 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
3472 (_Rep::_S_empty_rep()): New accessor.
3473 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
3474 a base class _Rep_base.
3475 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
3476 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
3477 since no longer must increment its refcount.
3478 * include/bits/basic_string.tcc:
3479 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
3480 return immediately. The former might be unnecessary. The latter
3481 prevents begin() and end() from cloning it unnecessarily.
3482 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3483 input_iterator_tag), _S_construct(_InIterator, _InIterator,
3484 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
3485 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
3486 (_M_mutate): Check for the empty string and treat it as shared.
3487 This is necessary here because _M_mutate is sometimes called with
3488 all-zero arguments; in all other uses of _M_is_shared, the test comes
3491 2003-06-12 Benjamin Kosnik <bkoz@redhat.com>
3493 * src/allocator-inst.cc: Explicitly instantiate.
3494 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
3496 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
3498 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
3500 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
3501 * aclocal.m4: Regenerate.
3502 * Makefile.am (SUBDIRS): Remove libio.
3503 * Makefile.in: Regenerate.
3504 * configure.in: Same.
3505 * configure: Regenerate.
3506 * config/io/basic_file_libio.cc: Remove.
3507 * config/io/basic_file_libio.h: Remove.
3508 * config/io/c_io_libio_codecvt.c: Remove.
3509 * config/io/c_io_libio.h: Remove.
3511 * src/Makefile.am: Same.
3512 * src/Makefile.in: Regenerate.
3513 * docs/html/configopts.html: Edits.
3514 * docs/html/explanations.html: Edits.
3516 2003-06-11 Benjamin Kosnik <bkoz@redhat.com>
3518 * include/bits/stl_alloc.h (__debug_alloc): Move out.
3519 (__malloc_alloc): Same.
3520 (__pool_alloc): Same.
3521 (__new_alloc): Same.
3523 * include/bits/allocator.h: ...this.
3524 * include/bits/stl_deque.h: Modify comment.
3525 * include/bits/stl_tree.h: Modify include.
3526 * include/std/std_memory.h: Same.
3527 * include/ext/rope: Same.
3528 * include/ext/slist: Same.
3529 * include/std/std_vector.h: Same.
3530 * include/std/std_stack.h: Same.
3531 * include/std/std_queue.h: Same.
3532 * include/std/std_list.h: Same.
3533 * include/std/std_deque.h: Same.
3534 * include/backward/alloc.h: Same.
3535 * include/ext/debug_allocator.h: New.
3536 * include/ext/malloc_allocator.h: New.
3537 * include/ext/pool_allocator.h: New.
3538 * include/ext/new_allocator.h: New.
3539 * include/bits/pthread_allocimpl.h: Remove.
3540 * include/bits/stl_pthread_alloc.h: Remove.
3541 * include/Makefile.am (ext_headers): Add.
3542 * include/Makefile.in: Regenerate.
3543 * src/stl-inst.cc: Use __gnu_cxx namespace.
3544 * src/stl-inst.cc: Move to...
3545 * src/allocator-inst.cc: Here.
3546 * src/Makefile.am (sources): Update.
3547 * src/Makefile.in: Regenerate.
3548 * config/linker-map.gnu: Remove __pool_alloc bits.
3549 * testsuite/ext/headers.cc: Add.
3550 * testsuite/ext/allocators.cc: Fixup.
3552 2003-06-11 Stefan Olsson <stefan@snon.net>
3553 Ola Rönnerup <fnolis@home.se>
3555 * include/Makefile.am (ext_headers): Add.
3556 * include/Makefile.in: Regenerate.
3557 * include/ext/mt_allocator.h: New file.
3559 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3561 * include/bits/fstream.tcc (close): Clean up a bit.
3563 * include/bits/streambuf.tcc (sbumpc): Clean up a bit.
3565 * include/std/std_fstream.h (_M_destroy_pback): _M_pback_cur_save
3566 - the saved _M_in_cur, that is - cannot be null.
3567 (sync): Constify a variable.
3569 * include/std/std_streambuf.h: Tweak a comment.
3570 (in_avail): Constify a variable.
3572 2003-06-10 Phil Edwards <pme@gcc.gnu.org>
3574 * docs/html/17_intro/BUGS: Update from 2.90.8 snapshot.
3575 * docs/html/17_intro/CHECKLIST: Bring up to date with respect to
3576 correctness of container::iterator typedefs. Fix whitespace.
3577 * docs/html/20_util/howto.html, docs/html/ext/howto.html: Add links
3579 * docs/html/documentation.html: Regenerate.
3581 * include/bits/basic_string.h, include/bits/basic_string.tcc,
3582 include/bits/deque.tcc, include/bits/list.tcc, include/bits/stl_algo.h,
3583 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3584 include/bits/stl_deque.h, include/bits/stl_iterator_base_funcs.h,
3585 include/bits/stl_list.h, include/bits/stl_uninitialized.h,
3586 include/bits/stl_vector.h, include/bits/vector.tcc,
3587 include/ext/algorithm, include/ext/slist, include/std/std_bitset.h:
3588 Change _Iter names to _Iterator, and __pos to __position.
3590 * include/bits/stl_relops.h, include/bits/stl_numeric.h,
3591 include/bits/stl_multiset.h, include/bits/stl_set.h:
3592 Remove emacs markers.
3594 * include/bits/stl_threads.h (_STL_auto_lock): Add __unused__.
3596 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3598 * include/bits/fstream.tcc (overflow): According to
3599 27.5.2.4.5, overflow() returns not_eof(eof()).
3600 * testsuite/27_io/basic_filebuf/overflow/char/2.cc: New.
3601 * testsuite/27_io/basic_filebuf/overflow/char/2-unbuf.cc: Ditto.
3603 2003-06-10 Paolo Carlini <pcarlini@unitus.it>
3605 * include/bits/fstream.tcc (_M_underflow): Check overflow return
3606 value; tweak slightly.
3608 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
3610 * include/bits/fstream.tcc (_M_underflow): Do not special
3611 case the unbuffered case, which really means simply a one char
3613 (basic_filebuf): Initialize _M_buf_size.
3614 (setbuf): Unbuffered means _M_buf_size == 1, since only
3615 _M_buf_size - 1 == 0 chars are going to be used for the
3616 put area and 1 for the get area.
3617 * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf.
3618 (~basic_streambuf): Tweak.
3619 (basic_streambuf): Do not initialize _M_buf_size.
3620 * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf.
3621 (~basic_filebuf): Tweak.
3622 (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the
3623 unbuffered situation (i.e., put area pointers NULL).
3624 * include/bits/streambuf.tcc (sbumpc): Clean up.
3625 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into...
3626 * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New.
3627 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New.
3628 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New.
3629 * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New.
3630 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New.
3631 * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New.
3633 2003-06-09 Phil Edwards <pme@gcc.gnu.org>
3635 * acinclude.m4: Move all AM_CONDITIONAL calls out.
3636 (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL
3638 * configure.in: Centralize AM_CONDITIONALs so that they are always
3639 run. Make use of GLIBCPP_IS_CROSS_COMPILING.
3640 * aclocal.m4, configure: Regenerated.
3642 2003-06-09 Paolo Carlini <pcarlini@unitus.it>
3644 * docs/html/ext/howto.html ('LWG Issues'): Add issue 235.
3646 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org>
3648 * include/bits/stl_iterator.h
3649 (reverse_iterator::reverse_iterator()): Apply DR235: default
3650 constructor default-initializes data member. Instantiated on a
3651 pointer type, the member has to end up equal to zero.
3653 2003-06-06 Benjamin Kosnik <bkoz@redhat.com>
3655 * include/bits/stl_alloc.h: Cleanups.
3656 * include/ext/functional: Same.
3657 * include/ext/hash_map: Same.
3658 * include/ext/hash_set: Same.
3659 * include/ext/iterator: Same.
3660 * include/ext/memory: Same.
3661 * include/ext/numeric: Same.
3662 * include/ext/rb_tree: Same.
3663 * include/ext/ropeimpl.h: Same.
3664 * include/ext/slist: Same.
3665 * include/ext/stdio_filebuf.h: Same.
3666 * include/ext/stdio_sync_filebuf.h: Same.
3667 * include/ext/stl_rope.h: Move to...
3668 * include/ext/rope: ...here.
3669 * include/ext/stl_hash_fun.h: Move to...
3670 * include/ext/hash_fun.h: ...here.
3671 * include/ext/stl_hashtable.h: Move to...
3672 * include/ext/hashtable.h: ...here.
3673 * include/backward/hashtable.h: Reflect new names.
3674 * include/Makefile.am: Same.
3675 * include/Makefile.in: Regenerated.
3677 2003-06-05 Benjamin Kosnik <bkoz@redhat.com>
3680 * include/bits/fstream.tcc (_M_underflow): Fix for unbuffered.
3681 * include/bits/stl_algobase.h: Tweak.
3682 * include/std/std_fstream.h: Move _M_buf_size to...
3683 * include/std/std_streambuf.h: ...here. Modify.
3684 * include/bits/streambuf.tcc: Same.
3685 * testsuite/testsuite_hooks.h: Tweak.
3686 * testsuite/testsuite_io.h (constraint_filebuf): New.
3687 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Split into...
3688 * testsuite/27_io/basic_filebuf/sbumpc/char/1-in.cc: New.
3689 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: New.
3690 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: New.
3691 * testsuite/27_io/basic_filebuf/sbumpc/char/2-in.cc: New.
3692 * testsuite/27_io/basic_filebuf/sbumpc/char/2-io.cc: New.
3693 * testsuite/27_io/basic_filebuf/sbumpc/char/2-out.cc: New.
3694 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Split into...
3695 * testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc: New.
3696 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: New.
3697 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: New.
3698 * testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc: New.
3699 * testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc: New.
3700 * testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc: New.
3701 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Split into...
3702 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: New.
3703 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: New.
3704 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: New.
3705 * testsuite/27_io/basic_filebuf/sgetn/char/2.cc: Split into...
3706 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: New.
3707 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: New.
3708 * testsuite/27_io/basic_filebuf/sgetn/char/2-out.cc: New.
3709 * testsuite/27_io/basic_filebuf/sgetn/char/3.cc: New.
3710 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Split into...
3711 * testsuite/27_io/basic_filebuf/snextc/char/1-in.cc: New.
3712 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: New.
3713 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: New.
3714 * testsuite/27_io/basic_filebuf/snextc/char/2-in.cc: New.
3715 * testsuite/27_io/basic_filebuf/snextc/char/2-io.cc: New.
3716 * testsuite/27_io/basic_filebuf/snextc/char/2-out.cc: New.
3717 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Split into...
3718 * testsuite/27_io/basic_filebuf/sputc/char/1-in.cc: New.
3719 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: New.
3720 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: New.
3721 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Split into...
3722 * testsuite/27_io/basic_filebuf/sputc/char/2-in.cc: New.
3723 * testsuite/27_io/basic_filebuf/sputc/char/2-io.cc: New.
3724 * testsuite/27_io/basic_filebuf/sputc/char/2-out.cc: New.
3725 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Split into...
3726 * testsuite/27_io/basic_filebuf/sputn/char/1-in.cc: New.
3727 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: New.
3728 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: New.
3729 * testsuite/27_io/basic_filebuf/sputn/char/2-in.cc: New.
3730 * testsuite/27_io/basic_filebuf/sputn/char/2-io.cc: New.
3731 * testsuite/27_io/basic_filebuf/sputn/char/2-out.cc: New.
3732 * testsuite/data/sgetc.txt: New.
3733 * testsuite/data/sgetn.txt: New.
3735 2003-06-05 Paolo Carlini <pcarlini@unitus.it>
3738 * include/bits/istream.tcc (operator>>(basic_istream&, _CharT*)):
3739 Deal with width() smaller than zero.
3740 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT),
3741 operator<<(basic_ostream&, char), operator<<(basic_ostream&, const
3742 _CharT*), operator<<(basic_ostream<_CharT, _Traits>&, const
3743 char*), operator<<(basic_ostream<char, _Traits>&, const char*),
3744 operator<<(basic_ostream, const basic_string&)): Likewise.
3746 * testsuite/27_io/basic_istream/extractors_character/char/
3747 (11095-i.cc, 11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3748 * testsuite/27_io/basic_ostream/inserters_character/char/
3749 (11095-oa.cc, 11095-ob.cc, 11095-oc.cc): New.
3750 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/
3751 (11095-od.cc, 11095-oe.cc, 11095-of.cc): New.
3753 2003-06-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3755 * acinclude.m4 (GLIBCPP_CHECK_PCH): Only set glibcpp_PCHFLAGS if
3756 .gch compilation works.
3757 * aclocal.m4, configure: Regenerate.
3758 * testsuite_flags.in (--build-cxx): Use glibcpp_PCHFLAGS to
3759 initialize PCHFLAGS.
3761 2003-06-04 Paolo Carlini <pcarlini@unitus.it>
3763 * include/bits/basic_string.h (_M_fold, insert(iterator, _CharT),
3764 erase(iterator), erase(iterator, iterator), c_str,
3765 compare(const basic_string&)): Constify various variables.
3766 * include/bits/basic_string.tcc (_S_construct(_InIter, _InIter,
3767 const _Alloc&, input_iterator_tag), _M_destroy, _M_mutate,
3768 _S_create, resize, _M_replace, _M_replace_safe,
3769 append(const basic_string&), append(const basic_string&, size_type,
3770 size_type), append(const _CharT*, size_type), append(size_type,
3771 _CharT), operator+(const _CharT*, const basic_string&),
3772 operator+(_CharT, const basic_string&), replace(iterator, iterator,
3773 size_type, _CharT), find(const _CharT*, size_type, size_type),
3774 find(_CharT, size_type), rfind(const _CharT*, size_type, size_type),
3775 rfind(_CharT, size_type), compare(size_type, size_type,
3776 const basic_string&), compare(size_type, size_type,
3777 const basic_string&, size_type, size_type), compare(const _CharT*),
3778 compare(size_type, size_type, const _CharT*), compare(size_type,
3779 size_type, const _CharT*, size_type)): Likewise.
3781 2003-06-03 Benjamin Kosnik <bkoz@redhat.com>
3783 * include/bits/fstream.tcc (pbackfail): Make a rarely taken
3784 'if' branch less obscure.
3786 2003-06-02 Andrew Pinski <pinskia@physics.uc.edu>
3789 * config/cpu/i386/atomicity.h (__exchange_and_add): add intel
3791 * config/cpu/i486/atomicity.h (__exchange_and_add): Likewise.
3792 (__atomic_add): likewise.
3794 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3796 * include/bits/sstream.tcc (pbackfail): Minor clean up and
3797 reformatting, consistent with basic_filebuf::pbackfail.
3799 2003-06-02 Richard Kreckel <Richard.Kreckel@GiNaC.DE>
3802 * config/cpu/mips/atomicity.h: Change __attribute__ ((unused)) to
3803 __attribute__ ((__unused__)).
3804 * config/os/aix/atomicity.h: Likewise.
3806 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3809 * include/bits/fstream.tcc (pbackfail): If the pback buffer
3810 is already active don't try to store in it a second char.
3811 * testsuite/27_io/basic_filebuf/pbackfail/char/9761.cc: New.
3813 * include/bits/fstream.tcc (pbackfail): Add unbuffered bits.
3815 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3817 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: Tweak
3820 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3822 * include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
3823 instead of unnecessarily taking the address of _M_pback.
3824 (xsgetn): Simplify slightly for a single char pback buffer.
3826 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3828 * include/bits/sstream.tcc (seekoff): Remove four unnecessary
3829 variables and two 'if', clean up.
3831 2003-06-02 Paolo Carlini <pcarlini@unitus.it>
3833 * include/bits/sstream.tcc (seekpos): Test against _M_out_lim
3834 not _M_out_end, since the former actually points to the string
3835 end (vs buffer end).
3836 * testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.
3838 2003-05-30 Phil Edwards <pme@gcc.gnu.org>
3840 * docs/doxygen/filter: New file.
3841 * docs/doxygen/filter.sed: New file.
3842 * docs/doxygen/run_doxygen: Add g flag to sed substitutions. Duh.
3843 * docs/doxygen/user.cfg.in (INPUT_FILTER): Point to new filter.
3844 * docs/html/documentation.html: Fix links to doxygen pages.
3846 2003-05-30 Paolo Carlini <pcarlini@unitus.it>
3848 * include/bits/fstream.tcc (_M_convert_to_external): Don't
3849 check for __ilen > 0.
3851 2003-05-29 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
3854 * include/bits/stl_iterator.h (class __normal_iterator):
3855 Don't inherit from iterator, add missing typedefs.
3857 2003-05-29 Paolo Carlini <pcarlini@unitus.it>
3859 * testsuite/24_iterators/reverse_iterator.cc: Split up, as follows.
3860 * testsuite/24_iterators/reverse_iterator/1.cc: New.
3861 * testsuite/24_iterators/reverse_iterator/2.cc: New.
3862 * testsuite/24_iterators/reverse_iterator/3.cc: New, from
3865 2003-05-27 Steve Ellcey <sje@cup.hp.com>
3867 * config/os/hpux/os_defines.h: Define _LIBUNWIND_STD_ABI if we are
3869 * libsupc++/eh_throw.cc: Don't call _Unwind_Resume_or_Rethrow if
3870 _LIBUNWIND_STD_ABI is set.
3872 2003-05-26 Brendan Kehoe <brendan@zen.org>
3874 * include/bits/locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and
3875 make sure the number of digits required after the decimal-point
3876 (if any) is exactly the value returned by frac_digits().
3877 * testsuite/22_locale/money_get/get/char/9.cc: New.
3878 * testsuite/22_locale/money_get/get/wchar_t/9.cc: New.
3880 2003-05-27 Jonathan Wakely <redi@gcc.gnu.org>
3882 * include/std/std_istream.h, include/std/std_ostream.h: Typo in
3885 2003-05-26 Benjamin Kosnik <bkoz@redhat.com>
3888 * include/std/std_fstream.h (basic_filebuf::_M_overflow): Remove.
3889 (_M_pback): No array necessary.
3890 * include/bits/fstream.tcc (basic_filebuf::_M_overflow): Add
3891 unbuffered case, coalesec into ...
3892 (basic_filebuf::overflow): ...this.
3893 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: New.
3894 * testsuite/27_io/basic_filebuf/sputc/char/2.cc: Unbuffered.
3896 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
3898 * libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
3899 libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
3900 libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
3901 libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
3902 libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
3903 libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
3904 libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
3905 libsupc++/eh_unex_handler.cc, libsupc++/exception,
3906 libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
3907 libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
3908 libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
3909 libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
3910 Replace "GNU CC" with "GCC".
3912 * include/backward/new.h: Replace "GNU CC" with "GCC".
3914 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
3917 * configure.in: Switch target to host, don't assume newlib.
3918 (target_alias): Remove.
3919 * configure: Regenerate.
3920 * acinclude.m4: Same.
3921 * aclocal.m4: Regenerate.
3922 * configure.target: Same. Rename to...
3923 * configure.host: This.
3925 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
3927 * include/std/std_fstream.h (_S_pback_size): Remove definition.
3928 (_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
3930 * include/bits/fstream.tcc (_S_pback_size): Remove declaration.
3931 * testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
3932 of _S_pback_size for systems with no COMDAT or weak support.
3933 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
3934 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
3935 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
3936 * testsuite/27_io/basic_fstream/3.cc: Likewise.
3937 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
3938 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
3939 * testsuite/27_io/basic_ofstream/3.cc: Likewise.
3940 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
3941 * testsuite/27_io/basic_streambuf/3.cc: Likewise.
3943 2003-05-22 Paolo Carlini <pcarlini@unitus.it>
3945 * include/bits/fstream.tcc (_M_underflow): Simplify:
3946 !__testout implies _M_filepos == _M_in_end, therefore
3947 the first _M_file.seekoff call is never issued.
3949 2003-05-22 Benjamin Kosnik <bkoz@redhat.com>
3951 * configure.in: Sort cross table.
3952 * configure: Regenerate.
3954 2003-05-22 Brad Spencer <spencer@infointeractive.com>
3957 * configure.in: Add Solaris cross bits.
3959 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
3961 * libstdc++-v3/config/os/mingw32/os_defines.h
3962 (__GTHREAD_HIDE_WIN32API): Define to 1 by defualt.
3963 (NOMINMAX): Define. Update copyright year.
3965 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
3967 * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
3969 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
3971 * docs/html/faq/index.html: Fix typo.
3972 * docs/html/faq/index.txt: Regenerate.
3974 2003-05-21 Jonathan Wakely <redi@gcc.gnu.org>
3976 * docs/html/test.html: Fix markup.
3978 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
3980 * libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
3982 Update copyright year.
3984 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
3986 * testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.
3988 2003-05-20 Paolo Carlini <pcarlini@unitus.it>
3990 * testsuite/27_io/basic_filebuf/close/char/5.cc: New file,
3991 further testing that upon filebuf::close() 27.8.1.1,3 is enforced.
3993 2003-05-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3995 * include/bits/stl_alloc.h (__default_alloc_template::_S_chunk_alloc):
3996 Cast via void* to avoid -Wcast-align warnings.
3997 (__default_alloc_template::_S_refill): Likewise.
3999 2003-05-20 Benjamin Kosnik <bkoz@redhat.com>
4001 * testsuite/README: Move to...
4002 * docs/html/test.html: ...here. Add documentation.
4003 * docs/html/install.html: Move testing bits out..
4004 * docs/html/documentation.html: Add separate testing link.
4005 * testsuite/performance: Add.
4006 * testsuite/performance/allocator.cc: New.
4007 * testsuite/performance/complex_norm.cc: New.
4008 * testsuite/performance/cout_insert_int.cc: New.
4009 * testsuite/performance/fstream_seek_write.cc: New.
4010 * testsuite/performance/ifstream_getline.cc: New.
4011 * testsuite/performance/map_create_fill.cc: New.
4012 * testsuite/performance/ofstream_insert_float.cc: New.
4013 * testsuite/performance/ofstream_insert_int.cc: New.
4014 * testsuite/performance/string_append.cc: New.
4015 * testsuite/lib/libstdc++-v3-dg.exp (v3-compute-tests): Filter
4018 2003-05-20 Gabriel Dos Reis <gdr@integrable-solutions.net>
4021 * include/std/std_complex.h (pow): Tidy.
4023 2003-05-19 Paolo Carlini <pcarlini@unitus.it>
4025 * testsuite/27_io/basic_filebuf/close/char/4.cc: New file, testing
4026 that upon filebuf::close() 27.8.1.1,3 is enforced.
4028 2003-05-15 Loren J. Rittle <ljrittle@acm.org>
4030 * testsuite/thread/pthread4.cc: Further tweak to avoid fini race.
4032 2003-05-15 Paolo Carlini <pcarlini@unitus.it>
4033 Nathan Myers <ncm@cantrip.org>
4035 * include/bits/fstream.tcc (_M_overflow): Rewrote to call
4036 _M_convert_to_external only once (_M_buf_size is now the size of
4037 the put area + 1 for the overflow char of a full area); call
4038 _M_set_buffer instead of _M_set_indeterminate.
4039 (setbuf): Don't accept a buffer smaller than 2 chars.
4040 (_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
4041 instead of _M_set_determinate.
4042 (open): Call _M_set_buffer, instead of _M_set_indeterminate.
4043 (seekoff): Likewise.
4044 * include/ext/stdio_filebuf.h (stdio_filebuf(int,
4045 std::ios_base::openmode, bool, size_t),
4046 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
4048 * include/std/std_fstream.h (_M_set_indeterminate): Remove.
4049 (_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
4051 * include/std/std_streambuf.h: Tweak _M_out_lim comment.
4052 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
4053 into account that, for _M_buf_size == BUFSIZ == 8192, the size of
4054 the put area is now BUFSIZ - 1.
4055 * testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
4056 that now the smallest _M_buf_size is 2 (still fails, for the same
4059 2003-05-14 Loren J. Rittle <ljrittle@acm.org>
4061 * testsuite/thread/pthread4.cc: Tweak test.
4063 2003-05-13 Benjamin Kosnik <bkoz@redhat.com>
4065 * testsuite/27_io/ios_base/cons/copy_neg.cc: Remove
4066 excess errors dg marker, use dg-errors instead.
4067 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
4068 * testsuite/20_util/auto_ptr_neg.cc: Same.
4070 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4072 * include/std/std_fstream.h (basic_filebuf::_M_codecvt): Add
4074 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf):
4075 Initialize _M_codecvt.
4076 (basic_filebuf::imbue): Same.
4077 (basic_filebuf::showmanyc): Use it.
4078 (basic_filebuf::underflow): Use it.
4079 (basic_filebuf::_M_convert_to_external): Use it.
4080 (basic_filebuf::seekoff): Use it.
4081 (basic_filebuf::imbue): Use it, tweaks.
4082 * include/bits/localefwd.h (__check_facet): New.
4083 * include/bits/locale_classes.h: Tweaks.
4084 * include/bits/locale_facets.tcc: Tweaks.
4085 * include/bits/basic_ios.h (basic_ios::_M_check_facet): Remove.
4086 _M_fctype to _M_ctype, _M_fnumput to _M_num_put, _M_fnumget to
4087 _M_num_get. Change _M_check_facet to __check_facet. Tweaks.
4088 * include/bits/basic_ios.tcc: Same.
4089 * include/bits/istream.tcc: Same.
4090 * include/bits/ostream.tcc: Same.
4091 * include/std/std_streambuf.h: Same.
4092 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: New.
4093 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: New.
4094 * testsuite/27_io/basic_filebuf/imbue/wchar_t/1.cc: New.
4095 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: New.
4096 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: New.
4097 * testsuite/27_io/basic_filebuf/imbue/wchar_t/9322.cc: New.
4099 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
4101 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Remove
4102 unnecessary includes and unused string literals.
4103 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
4104 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
4105 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
4106 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
4108 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4110 * include/bits/fstream.tcc (_M_overflow): Remove unbuffered bits.
4112 2003-05-12 Paolo Carlini <pcarlini@unitus.it>
4114 * include/std/std_fstream.h (_M_convert_to_external): Change
4115 to return bool, take two less streamsize parameters.
4116 * include/bits/fstream.tcc (_M_convert_to_external): Tweak
4117 consistently definition.
4118 (_M_overflow): Adjust call points.
4120 2003-05-12 Benjamin Kosnik <bkoz@redhat.com>
4122 * testsuite/27_io/basic_filebuf/underflow/10096.cc: Add weak bits.
4124 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
4126 * testsuite/Makefile.am: Properly quote /both/ LD_RUN_PATHs.
4127 * testsuite/Makefile.in: Regenerate.
4129 2003-05-11 Phil Edwards <pme@gcc.gnu.org>
4131 * testsuite/Makefile.am: Properly quote LD_RUN_PATH.
4132 * testsuite/Makefile.in: Regenerate.
4134 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4137 * include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
4138 (acos): Handle integer argument.
4157 * include/bits/cpp_type_traits.h (__are_same<>): New traits.
4158 (__enable_if): Likewise.
4159 * testsuite/26_numerics/cmath/overloads.C: New test.
4161 2003-05-10 Petur Runolfsson <peturr02@ru.is>
4166 * include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
4167 implementation, based on old wchar_t specialization, add support
4168 for codecvt::in() return value of codecvt_base::noconv, remove
4169 _M_file.sys_ungetc() call.
4170 * include/std/std_fstream.h (basic_file::underflow,
4171 basic_file::uflow, basic_file::_M_underflow): Remove
4172 specialization declarations, call _M_underflow from generic versions
4173 of underflow and uflow.
4174 * src/fstream.cc (basic_file::underflow, basic_file::uflow,
4175 basic_file::_M_underflow): Remove specializations.
4176 * src/Makefile.am (sources): Remove fstream.cc.
4177 * src/Makefile.in: Regenerated.
4178 * testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
4179 * testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
4180 * testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
4181 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
4183 2003-05-10 Benjamin Kosnik <bkoz@redhat.com>
4185 * include/ext/stdio_filebuf.h (__stdio_filebuf): Remove stack
4187 * config/io/basic_file_stdio.h (__basic_file::xsgetn): Remove
4189 (__basic_file::xsputn): Same.
4190 (__basic_file::seekoff): Same.
4191 (__basic_file::seekpos): Same.
4192 (__basic_file::showmanyc): Same.
4193 * config/io/basic_file_stdio.cc: Same.
4194 * include/std/std_fstream.h: Same.
4195 * include/bits/fstream.tcc: Same.
4196 * src/fstream.cc: Same.
4197 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc (test05): Tidy.
4199 2003-05-10 Petur Runolfsson <peturr02@ru.is>
4204 * include/ext/stdio_sync_filebuf.h: New file.
4205 (basic_stdiobuf): New.
4206 * include/Makefile.am (ext_headers): Add ext/stdio_sync_filebuf.h
4207 * include/Makefile.in: Regenerate.
4208 * include/bits/ios_base.h (Init::_S_create_buffers,
4209 Init::_S_destroy_buffers): Remove declarations.
4210 * src/globals.cc (buf_cout_sync, buf_cin_sync, buf_cerr_sync,
4211 buf_wcout_sync, buf_wcin_sync, buf_wcerr_sync): Define.
4212 * src/ios.cc (Init::_S_create_buffers,
4213 Init::_S_destroy_buffers): Remove.
4214 (Init::Init): Create and use syncronized buffers.
4215 (ios_base::sync_with_stdio): Destroy syncronized buffers,
4216 create and install unsyncronized buffers.
4217 * testsuite/27_io/objects/char/10.cc: New test.
4218 * testsuite/27_io/objects/char/9.cc: New test.
4219 * testsuite/27_io/objects/char/9661-1.cc: New test.
4220 * testsuite/27_io/objects/char/9661-2_xin.cc: New test.
4221 * testsuite/27_io/objects/char/9661-2_xin.in: New.
4222 * testsuite/27_io/objects/wchar_t/1.cc: New test.
4223 * testsuite/27_io/objects/wchar_t/10.cc: New test.
4224 * testsuite/27_io/objects/wchar_t/2.cc: New test.
4225 * testsuite/27_io/objects/wchar_t/2523-1_xin.cc: New test.
4226 * testsuite/27_io/objects/wchar_t/2523-1_xin.in: New.
4227 * testsuite/27_io/objects/wchar_t/2523-2_xin.cc: New test.
4228 * testsuite/27_io/objects/wchar_t/2523-2_xin.in: New.
4229 * testsuite/27_io/objects/wchar_t/3045.cc: New test.
4230 * testsuite/27_io/objects/wchar_t/3647.cc: New test.
4231 * testsuite/27_io/objects/wchar_t/3_xin.cc: New test.
4232 * testsuite/27_io/objects/wchar_t/3_xin.in: New.
4233 * testsuite/27_io/objects/wchar_t/4_xin.cc: New test.
4234 * testsuite/27_io/objects/wchar_t/4_xin.in: New.
4235 * testsuite/27_io/objects/wchar_t/5.cc: New test.
4236 * testsuite/27_io/objects/wchar_t/5268.cc: New test.
4237 * testsuite/27_io/objects/wchar_t/5280_xin.cc: New test.
4238 * testsuite/27_io/objects/wchar_t/5280_xin.in: New.
4239 * testsuite/27_io/objects/wchar_t/6.cc: New test.
4240 * testsuite/27_io/objects/wchar_t/6548_xin.cc: New test.
4241 * testsuite/27_io/objects/wchar_t/6548_xin.in: New.
4242 * testsuite/27_io/objects/wchar_t/6648-1_xin.cc: New test.
4243 * testsuite/27_io/objects/wchar_t/6648-1_xin.in: New.
4244 * testsuite/27_io/objects/wchar_t/6648-2_xin.cc: New test.
4245 * testsuite/27_io/objects/wchar_t/6648-2_xin.in: New.
4246 * testsuite/27_io/objects/wchar_t/7.cc: New test.
4247 * testsuite/27_io/objects/wchar_t/7744_xin.cc: New test.
4248 * testsuite/27_io/objects/wchar_t/7744_xin.in: New.
4249 * testsuite/27_io/objects/wchar_t/8.cc: New test.
4250 * testsuite/27_io/objects/wchar_t/9_xin.cc: New test.
4251 * testsuite/27_io/objects/wchar_t/9_xin.in: New.
4252 * testsuite/27_io/objects/wchar_t/9520.cc: New test.
4253 * testsuite/27_io/objects/wchar_t/9661-1.cc: New test.
4254 * testsuite/27_io/objects/wchar_t/9661-2_xin.cc: New test.
4255 * testsuite/27_io/objects/wchar_t/9661-2_xin.in: New.
4256 * testsuite/27_io/objects/wchar_t/9662.cc: New test.
4257 * testsuite/ext/stdiobuf_char.cc: New test.
4258 * testsuite/ext/stdiobuf_wchar_t.cc: New test.
4260 2003-05-10 Paolo Carlini <pcarlini@unitus.it>
4262 * testsuite/27_io/basic_filebuf/close/char/3.cc: Remove
4263 unnecessary includes and unused string literals.
4264 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
4266 2003-05-08 Paolo Carlini <pcarlini@unitus.it>
4268 * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
4270 2003-05-07 Richard Henderson <rth@redhat.com>
4273 * libsupc++/eh_catch.cc (__cxa_begin_catch): Handle foreign exceptions.
4274 (__cxa_end_catch): Likewise.
4275 * libsupc++/eh_throw.cc (__cxa_rethrow): Likewise. Use
4276 _Unwind_Resume_or_Rethrow.
4277 * libsupc++/eh_personality.cc (empty_exception_spec): New.
4278 (PERSONALITY_FUNCTION): Don't ignore terminate or catch-all
4279 for _UA_FORCE_UNWIND. Honor empty filter spec for foreign
4280 exceptions. Don't push terminate/unexpected to cxa functions.
4281 (__cxa_call_unexpected): Remove foreign exception fixmes.
4283 2003-05-07 Benjamin Kosnik <bkoz@redhat.com>
4285 * testsuite/27_io/ios_base/cons: New.
4286 * testsuite/27_io/ios_base/cons/assign_neg.cc: New.
4287 * testsuite/27_io/ios_base/cons/copy_neg.cc: New.
4289 2003-05-07 Paolo Carlini <pcarlini@unitus.it>
4291 * include/std/std_fstream.h (_M_is_indeterminate): Remove.
4293 (basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
4294 there is no buffer or __testget == !__testinit.
4297 (basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
4298 automatically sets, if appropriate, _M_out_cur == _M_in_cur.
4300 * include/std/std_fstream.h (_M_destroy_pback): Don't set
4301 unnecessarily _M_pback_cur_save and _M_pback_end_save.
4303 * include/std/std_fstream.h (_M_set_determinate): Minor tweak.
4305 * include/std/std_sstream.h (_M_sync): Minor tweak.
4307 * include/bits/fstream.tcc (close): No need to call
4308 _M_destroy_pback, setting _M_pback_init to false suffices
4311 2003-05-06 Benjamin Kosnik <bkoz@redhat.com>
4313 * include/bits/stl_algo.h: Enums as _S_.
4314 * include/bits/stl_tree.h: Same.
4315 * include/bits/stl_bvector.h: Same.
4316 * include/bits/ios_base.h: Same.
4317 * include/bits/stl_alloc.h: Same.
4318 * include/ext/stl_hashtable.h: Same.
4319 * src/ios.cc: And here.
4321 * include/std/std_sstream.h: Replace _M_really_sync to _M_sync.
4322 * include/bits/sstream.tcc: Same.
4324 * include/bits/basic_ios.h: Correct spacing for '< ctype'.
4326 * include/bits/locale_facets.tcc: Replace __temp to __tmp.
4328 * include/bits/locale_facets.h (__num_base): Remove protected.
4329 Use _S_[io]* names for enumerations.
4330 (_S_format_int): Remove.
4331 * include/bits/locale_facets.tcc: Same.
4332 * src/locale.cc: Same.
4334 * include/std/std_sstream.h (stringbuf::str): Tweak formatting.
4336 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
4338 * docs/html/faq/index.html (3.10): Add note about mips atomicity.h.
4339 * docs/html/faq/index.txt: Regenerated.
4341 2003-05-06 Michael Ritzert <Ritzert@t-online.de>
4342 Matt Kraai <kraai@alumni.cmu.edu>
4344 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): Tweak.
4347 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
4349 * configure.target (mips*): Use the generic atomicity.h by default.
4351 2003-05-05 Loren J. Rittle <ljrittle@acm.org>
4352 (Inspired by an alternate patch from Danny Smith.)
4354 * include/bits/stl_threads.h (_Atomic_swap): Kill it...
4355 (_Swap_lock_struct<>): ...and the horse it rode in on.
4356 * src/globals.cc (_Swap_lock_struct<>): Likewise.
4357 * include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
4358 member to support...
4359 * include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
4360 visibility rules related to POSIX threads.
4361 * testsuite/thread/pthread7-rope.cc: New test.
4363 2003-05-04 Paolo Carlini <pcarlini@unitus.it>
4365 * testsuite/21_strings/basic_string/find/char/3.cc: New
4366 file, testing basic_string<char>::find_first_not_of.
4367 * testsuite/21_strings/basic_string/find/wchar_t/3.cc:
4368 Likewise for basic_string<wchar_t>.
4370 2003-05-03 Loren J. Rittle <ljrittle@acm.org>
4372 * testsuite/thread/pthread1.cc: Remove special case for FreeBSD.
4374 2003-05-02 Benjamin Kosnik <bkoz@redhat.com>
4376 * include/Makefile.am (CLEANFILES): Remove PCH files in target
4378 * include/Makefile.in: Regenerate.
4380 2003-05-02 Paolo Carlini <pcarlini@unitus.it>
4382 * include/std/std_sstream.h (str()): Tidy.
4384 2003-05-02 Nathan Myers <ncm@cantrip.org>
4385 Paolo Carlini <pcarlini@unitus.it>
4387 * include/bits/streambuf.tcc (__copy_streambufs): Rewrote.
4389 2003-05-02 Jonathan Wakely <redi@gcc.gnu.org>
4391 * include/bits/basic_string.h (swap): Remove redundant template
4392 parameters from declaration of non-template member function.
4394 2003-05-01 Phil Edwards <pme@gcc.gnu.org>
4396 * acconfig.h (_GLIBCPP_USE_NLS): New symbol.
4397 * configure.in: Move libintl.h header test...
4398 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): ...to here. Gather all
4399 the NLS-related test results into one symbol.
4400 * src/functexcept.cc: Use it here.
4401 * aclocal.m4, config.h.in, configure: Regenerated.
4403 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4405 * include/bits/sstream.tcc (overflow): Instead of calling
4406 str(), then _M_string.reserve, thus copying the contents
4407 of the current buffer two times, just copy the latter in
4408 a temporary, then use the 'swap trick'.
4410 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4412 * include/std/std_sstream.h (str()): Revert the best of the
4413 previous 'improvement', incorrect due to the COW nature of
4414 v3 basic_string; simplify.
4416 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4418 * include/bits/streambuf.tcc (__copy_streambufs): Adjust the
4419 type of __avail to ptrdiff_t to avoid signed-unsigned warning.
4421 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
4423 * testsuite/abi_check.cc (check_version): Update known versions.
4424 Check added symbols for version_name != base version. Add missing
4425 symbols to incompatible list.
4427 2003-05-01 Benjamin Kosnik <bkoz@redhat.com>
4429 * acinclude.m4 (GLIBCPP_EXPORT_FLAGS): Remove -Winline.
4430 * aclocal.m4: Regenerated.
4431 * configure: Regenerated.
4433 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4435 * include/bits/streambuf.tcc (basic_streambuf::xsgetn):
4436 Const-ify some variables.
4437 (basic_streambuf::xsputn): Likewise; change the type of some
4438 variables to size_t.
4439 (__copy_streambufs): Change some variables to size_t.
4441 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4443 * include/std/std_sstream.h (str()): Avoid constructing
4444 a basic_string temporary not only when it would turn out
4445 to be zero-sized but also when identical to the current
4448 2003-05-01 Paolo Carlini <pcarlini@unitus.it>
4450 * include/ext/stdio_filebuf.h
4451 (stdio_filebuf(int, std::ios_base::openmode, bool, size_t),
4452 stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t)):
4453 Shorten a bit (-10 lines) by factoring out some code.
4455 2003-04-30 Phil Edwards <pme@gcc.gnu.org>
4457 * acinclude.m4: Add bit missing from previous patch.
4458 * aclocal.m4, configure: Regenerated.
4460 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
4462 * docs/doxygen/mainpage.html: Bring up to date.
4463 * docs/doxygen/run_doxygen: Cosmetic tweaks. Work around a bug
4465 * docs/doxygen/user.cfg.in: Scanning the precompiled headers
4466 breaks everything. Don't scan them.
4467 * docs/html/documentation.html: Point to "Write after approval"
4470 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
4472 * acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Search for gettext outside
4473 of libc if message translations are being used. Fix info text in
4474 xieee_1003.1-2001 case.
4475 * aclocal.m4, configure: Regenerate.
4477 2003-04-29 Joel Sherrill <joel.sherrill@OARcorp.com>
4478 Loren J. Rittle <ljrittle@acm.org>
4479 Martin v. Loewis <martin@v.loewis.de>
4481 * config/cpu/i386/atomicity.h: New file.
4483 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
4485 * include/bits/fstream.tcc (open): Change to single return.
4487 2003-04-29 Paolo Carlini <pcarlini@unitus.it>
4489 * include/std/std_sstream.h (underflow): Change to single return.
4491 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4493 * include/std/std_streambuf.h (_M_buf): is currently
4494 used only for basic_filebuf, therefore move it there.
4495 (basic_streambuf(), ~basic_streambuf()): Adjust.
4496 * include/std/std_fstream.h (_M_buf): Moved here.
4497 * include/std/std_sstream.h (setbuf): Don't set _M_buf,
4498 is actually redundant for basic_stringbuf.
4499 (_M_really_sync): Likewise.
4500 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4501 * include/bits/sstream.tcc (seekoff): Adjust.
4503 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4505 * src/localename.cc: Standardize exception strings.
4506 * src/locale.cc: Same.
4508 * include/bits/basic_string.tcc: Same.
4509 * include/bits/basic_ios.tcc: Same.
4510 * include/std/std_bitset.h: Same.
4511 * include/ext/ropeimpl.h: Same.
4512 * include/bits/stl_vector.h: Same.
4513 * include/bits/stl_deque.h: Same.
4514 * include/bits/stl_bvector.h: Same.
4515 * config/locale/generic/c_locale.cc: Same.
4516 * config/locale/gnu/c_locale.cc: Same.
4517 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
4519 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify.
4521 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4523 * include/std/std_streambuf.h (_M_buf_size): is currently
4524 used only for basic_filebuf, therefore move it there.
4525 (basic_streambuf(), ~basic_streambuf()): Adjust.
4526 * include/std/std_fstream.h (_M_buf_size): Moved here.
4527 * include/bits/fstream.tcc (basic_filebuf()): Adjust.
4529 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4531 * include/bits/streambuf.tcc (__copy_streambufs): Don't use
4532 _M_buf_size (synced input is now correctly dealt with
4533 elsewhere); when the output buffer is full don't fall back
4534 to a snextc-sputc loop, call overflow instead.
4536 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
4538 * include/bits/sstream.tcc (pbackfail): Shorten a bit (6 lines)
4539 the innermost 'if' by factoring out some code.
4541 2003-04-28 Phil Edwards <pme@gcc.gnu.org>
4543 * configure.in: Test for libintl.h.
4544 * include/bits/c++config: Define __N for everybody.
4545 * include/bits/basic_string.h, include/bits/stl_bvector.h,
4546 include/bits/stl_deque.h, include/bits/stl_vector.h,
4547 include/std/std_bitset.h: Wrap all __throw* text with __N.
4548 * po/Makefile.am (pot): New rule, mostly working.
4549 * src/functexcept.cc: Call gettext on all __throw* arguments when
4550 -fexceptions is in effect.
4551 * po/Makefile.in, config.h.in, configure: Regenerate.
4553 2003-04-28 Petur Runolfsson <peturr02@ru.is>
4556 * include/bits/ios_base.h (Init::_S_ios_create,
4557 Init::_S_ios_destroy): Remove declarations.
4558 (Init::_S_create_buffers,
4559 Init::_S_destroy_buffers): Declare
4560 * src/ios.cc (Init::_S_ios_create): Remove
4561 (Init::_S_create_buffers): Create buffers and add to streams.
4562 (Init::_S_ios_destroy): Rename to...
4563 (Init::_S_destroy_buffers): this.
4564 (Init::Init): Only construct streams once.
4565 (Init::~Init): Flush streams, don't destroy them.
4566 (ios_base::sync_with_stdio): Don't destroy streams, only buffers.
4567 * testsuite/27_io/ios_base/sync_with_stdio/9523.cc: New test.
4568 * testsuite/27_io/objects/char/5.cc: New test.
4569 * testsuite/27_io/objects/char/5268.cc: Avoid undefined behavior.
4570 * testsuite/27_io/objects/char/6.cc: New test.
4571 * testsuite/27_io/objects/char/7.cc: New test.
4573 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4575 * testsuite/27_io/objects/char/8.cc: New test.
4577 2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
4579 * testsuite/22_locale/codecvt/unicode/char.cc: Remove bom usage.
4580 * testsuite/22_locale/codecvt/unicode/wchar_t.cc: Same.
4582 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
4584 * include/std/std_fstream.h (basic_filebuf): _M_pback_destroy to
4585 _M_destroy_pback. _M_pback_create to
4586 _M_create_pback. _M_underflow_common to
4587 _M_underflow. _M_really_overflow to _M_overflow.
4588 * include/bits/fstream.tcc: Same.
4589 * src/fstream.cc: Same.
4590 * include/std/std_streambuf.h (basic_streambuf): _M_in_cur_move to
4591 _M_move_in_cur. _M_out_cur_move to _M_move_out_cur.
4592 * include/bits/streambuf.tcc: Same.
4593 * include/bits/fstream.tcc: Same.
4594 * include/bits/sstream.tcc: Same.
4596 2003-04-27 Benjamin Kosnik <bkoz@redhat.com>
4598 * include/bits/locale_classes.h (locale::_Impl): Change _M_names
4599 from fixed size array.
4600 (locale): Change _S_categories as well.
4602 * include/bits/locale_facets.tcc: Tweak.
4603 * config/locale/gnu/c_locale.cc: Assign _S_categories.
4604 * config/locale/generic/c_locale.cc: Same.
4605 * src/locale.cc: Tweak.
4606 * src/globals.cc: Change facet_name to name_vec, add names_c.
4607 * src/localename.cc: Use them.
4608 (locale::_Impl::~_Impl): Destroy _M_names.
4609 (locale::_Impl::_Impl): Create _M_names.
4611 2003-04-27 Andreas Schwab <schwab@suse.de>
4613 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
4614 (__enc_traits): Use __ibom and __ebom instead of ignoring them.
4616 2003-04-27 Nathan Myers <ncm@cantrip.org>
4618 Move some basic_string members out of line because
4619 they are too big to reasonably be inline.
4620 * include/bits/basic_string.h
4621 (assign(const basic_string&, size_type, size_type),
4622 assign(const _CharT*, size_type),
4623 insert(size_type, const basic_string&, size_type, size_type),
4624 insert(size_type, const _CharT*, size_type),
4625 replace(size_type, size_type, const _CharT*, size_type)):
4626 Move from here to...
4627 * include/bits/basic_string.tcc: ...here.
4629 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4631 * include/bits/fstream.tcc (pbackfail): Shorten a bit (10 lines)
4632 the innermost 'if' by factoring out some code.
4634 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4636 * include/bits/streambuf.tcc (__copy_streambufs): Don't
4637 use in_avail(), simplify.
4639 2003-04-26 Paolo Carlini <pcarlini@unitus.it>
4641 * include/std/std_sstream.h (setbuf): don't set _M_buf_size,
4642 in basic_stringbuf it's unused.
4644 * include/std/std_sstream.h (underflow): consistently use
4645 _M_in_cur, not gptr().
4647 2003-04-25 Ranjit Mathew <rmathew@hotmail.com>
4648 Phil Edwards <pme@gcc.gnu.org>
4650 * testsuite_flags.in: Guard against the possibility
4651 of having "xgcc" as a part of a folder name in the
4652 path to the GCC build folder.
4653 * testsuite/Makefile.am: Likewise.
4654 * testsuite/Makefile.in: Regenerated.
4656 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
4659 * include/std/std_fstream.h (basic_filebuf::is_open): Add throw()
4660 exception specifications.
4661 (basic_filebuf::close): Same.
4662 (basic_filebuf::_M_pback_destroy): Same.
4663 (basic_filebuf::_M_destroy_internal_buffer): Same.
4664 (basic_filebuf): Remove __res_type typedef.
4665 * src/fstream.cc: Same.
4666 * include/bits/fstream.tcc
4667 (basic_filebuf::_M_convert_to_external): Simplify.
4668 (basic_filebuf::seekoff): Use has_facet before use_facet.
4669 (basic_filebuf::close): Add exception specification of throw().
4670 * testsuite/27_io/basic_filebuf/cons: New.
4671 * testsuite/27_io/basic_filebuf/cons/wchar_t: New.
4672 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: New.
4673 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: New.
4674 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: New.
4676 2003-04-25 Benjamin Kosnik <bkoz@redhat.com>
4678 * include/bits/locale_classes.h
4679 (locale::_S_extra_categories_size): Remove.
4680 * src/locale.cc: Remove _S_extra_categories_size.
4681 * src/localename.cc: Same.
4682 * config/locale/gnu/c_locale.cc: Same.
4683 * config/locale/generic/c_locale.cc: Same.
4685 2003-04-24 Richard Sandiford <rsandifo@redhat.com>
4687 * src/localename.cc (__gnu_cxx::facet_vec): Correct types.
4689 2003-04-24 Phil Edwards <pme@gcc.gnu.org>
4691 * docs/html/17_intro/howto.html: Update some links.
4692 * docs/html/18_support/howto.html: Link doxygen numeric_limits notes.
4693 * docs/html/27_io/howto.html: Link doxygen stdio_filebuf notes.
4694 * docs/html/ext/howto.html: Link to demangler notes and API.
4695 * docs/html/faq/index.html: Remove trailing whitespace.
4696 (1.4, 2.4, 3.8, 4.1): Bring up to date.
4697 (5.6): Change to a bulleted list.
4699 * docs/html/faq/index.txt, docs/html/documentation.html,
4700 docs/html/17_intro/porting.html: Regenerate.
4702 2003-04-23 Paolo Carlini <pcarlini@unitus.it>
4704 * testsuite/27_io/basic_filebuf/3.cc: _S_pback_size now
4705 belongs to basic_filebuf.
4706 * testsuite/27_io/basic_fstream/3.cc: Likewise.
4707 * testsuite/27_io/basic_ifstream/3.cc: Likewise.
4708 * testsuite/27_io/basic_ios/3.cc: Remove _S_pback_size
4709 instantiation (now belongs to basic_filebuf).
4710 * testsuite/27_io/basic_iostream/3.cc: Likewise.
4711 * testsuite/27_io/basic_istream/3.cc: Likewise.
4712 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
4713 _S_pback_size now belongs to basic_filebuf.
4714 * testsuite/27_io/basic_istringstream/3.cc: Remove _S_pback_size
4715 instantiation (now belongs to basic_filebuf).
4716 * testsuite/27_io/basic_ofstream/3.cc: _S_pback_size now
4717 belongs to basic_filebuf.
4718 * testsuite/27_io/basic_ostream/3.cc: Remove _S_pback_size
4719 instantiation (now belongs to basic_filebuf).
4720 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc:
4721 _S_pback_size now belongs to basic_filebuf.
4722 * testsuite/27_io/basic_ostringstream/3.cc: Remove _S_pback_size
4723 instantiation (now belongs to basic_filebuf).
4724 * testsuite/27_io/basic_streambuf/3.cc: _S_pback_size now belongs
4726 * testsuite/27_io/basic_stringbuf/3.cc: Remove _S_pback_size
4727 instantiation (now belongs to basic_filebuf).
4728 * testsuite/27_io/basic_stringstream/3.cc: Likewise.
4730 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
4732 * configure.in: Move GLIBCPP_CHECK_PCH before native/cross conditions.
4733 * configure: Regenerated.
4735 2003-04-23 Benjamin Kosnik <bkoz@redhat.com>
4737 * config/locale/generic/c_locale.h (__convert_from_v): Use
4740 2003-04-23 Phil Edwards <pme@gcc.gnu.org>
4742 * docs/html/ext/howto.html ('LWG Issues'): Add issue 60, partial
4743 implementation only.
4744 * include/bits/istream.tcc (putback, unget, sync, tellg, seekg):
4745 Comment and change to comply with DR 60 and the effect on gcount().
4746 * include/std/std_istream.h: Update comments.
4747 * testsuite/27_io/basic_istream/putback/char/1.cc (test01): Add
4748 comments about reasons for tests. Test sync() against gcount().
4749 * testsuite/27_io/basic_istream/seekg/char/2.cc: New file, test
4750 for effect on gcount().
4751 * testsuite/27_io/basic_istream/tellg/char/2.cc: New file, test
4752 for effect on gcount().
4754 2003-04-22 Loren J. Rittle <ljrittle@acm.org>
4756 * testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
4759 2003-04-22 Paolo Carlini <pcarlini@unitus.it>
4761 * include/std/std_streambuf.h (_S_pback_size, _M_pback,
4762 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4763 _M_pback_create(), _M_pback_destroy()): Move to basic_filebuf.
4764 (basic_streambuf::basic_streambuf()): Adjust.
4765 * include/std/std_fstream.h (_S_pback_size, _M_pback,
4766 _M_pback_cur_save, _M_pback_end_save, _M_pback_init,
4767 _M_pback_create(), _M_pback_destroy()): Moved here
4768 from basic_streambuf.
4769 * include/bits/fstream.tcc (basic_filebuf::basic_filebuf()):
4771 (basic_filebuf::_S_pback_size): Add declaration.
4772 * include/bits/streambuf.tcc (basic_streambuf::_S_pback_size):
4775 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4777 Consistently use _M_in_beg instead of eback(), _M_in_cur
4778 instead of gptr(), and so on.
4779 * include/bits/fstream.tcc (pbackfail, imbue): Here.
4780 * include/bits/sstream.tcc (pbackfail, seekoff, seekpos): Ditto.
4781 * include/bits/streambuf.tcc (sbumpc, sputbackc,
4782 __copy_streambufs): Ditto.
4783 * include/std/std_streambuf.h (sgetc): Ditto.
4785 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4787 * include/bits/sstream.tcc (pbackfail, overflow):
4790 2003-04-21 Paolo Carlini <pcarlini@unitus.it>
4792 * include/std/std_streambuf.h (uflow()): It's used only by
4793 basic_stringbuf (i.e., basic_filebuf provide its own uflow()),
4794 therefore do not consider the _M_buf_unified == true case.
4796 * include/std/std_streambuf.h (sgetc()): Restore __ret variable.
4798 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
4800 * docs/html/ext/howto.html ('LWG Issues'):
4801 Add issues 19, 90, 171, 231, 271.
4803 2003-04-20 Paolo Carlini <pcarlini@unitus.it>
4805 * include/bits/sstream.tcc (pbackfail): Remove redundant
4806 NULL pointer check from test involving _M_in_*.
4807 (overflow, seekoff, seekpos): Const qualify bool variables.
4808 * include/std/std_sstream.h (underflow): Remove redundant
4809 NULL pointer check from test involving _M_in_*.
4810 (_M_really_sync): Const qualify bool variables.
4811 * src/fstream.cc (_M_underflow_common): Remove redundant
4812 NULL pointer check from test involving _M_in_*, const qualify
4815 * include/std/std_streambuf.h (sgetc): Remove redundant
4818 2003-04-18 Paolo Carlini <pcarlini@unitus.it>
4820 According to 5.9 para 2 (second bullet) for pointers p, q
4821 pointing to the same type, with p == 0 and q == 0, (p < q)
4823 * include/bits/fstream.tcc (close, overflow, _M_really_overflow,
4824 seekoff): Remove redundant NULL pointer checks from tests
4825 involving _M_out_* and _M_in_*, const qualify bool variables.
4826 (showmanyc, pbackfail, _M_convert_to_external, imbue): Const
4827 qualify bool variables.
4828 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc, sputc):
4829 Remove redundant NULL pointer checks from tests involving
4830 _M_out_* and _M_in_*, const qualify bool variables.
4831 * include/std/std_fstream.h (sync): Likewise.
4832 (_M_is_indeterminate): Const qualify bool variables.
4833 * include/std/std_streambuf.h (sgetc, uflow): Remove redundant
4834 NULL pointer checks from tests involving _M_out_* and _M_in_*,
4835 const qualify bool variables.
4836 (_M_in_cur_move, _M_out_cur_move, uflow): Const qualify bool
4839 2003-04-18 Loren J. Rittle <ljrittle@acm.org>
4841 * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
4842 C99 FP macros, if actually captured.
4844 * docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
4845 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4846 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4847 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4848 * config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
4850 (_GLIBCPP_USE_C99_DYNAMIC): New macro.
4851 (_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
4852 (_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
4853 * include/c_std/std_cstdlib.h: Use new macros.
4854 * include/c_std/std_cstdio.h: Use new macros.
4855 * include/c_std/std_cwchar.h: Use new macros.
4857 2003-04-17 Benjamin Kosnik <bkoz@redhat.com>
4860 * include/bits/ostream.tcc: Catch all exceptions for formatted
4861 output, instead of std::exception and derivatives.
4862 * include/bits/istream.tcc: Same.
4863 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/9555-oa.cc:
4864 * testsuite/27_io/basic_ostream/inserters_character/char/9555-oc.cc:
4865 * testsuite/27_io/basic_ostream/inserters_other/char/9555-oo.cc:
4866 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9555-ia.cc:
4867 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
4868 * testsuite/27_io/basic_istream/extractors_other/char/9555-io.cc:
4871 2003-04-17 Phil Edwards <pme@gcc.gnu.org>
4873 * include/bits/c++config: Minor cosmetic tweaks.
4875 2003-04-17 Loren J. Rittle <ljrittle@acm.org>
4877 * testsuite_flags.in (PCHFLAGS): Find PCH in new home.
4878 * include/Makefile.am (pch_input): Find in ${target_builddir}.
4879 (pch_output): Rename to...
4880 (pch_output_builddir): ..this. Find in ${target_builddir}.
4881 (pch_source): Tweak.
4882 (pch_build): Key off a built file.
4883 (pch_output rule): Rename to...
4884 (pch_input rule): ...this. Produce ${pch_output_builddir}
4885 instead of ${pch_output}.
4886 (install-pch rule): Install ${pch_output_builddir}.
4887 * include/Makefile.in: Regenerated.
4889 2003-04-17 Paolo Carlini <pcarlini@unitus.it>
4891 * include/std/std_streambuf.h (setp): _M_out_lim, being
4892 the end limit of used put area, is set equal to _M_out_beg.
4894 2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
4896 * acinclude.m4 (GLIBCPP_CHECK_PCH): New.
4897 * aclocal.m4: Regenerated.
4898 * configure.in: Remove old demangler bits.
4900 * configure: Regenerate.
4901 * config.h.in: Regenerate.
4902 * include/Makefile.am (allstamps): Now allstamped.
4903 (allcreated): Define this.
4904 (all-local): Use 'em.
4905 Conditionally define pch_build, pch_install based on
4907 (${pch_output}): New rule.
4908 (install-pch): New rule.
4909 (install-headers): New rule.
4910 (install-data-local): Install headers and conditionally pch.
4911 * include/Makefile.in: Regenerate.
4912 * testsuite_flags.in (--build-cxx): Use pch file.
4914 2003-04-16 Jonathan Wakely <redi@gcc.gnu.org>
4916 * docs/html/ext/sgiexts.html: Fix path to stylesheet.
4918 2003-04-15 Benjamin Kosnik <bkoz at redhat dot com>
4919 Paolo Carlini <pcarlini at unitus dot it>
4922 * docs/html/27_io/howto.html
4923 ('The buffering is screwing up my program!'): Explain that
4924 opening counts as an I/O operation.
4926 2003-04-15 Andreas Tobler <a.tobler@schweiz.ch>
4928 * testsuite/thread/pthread1.cc: Enable for darwin test.
4929 * testsuite/thread/pthread2.cc: Same.
4930 * testsuite/thread/pthread3.cc: Same.
4931 * testsuite/thread/pthread4.cc: Same.
4932 * testsuite/thread/pthread5.cc: Same.
4933 * testsuite/thread/pthread6.cc: Same.
4935 2003-04-15 Loren J. Rittle <ljrittle@acm.org>
4938 * include/c_std/std_cmath.h (__gnu_cx::__c99_binding): New namespace.
4939 Populate it with multiple legal ways to obtain the C99 float
4940 transcendentals. Use them instead of direct global reference.
4941 (C99 FP capture): Guard usage with _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC.
4942 * docs/html/17_intro/porting.texi
4943 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4944 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4945 (_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC): New macro.
4946 * config/os/bsd/freebsd/os_defines.h
4947 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_CHECK): New macro.
4948 (_GLIBCPP_USE_C99_FLOAT_TRANSCENDENTALS_DYNAMIC): New macro.
4949 * testsuite/26_numerics/c_math_dynamic.cc: New file.
4951 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
4952 Benjamin Kosnik <bkoz@redhat.com>
4954 * config/os/generic/ctype_inline.h: Fix.
4956 2003-04-14 Benjamin Kosnik <bkoz@redhat.com>
4958 * testsuite/testsuite_hooks.h
4959 (__gnu_cxx_test::run_test_wrapped_generic_locale_exception_catcher):
4960 Change to try_named_locale.
4961 * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Same.
4963 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Use
4965 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
4966 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
4967 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: Same.
4968 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: Same.
4969 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: Same.
4970 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: Same.
4971 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: Same.
4972 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: Same.
4973 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: Same.
4974 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: Same.
4975 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: Same.
4976 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: Same.
4977 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: Same.
4978 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: Same.
4979 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: Same.
4980 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
4981 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
4982 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
4983 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: Same.
4984 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: Same.
4985 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: Same.
4986 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: Same.
4987 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: Same.
4988 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: Same.
4989 * testsuite/22_locale/codecvt/unshift/wchar_t/4.cc: Same.
4990 * testsuite/22_locale/collate/compare/char/1.cc: Same.
4991 * testsuite/22_locale/collate/compare/char/2.cc: Same.
4992 * testsuite/22_locale/collate/compare/char/3.cc: Same.
4993 * testsuite/22_locale/collate/compare/wchar_t/1.cc: Same.
4994 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Same.
4995 * testsuite/22_locale/collate/compare/wchar_t/3.cc: Same.
4996 * testsuite/22_locale/collate/hash/char/2.cc: Same.
4997 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Same.
4998 * testsuite/22_locale/collate/transform/char/2.cc: Same.
4999 * testsuite/22_locale/collate/transform/char/3.cc: Same.
5000 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Same.
5001 * testsuite/22_locale/collate/transform/wchar_t/3.cc: Same.
5002 * testsuite/22_locale/collate_byname/1.cc: Same.
5003 * testsuite/22_locale/ctype/is/char/2.cc: Same.
5004 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
5005 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: Same.
5006 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: Same.
5007 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: Same.
5008 * testsuite/22_locale/facet/2.cc: Same.
5009 * testsuite/22_locale/locale/cons/2.cc: Same.
5010 * testsuite/22_locale/locale/cons/4.cc: Same.
5011 * testsuite/22_locale/locale/cons/5.cc: Same.
5012 * testsuite/22_locale/locale/cons/7.cc: Same.
5013 * testsuite/22_locale/locale/cons/7222-c.cc: Same.
5014 * testsuite/22_locale/locale/cons/7222-env.cc: Same.
5015 * testsuite/22_locale/locale/global_locale_objects/2.cc: Same.
5016 * testsuite/22_locale/messages/members/char/1.cc: Same.
5017 * testsuite/22_locale/messages/members/char/2.cc: Same.
5018 * testsuite/22_locale/messages/members/char/3.cc: Same.
5019 * testsuite/22_locale/messages_byname/1.cc: Same.
5020 * testsuite/22_locale/money_get/get/char/1.cc: Same.
5021 * testsuite/22_locale/money_get/get/char/2.cc: Same.
5022 * testsuite/22_locale/money_get/get/char/3.cc: Same.
5023 * testsuite/22_locale/money_get/get/char/4.cc: Same.
5024 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Same.
5025 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Same.
5026 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Same.
5027 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Same.
5028 * testsuite/22_locale/money_put/put/char/1.cc: Same.
5029 * testsuite/22_locale/money_put/put/char/2.cc: Same.
5030 * testsuite/22_locale/money_put/put/char/3.cc: Same.
5031 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Same.
5032 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Same.
5033 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Same.
5034 * testsuite/22_locale/moneypunct/members/char/2.cc: Same.
5035 * testsuite/22_locale/moneypunct/members/wchar_t/2.cc: Same.
5036 * testsuite/22_locale/moneypunct_byname/1.cc: Same.
5037 * testsuite/22_locale/num_get/get/char/1.cc: Same.
5038 * testsuite/22_locale/num_get/get/char/2.cc: Same.
5039 * testsuite/22_locale/num_get/get/char/3.cc: Same.
5040 * testsuite/22_locale/num_get/get/char/5.cc: Same.
5041 * testsuite/22_locale/num_get/get/char/6.cc: Same.
5042 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Same.
5043 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Same.
5044 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Same.
5045 * testsuite/22_locale/num_get/get/wchar_t/5.cc: Same.
5046 * testsuite/22_locale/num_get/get/wchar_t/6.cc: Same.
5047 * testsuite/22_locale/num_put/put/char/1.cc: Same.
5048 * testsuite/22_locale/num_put/put/char/2.cc: Same.
5049 * testsuite/22_locale/num_put/put/char/3.cc: Same.
5050 * testsuite/22_locale/num_put/put/char/5.cc: Same.
5051 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Same.
5052 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Same.
5053 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Same.
5054 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Same.
5055 * testsuite/22_locale/numpunct/members/char/1.cc: Same.
5056 * testsuite/22_locale/numpunct/members/char/2.cc: Same.
5057 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Same.
5058 * testsuite/22_locale/numpunct/members/wchar_t/2.cc: Same.
5059 * testsuite/22_locale/numpunct_byname/1.cc: Same.
5060 * testsuite/22_locale/numpunct_byname/2.cc: Same.
5061 * testsuite/22_locale/time_get/date_order/char/1.cc: Same.
5062 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Same.
5063 * testsuite/22_locale/time_get/get_date/char/1.cc: Same.
5064 * testsuite/22_locale/time_get/get_date/char/2.cc: Same.
5065 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Same.
5066 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Same.
5067 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Same.
5068 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Same.
5069 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Same.
5070 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Same.
5071 * testsuite/22_locale/time_get/get_time/char/1.cc: Same.
5072 * testsuite/22_locale/time_get/get_time/char/2.cc: Same.
5073 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Same.
5074 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Same.
5075 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Same.
5076 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Same.
5077 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Same.
5078 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Same.
5079 * testsuite/22_locale/time_get/get_year/char/1.cc: Same.
5080 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Same.
5081 * testsuite/22_locale/time_put/put/char/1.cc: Same.
5082 * testsuite/22_locale/time_put/put/char/2.cc: Same.
5083 * testsuite/22_locale/time_put/put/char/3.cc: Same.
5084 * testsuite/22_locale/time_put/put/char/4.cc: Same.
5085 * testsuite/22_locale/time_put/put/char/5.cc: Same.
5086 * testsuite/22_locale/time_put/put/char/6.cc: Same.
5087 * testsuite/22_locale/time_put/put/char/7.cc: Same.
5088 * testsuite/22_locale/time_put/put/char/8.cc: Same.
5089 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Same.
5090 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Same.
5091 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Same.
5092 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Same.
5093 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Same.
5094 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Same.
5095 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Same.
5096 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Same.
5097 * testsuite/27_io/basic_filebuf/imbue/char/9322.cc: Same.
5098 * testsuite/27_io/basic_ios/copyfmt/char/2.cc: Same.
5099 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc: Same.
5100 * testsuite/27_io/basic_streambuf/imbue/char/9322.cc: Same.
5101 * testsuite/27_io/basic_stringbuf/imbue/char/9322.cc: Same.
5103 2003-04-14 Andreas Tobler <toa@pop.agri.ch>
5105 * configure.target (_cpu_incdir_fullpath): Solaris 2.9 uses
5106 solaris includes, not generic.
5108 2003-04-14 Loren J. Rittle <ljrittle@acm.org>
5110 * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
5112 * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
5113 * include/bits/concept_check.h: Fix multi-line comment.
5114 * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
5115 when target is *-*-freebsd*.
5117 2003-04-14 Nathan Myers <ncm@cantrip.org>
5118 Paolo Carlini <pcarlini@unitus.it>
5120 PR libstdc++/9701 (in_avail())
5121 * include/std/std_streambuf.h (in_avail): Simplify, in_avail
5122 doesn't care if there is anything in some putback cell.
5123 * testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Add.
5125 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Remove some
5126 unused string literals.
5128 2003-04-14 Paolo Carlini <pcarlini@unitus.it>
5130 * include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
5131 _M_out_end, _M_set_indeterminate() does it.
5133 2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5135 * os/hpux/ctype_inline.h: Replace with gnu-linux version.
5137 2003-04-12 David Edelsohn <edelsohn@gnu.org>
5139 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc:
5140 Change basic_streambuf instantiation to "unsigned char".
5141 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5143 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
5145 Remove _M_buf_size_opt, use directly _M_buf_size instead.
5146 * include/bits/fstream.tcc
5147 (basic_filebuf::_M_allocate_internal_buffer, setbuf): Remove
5148 references to _M_buf_size_opt.
5149 * include/bits/sstream.tcc (basic_stringbuf::overflow): Likewise.
5150 * include/bits/streambuf.tcc (__copy_streambufs): Likewise, rename
5151 __bufsize to __in_avail and __size_opt to __buf_size.
5152 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): Likewise.
5153 * include/std/std_sstream.h (_M_stringbuf_init, setbuf): Likewise.
5154 * include/std/std_streambuf.h (~basic_streambuf(),
5155 basic_streambuf()): Likewise, remove _M_buf_size_opt member.
5156 * testsuite/27_io/basic_filebuf/close/char/3.cc: Set _M_buf_size.
5157 * testsuite/27_io/basic_filebuf/in_avail/char/1.cc: Likewise.
5158 * testsuite/27_io/basic_filebuf/sbumpc/char/1.cc: Likewise.
5159 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Likewise.
5160 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Likewise.
5161 * testsuite/27_io/basic_filebuf/sgetc/char/1.cc: Likewise.
5162 * testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Likewise.
5163 * testsuite/27_io/basic_filebuf/snextc/char/1.cc: Likewise.
5164 * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Likewise.
5165 * testsuite/27_io/basic_filebuf/sputc/char/1.cc: Likewise.
5166 * testsuite/27_io/basic_filebuf/sputn/char/1.cc: Likewise.
5167 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Likewise.
5169 2003-04-12 Paolo Carlini <pcarlini at unitus dot it>
5171 * include/ext/stdio_filebuf.h
5172 (stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
5173 stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
5174 _M_buf_size_opt == 0 only means "not to use an allocated buffer"
5175 since a stack-based buffer is used for small values of the size_t
5177 * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
5178 If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
5179 * testsuite/ext/stdio_filebuf_2.cc: New testfile.
5181 2003-04-12 Paolo Carlini <pcarlini@unitus.it>
5184 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: New.
5185 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Ditto.
5187 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5189 * testsuite/22_locale/locale/cons/3.cc: Split.
5190 * testsuite/22_locale/locale/cons/7222-c.cc: New.
5191 * testsuite/22_locale/locale/cons/7222-env.cc: New.
5192 Check before trying to create a locale from the environment.
5193 * testsuite/27_io/ios_base/state/1.cc (test02): Use "C" locale.
5194 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
5197 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5199 * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
5200 locale to construct this hybrid locale, not the global locale.
5202 2003-04-11 Benjamin Kosnik <bkoz@redhat.com>
5204 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
5205 instantiation for AIX.
5206 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
5207 * testsuite/25_algorithms/min_max.cc: Same.
5209 2003-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5211 * basic_file_stdio.cc (__basic_file<char>::close): Don't flush stream
5212 twice. Always set _M_cfile to 0 when stream was open.
5214 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5216 Reshuffle 27_io testsuite. * testsuite/27_io/filebuf.cc,
5217 filebuf_members-1.tst, filebuf_members-1.txt, filebuf_members.cc,
5218 filebuf_virtuals-1.tst, filebuf_virtuals-1.txt,
5219 filebuf_virtuals-2.tst, filebuf_virtuals-3.tst,
5220 filebuf_virtuals.cc, fpos.cc, fstream.cc, fstream_members.cc,
5221 ifstream.cc, ifstream_members-1.tst, ifstream_members-1.txt,
5222 ifstream_members.cc, instantiations.cc, ios.cc,
5223 ios_base_callbacks.cc, ios_base_members_static-1.tst,
5224 ios_base_members_static.cc, ios_base_storage.cc,
5225 ios_base_types.cc, ios_ctor.cc, ios_init.cc,
5226 ios_manip_basefield.cc, ios_manip_fmtflags.cc, ios_members.cc,
5227 iostream.cc, iostream_members.cc, istream.cc,
5228 istream_exception.cc, istream_extractor_char.cc,
5229 istream_extractor_other-1.tst, istream_extractor_other-1.txt,
5230 istream_extractor_other-2.tst, istream_extractor_other.cc,
5231 istream_manip.cc, istream_seeks-1.tst, istream_seeks-1.txt,
5232 istream_seeks-2.tst, istream_seeks-3.tst, istream_seeks.cc,
5233 istream_sentry.cc, istream_unformatted-1.tst,
5234 istream_unformatted-1.txt, istream_unformatted.cc,
5235 istringstream.cc, istringstream_members.cc,
5236 narrow_stream_objects.cc, ofstream.cc, ofstream_members-1.tst,
5237 ofstream_members.cc, ostream.cc, ostream_exception.cc,
5238 ostream_fail.cc, ostream_inserter_arith.cc,
5239 ostream_inserter_char-1.tst, ostream_inserter_char-1.txt,
5240 ostream_inserter_char.cc, ostream_inserter_other-1.tst,
5241 ostream_inserter_other-2.tst, ostream_inserter_other.cc,
5242 ostream_manip.cc, ostream_seeks-1.tst, ostream_seeks.cc,
5243 ostream_sentry.cc, ostream_unformatted.cc, ostringstream.cc,
5244 ostringstream_members.cc, standard_manipulators.cc, streambuf.cc,
5245 streambuf_members.cc, stringbuf.cc, stringbuf_members.cc,
5246 stringbuf_virtuals.cc, stringstream.cc, stringstream_members.cc,
5247 wide_stream_objects.cc, istream_extractor_arith/01.cc,
5248 istream_extractor_arith/02.cc, istream_extractor_arith/03.cc,
5249 istream_extractor_arith/06.cc, istream_extractor_arith/07.cc,
5250 istream_extractor_arith/08.cc, istream_extractor_arith/09.cc,
5251 istream_extractor_arith/10.cc, istream_extractor_arith/11.cc,
5252 istream_extractor_arith/12.cc, istream_extractor_arith/13.cc:
5254 * 27_io/basic_filebuf/1.cc: New.
5255 * 27_io/basic_filebuf/2.cc: New.
5256 * 27_io/basic_filebuf/3.cc: New.
5257 * 27_io/basic_filebuf/4.cc: New.
5258 * 27_io/basic_filebuf/close/char/1.cc: New.
5259 * 27_io/basic_filebuf/close/char/2.cc: New.
5260 * 27_io/basic_filebuf/close/char/3.cc: New.
5261 * 27_io/basic_filebuf/close/char/4879.cc: New.
5262 * 27_io/basic_filebuf/close/char/9964.cc: New.
5263 * 27_io/basic_filebuf/imbue/char/1.cc: New.
5264 * 27_io/basic_filebuf/imbue/char/9322.cc: New.
5265 * 27_io/basic_filebuf/in_avail/char/1.cc: New.
5266 * 27_io/basic_filebuf/is_open/char/1.cc: New.
5267 * 27_io/basic_filebuf/open/char/1.cc: New.
5268 * 27_io/basic_filebuf/open/char/2.cc: New.
5269 * 27_io/basic_filebuf/open/char/3.cc: New.
5270 * 27_io/basic_filebuf/open/char/9507.cc: New.
5271 * 27_io/basic_filebuf/overflow/char/1.cc: New.
5272 * 27_io/basic_filebuf/overflow/char/3599.cc: New.
5273 * 27_io/basic_filebuf/overflow/char/9169.cc: New.
5274 * 27_io/basic_filebuf/overflow/char/9182-2.cc: New.
5275 * 27_io/basic_filebuf/overflow/char/9988.cc: New.
5276 * 27_io/basic_filebuf/sbumpc/char/1.cc: New.
5277 * 27_io/basic_filebuf/sbumpc/char/9825.cc: New.
5278 * 27_io/basic_filebuf/seekoff/char/1.cc: New.
5279 * 27_io/basic_filebuf/seekoff/char/2.cc: New.
5280 * 27_io/basic_filebuf/seekpos/char/1.cc: New.
5281 * 27_io/basic_filebuf/seekpos/char/2.cc: New.
5282 * 27_io/basic_filebuf/setbuf/char/1.cc: New.
5283 * 27_io/basic_filebuf/setbuf/char/2.cc: New.
5284 * 27_io/basic_filebuf/setbuf/char/3.cc: New.
5285 * 27_io/basic_filebuf/sgetc/char/1.cc: New.
5286 * 27_io/basic_filebuf/sgetn/char/1.cc: New.
5287 * 27_io/basic_filebuf/sgetn/char/2.cc: New.
5288 * 27_io/basic_filebuf/snextc/char/1.cc: New.
5289 * 27_io/basic_filebuf/sputbackc/char/1.cc: New.
5290 * 27_io/basic_filebuf/sputbackc/char/9425.cc: New.
5291 * 27_io/basic_filebuf/sputc/char/1.cc: New.
5292 * 27_io/basic_filebuf/sputc/char/1057.cc: New.
5293 * 27_io/basic_filebuf/sputc/char/9701-2.cc: New.
5294 * 27_io/basic_filebuf/sputn/char/1.cc: New.
5295 * 27_io/basic_filebuf/sputn/char/1057.cc: New.
5296 * 27_io/basic_filebuf/sputn/char/9701-1.cc: New.
5297 * 27_io/basic_filebuf/sungetc/char/1.cc: New.
5298 * 27_io/basic_filebuf/sync/char/1057.cc: New.
5299 * 27_io/basic_filebuf/sync/char/9182-1.cc: New.
5300 * 27_io/basic_filebuf/underflow/char/10097.cc: New.
5301 * 27_io/basic_fstream/1.cc: New.
5302 * 27_io/basic_fstream/2.cc: New.
5303 * 27_io/basic_fstream/3.cc: New.
5304 * 27_io/basic_fstream/4.cc: New.
5305 * 27_io/basic_fstream/rdbuf/char/2832.cc: New.
5306 * 27_io/basic_ifstream/1.cc: New.
5307 * 27_io/basic_ifstream/2.cc: New.
5308 * 27_io/basic_ifstream/3.cc: New.
5309 * 27_io/basic_ifstream/4.cc: New.
5310 * 27_io/basic_ifstream/cons/char/1.cc: New.
5311 * 27_io/basic_ifstream/open/char/1.cc: New.
5312 * 27_io/basic_ifstream/rdbuf/char/2832.cc: New.
5313 * 27_io/basic_ios/1.cc: New.
5314 * 27_io/basic_ios/2.cc: New.
5315 * 27_io/basic_ios/3.cc: New.
5316 * 27_io/basic_ios/4.cc: New.
5317 * 27_io/basic_ios/clear/char/1.cc: New.
5318 * 27_io/basic_ios/cons/char/1.cc: New.
5319 * 27_io/basic_ios/cons/char/2.cc: New.
5320 * 27_io/basic_ios/cons/char/3.cc: New.
5321 * 27_io/basic_ios/copyfmt/char/1.cc: New.
5322 * 27_io/basic_ios/copyfmt/char/2.cc: New.
5323 * 27_io/basic_ios/exceptions/char/1.cc: New.
5324 * 27_io/basic_ios/locales/char/1.cc: New.
5325 * 27_io/basic_iostream/1.cc: New.
5326 * 27_io/basic_iostream/2.cc: New.
5327 * 27_io/basic_iostream/3.cc: New.
5328 * 27_io/basic_iostream/4.cc: New.
5329 * 27_io/basic_istream/1.cc: New.
5330 * 27_io/basic_istream/2.cc: New.
5331 * 27_io/basic_istream/3.cc: New.
5332 * 27_io/basic_istream/4.cc: New.
5333 * 27_io/basic_istream/exceptions/char/9561.cc: New.
5334 * 27_io/basic_istream/extractors_arithmetic/char/01.cc: New.
5335 * 27_io/basic_istream/extractors_arithmetic/char/02.cc: New.
5336 * 27_io/basic_istream/extractors_arithmetic/char/03.cc: New.
5337 * 27_io/basic_istream/extractors_arithmetic/char/06.cc: New.
5338 * 27_io/basic_istream/extractors_arithmetic/char/07.cc: New.
5339 * 27_io/basic_istream/extractors_arithmetic/char/08.cc: New.
5340 * 27_io/basic_istream/extractors_arithmetic/char/09.cc: New.
5341 * 27_io/basic_istream/extractors_arithmetic/char/10.cc: New.
5342 * 27_io/basic_istream/extractors_arithmetic/char/11.cc: New.
5343 * 27_io/basic_istream/extractors_arithmetic/char/12.cc: New.
5344 * 27_io/basic_istream/extractors_arithmetic/char/13.cc: New.
5345 * 27_io/basic_istream/extractors_character/char/1.cc: New.
5346 * 27_io/basic_istream/extractors_character/char/2.cc: New.
5347 * 27_io/basic_istream/extractors_character/char/3.cc: New.
5348 * 27_io/basic_istream/extractors_character/char/9826.cc: New.
5349 * 27_io/basic_istream/extractors_other/char/1.cc: New.
5350 * 27_io/basic_istream/extractors_other/char/2.cc: New.
5351 * 27_io/basic_istream/extractors_other/char/3.cc: New.
5352 * 27_io/basic_istream/extractors_other/char/9318-in.cc: New.
5353 * 27_io/basic_istream/extractors_other/char/9424-in.cc: New.
5354 * 27_io/basic_istream/get/char/1.cc: New.
5355 * 27_io/basic_istream/get/char/2.cc: New.
5356 * 27_io/basic_istream/getline/char/1.cc: New.
5357 * 27_io/basic_istream/getline/char/2.cc: New.
5358 * 27_io/basic_istream/getline/char/3.cc: New.
5359 * 27_io/basic_istream/ignore/char/1.cc: New.
5360 * 27_io/basic_istream/ignore/char/6360.cc: New.
5361 * 27_io/basic_istream/ignore/char/7220.cc: New.
5362 * 27_io/basic_istream/peek/char/1.cc: New.
5363 * 27_io/basic_istream/peek/char/6414.cc: New.
5364 * 27_io/basic_istream/putback/char/1.cc: New.
5365 * 27_io/basic_istream/read/char/1.cc: New.
5366 * 27_io/basic_istream/read/char/2.cc: New.
5367 * 27_io/basic_istream/read/char/3.cc: New.
5368 * 27_io/basic_istream/readsome/char/6746-1.cc: New.
5369 * 27_io/basic_istream/readsome/char/6746-2.cc: New.
5370 * 27_io/basic_istream/readsome/char/8258.cc: New.
5371 * 27_io/basic_istream/seekg/char/2346-fstream.cc: New.
5372 * 27_io/basic_istream/seekg/char/2346-sstream.cc: New.
5373 * 27_io/basic_istream/seekg/char/8348-1.cc: New.
5374 * 27_io/basic_istream/seekg/char/8348-2.cc: New.
5375 * 27_io/basic_istream/seekg/char/fstream.cc: New.
5376 * 27_io/basic_istream/seekg/char/sstream.cc: New.
5377 * 27_io/basic_istream/sentry/char/1.cc: New.
5378 * 27_io/basic_istream/sentry/char/2.cc: New.
5379 * 27_io/basic_istream/sentry/char/3.cc: New.
5380 * 27_io/basic_istream/sentry/char/3983-fstream.cc: New.
5381 * 27_io/basic_istream/sentry/char/3983-sstream.cc: New.
5382 * 27_io/basic_istream/tellg/char/1.cc: New.
5383 * 27_io/basic_istream/tellg/char/8348.cc: New.
5384 * 27_io/basic_istream/tellg/char/fstream.cc: New.
5385 * 27_io/basic_istream/tellg/char/sstream.cc: New.
5386 * 27_io/basic_istream/ws/char/1.cc: New.
5387 * 27_io/basic_istringstream/1.cc: New.
5388 * 27_io/basic_istringstream/2.cc: New.
5389 * 27_io/basic_istringstream/3.cc: New.
5390 * 27_io/basic_istringstream/4.cc: New.
5391 * 27_io/basic_istringstream/rdbuf/char/2832.cc: New.
5392 * 27_io/basic_istringstream/str/char/1.cc: New.
5393 * 27_io/basic_ofstream/1.cc: New.
5394 * 27_io/basic_ofstream/2.cc: New.
5395 * 27_io/basic_ofstream/3.cc: New.
5396 * 27_io/basic_ofstream/4.cc: New.
5397 * 27_io/basic_ofstream/cons/char/2.cc: New.
5398 * 27_io/basic_ofstream/open/char/1.cc: New.
5399 * 27_io/basic_ofstream/rdbuf/char/2832.cc: New.
5400 * 27_io/basic_ostream/1.cc: New.
5401 * 27_io/basic_ostream/2.cc: New.
5402 * 27_io/basic_ostream/3.cc: New.
5403 * 27_io/basic_ostream/4.cc: New.
5404 * 27_io/basic_ostream/cons/char/9827.cc: New.
5405 * 27_io/basic_ostream/endl/char/1.cc: New.
5406 * 27_io/basic_ostream/ends/char/1.cc: New.
5407 * 27_io/basic_ostream/ends/char/2.cc: New.
5408 * 27_io/basic_ostream/exceptions/char/9561.cc: New.
5409 * 27_io/basic_ostream/flush/char/1.cc: New.
5410 * 27_io/basic_ostream/inserters_arithmetic/char/1.cc: New.
5411 * 27_io/basic_ostream/inserters_arithmetic/char/2.cc: New.
5412 * 27_io/basic_ostream/inserters_arithmetic/char/3.cc: New.
5413 * 27_io/basic_ostream/inserters_arithmetic/char/4.cc: New.
5414 * 27_io/basic_ostream/inserters_arithmetic/char/4402.cc: New.
5415 * 27_io/basic_ostream/inserters_arithmetic/char/5.cc: New.
5416 * 27_io/basic_ostream/inserters_arithmetic/char/6.cc: New.
5417 * 27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc: New.
5418 * 27_io/basic_ostream/inserters_character/char/1.cc: New.
5419 * 27_io/basic_ostream/inserters_character/char/2.cc: New.
5420 * 27_io/basic_ostream/inserters_character/char/3.cc: New.
5421 * 27_io/basic_ostream/inserters_character/char/4.cc: New.
5422 * 27_io/basic_ostream/inserters_character/char/5.cc: New.
5423 * 27_io/basic_ostream/inserters_character/char/6.cc: New.
5424 * 27_io/basic_ostream/inserters_character/char/8.cc: New.
5425 * 27_io/basic_ostream/inserters_character/wchar_t/7.cc: New.
5426 * 27_io/basic_ostream/inserters_character/wchar_t/8.cc: New.
5427 * 27_io/basic_ostream/inserters_other/char/1.cc: New.
5428 * 27_io/basic_ostream/inserters_other/char/2.cc: New.
5429 * 27_io/basic_ostream/inserters_other/char/3.cc: New.
5430 * 27_io/basic_ostream/inserters_other/char/4.cc: New.
5431 * 27_io/basic_ostream/inserters_other/char/9318-out.cc: New.
5432 * 27_io/basic_ostream/inserters_other/char/9424-out.cc: New.
5433 * 27_io/basic_ostream/sentry/char/1.cc: New.
5434 * 27_io/basic_ostream/sentry/char/2.cc: New.
5435 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: New.
5436 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: New.
5437 * 27_io/basic_ostream/tellp/char/1.cc: New.
5438 * 27_io/basic_ostream/tellp/char/2.cc: New.
5439 * 27_io/basic_ostringstream/1.cc: New.
5440 * 27_io/basic_ostringstream/2.cc: New.
5441 * 27_io/basic_ostringstream/3.cc: New.
5442 * 27_io/basic_ostringstream/4.cc: New.
5443 * 27_io/basic_ostringstream/cons/char/3.cc: New.
5444 * 27_io/basic_ostringstream/rdbuf/char/2832.cc: New.
5445 * 27_io/basic_ostringstream/str/char/1.cc: New.
5446 * 27_io/basic_ostringstream/str/char/2.cc: New.
5447 * 27_io/basic_streambuf/1.cc: New.
5448 * 27_io/basic_streambuf/2.cc: New.
5449 * 27_io/basic_streambuf/3.cc: New.
5450 * 27_io/basic_streambuf/cons/char/1.cc: New.
5451 * 27_io/basic_streambuf/imbue/char/1.cc: New.
5452 * 27_io/basic_streambuf/imbue/char/9322.cc: New.
5453 * 27_io/basic_streambuf/overflow/char/1.cc: New.
5454 * 27_io/basic_streambuf/overflow/char/2.cc: New.
5455 * 27_io/basic_streambuf/overflow/char/3599.cc: New.
5456 * 27_io/basic_streambuf/sgetc/char/1.cc: New.
5457 * 27_io/basic_streambuf/sgetn/char/1.cc: New.
5458 * 27_io/basic_streambuf/sputbackc/char/9538.cc: New.
5459 * 27_io/basic_streambuf/sputc/char/1057.cc: New.
5460 * 27_io/basic_streambuf/sputn/char/1.cc: New.
5461 * 27_io/basic_streambuf/sputn/char/1057.cc: New.
5462 * 27_io/basic_streambuf/sync/char/1057.cc: New.
5463 * 27_io/basic_stringbuf/1.cc: New.
5464 * 27_io/basic_stringbuf/2.cc: New.
5465 * 27_io/basic_stringbuf/3.cc: New.
5466 * 27_io/basic_stringbuf/4.cc: New.
5467 * 27_io/basic_stringbuf/5.cc: New.
5468 * 27_io/basic_stringbuf/imbue/char/1.cc: New.
5469 * 27_io/basic_stringbuf/imbue/char/9322.cc: New.
5470 * 27_io/basic_stringbuf/in_avail/char/1.cc: New.
5471 * 27_io/basic_stringbuf/overflow/char/2.cc: New.
5472 * 27_io/basic_stringbuf/overflow/char/3599.cc: New.
5473 * 27_io/basic_stringbuf/overflow/char/9988.cc: New.
5474 * 27_io/basic_stringbuf/sbumpc/char/1.cc: New.
5475 * 27_io/basic_stringbuf/sbumpc/char/9825.cc: New.
5476 * 27_io/basic_stringbuf/seekoff/char/1.cc: New.
5477 * 27_io/basic_stringbuf/seekoff/char/2.cc: New.
5478 * 27_io/basic_stringbuf/seekpos/char/1.cc: New.
5479 * 27_io/basic_stringbuf/seekpos/char/2.cc: New.
5480 * 27_io/basic_stringbuf/setbuf/char/1.cc: New.
5481 * 27_io/basic_stringbuf/setbuf/char/2.cc: New.
5482 * 27_io/basic_stringbuf/setbuf/char/3.cc: New.
5483 * 27_io/basic_stringbuf/sgetc/char/1.cc: New.
5484 * 27_io/basic_stringbuf/sgetn/char/1.cc: New.
5485 * 27_io/basic_stringbuf/snextc/char/1.cc: New.
5486 * 27_io/basic_stringbuf/sputbackc/char/1.cc: New.
5487 * 27_io/basic_stringbuf/sputbackc/char/9425.cc: New.
5488 * 27_io/basic_stringbuf/sputc/char/1.cc: New.
5489 * 27_io/basic_stringbuf/sputc/char/1057.cc: New.
5490 * 27_io/basic_stringbuf/sputc/char/9404-1.cc: New.
5491 * 27_io/basic_stringbuf/sputn/char/1.cc: New.
5492 * 27_io/basic_stringbuf/sputn/char/1057.cc: New.
5493 * 27_io/basic_stringbuf/sputn/char/9404-2.cc: New.
5494 * 27_io/basic_stringbuf/str/char/1.cc: New.
5495 * 27_io/basic_stringbuf/str/char/2.cc: New.
5496 * 27_io/basic_stringbuf/str/char/3.cc: New.
5497 * 27_io/basic_stringbuf/str/char/3955.cc: New.
5498 * 27_io/basic_stringbuf/sungetc/char/1.cc: New.
5499 * 27_io/basic_stringbuf/sync/char/1057.cc: New.
5500 * 27_io/basic_stringstream/1.cc: New.
5501 * 27_io/basic_stringstream/2.cc: New.
5502 * 27_io/basic_stringstream/3.cc: New.
5503 * 27_io/basic_stringstream/4.cc: New.
5504 * 27_io/basic_stringstream/rdbuf/char/2832.cc: New.
5505 * 27_io/basic_stringstream/str/char/1.cc: New.
5506 * 27_io/basic_stringstream/str/char/2.cc: New.
5507 * 27_io/basic_stringstream/str/char/3.cc: New.
5508 * 27_io/basic_stringstream/str/char/4.cc: New.
5509 * 27_io/fpos/1.cc: New.
5510 * 27_io/fpos/2.cc: New.
5511 * 27_io/fpos/3.cc: New.
5512 * 27_io/ios_base/callbacks/1.cc: New.
5513 * 27_io/ios_base/state/1.cc: New.
5514 * 27_io/ios_base/storage/1.cc: New.
5515 * 27_io/ios_base/storage/2.cc: New.
5516 * 27_io/ios_base/storage/3.cc: New.
5517 * 27_io/ios_base/sync_with_stdio/1.cc: New.
5518 * 27_io/ios_base/sync_with_stdio/2.cc: New.
5519 * 27_io/manipulators/adjustfield/char/1.cc: New.
5520 * 27_io/manipulators/adjustfield/char/2.cc: New.
5521 * 27_io/manipulators/basefield/char/1.cc: New.
5522 * 27_io/manipulators/standard/char/1.cc: New.
5523 * 27_io/manipulators/standard/char/2.cc: New.
5524 * 27_io/objects/char/1.cc: New.
5525 * 27_io/objects/char/2.cc: New.
5526 * 27_io/objects/char/2523-1_xin.cc: New.
5527 * 27_io/objects/char/2523-1_xin.in: New.
5528 * 27_io/objects/char/2523-2_xin.cc: New.
5529 * 27_io/objects/char/2523-2_xin.in: New.
5530 * 27_io/objects/char/3045.cc: New.
5531 * 27_io/objects/char/3647.cc: New.
5532 * 27_io/objects/char/3_xin.cc: New.
5533 * 27_io/objects/char/3_xin.in: New.
5534 * 27_io/objects/char/4_xin.cc: New.
5535 * 27_io/objects/char/4_xin.in: New.
5536 * 27_io/objects/char/5268.cc: New.
5537 * 27_io/objects/char/5280_xin.cc: New.
5538 * 27_io/objects/char/5280_xin.in: New.
5539 * 27_io/objects/char/6548_xin.cc: New.
5540 * 27_io/objects/char/6548_xin.in: New.
5541 * 27_io/objects/char/6648-1_xin.cc: New.
5542 * 27_io/objects/char/6648-1_xin.in: New.
5543 * 27_io/objects/char/6648-2_xin.cc: New.
5544 * 27_io/objects/char/6648-2_xin.in: New.
5545 * 27_io/objects/char/7744_xin.cc: New.
5546 * 27_io/objects/char/7744_xin.in: New.
5547 * 27_io/objects/wchar_t/1.cc: New.
5548 * 27_io/types/1.cc: New.
5549 * 27_io/types/2.cc: New.
5550 * data/filebuf_members-1.tst: New.
5551 * data/filebuf_members-1.txt: New.
5552 * data/filebuf_virtuals-1.tst: New.
5553 * data/filebuf_virtuals-1.txt: New.
5554 * data/filebuf_virtuals-2.tst: New.
5555 * data/filebuf_virtuals-3.tst: New.
5556 * data/ifstream_members-1.tst: New.
5557 * data/ifstream_members-1.txt: New.
5558 * data/ios_base_members_static-1.tst: New.
5559 * data/istream_extractor_other-1.tst: New.
5560 * data/istream_extractor_other-1.txt: New.
5561 * data/istream_extractor_other-2.tst: New.
5562 * data/istream_seeks-1.tst: New.
5563 * data/istream_seeks-1.txt: New.
5564 * data/istream_seeks-2.tst: New.
5565 * data/istream_seeks-3.tst: New.
5566 * data/istream_unformatted-1.tst: New.
5567 * data/istream_unformatted-1.txt: New.
5568 * data/ofstream_members-1.tst: New.
5569 * data/ostream_inserter_char-1.tst: New.
5570 * data/ostream_inserter_char-1.txt: New.
5571 * data/ostream_inserter_other-1.tst: New.
5572 * data/ostream_inserter_other-2.tst: New.
5573 * data/ostream_seeks-1.tst: New.
5575 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5577 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Remove
5578 requirement that __mode must be strict input or output.
5580 * include/std/std_streambuf.h (basic_streambuf::setp): Set
5583 * include/std/std_sstream.h (basic_strinbuf::str): Zero length
5584 output string shouldn't core.
5585 (basic_stringbuf::_M_really_sync): Add base argument. Remove rturn
5587 * include/bits/sstream.tcc: Adjust _M_really_sync bits here.
5589 * include/bits/istream.tcc (basic_istream::putback): Set gcount to
5592 2003-04-09 Benjamin Kosnik <bkoz@redhat.com>
5594 * testsuite/data: New directory.
5595 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
5596 to copy files from the testsuite data directory.
5597 (libstdc++-v3-list-sourcefiles): Add another test list filter, for
5598 testfiles containing _xin, which now means this is an interactive
5599 test and should be run with the interactive dejagnu hooks.
5600 * testsuite/Makefile.am: Remove testsuite_* files.
5601 * testsuite/Makefile.in: Regenerate.
5603 2003-04-09 Zack Weinberg <zack@codesourcery.com>
5605 * docs/html/install.html: Document complete list of locales
5606 required by test suite. Document procedure for installing
5607 said locales under Debian. Solicit instructions for other
5610 2003-04-08 Alexandre Oliva <aoliva@redhat.com>
5612 * include/bits/sstream.tcc (overflow): Make sure operands of min
5613 and max have the same type.
5615 2003-04-04 Jerry Quinn <jlquinn@optonline.net>
5618 * src/ios.cc (ios_base::_M_init): Remove _M_callbacks
5621 2003-03-31 Paolo Carlini <pcarlini@unitus.it>
5623 * include/std/std_streambuf.h (_M_out_buf_size()): Remove.
5624 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
5625 Don't set _M_out_end.
5626 (basic_filebuf::overflow): Replace _M_out_buf_size() with
5627 this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
5628 * include/bits/sstream.tcc (basic_stringbuf::overflow):
5629 Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
5630 * include/bits/streambuf.tcc (basic_streambuf::sputc):
5631 Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
5632 (basic_streambuf::xsputn): Replace _M_out_buf_size() with
5633 _M_out_end - _M_out_cur.
5634 (__copy_streambufs): Likewise.
5635 * include/std/std_fstream.h (_M_set_determinate): Set
5638 2003-03-30 Paolo Carlini <pcarlini@unitus.it>
5640 * include/bits/fstream.tcc (basic_filebuf::showmanyc,
5641 _M_convert_to_external, _M_really_overflow, seekoff): Fix
5642 test for synced buffer.
5643 * include/std/std_fstream.h (sync): Likewise.
5644 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5645 basic_filebuf<wchar_t>::_M_underflow_common): Likewise.
5647 2003-03-28 Benjamin Kosnik <bkoz@redhat.com>
5649 * include/std/std_sstream.h (basic_istringstream): Adjust
5651 (basic_ostringstream): Same.
5652 (basic_stringstream): Same.
5653 * include/std/std_fstream.h (basic_ifstream): Adjust initialization.
5654 (basic_ofstream): Same.
5655 (basic_fstream): Same.
5656 * include/std/std_ostream.h (basic_ostrem): Add protected ctor
5657 that does not call init.
5658 * include/std/std_istream.h (basic_istream): Same.
5659 (basic_iostream): Construct istream, ostream uninitialized, use
5660 init to initialize just once. Add protected ctor that does not
5663 2003-03-28 Paolo Carlini <pcarlini@unitus.it>
5664 Nathan Myers <ncm@cantrip.org>
5667 * include/bits/fstream.tcc (basic_filebuf<>::open): Don't
5669 (basic_filebuf<>::showmanyc): Use the information provided
5670 by codecvt and __basic_file<>::showmanyc_helper to implement
5671 a non-trivial showmanyc.
5672 * config/io/basic_file_stdio.h
5673 (__basic_file<>::showmanyc_helper): New, declare.
5674 * config/io/basic_file_stdio.cc
5675 (__basic_file<>::showmanyc_helper): Define.
5676 (__basic_file<>::_M_open_mode): Don't set O_NONBLOCK.
5677 (__basic_file<char>::open): Don't call fcntl().
5678 * acinclude.m4 (GLIBCPP_CHECK_S_ISREG_OR_S_IFREG,
5679 GLIBCPP_CHECK_POLL): New macros.
5680 * configure.in: Call here.
5681 * acconfig.h: Add #undefs for the corresponding symbols.
5682 * aclocal.m4: Regenerate.
5683 * configure: Regenerate.
5684 * config.h.in: Regenerate.
5686 2003-03-24 Benjamin Kosnik <bkoz@redhat.com>
5688 * config/linker-map.gnu: Remove string export restrictions.
5690 2003-03-24 Paolo Carlini <pcarlini@unitus.it>
5692 * testsuite/21_strings/basic_string/find/char/1.cc: Remove
5693 find_first_of, find_last_of and find_last_not_of tests.
5694 * testsuite/21_strings/basic_string/find/char/2.cc: find_first_of
5695 tests here, new file.
5696 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Likewise,
5697 remove wchar_t find_first_of, find_last_of and find_last_not_of tests.
5698 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Likewise,
5699 wchar_t find_first_of tests here, new file.
5700 * testsuite/21_strings/basic_string/rfind/char/2.cc: find_last_of
5702 * testsuite/21_strings/basic_string/rfind/char/3.cc: find_last_not_of
5704 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: likewise,
5705 wchar_t find_last_of tests here.
5706 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: likewise,
5707 wchar_t find_last_not_of tests here.
5709 2003-03-22 Loren J. Rittle <ljrittle@acm.org>
5711 * config/os/hpux/ctype_noninline.h (ctype<char>::classic_table):
5712 Correct return value.
5714 2003-03-21 Jerry Quinn <jlquinn@optonline.net>
5717 * include/bits/c++config (_GLIBCPP_FAST_MATH): Define.
5718 * include/std/std_complex.h (norm): Use faster,
5719 less accurate computation for builtin float types under --fast-math.
5721 2003-03-21 Magnus Fromreide <gnats@magfr.user.lysator.liu.se>
5723 * testsuite/testsuite_hooks.h: Fix warning nits.
5725 2003-03-19 Alexandre Oliva <aoliva@redhat.com>
5727 * config/cpu/mips/atomicity.h (__exchange_and_add, __atomic_add):
5728 Only .set mips2 for the o32 ABI.
5730 2003-03-19 Paolo Carlini <pcarlini@unitus.it>
5732 * testsuite/21_strings/char_traits/requirements/char/1.cc:
5733 Test char not wchar_t.
5735 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
5737 * testsuite/21_strings/basic_string/append/wchar_t/1.cc:
5738 Correct size, taking into account sizeof(wchar_t).
5740 2003-03-18 Paolo Carlini <pcarlini@unitus.it>
5742 Reshuffle 21_strings testsuite.
5743 * testsuite/21_strings/append.cc, c_strings.cc, invariants.cc,
5744 assign.cc, ctor_copy_dtor.cc, nonmember.cc, capacity.cc,
5745 element_access.cc, operations.cc, char_traits_requirements.cc,
5746 find.cc, replace.cc, char_traits_typedefs.cc, insert.cc, rfind.cc,
5747 compare.cc, inserters_extractors.cc, substr.cc: Split up, add
5748 wchar_t tests as follows.
5749 * 21_strings/basic_string/append/char/1.cc: New.
5750 * 21_strings/basic_string/append/wchar_t/1.cc: New.
5751 * 21_strings/basic_string/assign/char/1.cc: New.
5752 * 21_strings/basic_string/assign/char/2.cc: New.
5753 * 21_strings/basic_string/assign/char/3.cc: New.
5754 * 21_strings/basic_string/assign/wchar_t/1.cc: New.
5755 * 21_strings/basic_string/assign/wchar_t/2.cc: New.
5756 * 21_strings/basic_string/assign/wchar_t/3.cc: New.
5757 * 21_strings/basic_string/capacity/1.cc: New.
5758 * 21_strings/basic_string/capacity/char/1.cc: New.
5759 * 21_strings/basic_string/capacity/char/2.cc: New.
5760 * 21_strings/basic_string/capacity/wchar_t/1.cc: New.
5761 * 21_strings/basic_string/capacity/wchar_t/2.cc: New.
5762 * 21_strings/basic_string/compare/char/1.cc: New.
5763 * 21_strings/basic_string/compare/wchar_t/1.cc: New.
5764 * 21_strings/basic_string/cons/char/1.cc: New.
5765 * 21_strings/basic_string/cons/char/2.cc: New.
5766 * 21_strings/basic_string/cons/char/3.cc: New.
5767 * 21_strings/basic_string/cons/char/4.cc: New.
5768 * 21_strings/basic_string/cons/char/5.cc: New.
5769 * 21_strings/basic_string/cons/wchar_t/1.cc: New.
5770 * 21_strings/basic_string/cons/wchar_t/2.cc: New.
5771 * 21_strings/basic_string/cons/wchar_t/3.cc: New.
5772 * 21_strings/basic_string/cons/wchar_t/4.cc: New.
5773 * 21_strings/basic_string/cons/wchar_t/5.cc: New.
5774 * 21_strings/basic_string/element_access/char/1.cc: New.
5775 * 21_strings/basic_string/element_access/char/2.cc: New.
5776 * 21_strings/basic_string/element_access/char/3.cc: New.
5777 * 21_strings/basic_string/element_access/wchar_t/1.cc: New.
5778 * 21_strings/basic_string/element_access/wchar_t/2.cc: New.
5779 * 21_strings/basic_string/element_access/wchar_t/3.cc: New.
5780 * 21_strings/basic_string/find/char/1.cc: New.
5781 * 21_strings/basic_string/find/wchar_t/1.cc: New.
5782 * 21_strings/basic_string/insert/char/1.cc: New.
5783 * 21_strings/basic_string/insert/char/2.cc: New.
5784 * 21_strings/basic_string/insert/wchar_t/1.cc: New.
5785 * 21_strings/basic_string/insert/wchar_t/2.cc: New.
5786 * 21_strings/basic_string/inserters_extractors/char/1.cc: New.
5787 * 21_strings/basic_string/inserters_extractors/char/4.cc: New.
5788 * 21_strings/basic_string/inserters_extractors/char/5.cc: New.
5789 * 21_strings/basic_string/inserters_extractors/char/6.cc: New.
5790 * 21_strings/basic_string/inserters_extractors/char/7.cc: New.
5791 * 21_strings/basic_string/inserters_extractors/char/8.cc: New.
5792 * 21_strings/basic_string/inserters_extractors/char/9.cc: New.
5793 * 21_strings/basic_string/inserters_extractors/wchar_t/1.cc: New.
5794 * 21_strings/basic_string/inserters_extractors/wchar_t/4.cc: New.
5795 * 21_strings/basic_string/inserters_extractors/wchar_t/5.cc: New.
5796 * 21_strings/basic_string/inserters_extractors/wchar_t/6.cc: New.
5797 * 21_strings/basic_string/inserters_extractors/wchar_t/7.cc: New.
5798 * 21_strings/basic_string/inserters_extractors/wchar_t/8.cc: New.
5799 * 21_strings/basic_string/inserters_extractors/wchar_t/9.cc: New.
5800 * 21_strings/basic_string/operators/char/1.cc: New.
5801 * 21_strings/basic_string/operators/char/2.cc: New.
5802 * 21_strings/basic_string/operators/wchar_t/1.cc: New.
5803 * 21_strings/basic_string/operators/wchar_t/2.cc: New.
5804 * 21_strings/basic_string/replace/char/1.cc: New.
5805 * 21_strings/basic_string/replace/char/2.cc: New.
5806 * 21_strings/basic_string/replace/char/3.cc: New.
5807 * 21_strings/basic_string/replace/char/4.cc: New.
5808 * 21_strings/basic_string/replace/char/5.cc: New.
5809 * 21_strings/basic_string/replace/wchar_t/1.cc: New.
5810 * 21_strings/basic_string/replace/wchar_t/2.cc: New.
5811 * 21_strings/basic_string/replace/wchar_t/3.cc: New.
5812 * 21_strings/basic_string/replace/wchar_t/4.cc: New.
5813 * 21_strings/basic_string/replace/wchar_t/5.cc: New.
5814 * 21_strings/basic_string/rfind/char/1.cc: New.
5815 * 21_strings/basic_string/rfind/char/2.cc: New.
5816 * 21_strings/basic_string/rfind/char/3.cc: New.
5817 * 21_strings/basic_string/rfind/wchar_t/1.cc: New.
5818 * 21_strings/basic_string/rfind/wchar_t/2.cc: New.
5819 * 21_strings/basic_string/rfind/wchar_t/3.cc: New.
5820 * 21_strings/basic_string/substr/char/1.cc: New.
5821 * 21_strings/basic_string/substr/wchar_t/1.cc: New.
5822 * 21_strings/c_strings/char/1.cc: New.
5823 * 21_strings/c_strings/char/2.cc: New.
5824 * 21_strings/c_strings/wchar_t/1.cc: New.
5825 * 21_strings/c_strings/wchar_t/2.cc: New.
5826 * 21_strings/char_traits/requirements/char/1.cc: New.
5827 * 21_strings/char_traits/requirements/wchar_t/1.cc: New.
5828 * 21_strings/char_traits/typedefs/char/1.cc: New.
5830 2003-03-17 Paolo Carlini <pcarlini@unitus.it>
5831 Petur Runolfsson <peturr02@ru.is>
5834 * src/fstream.cc (basic_filebuf<char>::_M_underflow_common,
5835 basic_filebuf<wchar_t>::_M_underflow_common):
5836 if (gptr() < egptr()) return *gptr().
5837 * testsuite/27_io/filebuf_virtuals.cc (test16): Add.
5839 * testsuite/27_io/filebuf_members.cc (test_04): Minor
5840 changes: unlink fifo before making it, fix spelling error.
5842 2003-03-17 Benjamin Kosnik <bkoz@redhat.com>
5844 * testsuite/Makefile.am (CLEANFILES): Add tmp*.
5845 * testsuite/Makefile.in: Regenerate.
5846 * testsuite/27_io/filebuf_members.cc: Consistently name tmp files.
5849 2003-03-17 Petur Runolfsson <peturr02@ru.is>
5852 * include/bits/fstream.tcc (basic_filebuf::close):
5853 Always close file, even when write fails.
5854 * testsuite/27_io/filebuf_members.cc (test_07): New test.
5856 2003-03-17 Danny Smith <dannysmith@users.sourceforge.net>
5858 * libsupc++/Makefile.am (C_COMPILE): Remove.
5859 (LTCOMPILE): Likewise.
5860 * libsupc++/Makefile.in: Regenerate.
5862 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
5864 * testsuite/23_containers/bitset_members.cc: Add test variable.
5865 * testsuite/23_containers/map_insert.cc: Same.
5866 * testsuite/22_locale/ctype/cons/char/1.cc: Same.
5867 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Same.
5868 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: Same.
5869 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: Same.
5870 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: Same.
5871 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Same.
5872 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: Same.
5873 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: Same.
5874 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: Same.
5875 * testsuite/27_io/istream_exception.cc: Same.
5876 * testsuite/27_io/filebuf_virtuals.cc: Same.
5877 * testsuite/27_io/stringbuf_virtuals.cc: Same.
5878 * testsuite/27_io/ostream_inserter_arith.cc: Same.
5879 * testsuite/26_numerics/valarray_operators.cc: Same.
5880 * testsuite/26_numerics/slice.cc: Same.
5881 * testsuite/26_numerics/slice_array_assignment.cc: Same.
5882 * testsuite/24_iterators/istream_iterator.cc: Same.
5883 * mkcheck.in (TESTS_FILE): Use dejagnu-generated file if possible.
5885 2003-03-14 Petur Runolfsson <peturr02@ru.is>
5889 * config/locale/generic/ctype_members.cc,
5890 * config/locale/gnu/ctype_members.cc
5891 (ctype<wchar_t>::do_widen(char)): Cast argument to
5892 unsigned char before passing to btowc.
5893 (ctype<wchar_t>::do_widen(const char*, const char*, wchar_t*)):
5894 Convert characters with btowc instead of mbsrtowcs.
5895 (ctype<wchar_t>::do_narrow(const wchar_t*, const wchar_t*,
5897 Convert characters with wctob instead of wcsrtombs.
5898 * testsuite/22_locale/ctype/narrow/wchar_t/3.cc: New test.
5899 * testsuite/22_locale/ctype/widen/wchar_t/2.cc: New test.
5900 * testsuite/22_locale/ctype/widen/wchar_t/3.cc: New test.
5902 2003-03-14 Benjamin Kosnik <bkoz@redhat.com>
5904 * include/stdc++.h: New.
5905 * libsupc++/exception_defines.h (__EXCEPTION_DEFINES_H): Add guard.
5906 * include/Makefile.am (stamp-std-precompile): Generate stdc++.h.gch
5907 * include/Makefile.in: Regenerate.
5908 * testsuite_flags.in (--build-cxx): Add, but don't use PCHFLAGS.
5909 (--cxxflags): Put -g -O2 here.
5910 * testsuite/libstdc++-v3.dg/dg.exp: Remove -g -O2 here.
5912 2003-03-14 Loren J. Rittle <ljrittle@acm.org>
5914 * testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
5915 missing named locale.
5917 2003-03-14 Andreas Schwab <schwab@suse.de>
5919 * configure.in: Only append to makefiles that are newly created to
5920 avoid multiple multi-do/multi-clean rules.
5921 * configure: Rebuilt.
5923 2003-03-13 Jonathan Wakely <redi@gcc.gnu.org>
5925 * docs/html/configopts.html, docs/html/documentation.html,
5926 docs/html/explanations.html, docs/html/install.html,
5927 docs/html/19_diagnostics/howto.html, docs/html/faq/index.html: Fix
5928 invalid XHTML and make page header style consistent.
5930 2003-03-12 Jonathan Wakely <redi@gcc.gnu.org>
5932 * docs/html/faq/index.html: Explain memory "leaks" due to allocators.
5933 * docs/html/faq/index.txt: Regenerate.
5934 * docs/html/debug.html: Add a bit to allocator text and fix XHTML.
5936 2003-03-12 Andreas Schwab <schwab@suse.de>
5938 * acinclude.m4 (GLIBCPP_EXPORT_INSTALL_INFO): Avoid trailing /. in
5939 glibcpp_toolexeclibdir.
5940 * aclocal.m4, configure: Rebuilt.
5942 2003-03-11 Jonathan Wakely <redi@gcc.gnu.org>
5944 * docs/html/faq/index.html: Update text about location of headers.
5945 * docs/html/faq/index.txt: Regenerate.
5947 2003-03-11 Carlo Wood <carlo@alinoe.com>
5949 * include/bits/demangle.h: Prepend accessors of
5950 class qualifier with 'get_' in order to fix warnings
5951 when compiling with -Wshadow.
5953 2003-03-11 Loren J. Rittle <ljrittle@acm.org>
5955 * config/os/bsd/freebsd/ctype_inline.h: Support _M_table
5957 * testsuite/22_locale/ctype/cons/char/1.cc: Fix typo.
5959 * testsuite/testsuite_hooks.h (run_tests_wrapped_env): Do not
5960 report lack of setenv().
5962 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5964 * config/io/basic_file_stdio.cc: include <unistd.h>.
5966 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5967 Nathan Myers <ncm@cantrip.org>
5970 * config/io/basic_file_stdio.h (__basic_file<>::xsgetn, xsputn,
5971 seekoff, seekpos): Add a boolean parameter __stdio.
5972 * config/io/basic_file_stdio.cc (__basic_file<>::xsgetn, xsputn,
5973 seekoff, seekpos): If __stdio == true, use fread (fwrite, fseek/ftell,
5974 fseek/ftell, respectively), otherwise read (write, lseek, lseek,
5976 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external,
5977 _M_really_overflow, seekoff): Use the boolean parameter in the calls.
5978 * include/std/std_fstream.h (sync): Likewise.
5979 * src/fstream.cc (basic_filebuf<>::_M_underflow_common): Likewise.
5980 * src/ios.cc (ios_base::Init::_S_ios_create(bool)): Revert
5981 libstdc++/8399 commit involving isatty(0).
5982 * acinclude.m4 (GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_1): Remove.
5983 (GLIBCPP_CHECK_UNISTD_SUPPORT): Remove
5984 * configure.in: Remove call.
5985 * aclocal.m4: Regenerate.
5986 * config.h.in: Regenerate.
5987 * configure: Regenerate.
5988 * testsuite/27_io/narrow_stream_objects.cc (test11): Add.
5990 2003-03-09 Paolo Carlini <pcarlini@unitus.it>
5993 * include/bits/fstream.tcc (overflow): don't write EOF to file.
5994 * testsuite/27_io/filebuf_virtuals.cc (test15): Add.
5996 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
5999 * include/bits/basic_ios.h (_M_setstate): New.
6000 * include/bits/ostream.tcc (operator<<): Use it.
6001 * include/bits/istream.tcc (operator>>): Use it.
6002 * include/std/std_ostream.h (operator<<): Make friends.
6003 * include/std/std_istream.h (operator>>): Make friends.
6004 * testsuite/27_io/ostream_exception.cc,
6005 testsuite/27_io/istream_exception.cc: New tests.
6007 2003-03-08 Benjamin Kosnik <bkoz@redhat.com>
6009 * include/bits/locale_facets.tcc: Fix typo.
6011 2003-03-08 Loren J. Rittle <ljrittle@acm.org>
6013 * testsuite/26_numerics/c99_classification_macros_c.cc: Tweak test.
6015 * config/locale/generic/c_locale.cc
6016 (locale::facet::_S_create_c_locale): Throw runtime exception when
6017 unsupported language is specified.
6018 * testsuite/testsuite_hooks.h
6019 (run_test_wrapped_generic_locale_exception_catcher): New function.
6020 * testsuite/testsuite_hooks.cc (run_tests_wrapped_locale):
6021 Suppress runtime exception thrown by generic implementation.
6022 (run_tests_wrapped_env): Likewise.
6023 (run_test_wrapped_generic_locale_exception_catcher): New function.
6024 * testsuite/22_locale/collate/compare/char/1.cc: New test wrap.
6025 * testsuite/22_locale/collate/compare/char/2.cc: New test wrap.
6026 * testsuite/22_locale/collate/compare/char/3.cc: New test wrap.
6027 * testsuite/22_locale/collate/hash/char/2.cc: New test wrap.
6028 * testsuite/22_locale/collate/transform/char/2.cc: New test wrap.
6029 * testsuite/22_locale/collate/transform/char/3.cc: New test wrap.
6030 * testsuite/22_locale/collate_byname/1.cc: New test wrap.
6031 * testsuite/22_locale/ctype/is/char/2.cc: New test wrap.
6032 * testsuite/22_locale/facet/2.cc: New test wrap.
6033 * testsuite/22_locale/locale/cons/4.cc: New test wrap.
6034 * testsuite/22_locale/locale/cons/5.cc: New test wrap.
6035 * testsuite/22_locale/locale/cons/7.cc: New test wrap.
6036 * testsuite/22_locale/messages/members/char/1.cc: New test wrap.
6037 * testsuite/22_locale/messages/members/char/2.cc: New test wrap.
6038 * testsuite/22_locale/messages/members/char/3.cc: New test wrap.
6039 * testsuite/22_locale/messages_byname/1.cc: New test wrap.
6040 * testsuite/22_locale/money_get/get/char/1.cc: New test wrap.
6041 * testsuite/22_locale/money_get/get/char/2.cc: New test wrap.
6042 * testsuite/22_locale/money_get/get/char/3.cc: New test wrap.
6043 * testsuite/22_locale/money_get/get/char/4.cc: New test wrap.
6044 * testsuite/22_locale/money_put/put/char/1.cc: New test wrap.
6045 * testsuite/22_locale/money_put/put/char/2.cc: New test wrap.
6046 * testsuite/22_locale/money_put/put/char/3.cc: New test wrap.
6047 * testsuite/22_locale/moneypunct/members/char/2.cc: New test wrap.
6048 * testsuite/22_locale/moneypunct_byname/1.cc: New test wrap.
6049 * testsuite/22_locale/num_get/get/char/1.cc: New test wrap.
6050 * testsuite/22_locale/num_get/get/char/2.cc: New test wrap.
6051 * testsuite/22_locale/num_get/get/char/3.cc: New test wrap.
6052 * testsuite/22_locale/num_get/get/char/5.cc: New test wrap.
6053 * testsuite/22_locale/num_get/get/char/6.cc: New test wrap.
6054 * testsuite/22_locale/num_put/put/char/1.cc: New test wrap.
6055 * testsuite/22_locale/num_put/put/char/2.cc: New test wrap.
6056 * testsuite/22_locale/num_put/put/char/3.cc: New test wrap.
6057 * testsuite/22_locale/num_put/put/char/5.cc: New test wrap.
6058 * testsuite/22_locale/numpunct/members/char/1.cc: New test wrap.
6059 * testsuite/22_locale/numpunct/members/char/2.cc: New test wrap.
6060 * testsuite/22_locale/numpunct_byname/1.cc: New test wrap.
6061 * testsuite/22_locale/numpunct_byname/2.cc: New test wrap.
6062 * testsuite/22_locale/time_get/date_order/char/1.cc: New test wrap.
6063 * testsuite/22_locale/time_get/get_date/char/1.cc: New test wrap.
6064 * testsuite/22_locale/time_get/get_date/char/2.cc: New test wrap.
6065 * testsuite/22_locale/time_get/get_monthname/char/1.cc: New test wrap.
6066 * testsuite/22_locale/time_get/get_monthname/char/2.cc: New test wrap.
6067 * testsuite/22_locale/time_get/get_time/char/1.cc: New test wrap.
6068 * testsuite/22_locale/time_get/get_time/char/2.cc: New test wrap.
6069 * testsuite/22_locale/time_get/get_weekday/char/1.cc: New test wrap.
6070 * testsuite/22_locale/time_get/get_weekday/char/2.cc: New test wrap.
6071 * testsuite/22_locale/time_get/get_year/char/1.cc: New test wrap.
6072 * testsuite/22_locale/time_put/put/char/1.cc: New test wrap.
6073 * testsuite/22_locale/time_put/put/char/2.cc: New test wrap.
6074 * testsuite/22_locale/time_put/put/char/3.cc: New test wrap.
6075 * testsuite/22_locale/time_put/put/char/4.cc: New test wrap.
6076 * testsuite/22_locale/time_put/put/char/5.cc: New test wrap.
6077 * testsuite/22_locale/time_put/put/char/6.cc: New test wrap.
6078 * testsuite/22_locale/time_put/put/char/7.cc: New test wrap.
6079 * testsuite/22_locale/time_put/put/char/8.cc: New test wrap.
6080 * testsuite/27_io/filebuf_virtuals.cc: New test wrap.
6081 * testsuite/27_io/ios_members.cc: New test wrap.
6082 * testsuite/27_io/ostream_inserter_arith.cc (test02): Make void.
6084 * testsuite/27_io/streambuf_members.cc: New test wrap.
6085 * testsuite/27_io/stringbuf_virtuals.cc: New test wrap.
6087 2003-03-08 Paolo Carlini <pcarlini@unitus.it>
6088 Petur Runolfsson <peturr02@ru.is>
6091 * include/bits/streambuf.tcc (__copy_streambufs): Use
6092 sgetn-sputn only when sputn cannot fail, otherwise fall back
6093 to safe snextc-sputc.
6094 * testsuite/27_io/streambuf_members.cc (test11, test12): Add.
6096 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6098 * include/bits/locale_facets.tcc (num_put::do_put(bool)): Use
6099 locale cache for truename and falsename.
6101 2003-03-08 Jerry Quinn <jlquinn@optonline.net>
6103 * src/ios.cc (ios_base::ios_base): Correct order of _M_word and
6104 _M_word_size initialization.
6106 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6108 * include/bits/fstream.tcc (_M_convert_to_external):
6109 Set __elen to zero if codecvt::out eventually fails.
6111 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6114 * include/bits/fstream.tcc (_M_really_overflow): Check
6115 for _M_convert_to_external possible failures.
6116 * include/std/std_fstream.h (sync): Check _M_really_overflow
6117 return value and return -1 in case of failure.
6118 * testsuite/27_io/filebuf_virtuals.cc (test13, test14): Add.
6120 2003-03-07 Paolo Carlini <pcarlini@unitus.it>
6123 * include/bits/istream.tcc (operator>>(_CharT*),
6124 operator>>(basic_string&), ws): Pass a char_type to __ctype.is.
6125 * testsuite/27_io/stringstream.cc (test02): Add.
6127 * include/bits/istream.tcc (operator>>(_CharT*)):
6128 Assign a char_type to *__s.
6130 2003-03-07 Petur Runolfsson <peturr02@ru.is>
6133 * include/bits/locale_facets.tcc
6134 (collate::do_compare, collate::do_transform):
6135 Handle nul characters in input.
6136 * testsuite/22_locale/collate/compare/char/3.cc: New test.
6137 * testsuite/22_locale/collate/compare/wchar_t/3.cc: New test.
6138 * testsuite/22_locale/collate/transform/char/3.cc: New test.
6139 * testsuite/22_locale/collate/transform/wchar_t/3.cc: New test.
6141 2003-03-07 Jerry Quinn <jlquinn@optonline.net>
6143 * include/bits/streambuf_iterator.h (_M_put): Set _M_failed if
6145 * testsuite/27_io/ostream_fail.cc: New test.
6147 2003-03-07 Matthias Klose <doko@debian.org>
6149 * Makefile.am (AM_MAKEFLAGS): Also pass gxx_include_dir.
6150 FLAGS_TO_PASS: Set to AM_MAKEFLAGS
6151 * Makefile.in: Regenerate.
6152 * libsupc++/Makefile.am: Express glibcppinstalldir in terms
6154 AM_MAKEFLAGS: Pass gxx_include_dir.
6155 * libsupc++/Makefile.in: Regenerate.
6157 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
6159 * testsuite/27_io/ios_base_storage.cc (test02): Set exception
6160 mask. Test setting small-numbered pword and iword slots. Test
6161 behavior at limit of numeric_limits::max. Check that values are
6162 still good after failures.
6164 2003-03-06 Jerry Quinn <jlquinn@optonline.net>
6166 * src/ios.cc (ios_base::_M_init): Remove _M_word_size.
6167 (ios_base::ios_base): Set _M_word, _M_word_size.
6168 (ios_base::~ios_base): Remove redundant test.
6169 * testsuite/27_io/ios_base_storage.cc (test03): New.
6171 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
6173 * src/strstream.cc, include/bits/basic_string.tcc: Remove
6174 incorrect whitespace added in my previous change.
6176 2003-03-05 Carlo Wood <carlo@alinoe.com>
6178 * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
6179 _S_initialized() in order to allow debugging libraries to detect
6180 when the std streams are initialized from an overloaded operator
6183 2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
6185 * libsupc++/demangle.h: Move to..
6186 * include/bits/demangle.h: ...here.
6187 * src/demangle.cc: Adjust include.
6188 * include/Makefile.am (bits_headers): Add.
6189 * include/Makefile.in: Regenerate.
6191 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
6193 * src/globals.cc: Clarify comments, remove c_locale_imp_compat.
6195 * config/linker-map.gnu: Filter typeinfo and vtable info.
6197 2003-03-04 Jerry Quinn <jlquinn@optonline.net>
6199 * src/ios.cc (ios_base::_M_grow_words): Don't delete _M_word on
6200 new failure. Throw exception if badbit and exception mask when ix
6201 >= numeric_limits<int>::max().
6203 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
6205 * src/strstream.cc (strstreambuf::overflow): Make sure operands of
6206 min and max have the same type.
6207 * include/bits/basic_string.tcc (append, rfind, compare): Likewise.
6209 2003-03-04 Benjamin Kosnik <bkoz@redhat.com>
6211 * include/Makefile.am (allstamps): Remove stamp-std-precompile.
6212 * include/Makefile.in: Regenerate.
6214 2003-03-03 Benjamin Kosnik <bkoz@redhat.com>
6216 * testsuite/abi_check.cc (report_symbol_info): Add version info.
6218 * config/linker-map.gnu: Hide more stuff.
6219 * include/Makefile.am: Cleanups.
6220 * include/Makefile.in: Regenerate.
6222 2003-02-27 Jerry Quinn <jlquinn@optonline.net>
6224 * config/locale/generic/messages_members.h (messages::messages):
6225 Remove name from unused parameter.
6227 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
6229 * src/Makefile.am (sources): Add demangle.cc.
6232 * src/Makefile.in: Regenerate.
6233 * libsupc++/Makefile.am: Remove old __cxa_demangle bits.
6234 * libsupc++/Makefile.in: Regenerate.
6236 * testsuite/testsuite_hooks.h
6237 (__gnu_cxx_test::verify_demangle): New.
6238 * testsuite/testsuite_hooks.cc: Define.
6240 2003-02-27 Carlo Wood <carlo@alinoe.com>
6242 * src/demangle.cc: New.
6243 * libsupc++/demangle.h: New.
6245 2003-02-27 Benjamin Kosnik <bkoz@redhat.com>
6246 Carlo Wood <carlo@alinoe.com>
6248 * testsuite/demangle/abi_examples/01.cc: New.
6249 * testsuite/demangle/abi_examples/02.cc: New.
6250 * testsuite/demangle/abi_examples/03.cc: New.
6251 * testsuite/demangle/abi_examples/04.cc: New.
6252 * testsuite/demangle/abi_examples/05.cc: New.
6253 * testsuite/demangle/abi_examples/06.cc: New.
6254 * testsuite/demangle/abi_examples/07.cc: New.
6255 * testsuite/demangle/abi_examples/08.cc: New.
6256 * testsuite/demangle/abi_examples/09.cc: New.
6257 * testsuite/demangle/abi_examples/10.cc: New.
6258 * testsuite/demangle/abi_examples/11.cc: New.
6259 * testsuite/demangle/abi_examples/12.cc: New.
6260 * testsuite/demangle/abi_examples/13.cc: New.
6261 * testsuite/demangle/abi_examples/14.cc: New.
6262 * testsuite/demangle/abi_examples/15.cc: New.
6263 * testsuite/demangle/abi_examples/16.cc: New.
6264 * testsuite/demangle/abi_examples/17.cc: New.
6265 * testsuite/demangle/abi_examples/18.cc: New.
6266 * testsuite/demangle/abi_examples/19.cc: New.
6267 * testsuite/demangle/abi_examples/20.cc: New.
6268 * testsuite/demangle/abi_examples/21.cc: New.
6269 * testsuite/demangle/abi_examples/22.cc: New.
6270 * testsuite/demangle/abi_examples/23.cc: New.
6271 * testsuite/demangle/abi_examples/24.cc: New.
6272 * testsuite/demangle/abi_examples/25.cc: New.
6273 * testsuite/demangle/abi_examples/26.cc: New.
6274 * testsuite/demangle/abi_text/01.cc: New.
6275 * testsuite/demangle/abi_text/02.cc: New.
6276 * testsuite/demangle/abi_text/03.cc: New.
6277 * testsuite/demangle/abi_text/04.cc: New.
6278 * testsuite/demangle/abi_text/05.cc: New.
6279 * testsuite/demangle/abi_text/06.cc: New.
6280 * testsuite/demangle/abi_text/07.cc: New.
6281 * testsuite/demangle/abi_text/08.cc: New.
6282 * testsuite/demangle/abi_text/09.cc: New.
6283 * testsuite/demangle/abi_text/10.cc: New.
6284 * testsuite/demangle/abi_text/11.cc: New.
6285 * testsuite/demangle/abi_text/12.cc: New.
6286 * testsuite/demangle/abi_text/13.cc: New.
6287 * testsuite/demangle/abi_text/14.cc: New.
6288 * testsuite/demangle/regression/3111-1.cc: New.
6289 * testsuite/demangle/regression/3111-2.cc: New.
6290 * testsuite/demangle/regression/7986-01.cc: New.
6291 * testsuite/demangle/regression/7986-02.cc: New.
6292 * testsuite/demangle/regression/7986-03.cc: New.
6293 * testsuite/demangle/regression/7986-04.cc: New.
6294 * testsuite/demangle/regression/7986-05.cc: New.
6295 * testsuite/demangle/regression/7986-06.cc: New.
6296 * testsuite/demangle/regression/7986-07.cc: New.
6297 * testsuite/demangle/regression/7986-08.cc: New.
6298 * testsuite/demangle/regression/7986-09.cc: New.
6299 * testsuite/demangle/regression/7986-10.cc: New.
6300 * testsuite/demangle/regression/7986-11.cc: New.
6301 * testsuite/demangle/regression/7986-12.cc: New.
6302 * testsuite/demangle/regression/7986.cc: New.
6303 * testsuite/demangle/regression/8897.cc: New.
6304 * testsuite/demangle/regression/cw-01.cc: New.
6305 * testsuite/demangle/regression/cw-02.cc: New.
6306 * testsuite/demangle/regression/cw-03.cc: New.
6307 * testsuite/demangle/regression/cw-04.cc: New.
6308 * testsuite/demangle/regression/cw-05.cc: New.
6309 * testsuite/demangle/regression/cw-06.cc: New.
6310 * testsuite/demangle/regression/cw-07.cc: New.
6311 * testsuite/demangle/regression/cw-08.cc: New.
6312 * testsuite/demangle/regression/cw-09.cc: New.
6313 * testsuite/demangle/regression/cw-10.cc: New.
6314 * testsuite/demangle/regression/cw-11.cc: New.
6315 * testsuite/demangle/regression/cw-12.cc: New.
6316 * testsuite/demangle/regression/cw-13.cc: New.
6317 * testsuite/demangle/regression/cw-14.cc: New.
6318 * testsuite/demangle/regression/old.cc: New.
6320 2003-02-25 Phil Edwards <pme@gcc.gnu.org>
6322 * docs/doxygen/Intro.3: Update with new (proper) names.
6323 * docs/doxygen/TODO: Update.
6324 * docs/doxygen/run_doxygen: More comments, fix up man pages.
6325 Fake entries for standard typedefs.
6326 * docs/doxygen/user.cfg.in: Turn INLINE_INHERITED_MEMB back on.
6327 * docs/html/documentation.html: Top-level man page is now called
6329 * include/std/std_limits.h: Doxygenate.
6331 2003-02-25 Scott Snyder <snyder@fnal.gov>
6334 * include/bits/stl_map.h (lower_bound, upper_bound, equal_range):
6335 Correct documentation.
6336 * include/bits/stl_multimap.h (lower_bound, upper_bound,
6337 equal_range): Likewise.
6339 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
6343 (basic_filebuf<char/wchar_t>::_M_underflow_common): When
6344 __bump is true (uflow), always increment the read pointer
6345 (_M_in_cur) before returning successfully.
6346 * testsuite/27_io/filebuf_virtuals.cc (test12): Add.
6348 2003-02-24 Paolo Carlini <pcarlini@unitus.it>
6349 Nathan Myers <ncm@cantrip.org>
6351 PR libstdc++/9404, PR libstdc++/9701 (partial)
6352 (aka pptr == epptr implies overflow)
6353 * include/bits/fstream.tcc (_M_allocate_internal_buffer):
6354 Consistently, _M_out_end points to the end of the buffer just
6356 (overflow): Tweak to use _M_out_buf_size().
6357 (_M_convert_to_external): The role of the old _M_out_end is
6358 now played by _M_out_lim.
6359 (_M_really_overflow): Likewise.
6360 (seekoff): Likewise.
6361 (setbuf): _M_out_end points to the end of the external buffer.
6362 * include/bits/sstream.tcc (overflow): Rewrote, taking into
6363 account the resolution of DR 169 (TC).
6364 (seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
6365 (seekpos): Use _M_string.capacity(); tweak.
6366 * include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
6367 * include/std/std_fstream.h (sync): The role of the old
6368 _M_out_end is now played by _M_out_lim.
6369 (_M_set_indeterminate): Use _M_set_determinate.
6370 (_M_set_determinate): _M_out_end is now _M_out_lim.
6371 (_M_is_indeterminate): Likewise.
6372 * include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
6373 (_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
6374 which have the information readily available as _M_string.capacity();
6375 for ate and app modes, pass the string size to _M_really_sync.
6376 (_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
6377 point to the end of the buffer (i.e., epptr) and to the string end,
6379 * include/std/std_streambuf.h: tweak comments, add _M_out_lim,
6380 which points to the right limit of the used put area.
6381 (_M_out_cur_move): The role of the old _M_out_end is now played
6383 (_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
6384 _M_out_end - _M_out_cur (i.e., pptr), _very_ close to the letter
6386 (basic_streambuf()): Initialize _M_out_lim too.
6387 * testsuite/27_io/filebuf_virtuals.cc (test10): Trivial tweak.
6388 * testsuite/27_io/filebuf_virtuals.cc (test11): Add.
6389 * testsuite/27_io/stringbuf_virtuals.cc (test09): Add.
6391 2003-02-24 Benjamin Kosnik <bkoz@redhat.com>
6393 * testsuite/27_io/ios_base_storage.cc (main): Call
6396 2003-02-21 Jerry Quinn <jlquinn@optonline.net>
6398 * include/bits/locale_facets.tcc (_M_convert_float): Replace
6399 numpunct facet accesses with data from __locale_cache.
6401 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
6403 * docs/html/faq/index.html (3.9): New note, wchar_t on FreeBSD.
6404 * docs/html/faq/index.txt: Regenerate.
6406 2003-02-20 Phil Edwards <pme@gcc.gnu.org>
6408 * config/linker-map.gnu: Also export locking symbols needed for the
6409 generic atomicity.h case.
6411 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
6413 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6415 * configure: Rebuilt.
6417 2003-02-19 Paolo Carlini <pcarlini@unitus.it>
6419 * include/bits/sstream.tcc (overflow): According to
6420 27.7.1.3, p5, actual output is performed by sputc(c).
6422 2003-02-19 Phil Edwards <pme@gcc.gnu.org>
6425 * include/bits/stl_alloc.h: Remove all traces of assert().
6427 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
6429 * include/std/std_sstream.h (str()): the size of the
6430 current string may be different from the initial one
6431 whenever _M_out_end > _M_out_beg.
6432 * testsuite/27_io/stringbuf_members.cc (test07): Add.
6434 2003-02-18 Paolo Carlini <pcarlini@unitus.it>
6437 * include/bits/stl_alloc.h (__pool_alloc::allocate): Remove assert.
6439 2003-02-17 Benjamin Kosnik <bkoz@redhat.com>
6441 * include/bits/basic_ios.tcc (copyfmt): Copy locale data as well.
6442 * testsuite/27_io/ios_members.cc (test03): New.
6444 2003-02-17 Jerry Quinn <jlquinn@optonline.net>
6446 * include/bits/basic_ios.h (basic_ios::_M_cache_locale): Declare.
6447 (basic_ios::_M_cache_facets): Move into above.
6448 * include/bits/basic_ios.tcc (basic_ios::copyfmt): Rebuild locale
6450 (basic_ios::imbue): Force locale cache to be built.
6451 (basic_ios::_M_init): Create and initialize locale cache.
6452 * include/bits/ios_base.h (__locale_cache_base): Declare.
6453 (ios_base::_M_locale_cache): New.
6454 (ios_base::_M_cache): Define.
6455 * include/bits/locale_facets.h: (__num_base): Fix comment. Add
6457 (__locale_cache_base,__locale_cache<_CharT>): New classes.
6458 (__locale_cache<char>, __locale_cache<wchar_t>): New specializations.
6459 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use locale
6460 cache literal string, grouping flag, thousands separator.
6461 (__locale_cache<_CharT>::__locale_cache): New.
6462 (__locale_cache<_CharT>::_M_init): New.
6463 * src/ios.cc: Clear _M_locale_cache in constructor.
6464 * src/locale-inst.cc (__locale_cache<char>, __locale_cache<_char_t>):
6467 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6469 * src/locale-inst.cc: Do not include <cassert>.
6470 * src/locale.cc: Likewise.
6472 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6475 * include/std/std_fstream.h: Declare underflow and uflow
6476 specializations, change generic definitions to do nothing.
6477 * src/fstream.cc: Add underflow and uflow specializations.
6479 2003-02-17 Paolo Carlini <pcarlini@unitus.it>
6482 * include/bits/fstream.tcc (_M_convert_to_external):
6483 Deal correctly with noconv, as prescribed by 27.8.1.4,p8.
6484 * testsuite/27_io/filebuf_virtuals.cc (test10): Add.
6486 2003-02-13 Benjamin Kosnik <bkoz@redhat.com>
6488 * include/bits/c++config (_GLIBCPP_EXTERN_TEMPLATE): Define.
6489 * include/bits/basic_ios.tcc: Guard use of extern template.
6490 * include/std/std_iomanip.h: Same.
6491 * include/bits/streambuf.tcc: Same.
6492 * include/bits/stl_alloc.h: Same.
6493 * include/bits/locale_facets.tcc: Same.
6494 * include/bits/ostream.tcc: Same.
6495 * include/bits/istream.tcc: Same.
6496 * include/bits/fstream.tcc: Same.
6497 * include/bits/basic_string.tcc: Same.
6499 2003-02-13 Paolo Carlini <pcarlini@unitus.it>
6501 * include/bits/ostream.tcc (sentry::sentry): Improve
6502 performance-wise the fix for libstdc++/9563.
6504 2003-02-12 Phil Edwards <pme@gcc.gnu.org>
6506 * config/cpu/generic/atomicity.h (_Atomic_add_mutex): Fix declaration.
6507 (_GLIBCPP_NEED_GENERIC_MUTEX): Define for this file.
6508 (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once): Declare
6509 when we don't have static mutex initialization.
6510 (__exchange_and_add): Use _Atomic_add_mutex_once.
6511 * src/misc-inst.cc: Definitions of all the above.
6513 2003-02-12 Paolo Carlini <pcarlini@unitus.it>
6516 * include/bits/ostream.tcc (sentry::sentry): Check
6517 the state of the stream after the preparation.
6518 * testsuite/27_io/ostream_sentry.cc (test02): Add.
6520 2003-02-11 Benjamin Kosnik <bkoz@redhat.com>
6522 * include/Makefile.am (stamp-std-precompile): Add rule.
6523 * include/Makefile.in: Regenerated.
6525 2003-02-11 Jerry Quinn <jlquinn@optonline.net>
6526 Benjamin Kosnik <benjamin@redhat.com>
6528 * include/bits/locale_facets.h (__num_base): Add _S_atoms_out.
6529 Add indexes into this array.
6530 (__num_base::_S_atoms): To _S_atoms_in.
6531 (num_put::_M_insert): Rename to _M_pad.
6532 (num_put::_M_convert_int): Adjust remove __mod, __modl arguments.
6533 (num_put::_M_widen_int): Rename to _M_group_int.
6534 (num_put::_M_widen_float): Rename to _M_group_float.
6535 * include/bits/locale_facets.tcc (__int_to_char): New inline
6536 function and adapter functions.
6537 (num_put::_M_group_int): Streamline.
6538 (num_put::_M_group_float): Streamline.
6539 (num_put::_M_convert_int): Remove unused parameter names. Choose
6540 large enough buffer for text. Use __int_to_char instead of
6541 __convert_from_v. Formatted text is now at the end of the buffer.
6542 (num_put::_M_convert_float): Preliminary fixups.
6543 * src/locale-inst.cc (__convert_from_v<long long>): Add ifdef.
6544 (__int_to_char<unsigned long long>): Same.
6545 (__int_to_char<char, unsigned long>): New.
6546 (__int_to_char<char, unsigned long long>): New.
6547 (__int_to_char<wchar_t, unsigned long>): New.
6548 (__int_to_char<wchar_t, unsigned long long>): New.
6550 2003-02-11 Scott Snyder <snyder@fnal.gov>
6553 * include/bits/fstream.tcc (seekoff): Avoid operator+
6556 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
6559 * include/ext/stdio_filebuf.h
6560 (stdio_filebuf(int, std::ios_base::openmode, bool, int_type),
6561 stdio_filebuf(std::__c_file*, std::ios_base::openmode, int_type)):
6562 Change to take a __size parameter of type size_t, not
6563 of type (template parameter dependent) int_type.
6564 * src/ios.cc (ios_base::Init::_S_ios_create): Change type of
6565 size vars to size_t.
6566 * testsuite/ext/stdio_filebuf.cc: Add.
6568 2003-02-11 Paolo Carlini <pcarlini@unitus.it>
6569 Petur Runolfsson <peturr02@ru.is>
6572 * include/bits/streambuf.tcc (__copy_streambufs):
6573 Don't conditionalize the copy to __testput.
6574 * testsuite/27_io/streambuf_members.cc (test09, test10): Add.
6576 2002-02-11 DJ Delorie <dj@redhat.com>
6578 * acinclude.m4: Check for native targets that can't link at
6579 this point in the build.
6580 * aclocal.m4: Regenerate.
6581 * configure: Regenerate.
6583 2003-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6585 * hppa/atomicity.h (__Atomicity_lock<__inst>::_S_atomicity_lock):
6587 (__exchange_and_add, __atomic_add): Use PA 2.0 ordered store to reset
6590 2003-02-07 Paolo Carlini <pcarlini@unitus.it>
6592 * testsuite/27_io/filebuf_virtuals.cc (test08): Fix for
6593 unsigned char platforms.
6595 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
6598 * include/std/std_istream.h
6599 (basic_istream::sentry::operator bool()): Make const.
6600 * include/std/std_ostream.h
6601 (basic_ostream::sentry::operator bool()): Likewise.
6602 * testsuite/27_io/istream_sentry.cc (test03): Add.
6603 * testsuite/27_io/ostream_sentry.cc: Add.
6605 2003-02-06 Paolo Carlini <pcarlini@unitus.it>
6608 Implement resolution of DR 231 (Ready)
6609 * include/bits/locale_facets.h (__num_base::_S_format_float):
6610 Change declaration: return void, remove __prec parameter.
6611 * src/locale.cc (__num_base::_S_format_float): Implement
6612 resolution of DR 231.
6613 * include/bits/locale_facets.tcc (num_put::_M_convert_float):
6614 Tweak uses. Check for negative precision.
6615 * testsuite/22_locale/num_put/put/char/6.cc: Add
6616 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
6618 2003-02-06 Peter Soetens <peter.soetens@mech.kuleuven.ac.be>
6620 * config/io/basic_file_libio.h: Fixups.
6621 * config/io/c_io_libio.h: Same.
6622 * libio/Makefile.am: Same.
6623 * libio/Makefile.in: Regenerated.
6625 2003-02-06 Benjamin Kosnik <bkoz@redhat.com>
6627 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc (test01):
6628 Explicitly use the "C" locale.
6629 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc (test01): Same.
6631 2003-02-06 Petur Runolfsson <peturr02@ru.is>
6635 PR libstdc++/9028 (partial)
6641 (codecvt<wchar_t, char, mbstate_t>::do_encoding,
6642 codecvt<wchar_t, char, mbstate_t>::do_length,
6643 codecvt<wchar_t, char, mbstate_t>::do_max_length):
6645 * config/locale/generic/codecvt_members.cc: ...here.
6646 * config/locale/gnu/codecvt_members.cc: ...and here.
6648 * config/locale/generic/codecvt_members.cc,
6649 * config/locale/gnu/codecvt_members.cc
6650 (codecvt<wchar_t, char, mbstate_t>::do_encoding
6651 codecvt<wchar_t, char, mbstate_t>::do_in,
6652 codecvt<wchar_t, char, mbstate_t>::do_length,
6653 codecvt<wchar_t, char, mbstate_t>::do_max_length,
6654 codecvt<wchar_t, char, mbstate_t>::do_out):
6655 New implementation that handles stateless encodings,
6658 * config/locale/generic/codecvt_members.cc,
6659 * config/locale/gnu/codecvt_members.cc,
6660 * config/locale/ieee_1003.1-2001/codecvt_specializations.h,
6661 * include/bits/codecvt.h,
6663 (codecvt::length, codecvt::do_length):
6664 Change type of first argument of length and do_length from
6665 'const state_type&' to 'state_type&' according to DR 75.
6667 * testsuite/22_locale/codecvt/always_noconv/wchar_t/1.cc: Cleanup.
6668 * testsuite/22_locale/codecvt/always_noconv/wchar_t/2.cc: New test.
6669 * testsuite/22_locale/codecvt/always_noconv/wchar_t/3.cc: New test.
6670 * testsuite/22_locale/codecvt/always_noconv/wchar_t/4.cc: New test.
6671 * testsuite/22_locale/codecvt/encoding/wchar_t/1.cc:
6672 Cleanup and check for correct return value from encoding
6674 * testsuite/22_locale/codecvt/encoding/wchar_t/2.cc: New test.
6675 * testsuite/22_locale/codecvt/encoding/wchar_t/3.cc: New test.
6676 * testsuite/22_locale/codecvt/encoding/wchar_t/4.cc: New test.
6677 * testsuite/22_locale/codecvt/in/wchar_t/1.cc: Cleanup.
6678 * testsuite/22_locale/codecvt/in/wchar_t/2.cc: New test.
6679 * testsuite/22_locale/codecvt/in/wchar_t/3.cc: New test.
6680 * testsuite/22_locale/codecvt/in/wchar_t/4.cc: New test.
6681 * testsuite/22_locale/codecvt/in/wchar_t/5.cc: New test.
6682 * testsuite/22_locale/codecvt/in/wchar_t/6.cc: New test.
6683 * testsuite/22_locale/codecvt/in/wchar_t/7.cc: New test.
6684 * testsuite/22_locale/codecvt/in/wchar_t/8.cc: New test.
6685 * testsuite/22_locale/codecvt/in/wchar_t/9.cc: New test.
6686 * testsuite/22_locale/codecvt/length/char/1.cc: Cleanup.
6687 * testsuite/22_locale/codecvt/length/char/2.cc: New test.
6688 * testsuite/22_locale/codecvt/length/wchar_t/1.cc: Cleanup.
6689 * testsuite/22_locale/codecvt/length/wchar_t/2.cc: New test.
6690 * testsuite/22_locale/codecvt/length/wchar_t/3.cc: New test.
6691 * testsuite/22_locale/codecvt/length/wchar_t/4.cc: New test.
6692 * testsuite/22_locale/codecvt/length/wchar_t/5.cc: New test.
6693 * testsuite/22_locale/codecvt/length/wchar_t/6.cc: New test.
6694 * testsuite/22_locale/codecvt/length/wchar_t/7.cc: New test.
6695 * testsuite/22_locale/codecvt/max_length/wchar_t/1.cc: Cleanup.
6696 * testsuite/22_locale/codecvt/max_length/wchar_t/2.cc: New test.
6697 * testsuite/22_locale/codecvt/max_length/wchar_t/3.cc: New test.
6698 * testsuite/22_locale/codecvt/max_length/wchar_t/4.cc: New test.
6699 * testsuite/22_locale/codecvt/out/wchar_t/1.cc: Cleanup.
6700 * testsuite/22_locale/codecvt/out/wchar_t/2.cc: New test.
6701 * testsuite/22_locale/codecvt/out/wchar_t/3.cc: New test.
6702 * testsuite/22_locale/codecvt/out/wchar_t/4.cc: New test.
6703 * testsuite/22_locale/codecvt/out/wchar_t/5.cc: New test.
6704 * testsuite/22_locale/codecvt/out/wchar_t/6.cc: New test.
6705 * testsuite/22_locale/codecvt/out/wchar_t/7.cc: New test.
6706 * testsuite/22_locale/codecvt/unicode/1.cc: New test.
6707 * testsuite/22_locale/codecvt/unshift/wchar_t/1.cc: Cleanup.
6708 * testsuite/22_locale/codecvt/unshift/wchar_t/2.cc: New test.
6709 * testsuite/22_locale/codecvt/unshift/wchar_t/3.cc: New test.
6710 * testsuite/22_locale/codecvt/unshfit/wchar_t/4.cc: New test.
6712 2003-02-05 Benjamin Kosnik <bkoz@redhat.com>
6714 * include/bits/locale_facets.tcc (time_put::do_put): Use __write.
6715 (money_put::do_put): Same.
6717 2003-02-05 Jerry Quinn <jlquinn@optonline.net>
6719 * include/bits/ios_base.h (ios_base): Document reserved storage.
6721 * include/bits/locale_facets.h: (struct __pad): Comment on
6723 (__verify_grouping): Same.
6724 (__add_grouping): Same.
6725 * include/bits/locale_facets.tcc (__verify_grouping): Move
6726 comments to declaration.
6727 (__add_grouping): Same.
6729 * include/bits/locale_facets.tcc:
6730 (__write<_CharT, _OutIter>): New function.
6731 (__write<_CharT>): New function specialization.
6732 (num_put::_M_insert): Remove explicit loop over iterator. Use
6734 (num_put::_M_widen_float): Remove __basefield.
6735 (num_put::_M_widen_int): Move __basefield to within grouping block.
6737 * include/bits/streambuf_iterator.h: Include <streambuf>.
6738 (ostreambuf_iterator::_M_put): Add.
6740 2003-02-05 Paolo Carlini <pcarlini@unitus.it>
6742 * testsuite/26_numerics/valarray_name_lookup.cc: Fix typo.
6744 2003-02-04 Nathan Myers <ncm@cantrip.org>
6746 * testsuite/25_algorithms/min_max.cc (test02): Add.
6748 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6750 PR libstdc++/9439, PR libstdc++/9425
6751 * config/io/basic_file_stdio.cc
6752 (__basic_file<char>::seekoff, seekpos): Return -1L if
6754 * include/bits/fstream.tcc (basic_filebuf::seekoff):
6755 Check _M_file.seekoff return value; always return
6756 pos_type(off_type(-1)) in case of failure.
6757 (basic_filebuf::pbackfail): Check this->seekoff return
6758 value and return traits_type::eof() in case of failure.
6759 * testsuite/27_io/filebuf_virtuals.cc (test09): Add.
6761 2003-02-04 Jerry Quinn <jlquinn@optonline.net>
6763 * include/std/std_ostream.h (ostream::_M_write): Declare.
6764 * ostream.tcc (ostream::_M_write): Define.
6765 (basic_ostream::write): Use it.
6766 (operator<<(basic_ostream, _CharT)): Ditto.
6767 (operator<<(basic_ostream, char)): Ditto.
6768 (operator<<(basic_ostream, _CharT*)): Ditto.
6769 (operator<<(basic_ostream, char*)): Ditto.
6770 (operator<<(basic_ostream, basic_string)): Ditto.
6772 2003-02-04 Benjamin Kosnik <bkoz@redhat.com>
6774 * testsuite/26_numerics/valarray_name_lookup.cc: Fix.
6776 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
6778 * docs/html/27_io/howto.html: Link to Dietmar Kuehl's IOStream page,
6779 add HTML comment about updating links if numbering changes.
6781 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6784 * include/bits/streambuf.tcc (sputbackc): Access
6785 this->gptr()[-1] only if _M_in_beg < _M_in_cur.
6786 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6788 2003-02-04 Paolo Carlini <pcarlini@unitus.it>
6791 * include/bits/fstream.tcc (open): If the 'ate' repositioning
6792 operation fails, calls close _and_ returns a null pointer
6793 to indicate failure (27.8.1.3,4).
6794 * testsuite/27_io/filebuf_members.cc (test_06): Add.
6796 2003-02-04 Petur Runolfsson <peturr02@ru.is>
6798 * testsuite/27_io/filebuf_members.cc (test_04): Remove exit(0).
6800 2002-02-04 Jonathan Wakely <redi@gcc.gnu.org>
6802 * docs/html/27_io/howto.html: New section on stdio_filebuf.
6803 * docs/html/ext/howto.html: Move stdio_filebuf notes to 27_io.
6804 * docs/html/documentation.html: Regenerate.
6806 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
6808 * docs/html/17_intro/porting.texi: Update to GFDL 1.2.
6809 * docs/html/17_intro/porting.html: Regenerate.
6811 2003-02-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6812 Phil Edwards <pme@gcc.gnu.org>
6814 * include/std/std_bitset.h: Replace CHAR_BIT with __CHAR_BIT__, use
6815 numeric_limits for bits-per-word values.
6816 (_Base_bitset::_M_do_count, _Base_bitset<1>::_M_do_count):
6817 Use __builtin_popcountl instead.
6818 (_Base_bitset::_M_do_find_first, _Base_bitset::_M_do_find_next,
6819 _Base_bitset<1>::_M_do_find_first, _Base_bitset<1>::_M_do_find_next):
6820 Use __builtin_ctzl instead.
6821 (_S_bit_count, _S_first_one): Remove.
6822 * config/linker-map.gnu (GLIBCPP_3.4): Remove std::_S_bit_count.
6823 * src/Makefile.am (sources): Remove bitset.cc.
6824 * src/bitset.cc: Delete file.
6825 * src/Makefile.in: Regenerate.
6827 2003-02-03 Phil Edwards <pme@gcc.gnu.org>
6829 PR libstdc++/9527, PR libstdc++/8713
6830 * docs/html/install.html: Mention glibc version requirement.
6831 * docs/html/faq/index.html (3.8): New note, glibc 2.2.5+ is needed
6832 with 3.2.1+ (formatting bugfixes).
6833 * docs/html/faq/index.txt: Regenerate.
6835 2003-02-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
6838 * include/bits/valarray_before.h (_UnBase::operator[]): Apply unary
6841 * include/bits/valarray_before.h (__not_equal_to): Use != instead
6844 * testsuite/26_numerics/valarray_operators.cc: New test.
6846 2003-02-01 Phil Edwards <pme@gcc.gnu.org>
6848 * docs/html/faq/index.html: Correct link to libg++ information.
6849 * docs/html/faq/index.txt: Regenerated.
6851 2003-02-01 Paolo Carlini <pcarlini@unitus.it>
6852 Benjamin Kosnik <bkoz@redhat.com>
6854 Const correctness issue:
6855 http://gcc.gnu.org/ml/libstdc++/2003-01/msg00370.html
6856 * include/bits/locale_classes.h
6857 (locale::_Impl::_M_facets): Change type to const facet**.
6858 (locale::_Impl::_M_install_facet): Change declaration to
6860 (locale::facet::_M_references): Make mutable.
6861 (locale::facet::_M_add_reference): Declare const.
6862 (locale::facet::_M_remove_reference): Likewise.
6863 * include/bits/locale_facets.tcc
6864 (use_facet(const locale&)): Tweak for const facet** _M_facets.
6865 (has_facet(const locale&)): Likewise.
6867 (locale::facet::_M_add_reference): Adjust definition.
6868 (locale::facet::_M_remove_reference): Likewise.
6870 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak for
6871 const facet** _M_facets.
6872 (locale::_Impl::_Impl(const char*, size_t)): Likewise.
6873 (locale::_Impl::_Impl(facet**, size_t, bool)): Likewise.
6874 (locale::_Impl::_M_install_facet): Adjust definition to take
6875 const facet* and for const facet** _M_facets.
6876 * testsuite/22_locale/locale/cons/8.cc: Add.
6878 2003-01-29 Mark Mitchell <mark@codesourcery.com>
6880 * include/std/std_limits.h (numeric_limits<float>::has_infinity):
6881 Use __FLT_HAS_INIFINITY__ to initialize.
6882 (numeric_limits<float>::has_quiet_NaN): Likewise.
6883 (numeric_limits<double>::has_infinity): Use __DBL_HAS_INIFINITY__
6885 (numeric_limits<double>::has_quiet_NaN): Likewise.
6886 (numeric_limits<long double>::has_infinity): Use
6887 __LDBL_HAS_INIFINITY__ to initialize.
6888 (numeric_limits<long_double>::has_quiet_NaN): Likewise.
6890 2003-01-28 Nathan Sidwell <nathan@codesourcery.com>
6893 * libsupc++/tinfo.cc (__vmi_class_type_info::__do_dyncast): Cope
6894 with bases which are very ambiguous.
6896 2003-01-28 Danny Smith <dannysmith@users.sourceforge.net>
6898 * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
6899 @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
6900 * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
6901 * src/Makefile.in: Regenerate.
6902 * libsupc++/Makefile.in: Regenerate.
6904 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
6906 * acinclude.m4 (glibcpp_toolexeclibdir): Instead of
6907 $(MULTISUBDIR), use `$CC -print-multi-os-directory`, unless
6908 version_specific_libs is enabled.
6909 * aclocal.m4, configure: Rebuilt.
6911 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
6913 * include/bits/valarray_meta.h: Remove, split into ...
6914 * include/bits/valarray_before.h: ... this, and ...
6915 * include/bits/valarray_after.h: ... this.
6916 * include/std/std_valarray.h: Adjust.
6917 * include/Makefile.am (bits_headers): Adjust.
6918 * include/Makefile.in: Regenerate.
6920 2003-01-24 Andreas Schwab <schwab@suse.de>
6922 * config/linker-map.gnu: Fix for size_t variance.
6924 2003-01-23 Petur Runolfsson <peturr02@ru.is>
6927 * include/std/std_streambuf.h
6928 (basic_streambuf::basic_streambuf,
6929 basic_streambuf::~basic_streambuf,
6930 basic_streambuf::getloc, basic_streambuf::imbue):
6931 Remove _M_buf_locale_init
6932 * include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
6933 * testsuite/27_io/filebuf_virtuals.cc (test08): Add.
6934 * testsuite/27_io/streambuf_members.cc (test08): Add.
6935 * testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
6937 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
6939 Revert include ordering.
6940 * config/locale/generic/c_locale.h: Add include guards.
6941 * config/locale/gnu/c_locale.h: Same.
6942 * include/bits/locale_classes.h: Remove cctype include.
6943 * include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
6944 * include/std/std_fstream.h: Remove streambuf include.
6945 * include/std/std_sstream.h: Remove streambuf include.
6947 2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
6949 * configure.in (libtool_VERSION): To 6:0:0.
6950 * configure: Regenerated.
6951 * config/linker-map.gnu: Clean.
6953 * src/misc-inst.cc: Remove instantiations.
6955 * include/bits/stl_alloc.h (__malloc_alloc_template):
6957 (__default_alloc_template): To __pool_alloc.
6958 * src/stl-inst.cc: Same.
6959 * include/backward/alloc.h: Update.
6960 * testsuite/ext/allocators.cc: Update.
6962 * src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
6963 really try to remove these if possible.
6964 * src/locale.cc (std): Same.
6966 * testsuite/abi_check.cc (check_version): Add.
6968 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
6969 Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
6970 Mark Mitchell <mark@codesourcery.com>
6973 * include/std/std_fstream.h (basic_filebuf::uflow): Declare.
6974 (basic_filebuf::underflow): Declare.
6977 2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
6979 * include/bits/locale_facets.h: Move non-facet classes requiring
6981 * include/bits/locale_classes.h: New.
6982 * include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
6983 * include/bits/Makefile.in: Regenerate.
6985 * include/bits/locale_facets.tcc (__convert_from_v): Move to...
6986 * config/locale/gnu/c_locale.h: ...here.
6987 * config/locale/generic/c_locale.h: Same.
6989 * include/bits/locale_facets.tcc: Move declarations to...
6990 * include/bits/locale_facets.h: ...here.
6991 * include/bits/basic_ios.h: Tweak includes accordingly.
6992 * include/std/std_sstream.h: Add streambuf include.
6993 * include/std/std_fstream.h: Ditto.
6994 * include/std/std_locale.h: Add locale_classes.h include.
6995 * include/std/std_iosfwd.h: Tweak.
6996 * src/concept-inst.cc: Add iterator include.
6998 * config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
6999 bits as unexported in the future.
7001 2003-01-21 Benjamin Kosnik <bkoz@redhat.com>
7003 Reshuffle 22_locale testsuite.
7004 * 22_locale/(codecvt.cc money_get.cc
7005 codecvt_members_char_char.cc money_get_members_char.cc
7006 codecvt_members_unicode_char.cc money_get_members_wchar_t.cc
7007 codecvt_members_unicode_wchar_t.cc moneypunct_byname.cc
7008 codecvt_members_wchar_t_char.cc moneypunct.cc collate_byname.cc
7009 moneypunct_members_char.cc collate.cc moneypunct_members_wchar_t.cc
7010 collate_members_char.cc money_put.cc collate_members_wchar_t.cc
7011 money_put_members_char.cc ctor_copy_dtor.cc
7012 money_put_members_wchar_t.cc ctype.cc num_get.cc ctype_is_char.cc
7013 num_get_members_char.cc ctype_is_wchar_t.cc num_get_members_wchar_t.cc
7014 ctype_members_char.cc numpunct_byname.cc ctype_members_wchar_t.cc
7015 numpunct.cc ctype_narrow_char.cc numpunct_members_char.cc
7016 ctype_narrow_wchar_t.cc numpunct_members_wchar_t.cc ctype_scan_char.cc
7017 num_put.cc ctype_scan_wchar_t.cc num_put_members_char.cc
7018 ctype_to_char.cc num_put_members_wchar_t.cc ctype_to_wchar_t.cc
7019 operators.cc ctype_widen_char.cc static_members.cc
7020 ctype_widen_wchar_t.cc time_get.cc facet.cc time_get_members_char.cc
7021 global_templates.cc time_get_members_wchar_t.cc, members.cc,
7022 time_put.cc, messages_byname.cc, time_put_members_char.cc,
7023 messages.cc, time_put_members_wchar_t.cc, messages_members_char.cc):
7024 Split up into individual test cases...
7025 * 22_locale/codecvt/1.cc: New.
7026 * 22_locale/codecvt/2.cc: New.
7027 * 22_locale/codecvt/always_noconv/char/1.cc: New.
7028 * 22_locale/codecvt/always_noconv/char/wrapped_env.cc: New.
7029 * 22_locale/codecvt/always_noconv/char/wrapped_locale.cc: New.
7030 * 22_locale/codecvt/always_noconv/wchar_t/1.cc: New.
7031 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_env.cc: New.
7032 * 22_locale/codecvt/always_noconv/wchar_t/wrapped_locale.cc: New.
7033 * 22_locale/codecvt/encoding/char/1.cc: New.
7034 * 22_locale/codecvt/encoding/char/wrapped_env.cc: New.
7035 * 22_locale/codecvt/encoding/char/wrapped_locale.cc: New.
7036 * 22_locale/codecvt/encoding/wchar_t/1.cc: New.
7037 * 22_locale/codecvt/encoding/wchar_t/wrapped_env.cc: New.
7038 * 22_locale/codecvt/encoding/wchar_t/wrapped_locale.cc: New.
7039 * 22_locale/codecvt/in/char/1.cc: New.
7040 * 22_locale/codecvt/in/char/wrapped_env.cc: New.
7041 * 22_locale/codecvt/in/char/wrapped_locale.cc: New.
7042 * 22_locale/codecvt/in/wchar_t/1.cc: New.
7043 * 22_locale/codecvt/in/wchar_t/wrapped_env.cc: New.
7044 * 22_locale/codecvt/in/wchar_t/wrapped_locale.cc: New.
7045 * 22_locale/codecvt/length/char/1.cc: New.
7046 * 22_locale/codecvt/length/char/wrapped_env.cc: New.
7047 * 22_locale/codecvt/length/char/wrapped_locale.cc: New.
7048 * 22_locale/codecvt/length/wchar_t/1.cc: New.
7049 * 22_locale/codecvt/length/wchar_t/wrapped_env.cc: New.
7050 * 22_locale/codecvt/length/wchar_t/wrapped_locale.cc: New.
7051 * 22_locale/codecvt/max_length/char/1.cc: New.
7052 * 22_locale/codecvt/max_length/char/wrapped_env.cc: New.
7053 * 22_locale/codecvt/max_length/char/wrapped_locale.cc: New.
7054 * 22_locale/codecvt/max_length/wchar_t/1.cc: New.
7055 * 22_locale/codecvt/max_length/wchar_t/wrapped_env.cc: New.
7056 * 22_locale/codecvt/max_length/wchar_t/wrapped_locale.cc: New.
7057 * 22_locale/codecvt/out/char/1.cc: New.
7058 * 22_locale/codecvt/out/char/wrapped_env.cc: New.
7059 * 22_locale/codecvt/out/char/wrapped_locale.cc: New.
7060 * 22_locale/codecvt/out/wchar_t/1.cc: New.
7061 * 22_locale/codecvt/out/wchar_t/wrapped_env.cc: New.
7062 * 22_locale/codecvt/out/wchar_t/wrapped_locale.cc: New.
7063 * 22_locale/codecvt/unicode/char.cc: New.
7064 * 22_locale/codecvt/unicode/wchar_t.cc: New.
7065 * 22_locale/codecvt/unshift/char/1.cc: New.
7066 * 22_locale/codecvt/unshift/char/wrapped_env.cc: New.
7067 * 22_locale/codecvt/unshift/char/wrapped_locale.cc: New.
7068 * 22_locale/codecvt/unshift/wchar_t/1.cc: New.
7069 * 22_locale/codecvt/unshift/wchar_t/wrapped_env.cc: New.
7070 * 22_locale/codecvt/unshift/wchar_t/wrapped_locale.cc: New.
7071 * 22_locale/collate/1.cc: New.
7072 * 22_locale/collate/2.cc: New.
7073 * 22_locale/collate/compare/char/1.cc: New.
7074 * 22_locale/collate/compare/char/2.cc: New.
7075 * 22_locale/collate/compare/char/wrapped_env.cc: New.
7076 * 22_locale/collate/compare/char/wrapped_locale.cc: New.
7077 * 22_locale/collate/compare/wchar_t/1.cc: New.
7078 * 22_locale/collate/compare/wchar_t/2.cc: New.
7079 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: New.
7080 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: New.
7081 * 22_locale/collate/hash/char/1.cc: New.
7082 * 22_locale/collate/hash/char/2.cc: New.
7083 * 22_locale/collate/hash/char/wrapped_env.cc: New.
7084 * 22_locale/collate/hash/char/wrapped_locale.cc: New.
7085 * 22_locale/collate/hash/wchar_t/1.cc: New.
7086 * 22_locale/collate/hash/wchar_t/2.cc: New.
7087 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: New.
7088 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: New.
7089 * 22_locale/collate/transform/char/2.cc: New.
7090 * 22_locale/collate/transform/char/wrapped_env.cc: New.
7091 * 22_locale/collate/transform/char/wrapped_locale.cc: New.
7092 * 22_locale/collate/transform/wchar_t/2.cc: New.
7093 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: New.
7094 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: New.
7095 * 22_locale/collate_byname/1.cc: New.
7096 * 22_locale/ctype/1.cc: New.
7097 * 22_locale/ctype/2.cc: New.
7098 * 22_locale/ctype/cons/char/1.cc: New.
7099 * 22_locale/ctype/cons/char/wrapped_env.cc: New.
7100 * 22_locale/ctype/cons/char/wrapped_locale.cc: New.
7101 * 22_locale/ctype/is/char/1.cc: New.
7102 * 22_locale/ctype/is/char/2.cc: New.
7103 * 22_locale/ctype/is/char/3.cc: New.
7104 * 22_locale/ctype/is/char/wrapped_env.cc: New.
7105 * 22_locale/ctype/is/char/wrapped_locale.cc: New.
7106 * 22_locale/ctype/is/wchar_t/1.cc: New.
7107 * 22_locale/ctype/is/wchar_t/2.cc: New.
7108 * 22_locale/ctype/is/wchar_t/wrapped_env.cc: New.
7109 * 22_locale/ctype/is/wchar_t/wrapped_locale.cc: New.
7110 * 22_locale/ctype/narrow/char/1.cc: New.
7111 * 22_locale/ctype/narrow/char/2.cc: New.
7112 * 22_locale/ctype/narrow/char/wrapped_env.cc: New.
7113 * 22_locale/ctype/narrow/char/wrapped_locale.cc: New.
7114 * 22_locale/ctype/narrow/wchar_t/1.cc: New.
7115 * 22_locale/ctype/narrow/wchar_t/2.cc: New.
7116 * 22_locale/ctype/narrow/wchar_t/wrapped_env.cc: New.
7117 * 22_locale/ctype/narrow/wchar_t/wrapped_locale.cc: New.
7118 * 22_locale/ctype/scan/char/1.cc: New.
7119 * 22_locale/ctype/scan/char/wrapped_env.cc: New.
7120 * 22_locale/ctype/scan/char/wrapped_locale.cc: New.
7121 * 22_locale/ctype/scan/wchar_t/1.cc: New.
7122 * 22_locale/ctype/scan/wchar_t/wrapped_env.cc: New.
7123 * 22_locale/ctype/scan/wchar_t/wrapped_locale.cc: New.
7124 * 22_locale/ctype/to/char/1.cc: New.
7125 * 22_locale/ctype/to/char/wrapped_env.cc: New.
7126 * 22_locale/ctype/to/char/wrapped_locale.cc: New.
7127 * 22_locale/ctype/to/wchar_t/1.cc: New.
7128 * 22_locale/ctype/to/wchar_t/wrapped_env.cc: New.
7129 * 22_locale/ctype/to/wchar_t/wrapped_locale.cc: New.
7130 * 22_locale/ctype/widen/char/1.cc: New.
7131 * 22_locale/ctype/widen/char/wrapped_env.cc: New.
7132 * 22_locale/ctype/widen/char/wrapped_locale.cc: New.
7133 * 22_locale/ctype/widen/wchar_t/1.cc: New.
7134 * 22_locale/ctype/widen/wchar_t/wrapped_env.cc: New.
7135 * 22_locale/ctype/widen/wchar_t/wrapped_locale.cc: New.
7136 * 22_locale/facet/1.cc: New.
7137 * 22_locale/facet/2.cc: New.
7138 * 22_locale/global_templates/1.cc: New.
7139 * 22_locale/locale/cons/1.cc: New.
7140 * 22_locale/locale/cons/2.cc: New.
7141 * 22_locale/locale/cons/3.cc: New.
7142 * 22_locale/locale/cons/4.cc: New.
7143 * 22_locale/locale/cons/5.cc: New.
7144 * 22_locale/locale/cons/6.cc: New.
7145 * 22_locale/locale/cons/7.cc: New.
7146 * 22_locale/locale/global_locale_objects/1.cc: New.
7147 * 22_locale/locale/global_locale_objects/2.cc: New.
7148 * 22_locale/locale/global_locale_objects/3.cc: New.
7149 * 22_locale/locale/operations/1.cc: New.
7150 * 22_locale/locale/operations/2.cc: New.
7151 * 22_locale/messages/1.cc: New.
7152 * 22_locale/messages/2.cc: New.
7153 * 22_locale/messages/members/char/1.cc: New.
7154 * 22_locale/messages/members/char/2.cc: New.
7155 * 22_locale/messages/members/char/3.cc: New.
7156 * 22_locale/messages/members/char/wrapped_env.cc: New.
7157 * 22_locale/messages/members/char/wrapped_locale.cc: New.
7158 * 22_locale/messages_byname/1.cc: New.
7159 * 22_locale/money_get/1.cc: New.
7160 * 22_locale/money_get/2.cc: New.
7161 * 22_locale/money_get/get/char/1.cc: New.
7162 * 22_locale/money_get/get/char/2.cc: New.
7163 * 22_locale/money_get/get/char/3.cc: New.
7164 * 22_locale/money_get/get/char/4.cc: New.
7165 * 22_locale/money_get/get/char/5.cc: New.
7166 * 22_locale/money_get/get/char/6.cc: New.
7167 * 22_locale/money_get/get/char/7.cc: New.
7168 * 22_locale/money_get/get/char/8.cc: New.
7169 * 22_locale/money_get/get/char/wrapped_env.cc: New.
7170 * 22_locale/money_get/get/char/wrapped_locale.cc: New.
7171 * 22_locale/money_get/get/wchar_t/1.cc: New.
7172 * 22_locale/money_get/get/wchar_t/2.cc: New.
7173 * 22_locale/money_get/get/wchar_t/3.cc: New.
7174 * 22_locale/money_get/get/wchar_t/4.cc: New.
7175 * 22_locale/money_get/get/wchar_t/5.cc: New.
7176 * 22_locale/money_get/get/wchar_t/6.cc: New.
7177 * 22_locale/money_get/get/wchar_t/7.cc: New.
7178 * 22_locale/money_get/get/wchar_t/8.cc: New.
7179 * 22_locale/money_get/get/wchar_t/wrapped_env.cc: New.
7180 * 22_locale/money_get/get/wchar_t/wrapped_locale.cc: New.
7181 * 22_locale/money_put/1.cc: New.
7182 * 22_locale/money_put/2.cc: New.
7183 * 22_locale/money_put/put/char/1.cc: New.
7184 * 22_locale/money_put/put/char/2.cc: New.
7185 * 22_locale/money_put/put/char/3.cc: New.
7186 * 22_locale/money_put/put/char/4.cc: New.
7187 * 22_locale/money_put/put/char/5.cc: New.
7188 * 22_locale/money_put/put/char/6.cc: New.
7189 * 22_locale/money_put/put/char/wrapped_env.cc: New.
7190 * 22_locale/money_put/put/char/wrapped_locale.cc: New.
7191 * 22_locale/money_put/put/wchar_t/1.cc: New.
7192 * 22_locale/money_put/put/wchar_t/2.cc: New.
7193 * 22_locale/money_put/put/wchar_t/3.cc: New.
7194 * 22_locale/money_put/put/wchar_t/4.cc: New.
7195 * 22_locale/money_put/put/wchar_t/5.cc: New.
7196 * 22_locale/money_put/put/wchar_t/6.cc: New.
7197 * 22_locale/money_put/put/wchar_t/wrapped_env.cc: New.
7198 * 22_locale/money_put/put/wchar_t/wrapped_locale.cc: New.
7199 * 22_locale/moneypunct/1.cc: New.
7200 * 22_locale/moneypunct/2.cc: New.
7201 * 22_locale/moneypunct/3.cc: New.
7202 * 22_locale/moneypunct/members/char/1.cc: New.
7203 * 22_locale/moneypunct/members/char/2.cc: New.
7204 * 22_locale/moneypunct/members/char/wrapped_env.cc: New.
7205 * 22_locale/moneypunct/members/char/wrapped_locale.cc: New.
7206 * 22_locale/moneypunct/members/wchar_t/1.cc: New.
7207 * 22_locale/moneypunct/members/wchar_t/2.cc: New.
7208 * 22_locale/moneypunct/members/wchar_t/wrapped_env.cc: New.
7209 * 22_locale/moneypunct/members/wchar_t/wrapped_locale.cc: New.
7210 * 22_locale/moneypunct_byname/1.cc: New.
7211 * 22_locale/num_get/1.cc: New.
7212 * 22_locale/num_get/2.cc: New.
7213 * 22_locale/num_get/get/char/1.cc: New.
7214 * 22_locale/num_get/get/char/2.cc: New.
7215 * 22_locale/num_get/get/char/3.cc: New.
7216 * 22_locale/num_get/get/char/4.cc: New.
7217 * 22_locale/num_get/get/char/5.cc: New.
7218 * 22_locale/num_get/get/char/6.cc: New.
7219 * 22_locale/num_get/get/char/wrapped_env.cc: New.
7220 * 22_locale/num_get/get/char/wrapped_locale.cc: New.
7221 * 22_locale/num_get/get/wchar_t/1.cc: New.
7222 * 22_locale/num_get/get/wchar_t/2.cc: New.
7223 * 22_locale/num_get/get/wchar_t/3.cc: New.
7224 * 22_locale/num_get/get/wchar_t/4.cc: New.
7225 * 22_locale/num_get/get/wchar_t/5.cc: New.
7226 * 22_locale/num_get/get/wchar_t/6.cc: New.
7227 * 22_locale/num_get/get/wchar_t/wrapped_env.cc: New.
7228 * 22_locale/num_get/get/wchar_t/wrapped_locale.cc: New.
7229 * 22_locale/num_put/1.cc: New.
7230 * 22_locale/num_put/2.cc: New.
7231 * 22_locale/num_put/put/char/1.cc: New.
7232 * 22_locale/num_put/put/char/2.cc: New.
7233 * 22_locale/num_put/put/char/3.cc: New.
7234 * 22_locale/num_put/put/char/4.cc: New.
7235 * 22_locale/num_put/put/char/5.cc: New.
7236 * 22_locale/num_put/put/char/wrapped_env.cc: New.
7237 * 22_locale/num_put/put/char/wrapped_locale.cc: New.
7238 * 22_locale/num_put/put/wchar_t/1.cc: New.
7239 * 22_locale/num_put/put/wchar_t/2.cc: New.
7240 * 22_locale/num_put/put/wchar_t/3.cc: New.
7241 * 22_locale/num_put/put/wchar_t/4.cc: New.
7242 * 22_locale/num_put/put/wchar_t/5.cc: New.
7243 * 22_locale/num_put/put/wchar_t/wrapped_env.cc: New.
7244 * 22_locale/num_put/put/wchar_t/wrapped_locale.cc: New.
7245 * 22_locale/numpunct/1.cc: New.
7246 * 22_locale/numpunct/2.cc: New.
7247 * 22_locale/numpunct/members/char/1.cc: New.
7248 * 22_locale/numpunct/members/char/2.cc: New.
7249 * 22_locale/numpunct/members/char/wrapped_env.cc: New.
7250 * 22_locale/numpunct/members/char/wrapped_locale.cc: New.
7251 * 22_locale/numpunct/members/wchar_t/1.cc: New.
7252 * 22_locale/numpunct/members/wchar_t/2.cc: New.
7253 * 22_locale/numpunct/members/wchar_t/wrapped_env.cc: New.
7254 * 22_locale/numpunct/members/wchar_t/wrapped_locale.cc: New.
7255 * 22_locale/numpunct_byname/1.cc: New.
7256 * 22_locale/numpunct_byname/2.cc: New.
7257 * 22_locale/time_get/1.cc: New.
7258 * 22_locale/time_get/2.cc: New.
7259 * 22_locale/time_get/date_order/char/1.cc: New.
7260 * 22_locale/time_get/date_order/char/wrapped_env.cc: New.
7261 * 22_locale/time_get/date_order/char/wrapped_locale.cc: New.
7262 * 22_locale/time_get/date_order/wchar_t/1.cc: New.
7263 * 22_locale/time_get/date_order/wchar_t/wrapped_env.cc: New.
7264 * 22_locale/time_get/date_order/wchar_t/wrapped_locale.cc: New.
7265 * 22_locale/time_get/get_date/char/1.cc: New.
7266 * 22_locale/time_get/get_date/char/2.cc: New.
7267 * 22_locale/time_get/get_date/char/3.cc: New.
7268 * 22_locale/time_get/get_date/char/wrapped_env.cc: New.
7269 * 22_locale/time_get/get_date/char/wrapped_locale.cc: New.
7270 * 22_locale/time_get/get_date/wchar_t/1.cc: New.
7271 * 22_locale/time_get/get_date/wchar_t/2.cc: New.
7272 * 22_locale/time_get/get_date/wchar_t/3.cc: New.
7273 * 22_locale/time_get/get_date/wchar_t/wrapped_env.cc: New.
7274 * 22_locale/time_get/get_date/wchar_t/wrapped_locale.cc: New.
7275 * 22_locale/time_get/get_monthname/char/1.cc: New.
7276 * 22_locale/time_get/get_monthname/char/2.cc: New.
7277 * 22_locale/time_get/get_monthname/char/3.cc: New.
7278 * 22_locale/time_get/get_monthname/char/wrapped_env.cc: New.
7279 * 22_locale/time_get/get_monthname/char/wrapped_locale.cc: New.
7280 * 22_locale/time_get/get_monthname/wchar_t/1.cc: New.
7281 * 22_locale/time_get/get_monthname/wchar_t/2.cc: New.
7282 * 22_locale/time_get/get_monthname/wchar_t/3.cc: New.
7283 * 22_locale/time_get/get_monthname/wchar_t/wrapped_env.cc: New.
7284 * 22_locale/time_get/get_monthname/wchar_t/wrapped_locale.cc: New.
7285 * 22_locale/time_get/get_time/char/1.cc: New.
7286 * 22_locale/time_get/get_time/char/2.cc: New.
7287 * 22_locale/time_get/get_time/char/3.cc: New.
7288 * 22_locale/time_get/get_time/char/wrapped_env.cc: New.
7289 * 22_locale/time_get/get_time/char/wrapped_locale.cc: New.
7290 * 22_locale/time_get/get_time/wchar_t/1.cc: New.
7291 * 22_locale/time_get/get_time/wchar_t/2.cc: New.
7292 * 22_locale/time_get/get_time/wchar_t/3.cc: New.
7293 * 22_locale/time_get/get_time/wchar_t/wrapped_env.cc: New.
7294 * 22_locale/time_get/get_time/wchar_t/wrapped_locale.cc: New.
7295 * 22_locale/time_get/get_weekday/char/1.cc: New.
7296 * 22_locale/time_get/get_weekday/char/2.cc: New.
7297 * 22_locale/time_get/get_weekday/char/3.cc: New.
7298 * 22_locale/time_get/get_weekday/char/wrapped_env.cc: New.
7299 * 22_locale/time_get/get_weekday/char/wrapped_locale.cc: New.
7300 * 22_locale/time_get/get_weekday/wchar_t/1.cc: New.
7301 * 22_locale/time_get/get_weekday/wchar_t/2.cc: New.
7302 * 22_locale/time_get/get_weekday/wchar_t/3.cc: New.
7303 * 22_locale/time_get/get_weekday/wchar_t/wrapped_env.cc: New.
7304 * 22_locale/time_get/get_weekday/wchar_t/wrapped_locale.cc: New.
7305 * 22_locale/time_get/get_year/char/1.cc: New.
7306 * 22_locale/time_get/get_year/char/3.cc: New.
7307 * 22_locale/time_get/get_year/char/wrapped_env.cc: New.
7308 * 22_locale/time_get/get_year/char/wrapped_locale.cc: New.
7309 * 22_locale/time_get/get_year/wchar_t/1.cc: New.
7310 * 22_locale/time_get/get_year/wchar_t/3.cc: New.
7311 * 22_locale/time_get/get_year/wchar_t/wrapped_env.cc: New.
7312 * 22_locale/time_get/get_year/wchar_t/wrapped_locale.cc: New.
7313 * 22_locale/time_put/1.cc: New.
7314 * 22_locale/time_put/2.cc: New.
7315 * 22_locale/time_put/put/char/1.cc: New.
7316 * 22_locale/time_put/put/char/10.cc: New.
7317 * 22_locale/time_put/put/char/2.cc: New.
7318 * 22_locale/time_put/put/char/3.cc: New.
7319 * 22_locale/time_put/put/char/4.cc: New.
7320 * 22_locale/time_put/put/char/5.cc: New.
7321 * 22_locale/time_put/put/char/6.cc: New.
7322 * 22_locale/time_put/put/char/7.cc: New.
7323 * 22_locale/time_put/put/char/8.cc: New.
7324 * 22_locale/time_put/put/char/9.cc: New.
7325 * 22_locale/time_put/put/char/wrapped_env.cc: New.
7326 * 22_locale/time_put/put/char/wrapped_locale.cc: New.
7327 * 22_locale/time_put/put/wchar_t/1.cc: New.
7328 * 22_locale/time_put/put/wchar_t/10.cc: New.
7329 * 22_locale/time_put/put/wchar_t/2.cc: New.
7330 * 22_locale/time_put/put/wchar_t/3.cc: New.
7331 * 22_locale/time_put/put/wchar_t/4.cc: New.
7332 * 22_locale/time_put/put/wchar_t/5.cc: New.
7333 * 22_locale/time_put/put/wchar_t/6.cc: New.
7334 * 22_locale/time_put/put/wchar_t/7.cc: New.
7335 * 22_locale/time_put/put/wchar_t/8.cc: New.
7336 * 22_locale/time_put/put/wchar_t/9.cc: New.
7337 * 22_locale/time_put/put/wchar_t/wrapped_env.cc: New.
7338 * 22_locale/time_put/put/wchar_t/wrapped_locale.cc: New.
7340 2003-01-16 Jeffrey D. Oldham <oldham@codesourcery.com>
7342 * config/locale/generic/messages_members.h
7343 (messages_byname<_CharT>::messages_byname): Use this-> to refer to
7344 unqualified members of base clasess.
7346 2003-01-16 Mark Mitchell <mark@codesourcery.com>
7347 Jeffrey Oldham <oldham@codesourcery.com>
7349 * config/locale/gnu/messages_members.h: Use this-> to refer to
7350 unqualified members of base clasess.
7351 * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Likewise.
7352 * include/bits/codecvt.h: Likewise.
7353 * include/bits/deque.tcc: Likewise.
7354 * include/bits/fstream.tcc: Likewise.
7355 * include/bits/istream.tcc: Likewise.
7356 * include/bits/list.tcc: Likewise.
7357 * include/bits/locale_facets.h: Likewise.
7358 * include/bits/ostream.tcc: Likewise.
7359 * include/bits/sstream.tcc: Likewise.
7360 * include/bits/stl_bvector.h: Likewise.
7361 * include/bits/stl_deque.h: Likewise.
7362 * include/bits/stl_list.h: Likewise.
7363 * include/bits/stl_tree.h: Likewise.
7364 * include/bits/stl_vector.h: Likewise.
7365 * include/bits/vector.tcc: Likewise.
7366 * include/ext/ropeimpl.h: Likewise.
7367 * include/ext/stdio_filebuf.h: Likewise.
7368 * include/ext/stl_rope.h: Likewise.
7369 * include/std/std_fstream.h: Likewise.
7370 * include/std/std_sstream.h: Likewise.
7372 2003-01-15 Phil Edwards <pme@gcc.gnu.org>
7374 * include/bits/basic_string.tcc (_S_string_copy): Unused, remove.
7376 2003-01-15 Benjamin Kosnik <bkoz@redhat.com>
7378 * acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Substitute
7379 GLIBCPP_TEST_WCHAR_T if building wchar_t bits in the library.
7380 * aclocal.m4: Regenerate.
7381 * configure: Regenerate.
7382 * testsuite/Makefile.am (all-local): Add conditional rule to
7383 generate testsuite_wchar_t.
7384 * testsuite/Makefile.in: Regenerate.
7385 * testsuite/lib/libstdc++-v3-dg.exp
7386 (libstdc++-v3-list-sourcefiles): Remove wchar_t files if
7387 testsuite_wchar_t is not present in the build directory.
7388 * testsuite/libstdc++-v3.dg/dg.exp: Add -g -O2 to DEFAULT_CXXFLAGS.
7389 Remove setulimit bits.
7390 * testsuite/26_numerics/complex_value.cc: Set to noopts.
7391 * testsuite/Makefile.am (CLEANFILES): Add.
7392 * testsuite/Makefile.in: Regenerate.
7394 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7396 * config/os/hpux/os_defines.h (_GLIBCPP_GTHREAD_USE_WEAK): Define for
7399 2003-01-14 Jeffrey D. Oldham <oldham@codesourcery.com>
7401 Further conform g++'s __vmi_class_type_info to the C++ ABI
7403 * libsupc++/cxxabi.h
7404 (__vmi_class_type_info::__flags_masks): Remove enumerations not
7405 required by the specification.
7407 2003-01-12 Benjamin Kosnik <bkoz@redhat.com>
7409 Renames, namespaces for testsuite utilities.
7410 * testsuite/testsuite_hooks.h: Put into namespace __gnu_cxx_test.
7411 (gnu_allocator_tracker): Rename to allocation_tracker.
7412 (gnu_new_allocator): Rename to tracker_alloc.
7413 (__set_testsuite_memlimit): Rename to set_memory_limits.
7414 (gnu_assignment_operator): Rename to assignment_operator.
7415 (gnu_destructor): Rename to destructor.
7416 (gnu_copy_tracker): Rename to copy_tracker.
7417 (gnu_char, gnu_int, gnu_long): Rename to pod_char, pod_int, pod_long.
7418 (run_tests_wrapped_locale): New.
7419 (run_tests_wrapped_env): New.
7420 * testsuite/testsuite_hooks.cc: Same.
7421 (class locale_data): Add.
7422 (class enviornment_variable): Add.
7423 (class not_found): Add.
7424 * testsuite/testsuite_allocator.h: Same.
7425 * testsuite/testsuite_allocator.cc: Same.
7426 * testsuite/23_containers/deque_ctor.cc
7427 (test_copy_ctor_exception_safety): Change gnu_allocator_tracker to
7429 Change gnu_new_allocator to tracker_alloc.
7430 Change gnu_counting_struct to counter.
7431 Change gnu_copy_tracker to copy_tracker.
7432 Change gnu_copy_constructor to copy_constructor.
7433 Change gnu_assignment_operator to assignment_operator.
7435 * testsuite/23_containers/vector_capacity.cc: Same.
7436 * testsuite/23_containers/vector_ctor.cc (test01): Same.
7437 * testsuite/23_containers/list_modifiers.cc: Change
7438 gnu_copy_tracker to copy_tracker.
7439 * testsuite/21_strings/ctor_copy_dtor.cc (main): Change
7440 __set_testsuite_memlimit to set_memory_limits.
7441 * testsuite/21_strings/insert.cc (main): Same.
7442 * testsuite/27_io/filebuf.cc: Change gnu_char to pod_char.
7443 * testsuite/27_io/stringstream.cc: Same.
7444 * testsuite/27_io/stringbuf.cc: Same.
7445 * testsuite/27_io/streambuf.cc: Same.
7446 * testsuite/27_io/ostream.cc: Same.
7447 * testsuite/27_io/istream.cc: Same.
7448 * testsuite/27_io/fstream.cc: Same.
7449 * testsuite/lib/libstdc++-v3-dg.exp
7450 (libstdc++-v3-list-sourcefiles): Additionally handle files two and
7451 three levels deeper in glob patterns.
7453 2003-01-11 Phil Edwards <pme@gcc.gnu.org>
7455 * docs/doxygen/tables.html: Finished now.
7456 * docs/doxygen/user.cfg.in: Update to latest version of Doxygen.
7457 * include/bits/basic_ios.h (basic_ios::rdbuf): Add example to
7460 * include/bits/deque.tcc, include/bits/stl_alloc.h,
7461 include/bits/stl_deque.h, include/bits/stl_list.h,
7462 include/bits/stl_vector.h: Remove _GLIBCPP_DEPRECATED bits scheduled
7465 2003-01-09 Benjamin Kosnik <bkoz@redhat.com>
7467 * configure.in: Revert.
7468 * configure: Regenerate.
7470 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
7472 * include/Makefile.am (install-data-local): Prepend
7473 $(DESTDIR) to destination paths in all (un)installation
7474 commands. Use ${c_base_builddir} and ${std_builddir}
7475 as destination subdirectories to achieve consistency with
7476 preceding mkinstalldirs commands. No effect because both
7477 variables contain "." only.
7478 * include/Makefile.in: Regenerate.
7480 2003-01-08 Benjamin Kosnik <bkoz@redhat.com>
7482 * include/Makefile.am (stamp-*): Add checks for existing stamps.
7483 * include/Makefile.in: Regenerate.
7485 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG): Correct comment.
7486 * aclocal.m4: Regenerate.
7488 * configure.in: Don't add new multi-do rules every time the
7489 directory is reconfigured.
7490 * configure: Regenerate.
7492 2003-01-08 Brad Spencer <spencer@infointeractive.com>
7493 Nathan Myers <ncm@cantrip.org>
7495 * src/Makefile.am (stamp-debug): Clean.
7496 * src/Makefile.in: Regenerate.
7498 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
7501 * Makefile.am (distclean-multi): Fix.
7502 * Makefile.in: Regenerate.
7504 2003-01-06 Benjamin Kosnik <bkoz@redhat.com>
7506 * include/bits/locale_facets.h (messages): Move ctor, dtor
7508 (__timepunct): Same.
7509 * config/locale/gnu/messages_members.h (messages): Add dtor, ctor
7510 definitions. Conditionalize for GNU systems.
7511 * config/locale/generic/messages_members.h (messages): Add dtor, ctor
7513 * config/locale/gnu/time_members.h (messages): New. Add dtor, ctor
7514 definitions. Conditionalize for GNU systems.
7515 * config/locale/generic/time_members.h (messages): New. Add dtor, ctor
7517 * include/bits/localefwd.h (locale::facet::_S_c_name): Add.
7518 * src/locale.cc: Define.
7519 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool):
7521 * config/locale/gnu/time_members.h: Use it.
7522 * config/locale/gnu/messages_members.h: Use it.
7523 * config/linker-map.gnu: Add locale::facets details.
7524 * include/Makefile.am (target_headers_extra): Add time_members.h.
7525 * include/Makefile.in: Regenerate.
7526 * acinclude.m4: Export CTIME_H.
7527 * aclocal.m4: Regenerate.
7528 * configure: Regnerate.
7530 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
7533 (codecvt<char, char, mbstate_t>::do_in, do_out):
7534 Tweak parameters to avoid unused parameter warnings.
7536 2003-01-06 Paolo Carlini <pcarlini@unitus.it>
7539 * include/bits/locale_facets.cc (num_put::_M_convert_float):
7540 Limit __prec to digits10 + 2, not digits10 + 1, taking into
7541 account the possibility of %{g,G} conversion specifiers
7542 inside _S_format_float.
7543 * testsuite/27_io/ostream_inserter_arith.cc (test06): Add.
7545 2003-01-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7547 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init,
7548 libstdc++-v3-list-sourcefiles): Additionally handle files one
7549 level deeper in glob patterns.
7551 * testsuite/27_io/istream_extractor_arith.cc: Delete, split...
7552 * testsuite/27_io/istream_extractor_arith/01.cc,
7553 testsuite/27_io/istream_extractor_arith/02.cc,
7554 testsuite/27_io/istream_extractor_arith/03.cc,
7555 testsuite/27_io/istream_extractor_arith/06.cc,
7556 testsuite/27_io/istream_extractor_arith/07.cc,
7557 testsuite/27_io/istream_extractor_arith/08.cc,
7558 testsuite/27_io/istream_extractor_arith/09.cc,
7559 testsuite/27_io/istream_extractor_arith/10.cc,
7560 testsuite/27_io/istream_extractor_arith/11.cc,
7561 testsuite/27_io/istream_extractor_arith/12.cc,
7562 testsuite/27_io/istream_extractor_arith/13.cc: ... to new files.
7563 * testsuite/27_io/istream_extractor_arith/12.cc: Add XFAIL for
7566 2003-01-05 Paolo Carlini <pcarlini@unitus.it>
7570 (codecvt<char, char, mbstate_t>::do_in, do_out):
7571 Implement the resolution of DR19 (TC).
7572 * testsuite/22_locale/codecvt_members_char_char.cc
7575 2003-01-02 Jason Merrill <jason@redhat.com>
7577 * config/cpu/i486/atomicity.h (__exchange_and_add, __atomic_add):
7578 *__mem is also an output.
7579 * config/cpu/m68k/atomicity.h (__exchange_and_add): Likewise.