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