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