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