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