]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/ChangeLog
iso646.h, [...]: Remove trailing whitespace.
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
23131008
BI
12003-12-09 Bernardo Innocenti <bernie@develer.com>
2
3 * include/c_compatibility/iso646.h, include/c_compatibility/limits.h,
4 include/c_compatibility/locale.h, include/c_compatibility/stdio.h,
5 include/c_compatibility/string.h, include/c_compatibility/time.h,
6 include/c_compatibility/wchar.h, include/c_compatibility/wctype.h:
7 Remove trailing whitespace.
8
7dd8177f
BI
92003-12-09 Bernardo Innocenti <bernie@develer.com>
10
11 * include/c_std/cmath.tcc, include/c_std/std_cassert.h,
12 include/c_std/std_cctype.h, include/c_std/std_cmath.h,
13 include/c_std/std_cstddef.h, include/c_std/std_cstdio.h,
14 include/c_std/std_cstdlib.h, include/c_std/std_cstring.h,
15 include/c_std/std_cwchar.h, include/c_std/std_cwctype.h:
16 Remove trailing whitespace.
17
7b74e24e
BI
182003-12-09 Bernardo Innocenti <bernie@develer.com>
19
20 * include/c/std_cctype.h, include/c/std_cmath.h,
21 include/c/std_cstdlib.h include/c/std_cwchar.h,
22 include/c/std_cwctype.h: Remove trailing whitespace.
23
e64738b3
BI
242003-12-09 Bernardo Innocenti <bernie@develer.com>
25
26 * include/backward/algo.h, include/backward/algobase.h,
27 include/backward/alloc.h, include/backward/complex.h,
28 include/backward/defalloc.h, include/backward/function.h,
29 include/backward/iterator.h, include/backward/new.h,
30 include/backward/ostream.h, include/backward/queue.h,
31 include/backward/rope.h, include/backward/stream.h,
32 include/backward/streambuf.h, include/backward/strstream,
33 include/backward/tempbuf.h, include/backward/tree.h,
34 include/backward/vector.h: Remove trailing whitespace.
35
0fa96a60
PC
362003-12-08 Paolo Carlini <pcarlini@suse.de>
37
38 * config/locale/generic/c_locale.cc (__convert_to_v(long&),
39 __convert_to_v(unsigned long&), __convert_to_v(long long&),
40 __convert_to_v(unsigned long long&): Remove.
41 (__convert_to_v(float&), __convert_to_v(double&),
42 __convert_to_v(long double&)): Remove last unused parameter.
43 * config/locale/gnu/c_locale.cc: Likewise.
44 * include/bits/locale_facets.h: Likewise.
45 (num_get::_M_extract_int): Update declaration.
46 (class __num_base): Tweak _S_ie and _S_iE according to the
47 _S_atoms_in changes.
48 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
49 Provide directly the final _ValueT, not a string: accumulate
50 the result checking for overflow at each digit.
51 (num_get::do_get(bool&), num_get::do_get(long&),
52 num_get::do_get(unsigned short&), num_get::do_get(unsigned int&),
53 num_get::do_get(unsigned long&), num_get::do_get(long long&),
54 num_get::do_get(unsigned long long&), num_get::do_get(void*&)):
55 Use the new _M_extract_int, simplify.
56 * src/locale-inst.cc (num_get::_M_extract_int(long&),
57 num_get::_M_extract_int(unsigned short&),
58 num_get::_M_extract_int(unsigned int&),
59 num_get::_M_extract_int(unsigned long&),
60 num_get::_M_extract_int(long long&),
61 num_get::_M_extract_int(unsigned long long&): Instantiate.
62 * src/locale_facets.cc (__num_base::_S_atoms_in): Reorder
63 the chars in the natural order: abcdefABCDEF.
64
09755a85
DM
652003-12-08 David S. Miller <davem@redhat.com>
66
67 PR libstdc++/12496
68 * config/cpu/sparc/atomicity.h (__exchange_and_add, __atomic_add):
69 Extend increment to _Atomic_word before giving to assembler.
70
57616df1
BK
712003-12-06 Benjamin Kosnik <bkoz@redhat.com>
72
73 * testsuite/ext/enc_filebuf/char/13189.cc: Guard for __enc_traits.
74 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
75
e80213d2
BK
762003-12-06 Benjamin Kosnik <bkoz@redhat.com>
77
78 PR libstdc++/11691
79 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf):
80 Remove __del argument to file descriptor constructor.
81 * config/io/basic_file_stdio.h (__basic_file::sys_open): Remove
82 bool argument.
83 * config/io/basic_file_stdio.cc: Same.
84
42134429
BK
852003-12-05 Benjamin Kosnik <bkoz@redhat.com>
86
87 PR libstdc++/13189
88 * include/ext/enc_filebuf.h: Fix.
89 * include/bits/fstream.tcc: Tweak formatting.
90 * include/bits/postypes.h: Same.
91 * include/bits/sstream.tcc: Same.
92 * include/bits/streambuf.tcc: Same.
93 * testsuite/ext/stdio_filebuf.cc: Split.
94 * testsuite/ext/stdio_filebuf_2.cc: Split.
95 * testsuite/ext/stdio_sync_filebuf_char.cc: Split.
96 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc: Split.
97 * testsuite/ext/enc_filebuf/char/13189.cc: New.
98 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: New.
99 * testsuite/ext/stdio_filebuf/char/1.cc: New.
100 * testsuite/ext/stdio_filebuf/char/2.cc: New.
101 * testsuite/ext/stdio_sync_filebuf/char/1.cc: New.
102 * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: New.
103 * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: New.
104 * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: New.
105 * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: New.
106 * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: New.
107 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: New.
108 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: New.
109 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: New.
110 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: New.
111
69f73bd3
CW
1122003-12-05 Carlo Wood <carlo@alinoe.com>
113
114 PR libstdc++/13045
115 * bits/demangle.h
116 namespace __gnu_cxx::demangler
117 (enum substitution_nt): Removed trailing comma.
118 (implementation_details): Added.
119 (session<Allocator>::M_implementation_details): Added.
120 (session<Allocator>::session): Pass implementation_details.
121 (session<Allocator>::decode_encoding): Same.
122 (session<Allocator>::decode_real): Added.
123 (_GLIBCXX_DEMANGLER_STYLE_VOID _GLIBCXX_DEMANGLER_STYLE_LITERAL
124 _GLIBCXX_DEMANGLER_STYLE_LITERAL_INT
125 _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
126 _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Replaced with
127 implementation_details equivalent.
128 (session<Allocator>::decode_expression):
129 Use M_implementation_details instead of macros. Add extra parentheses
130 around 'larger than' operator in expressions in template arguments.
131 (session<Allocator>::decode_bare_function_type): Idem.
132 (session<Allocator>::decode_literal):
133 Idem, and call decode_real for floating literals.
134 (session<Allocator>::decode_type_with_postfix): Put the postfix
135 of the return type of (member) functions after the function
136 instead of after the return type. Also, put a space after the
137 prefix of qualified function pointers: "int (* const<space>".
138 * src/demangle.cc: include most dependent header file first.
139 * testsuite/demangle/regression/cw-16.cc: Updated two
140 and added three tests.
141
82fa4538
BK
1422003-12-04 Benjamin Kosnik <bkoz@redhat.com>
143
144 PR libstdc++/13284
145 * include/bits/stl_algo.h (__random_number): Remove.
146 (random_shuffle): Use rand, as permitted by DR 395.
147 * include/ext/algorithm: Same.
148 * linkage.m4 (GLIBCXX_CHECK_STDLIB_SUPPORT): Remove lrand48.
149 * acconfig.h: Same.
150 * crossconfig.m4: Remove HAVE_DRAND48, HAVE_LRAND48.
151 * config.h.in: Regenerated.
152 * configure: Same.
153 * aclocal.m4: Same.
154
7f1156ed
PC
1552003-12-04 Paolo Carlini <pcarlini@suse.de>
156
157 PR libstdc++/12653
158 * include/std/std_bitset.h (operator>>): Implement resolution
159 of DR 303 [WP]: use widen('0') and widen('1').
160 * docs/html/ext/howto.html: Add an entry for DR 303.
161
162 * include/std/std_bitset.h (operator>>): Implement the common
163 requirements of formatted input functions (27.6.1.2.1).
164
165 * include/std/std_bitset.h (operator>>): Set the failbit when
166 nothing was extracted and _Nb != 0.
167 * testsuite/23_containers/bitset/input/1.cc: New.
168
3259561c
PC
1692003-12-03 Paolo Carlini <pcarlini@suse.de>
170
171 PR libstdc++/12791
172 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
173 Rewrite, stop the parsing as soon as a digit cannot possibly
174 lead to a final number within the bounds; otherwise, simplify,
175 avoiding __ctype.is() and atoi().
176 * testsuite/22_locale/time_get/get_date/char/12791.cc: New.
177 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.
178
179 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
180 Minor tweak: a 4-digit integer cannot be bigger than 9999.
181
182 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
183 type-correct wchar_t string literals.
184 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
185 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
186 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
187 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
188
17e15f7f
PC
1892003-12-02 Paolo Carlini <pcarlini@suse.de>
190
191 * include/bits/locale_facets.tcc (time_get::do_get_year):
192 Avoid using a basic_string and calling a full blown strtol
193 (via __convert_to_v) for simple 2 or 4 digits, base 10,
194 positive integers; simplify.
195
142b798b
PC
1962003-12-02 Paolo Carlini <pcarlini@suse.de>
197
198 * config/locale/gnu/monetary_members.cc
199 (money_base::_S_construct_pattern): For case 3: and 4:
200 exchanging 'if (__precedes)' and 'if (__space)' allows
201 to factor out a few more assignments.
202
6b98580b
BK
2032003-12-01 Benjamin Kosnik <bkoz@redhat.com>
204
205 * include/bits/basic_ios.h (basic_ios::setstate): Revert.
206 * include/bits/istream.tcc: Only call setstate if __err != goodbit.
207 * include/bits/ostream.tcc: Same.
208 * testsuite/27_io/basic_ios/exceptions/char/2.cc: New.
209
210 * testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
211 internal buffer non-static.
212
d78e147a
BK
2132003-12-01 Benjamin Kosnik <bkoz@redhat.com>
214
215 * docs/html/17_intro/C++STYLE: Add exception bits.
216 * include/bits/fstream.tcc: Add location info to exception strings.
217
218 * include/bits/stl_construct.h: Formatting tweaks.
219
9dbaa948
PC
2202003-12-01 Paolo Carlini <pcarlini@suse.de>
221
222 PR libstdc++/10378
223 * include/bits/allocator.h (allocator::construct): Implement
224 resolution of DR 402 [Ready] (in Revision 28).
225 * include/bits/allocator_traits.h (__allocator::construct):
226 Likewise.
227 * include/bits/stl_construct.h (_Construct): Likewise.
228 * testsuite/20_util/allocator_members.cc: Move to...
229 * testsuite/20_util/allocator/1.cc: ... here.
230 * testsuite/20_util/allocator/10378.cc: New.
231 * docs/html/ext/howto.html: Add an entry for DR 402.
232
1644f06d
PC
2332003-11-30 Paolo Carlini <pcarlini@suse.de>
234
235 * config/locale/gnu/codecvt_members.cc (codecvt::do_in,
236 codecvt::do_length): More minor tweaks.
237
11816ba2
PC
2382003-11-30 Paolo Carlini <pcarlini@suse.de>
239
240 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
241 Minor stylistic tweak.
242
6c39c207
PC
2432003-11-30 Paolo Carlini <pcarlini@suse.de>
244
245 * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
246 Minor tweaks, consistent with the style used in other facets.
247
4da2b960
PC
2482003-11-29 Paolo Carlini <pcarlini@suse.de>
249
250 * include/bits/fstream.tcc (underflow): Minor tweaks in
251 preparation for libstdc++/13217.
252
2d25605a
PC
2532003-11-29 Paolo Carlini <pcarlini@suse.de>
254
255 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
256 Tweak for a few small problems (fix timings, use VERIFY..)
257
05a47a47
PC
2582003-11-28 Paolo Carlini <pcarlini@suse.de>
259
260 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.
261 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: New,
262 the original third testcase for libstdc++/13171 belong here.
263
ac912ba1
PC
2642003-11-28 Paolo Carlini <pcarlini@suse.de>
265
266 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc:
267 Remove extraneous wchar_t lines.
268
5536b61c
PC
2692003-11-27 Paolo Carlini <pcarlini@suse.de>
270
271 PR libstdc++/11544
272 PR libstdc++/11603
273 * include/bits/fstream.tcc (underflow): Throw ios_base:failure
274 upon incomplete or invalid byte sequences in the file.
275 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-1.cc: New.
276 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc: New.
277 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: New.
278
fb8d4638
PC
2792003-11-27 Paolo Carlini <pcarlini@suse.de>
280
281 * include/std/std_streambuf.h (__copy_streambufs): Remove
282 the first, unused, basic_ios<> parameter.
283 * src/streambuf-inst.cc: Likewise.
284 * include/bits/streambuf.tcc: Likewise.
285 * include/bits/istream.tcc (operator>>(__streambuf_type*)):
286 Tweak accordingly the call.
287 * include/bits/ostream.tcc (operator<<(__streambuf_type*)):
288 Likewise.
289
290 * include/bits/streambuf.tcc (__copy_streambufs): Remove
291 redundant try/catch.
292
12841eb3
BK
2932003-11-26 Benjamin Kosnik <bkoz@redhat.com>
294
295 PR libstdc++/9371
296 PR libstdc++/9546
297 PR libstdc++/10093
298 PR libstdc++/10095
299 * include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
300 (basic_ios::_M_setstate): Consolidate common error handling code.
301 * include/bits/basic_ios.tcc: Tweak.
302 * include/bits/fstream.tcc: Tweak.
303 * include/bits/istream.tcc: Use _M_setstate for common exception
304 handling. Move setstate calls after catch.
305 (basic_istream::tellg): Check for exceptions thrown by streambuf
306 virtual functions.
307 (basic_istream::seekg): Same.
308 * include/bits/ostream.tcc: Same, but for ostream.
309 (basic_ostream::flush): Check for exceptions thrown by streambuf
310 virtual functions.
311 (basic_istream::tellp): Same.
312 (basic_istream::seekp): Same.
313 * include/bits/locale_facets.tcc: Tweak.
314 * include/bits/streambuf.tcc: Tweak.
315 (__copy_streambufs): Propagate exceptions.
316 * testsuite/testsuite_io.h (fail_streambuf): New.
317 (fail_num_get): New.
318 (fail_num_put): New.
319 (facet_error): New.
320 (underflow_error): New.
321 (overflow_error): New.
322 (positioning_error): New.
323 * testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
324 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
325 exceptions_badbit_throw.cc, exceptions_failbit.cc,
326 exceptions_failbit_throw.cc: New.
327 * testsuite/27_io/basic_istream/extractors_other/char/
328 error_failbit.cc, exceptions_badbit_throw.cc,
329 exceptions_failbit_throw.cc, exceptions_null.cc: New.
330 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
331 New.
332 * testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
333 New.
334 * testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
335 New.
336 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
337 exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
338 * testsuite/27_io/basic_ostream/inserters_other/char/
339 error_failbit.cc, exceptions_badbit_throw.cc,
340 exceptions_failbit_throw.cc, exceptions_null.cc: New.
341 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
342 New.
343 * testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc:
344 New.
345
48f499cf
BK
3462003-11-26 Benjamin Kosnik <bkoz@redhat.com>
347
348 PR libstdc++/12297
349 * include/bits/istream.tcc
350 (basic_istream::sentry::sentry): Set failbit and eofbit when eof.
351 * testsuite/27_io/basic_istream/sentry/char/12297.cc: New.
352
c03d83d4
PC
3532003-11-26 Paolo Carlini <pcarlini@suse.de>
354 Petur Runolfsson <peturr02@ru.is>
355
356 PR libstdc++/13171
357 * include/bits/fstream.tcc (imbue): Relax the conditions under
358 which the function succeeds: allow for two consecutive calls with
359 the same name; state dependent encodings are ok even after open
360 if at the beginning of the file; don't check seekoff return value
361 (pipes, cin, cout, etc...)
362 * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: New.
363 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: New.
364 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: New.
365 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: New.
366 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak comment.
367 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: Likewise.
368 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Tweak comment.
369 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: Likewise.
370
371 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: More
372 correctly use the UTF-8 locale appearing in the PR.
373
7fb1d711
PC
3742003-11-26 Paolo Carlini <pcarlini@suse.de>
375
376 * include/bits/locale_facets.h
377 (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
378 _M_truename and _M_falsename: the constructor always does
379 it immediately before the _M_cache call.
380
5af91f06
PC
3812003-11-25 Paolo Carlini <pcarlini@suse.de>
382
383 * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
384 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
385 former is very fast, but stops if encounters a NUL.
386 (codecvt::do_out): Tweaks.
387 (codecvt::do_in): Tweaks, improve the code dealing with errors.
388 * testsuite/performance/wchar_t_length.cc: New.
389
3c8797ae
PC
3902003-11-24 Paolo Carlini <pcarlini@suse.de>
391
392 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
393 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
394 former is very fast, but stops if encounters a NUL.
395 (codecvt::do_out): Tweak.
396 * testsuite/performance/wchar_t_in.cc: New.
397
3982003-11-24 Paolo Carlini <pcarlini@suse.de>
399
400 * include/bits/locale_facets.h
401 (__numpunct_cache<>::_M_cache): Set _M_allocated at the beginning
402 in order to avoid memory leaks; simplify a bit.
403
e0ec69c9
BK
4042003-11-24 Benjamin Kosnik <bkoz@redhat.com>
405
406 * include/bits/streambuf_iterator.h (ostreambuf_iterator): Remove
407 non-standard throw specs.
408 * testsuite/24_iterators/istreambuf_iterator.cc: Split into...
409 * testsuite/24_iterators/istreambuf_iterator/1.cc
410 * testsuite/24_iterators/istreambuf_iterator/2.cc
411 * testsuite/24_iterators/istreambuf_iterator/2627.cc
412 * testsuite/24_iterators/ostreambuf_iterator.cc: Split into...
413 * testsuite/24_iterators/ostreambuf_iterator/1.cc
414 * testsuite/24_iterators/ostreambuf_iterator/2.cc
415
416 * testsuite/24_iterators/reverse_iterator/1.cc: Just compile,
417 don't link.
418
419 * include/bits/allocator.h: Formatting tweak.
420
ce492af3
PC
4212003-11-24 Paolo Carlini <pcarlini@suse.de>
422
423 * src/locale_init.cc: Cosmetic reformatting.
424
bf058d22
PC
4252003-11-23 Paolo Carlini <pcarlini@suse.de>
426
427 * include/bits/locale_facets.tcc (__add_grouping):
428 Cosmetic reformatting.
429
89a2fb90
PC
4302003-11-23 Paolo Carlini <pcarlini@suse.de>
431
432 * include/bits/locale_facets.tcc (_M_extract_float,
433 _M_extract_int): Remove a wrong comment and simplify
434 the corresponding code using char_traits::find().
435
cc0c2f79
PC
4362003-11-22 Paolo Carlini <pcarlini@suse.de>
437
438 * config/locale/gnu/monetary_members.cc
439 (money_base::_S_construct_pattern): Factor out two assignments.
440
a3b1b804
PC
4412003-11-22 Paolo Carlini <pcarlini@suse.de>
442
443 * include/bits/istream.tcc (getline(basic_string<>&)):
444 Fix error in comment of the previous commit.
445
1a311979
PC
4462003-11-22 Paolo Carlini <pcarlini@suse.de>
447
448 PR libstdc++/12593
449 * include/bits/istream.tcc (operator>>(basic_string<>&),
450 getline(basic_string<>&)): Implement resolution of DR 91 [WP];
451 fix some minor issues with the exit conditions.
452 * docs/html/ext/howto.html: Add an entry for DR 91.
453
f7ba331c
PC
4542003-11-21 Paolo Carlini <pcarlini@suse.de>
455
456 * config/locale/gnu/monetary_members.cc
457 (money_base::_S_construct_pattern): Factor out an assignment.
458
5c89246d
PC
4592003-11-21 Paolo Carlini <pcarlini@suse.de>
460
461 PR libstdc++/12882 (partial)
462 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
463 and ftello64 too.
464 * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
465 and ftello64 if available.
466 * aclocal.m4: Regenerate.
467 * configure: Ditto.
468
9dc420e6
BK
4692003-11-20 Benjamin Kosnik <bkoz@redhat.com>
470
471 * include/debug/formatter.h: Use _Tp as template argument.
472 * src/debug.cc: Same, instantiate std::size_t.
473
4be58168
BK
4742003-11-20 Benjamin Kosnik <bkoz@redhat.com>
475
476 PR libstdc++/13109
477 * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
478 * src/debug.cc (__gnu_debug): Format.
479 (_Error_formatter::_M_format_word): Define, use, instantiate.
480
0fd18701
PC
4812003-11-20 Paolo Carlini <pcarlini@suse.de>
482
483 PR libstdc++/11602
484 * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
485 Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
486 former is very fast, but stops if encounters a NUL.
487 * testsuite/performance/wchar_t_out.cc: New, from the PR.
488
1f33554a
PC
4892003-11-19 Paolo Carlini <pcarlini@suse.de>
490
491 * config/locale/gnu/codecvt_members.cc (do_out): If
492 we can upper bound the total number of external chars
493 to something smaller than __to_end - __to, avoid the
494 temporary buffer, the memcopy and simplify the loop.
495 * config/locale/generic/codecvt_members.cc (do_out):
496 Likewise.
497
90635952
AT
4982003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
499
500 * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
501 * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
502 flag.
503
bc225f98
JW
5042003-11-18 Jonathan Wakely <redi@gcc.gnu.org>
505
506 * docs/html/configopts.html, docs/html/debug.html,
507 docs/html/documentation.html, docs/html/explanations.html,
508 docs/html/install.html, docs/html/17_intro/contribute.html,
509 docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
510 docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
511 docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
512 docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
513 docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
514 docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
515 docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
516 docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
517 docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
518
29342463
PC
5192003-11-18 Paolo Carlini <pcarlini@suse.de>
520
521 PR libstdc++/12868
522 * include/bits/fstream.tcc (imbue): For encodings != -1 it's
523 always ok to imbue a new locale, provided seekoff(0, cur, ...)
524 doesn't fail, of course.
525 (underflow): In order for the above to work, deal gracefully
526 with _M_codecvt->in returning codecvt_base::error while
527 (__ilen = __iend - this->eback()) > 0: it just means __ilen
528 correctly converted internal characters before an error.
529 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
530
c2466393
PC
5312003-11-17 Paolo Carlini <pcarlini@suse.de>
532
533 * include/bits/locale_facets.tcc: Fix typo in comment.
534
6a7ee0d6
PC
5352003-11-17 Paolo Carlini <pcarlini@suse.de>
536
537 * testsuite/22_locale/num_put/put/char/8.cc: New test,
538 summarizing the discussion ensuing libstdc++/12988.
539 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
540
781a5298
PC
5412003-11-15 Paolo Carlini <pcarlini@suse.de>
542
543 * include/std/std_fstream.h: Tweak a comment.
544
c85dfef7
RS
5452003-11-15 Roger Sayle <roger@eyesopen.com>
546
547 * include/c_std/std_cmath.h: Don't import C99's float transcendentals
548 into the __gnu_cxx::__c99_binding namespace.
549 (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
550 ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
551 GCC's math builtins, i.e. __builtin_foo.
552 * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
553 ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
554 ldexpf, ldexpl, modff, modfl): Provide stub implementations.
555
38455b2b
PC
5562003-11-14 Paolo Carlini <pcarlini@suse.de>
557
558 * testsuite/22_locale/locale/cons/12352.cc: Use
559 __gnu_test::try_named_locale.
560
c60cfc76
PC
5612003-11-14 Paolo Carlini <pcarlini@suse.de>
562
563 * docs/html/ext/howto.html: Add entries for DR 63, 75
564 and 305; tweak entries for DR 60 and 328.
565
1b80d64a
DG
5662003-11-13 Douglas Gregor <gregod@cs.rpi.edu>
567
568 * docs/html/debug.html: Users are allowed to specialize in
569 namespace __gnu_debug, unlike in the Apple version of the debug
570 mode. Clear up a confusing double-negative. Note that
571 std::basic_string does provide extra debugging capabilities, but
572 not safe iterators.
573 * include/bits/basic_string.tcc: Make sure there's never an
574 ambiguity when calling __is_null_pointer.
575 * include/debug/deque: (deque::erase) Properly handle invalidation
576 when erasing at the end of the deque.
577 * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
578 (vector::clear): Set the guaranteed capacity to 0.
579 * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
580 iterator invalidation when erasing at the end of the deque.
581
a2dcfada
PC
5822003-11-13 Paolo Carlini <pcarlini@suse.de>
583 Petur Runolfsson <peturr02@ru.is>
584
585 PR libstdc++/13007
586 * include/bits/fstream.tcc (imbue): Don't touch the stored
587 locale.
588 * include/std/std_streambuf.h (imbue): According to the
589 standard, base class version does nothing.
590 (pubimbue): Store the locale.
591 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
592 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
593 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
594 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
595 * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
596 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
597 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
598 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
599
5681c890
PR
6002003-11-13 Petur Runolfsson <peturr02@ru.is>
601
602 PR libstdc++/12594
603 * include/bits/ostream.tcc
604 (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
605 basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
606 basic_ostream::operator<<(ios_base& (*)(ios_base&))):
607 Implement the resolution of DR 60 (TC): These are not formatted
608 output functions so don't construct sentry objects and don't
609 catch exceptions.
610 (basic_ostream::put, basic_ostream::write): Implement the
611 resolution of DR 63 (TC) by catching exceptions and setting
612 badbit.
613 (basic_ostream::flush): Implement the resolution of DR 60 (TC):
614 This is not an unformatted output function so don't construct
615 a sentry object.
616 * testsuite/testsuite_io.h (sync_streambuf): Define.
617 * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
618 * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
619 * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
620 * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
621
f144e859
PC
6222003-11-13 Paolo Carlini <pcarlini@suse.de>
623
624 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
625 Fix, closely following the testcase included in the PR.
626 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
627 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
628 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
629
a198480e
JW
6302003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
631
632 * docs/html/17_intro/configury.html: XHTML tweak.
633
684edd67
JW
6342003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
635
636 * docs/html/debug_mode.html: XHTML fixes.
637
89341602
BK
6382003-11-12 Benjamin Kosnik <bkoz@redhat.com>
639
640 * docs/html/debug_mode.html: Update.
641 * docs/html/17_intro/TODO: Update.
642
f9d52373
BK
6432003-11-12 Benjamin Kosnik <bkoz@redhat.com>
644
645 * include/bits/c++config: Move using directive...
646 * include/debug/formatter.h: ...here.
647
22e5c8fa
CW
6482003-11-12 Carlo Wood <carlo@alinoe.com>
649
650 PR libstdc++/12947
651 * bits/demangle.h
652 (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
653 (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
654 (session<Allocator>::next_peek() const): Added.
655 (decode_non_negative_decimal_integer(string_type&)):
656 Renamed from decode_decimal_integer(string_type&).
657 (session<Allocator>::decode_nested_name):
658 Decode <template_param> as well.
659 (session<Allocator>::add_substitution):
660 Handle <template-param> for <nested-name>'s.
661 (enum xary_nt): Added.
662 (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
663 (symbol_name_table_c): Updated for `entry_st::type' and additional
664 operators (unary `operator+' and `sizeof(type)').
665 (offset_table_c): Updated for new operators (causing a new hash map).
666 (decode_operator_name): Match the updated hash map.
667 (session<Allocator>::decode_expression):
668 Support for `sizeof ([typename] type)' (st),
669 dependent names (sr) and casting operator (cv). Handle
670 `entry_st::type'. Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
671 and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
672 (session<Allocator>::decode_type_with_postfix):
673 Support `extern "C"' function types (FY).
674 * testsuite/demangle/regression/cw-16.cc: Added tests for the
675 added functionality.
676 * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
677 appended.
678
dfad48c6
PC
6792003-11-11 Paolo Carlini <pcarlini@suse.de>
680
681 PR libstdc++/12875
682 * include/bits/fstream.tcc (setbuf): Don't do anything
683 after open(), in particular don't discard data.
684 (_M_allocate_internal_buffer): Tweak to not allocate memory
685 in case the buffer is provided by the user via setbuf.
686 * include/ext/stdio_filebuf.h: Tweak comment.
687 * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
688 * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
689 * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
690 setbuf does nothing after open().
691 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
692
285b36d6
BK
6932003-11-11 Doug Gregor <gregod@cs.rpi.edu>
694
695 * docs/html/debug.html: Document libstdc++ debug mode.
696 * docs/html/debug_mode.html: Document libstdc++ debug mode design.
697 * docs/html/test.html: Document how to test under debug mode.
698 * docs/html/17_intro/howto.html: Document debug-mode macros.
699 * include/Makefile.am: Install debug-mode headers.
700 * src/Makefile.am: Include debug.cc.
701 * include/bits/basic_string.tcc:
702 (basic_string::_S_construct): Fix NULL pointer check.
703 (__is_null_pointer): New.
704 Add precondition annotations.
705 * include/bits/stream_iterator.h (istream_iterator,
706 ostream_iterator): Added precondition annotations.
707 * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
708 * include/bits/stl_queue.h (queue, priority_queue): Ditto.
709 * include/bits/stl_stack.h (stack): Ditto.
710 * include/bits/basic_string.h (basic_string): Ditto.
711 * include/bits/basic_string.tcc (basic_string): Ditto.
712 * include/std/std_memory.h (auto_ptr): Ditto.
713 * include/std/std_valarray.h (valarray): Ditto.
714 * include/bits/stl_algo.h: Added algorithm precondition
715 annotations.
716 * include/bits/stl_algobase.h: Added algorithm precondition
717 annotations.
718 * include/bits/stl_numeric.h: Ditto.
719 * include/ext/algorithm: Added algorithm precondition
720 annotations.
721 (__is_heap): Moved away from here.
722 * include/bits/stl_heap.h: Added algorithm precondition
723 annotations.
724 (__is_heap): Moved to the top of this file.
725 (__is_heap): Added iterator range overloads.
726 * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
727 with changes in std_memory.h.
728 * testsuite/23_containers/list/operators/4.cc: Don't verify
729 performance guarantees when in debug mode.
730 * testsuite/23_containers/bitset/invalidation/1.cc: New.
731 * testsuite/23_containers/deque/invalidation/1.cc: New.
732 * testsuite/23_containers/deque/invalidation/2.cc: New.
733 * testsuite/23_containers/deque/invalidation/3.cc: New.
734 * testsuite/23_containers/deque/invalidation/4.cc: New.
735 * testsuite/23_containers/list/invalidation/1.cc: New.
736 * testsuite/23_containers/list/invalidation/2.cc: New.
737 * testsuite/23_containers/list/invalidation/3.cc: New.
738 * testsuite/23_containers/list/invalidation/4.cc: New.
739 * testsuite/23_containers/map/invalidation/1.cc: New.
740 * testsuite/23_containers/map/invalidation/2.cc: New.
741 * testsuite/23_containers/multimap/invalidation/1.cc: New.
742 * testsuite/23_containers/multimap/invalidation/2.cc: New.
743 * testsuite/23_containers/multiset/invalidation/1.cc: New.
744 * testsuite/23_containers/multiset/invalidation/2.cc: New.
745 * testsuite/23_containers/set/invalidation/1.cc: New.
746 * testsuite/23_containers/set/invalidation/2.cc: New.
747 * testsuite/23_containers/vector/invalidation/1.cc: New.
748 * testsuite/23_containers/vector/invalidation/2.cc: New.
749 * testsuite/23_containers/vector/invalidation/3.cc: New.
750 * testsuite/23_containers/vector/invalidation/4.cc: New.
751 * testsuite/25_algorithms/heap.cc: Don't verify
752 performance guarantees when in debug mode.
753 * include/debug/bitset: New.
754 * include/debug/debug.h: New.
755 * include/debug/deque: New.
756 * include/debug/formatter.h: New.
757 * include/debug/hash_map: New.
758 * include/debug/hash_map.h: New.
759 * include/debug/hash_multimap.h: New.
760 * include/debug/hash_set: New.
761 * include/debug/hash_set.h: New.
762 * include/debug/hash_multiset.h: New.
763 * include/debug/list: New.
764 * include/debug/map: New.
765 * include/debug/map.h: New.
766 * include/debug/multimap.h: New.
767 * include/debug/multiset.h: New.
768 * include/debug/safe_base.h: New.
769 * include/debug/safe_iterator.h: New.
770 * include/debug/safe_iterator.tcc: New.
771 * include/debug/safe_sequence.h: New.
772 * include/debug/set: New.
773 * include/debug/set.h: New.
774 * include/debug/string: New.
775 * include/debug/vector: New.
776 * src/debug.cc: New.
777 * config/linker-map.gnu: Add debug mode symbols.
778
7792003-11-11 Benjamin Kosnik <bkoz@redhat.com>
780
781 * src/string-inst.cc: Tweak namespaces.
782 * src/misc-inst.cc: Same.
783 * docs/html/debug.html: Edits.
784 * config/link-map.gnu: Remove cruft.
785
786 * include/bits/c++config: Add in namespace associations.
787 * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
788 comment tweaks.
789 * include/bits/deque.tcc: Same.
790 * include/bits/list.tcc: Same.
791 * include/bits/stl_bvector.h: Same.
792 * include/bits/stl_deque.h: Same.
793 * include/bits/stl_list.h: Same.
794 * include/bits/stl_map.h: Same.
795 * include/bits/stl_multimap.h: Same.
796 * include/bits/stl_multiset.h: Same.
797 * include/bits/stl_set.h: Same.
798 * include/bits/stl_vector.h: Same.
799 * include/bits/vector.tcc: Same.
800
801 * include/std/std_algorithm.h: Remove markup comments.
802 * include/std/std_functional.h: Same.
803 * include/std/std_iterator.h: Same.
804 * include/std/std_numeric.h: Same.
805 * include/std/std_utility.h: Same.
806 * include/bits/stl_queue.h: Formatting tweaks.
807 * include/bits/stl_stack.h: Same.
808 * include/std/std_deque.h: Include debugging version in debug mode.
809 * include/std/std_list.h: Same.
810 * include/std/std_map.h: Same.
811 * include/std/std_set.h: Same.
812 * include/std/std_vector.h: Same.
813 * include/std/std_queue.h: Use deque, vector.
814 * include/std/std_stack.h: Same.
815
f6a7db9e
PC
8162003-11-09 Paolo Carlini <pcarlini@suse.de>
817
818 * include/bits/locale_facets.tcc (_M_insert_int,
819 _M_insert_float): Move a couple of vars inside an if block.
820
7c752655
PC
8212003-11-09 Paolo Carlini <pcarlini@suse.de>
822
823 PR libstdc++/12971
824 * include/bits/locale_facets.tcc
825 (money_put::do_put(..., long double)): Fix conversion
826 specification as per DR 328 [WP].
827 * testsuite/22_locale/money_put/put/char/12971.cc: Add.
828 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
829 * docs/html/ext/howto.html: Add entry for DR 328.
830
41d3a0c3
PC
8312003-11-08 Paolo Carlini <pcarlini@suse.de>
832
833 PR libstdc++/12967
834 * include/bits/list.tcc (merge): Implement resolution of
835 DR 300 [WP].
836 * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
837 for DR 231.
838
839 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
840 Import R27.
841
3ab3dca6
JW
8422003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
843
844 * libsupc++/vec.cc: Conform to C++STYLE.
845
2d369f35
CW
8462003-11-07 Carlo Wood <carlo@alinoe.com>
847
848 PR libstdc++/12736
849 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
850 (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
851 K, V, r and A qualifiers before processing them as a group.
852 * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
853 * testsuite/demangle/regression/cw-16.cc: New.
854
b938ad89
RM
8552003-11-07 Robert Millan <robertmh@gnu.org>
856
f6a7db9e
PC
857 * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
858 * crossconfig.m4: Likewise.
859 * configure: Regenerate.
b938ad89 860
eb622d37
CW
8612003-11-07 Carlo Wood <carlo@alinoe.com>
862
f6a7db9e
PC
863 * include/bits/demangle.h
864 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
865 string_type&, bool member_function_pointer_qualifiers):
866 Always separate the '[' of an array type with a space from
867 what is left of it, except when that is the closing bracket
868 of another array dimension.
eb622d37 869
2215f732
CW
8702003-11-07 Carlo Wood <carlo@alinoe.com>
871
f6a7db9e 872 * include/bits/demangle.h
2215f732
CW
873 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
874 string_type&, bool) const): Made const.
875 (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
876 (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
877 std::ostream& operator<<(std::ostream&, qualifier const&),
878 std::ostream& operator<<(std::ostream&, qualifier_list const&),
879 qualifier_list<Allocator>::decode_qualifiers(string_type&,
880 string_type&, bool) const,
881 session<Allocator>::decode_type_with_postfix(string_type&,
882 string_type&, qualifier_list<Allocator>*))
883 Added and/or changed debug-only hooks and code.
884
d30b600a
JO
8852003-11-04 Jeffrey D. Oldham <oldham@codesourcery.com>
886
887 * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
888 immediately return. This reflects a C++ ABI change 2003 Nov 03.
889 (__cxa_vec_delete3): Likewise.
890
5e93f39f
PR
8912003-11-03 Petur Runolfsson <peturr02@ru.is>
892
893 PR libstdc++/12790
894 * include/bits/fstream.tcc: Delete _M_last_overflowed.
895 (basic_filebuf::basic_filebuf): Initialize _M_state_last.
896 (basic_filebuf::open, basic_filebuf::close): Assign
897 _M_state_beg to _M_state_cur and _M_state_last.
898 (basic_filebuf::close): Call _M_terminate_output to handle
899 unshift and flushing.
900 (basic_filebuf::underflow): Assign _M_state_last, throw
901 exception instead of calling abort when codecvt::max_length()
902 is bad.
903 (basic_filebuf::seekoff): Use _M_state_last when calling
904 codecvt::length(), pass correct state to _M_seek.
905 (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
906 (basic_filebuf::_M_seek): Add __state_type parameter,
907 set _M_state_cur correctly, store the resulting state in
908 the return value and use _M_terminate_output to handle
909 flushing and unshift.
910 (basic_filebuf::_M_terminate_output): Flush contents of
911 output buffer, if any, then call codecvt::unshift as
912 needed and output the result.
913 (basic_filebuf::sync): Move here, don't modify _M_writing
914 or _M_reading.
915
916 * include/std/std_fstream.h
917 (basic_filebuf::_M_state_last): Declare it.
918 (basic_filebuf::_M_last_overflowed): Delete.
919 (basic_filebuf::_M_seek): Add __state_type parameter.
920 (basic_filebuf::sync): Declare only.
921 (basic_filebuf::_M_output_unshift): Delete.
922 (basic_filebuf::_M_terminate_output): Declare it.
923
924 * testsuite/testsuite_character.h:
925 Define character class and state class plus char_traits and
926 codecvt specializations for same for testing support for
927 stateful encodings.
928
929 * testsuite/27_io/basic_filebuf/close/12790-1.cc,
930 * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
931 * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
932 * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
933 * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
934 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
935 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
936 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
937 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
938 * testsuite/27_io/basic_filebuf/open/12790-1.cc,
939 * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
940 * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
941 * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
942 * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
943 * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
944 * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
945 * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
946 * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
947 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
948 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
949 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
950 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
951 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
952 * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
953 * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
954 * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
955 * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
956 * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
957 * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
958 * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
959 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
960 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
961 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
962 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
963 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
964 * testsuite/27_io/basic_filebuf/sync/char/1.cc,
965 * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
966 New tests.
967
968 * testsuite/27_io/basic_filebuf/3.cc,
969 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
970 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
971 * testsuite/27_io/basic_fstream/3.cc,
972 * testsuite/27_io/basic_ifstream/3.cc,
973 * testsuite/27_io/basic_ofstream/3.cc:
974 Use streamoff as off_type and fpos<state_type> as pos_type.
975
976 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
977 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
978 Check that sync does *not* set _M_writing to false.
979
1b9e6d64
AG
9802003-11-03 Anthony Green <green@redhat.com>
981
982 * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
983 they're used.
984
e0f05105
BK
9852003-11-03 Benjamin Kosnik <bkoz@redhat.com>
986
987 * include/bits/locale_facets.h (time_get::_M_extract_name): Add
988 ctype argument.
989 * include/bits/locale_facets.tcc: Same, use it to allow
990 capitalized names.
991
992 * include/bits/fstream.tcc: Spacing tweak.
993 * include/bits/istream.tcc: Same.
994 * include/bits/ostream.tcc: Same.
995
08b9183d
PC
9962003-10-30 Paolo Carlini <pcarlini@suse.de>
997
998 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
999 __mod is only assigned, never used its value, remove it.
1000
f1e7988a
PC
10012003-10-29 Paolo Carlini <pcarlini@suse.de>
1002
1003 * include/bits/locale_facets.tcc (time_get::do_get_year):
1004 Absolutely avoid dereferencing end iterators.
1005 (time_put::put): Minor clean up.
1006
1007 * include/bits/locale_facets.tcc: Cosmetic reformattings.
1008
58c9703f
PC
10092003-10-29 Paolo Carlini <pcarlini@suse.de>
1010
1011 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1012 Revert the last commit, is not correct, sorry.
1013
4f363232
PC
10142003-10-29 Paolo Carlini <pcarlini@suse.de>
1015
1016 * config/locale/generic/c_locale.cc: Add back <cmath> and
1017 <cstdlib>.
1018
1019 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1020 Clean up.
1021
6bf0b59c
PC
10222003-10-29 Paolo Carlini <pcarlini@suse.de>
1023
1024 * include/bits/locale_facets.tcc (time_put::put): Absolutely
1025 avoid dereferencing end iterators; clean up.
1026
1027 * include/bits/locale_facets.tcc (num_get::_M_extract_float,
1028 num_get::_M_extract_int): Minor tweak.
1029
c9cca2c2
PC
10302003-10-29 Paolo Carlini <pcarlini@suse.de>
1031
1032 * include/bits/locale_facets.tcc: Remove some unnecessary
1033 includes.
1034 * config/locale/generic/c_locale.cc: Include <cerrno> here.
1035 * config/locale/gnu/c_locale.cc: Likewise.
1036
157f3283
PC
10372003-10-28 Paolo Carlini <pcarlini@suse.de>
1038
1039 * include/bits/locale_facets.tcc
1040 (money_get<>::do_get(..., string_type&)): Absolutely avoid
1041 dereferencing end iterators; general clean up.
1042
cc27f5a2
PC
10432003-10-28 Paolo Carlini <pcarlini@suse.de>
1044
1045 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
1046 Absolutely avoid dereferencing end iterators.
1047 (time_get::_M_extract_name): Likewise.
1048
1049 * include/bits/locale_facets.tcc
1050 (time_get::_M_extract_via_format, case 'e'): Don't try to
1051 be smart wrt returning the right __beg in case of parse
1052 error, time_get::_M_extract_num must be fixed instead.
1053
0c6b814a
PC
10542003-10-27 Paolo Carlini <pcarlini@suse.de>
1055
1056 PR libstdc++/12778
1057 * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
1058 * aclocal.m4: Regenerate.
1059 * configure: Regenerate.
1060
0f09879b
BK
10612003-10-27 Benjamin Kosnik <bkoz@redhat.com>
1062
1063 * docs/html/17_intro/TODO: Add links.
1064 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1065 Uncomment.
1066
f20d2b78
PC
10672003-10-27 Paolo Carlini <pcarlini@suse.de>
1068
1069 PR libstdc++/12750
1070 * include/bits/locale_facets.tcc
1071 (time_get::_M_extract_via_format): Deal with code 'e'.
1072 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
1073 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
1074
1075 * include/bits/locale_facets.tcc
1076 (time_get::_M_extract_via_format): Tweak to absolutely avoid
1077 dereferencing end iterators.
1078
1079 * include/bits/locale_facets.h (__verify_grouping):
1080 Const-ify second parameter.
1081 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
1082 * src/locale-inst.cc (__verify_grouping): Ditto.
1083
10842003-10-27 Paolo Carlini <pcarlini@suse.de>
1085
1086 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1087 Various things: 1- Avoid absolutely end iterator dereferences;
1088 2- Improve performance-wise the code skipping leading zeros;
1089 3- Fix two bugs wrt early bail out in case of parsing errors
1090 (see testcases); 4- General clean up.
1091 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
1092 use __builtin_expect to favor base 10 inputs.
1093 * testsuite/22_locale/num_get/get/char/7.cc: New.
1094 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
1095
f883c8dc
PC
10962003-10-26 Paolo Carlini <pcarlini@suse.de>
1097
1098 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
1099 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
1100
999bf60f
PC
11012003-10-25 Paolo Carlini <pcarlini@suse.de>
1102
1103 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
1104 __pos in only incremented, never used its value, remove it.
1105
b2398b49
RM
11062003-10-24 Robert Millan <robertmh@gnu.org>
1107
1108 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
1109 and knetbsd*-gnu.
1110 * aclocal.m4: Regenerated.
1111 * configure: Regenerated.
1112
761faeec
PC
11132003-10-24 Paolo Carlini <pcarlini@suse.de>
1114
1115 * include/bits/locale_facets.tcc (money_get::do_get(...,
1116 long double&): Properly size the temporary buffer.
1117 * testsuite/22_locale/money_get/get/char/11.cc: New.
1118 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
1119
1120 * include/bits/locale_facets.tcc (num_put::_M_group_int,
1121 num_put::_M_group_float, money_put::do_put(..., const
1122 string_type&), collate::do_compare, collate::do_transform):
1123 Prefer basic_string::data() to c_str() when the '\0'
1124 terminator is not really needed.
1125
eebf21ef
PC
11262003-10-24 Paolo Carlini <pcarlini@suse.de>
1127
1128 * include/bits/locale_facets.tcc (__verify_grouping):
1129 Prefer '=' to an unnecessary '&='.
1130
ebaeca8b
PC
11312003-10-24 Paolo Carlini <pcarlini@suse.de>
1132
1133 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1134 Tweak my fix for libstdc++/12657.
1135
bf22935f
PC
11362003-10-24 Paolo Carlini <pcarlini@suse.de>
1137
1138 * include/bits/locale_facets.tcc (money_get::do_get(...,
1139 string_type&): Minor tweak to the previous commit.
1140
14628700
PC
11412003-10-24 Paolo Carlini <pcarlini@suse.de>
1142
1143 * include/bits/locale_facets.tcc (money_get::do_get(...,
1144 string_type&): Disregard the previous commit: doesn't hurt but
1145 doesn't accomplish anything useful either. This is the right
1146 one, speeding up greatly the function in case of early fail.
1147
cdd5cf72
PC
11482003-10-24 Paolo Carlini <pcarlini@suse.de>
1149
1150 * include/bits/locale_facets.tcc (money_get::do_get(...,
1151 string_type&): Move an if block, thus minimizing the amount
1152 of code processed anyway when __tmp_units.size() == 0.
1153
c21dbe85
PC
11542003-10-24 Paolo Carlini <pcarlini@suse.de>
1155
1156 * include/bits/locale_facets.tcc
1157 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
1158 equivalent to 'y'.
1159
d2c354f3
BK
11602003-10-23 Benjamin Kosnik <bkoz@redhat.com>
1161
1162 * docs/html/documentation.html: Add a pointer to the doxygen style
1163 guide.
1164 * docs/html/17_intro/TODO: Update.
1165 * docs/html/test.html: Add instructions for running a subset of
1166 tests, update.
1167
60aa9fc3
PC
11682003-10-23 Paolo Carlini <pcarlini@suse.de>
1169
1170 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
1171 string_type&)): Use find_first_not_of to strip leading
1172 zeros; if __tmp_units == "0" never prefix it with '-';
1173 always fail if __tmp_units is empty.
1174 * testsuite/22_locale/money_get/get/char/10.cc: New.
1175 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
1176
861f9573
PE
11772003-10-23 Phil Edwards <phil@codesourcery.com>
1178
1179 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
1180 2003-10-21 change.
1181
3c21d6e0
PC
11822003-10-22 Paolo Carlini <pcarlini@suse.de>
1183
1184 * include/bits/locale_facets.tcc (__int_to_char): Remove
1185 the const int parameter.
1186 (_M_insert_int): Update caller.
1187 * src/locale-inst.cc (__int_to_char): Update instantiations.
1188
bf5fe473
BK
11892003-10-22 Benjamin Kosnik <bkoz@redhat.com>
1190
1191 * include/bits/locale_facets.h: Correct byname facets for "C"
1192 locale.
1193 * config/locale/generic/ctype_members.cc: Same.
1194 * config/locale/generic/messages_members.h: Same.
1195 * config/locale/gnu/ctype_members.cc: Same.
1196 * config/locale/gnu/messages_members.h: Same.
1197 * include/bits/codecvt.h: Same.
1198 * src/ctype.cc: Same.
1199 * testsuite/22_locale/codecvt_byname/1.cc: New.
1200 * testsuite/22_locale/collate/1.cc: Edit.
1201 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
1202 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
1203 * testsuite/22_locale/ctype/1.cc: Derivation tests.
1204 * testsuite/22_locale/ctype/11844.cc: Move...
1205 * testsuite/22_locale/ctype_base/11844.cc: ...here.
1206 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
1207 * testsuite/22_locale/ctype_byname/1.cc: Name.
1208 * testsuite/22_locale/messages_byname/1.cc: New.
1209 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
1210 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
1211 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
1212 * testsuite/22_locale/numpunct/1.cc: Edit.
1213 * testsuite/22_locale/numpunct_byname/2.cc: Move...
1214 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
1215 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
1216 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
1217
3d05b345
PC
12182003-10-22 Paolo Carlini <pcarlini@suse.de>
1219
1220 PR libstdc++/8610
1221 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
1222 checking for the availability of int64_t.
1223 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
1224 * configure.ac: Call here.
1225 * acconfig.h: Add undef for the corresponding symbols.
1226 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
1227 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
1228 (__basic_file<char>::seekoff): Likewise, call lseek64 when
1229 available, otherwise lseek, checking the __off parameter.
1230 * include/bits/postypes.h: Typedef __streamoff_base_type
1231 to int64_t if available, otherwise long long.
1232 * aclocal.m4: Regenerate.
1233 * config.h.in: Likewise.
1234 * configure: Likewise.
1235
1236 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
1237 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
1238
57d01e69
PC
12392003-10-22 Paolo Carlini <pcarlini@suse.de>
1240
1241 PR libstdc++/12657
1242 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1243 Implement resolution of DR 292 (WP).
1244 * docs/html/ext/howto.html: Add entry for DR 292.
1245
6b5a2662
BK
12462003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1247
1248 * include/ext/mt_allocator.h: Change include to gthr.h.
1249 * include/ext/rope: Same. Add _Refcount_base definitions.
1250 * include/ext/pool_allocator.h: Adjust namespaces.
1251 * include/bits/stl_threads.h (_Refcount_base): Move.
1252 Put remaining into namespace __gnu_cxx.
1253
82c2e3d4
BK
12542003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1255
1256 PR libstdc++/9858
1257 * include/bits/locale_facets.h (ctype<char>): Remove
1258 __ctype_abstract_base.
1259 (ctype<char>::do_is): Remove.
1260 (ctype<char>::do_scan_is): Remove.
1261 * src/ctype.cc: Same. Inline the rest.
1262 * testsuite/22_locale/ctype/is/char/9858.cc: New.
1263 * config/os/aix/ctype_noninline.h: Adjust ctor.
1264 * config/os/bsd/freebsd/ctype_noninline.h: Same.
1265 * config/os/bsd/netbsd/ctype_noninline.h: Same.
1266 * config/os/djgpp/ctype_noninline.h: Same.
1267 * config/os/generic/ctype_noninline.h: Same.
1268 * config/os/gnu-linux/ctype_noninline.h: Same.
1269 * config/os/hpux/ctype_noninline.h: Same.
1270 * config/os/irix/irix5.2/ctype_noninline.h: Same.
1271 * config/os/irix/irix6.5/ctype_noninline.h: Same.
1272 * config/os/mingw32/ctype_noninline.h: Same.
1273 * config/os/newlib/ctype_noninline.h: Same.
1274 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
1275 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
1276 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
1277 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
1278 * config/os/windiss/ctype_noninline.h: Same.
1279
d23ad8c8
PC
12802003-10-21 Paolo Carlini <pcarlini@suse.de>
1281
1282 * src/locale.cc: Tweak a comment.
1283 * src/localename.cc: Move a comment.
1284
9540958e
BK
12852003-10-20 Benjamin Kosnik <bkoz@redhat.com>
1286
1287 PR libstdc++/10081
1288 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
1289 * testsuite_hooks.cc: Same.
1290 * 22_locale/numpunct/members/pod/1.cc: Edit.
1291 * 22_locale/numpunct/members/pod/2.cc: Same.
1292 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
1293 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
1294 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
1295 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
1296 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
1297 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
1298 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
1299 * 27_io/basic_istream/sentry/pod/1.cc: New.
1300 * 27_io/basic_ostream/sentry/pod/1.cc: New.
1301 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
1302 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
1303
27d54b2a
RO
13042003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1305
1306 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
1307 of external _MIPS_SIM_ABI32.
1308
65fc9769
PE
13092003-10-20 Phil Edwards <phil@codesourcery.com>
1310
1311 * configure.ac: Fix comment typo.
1312 * configure.host: Add vxworks to host_os switch.
1313 * crossconfig.m4: Remove old commented os_include_dir variables
1314 left over from autotools transition.
1315 (*-vxworks): New stanza.
1316 (*-windiss): Add missing symbols.
1317 * configure: Regenerate.
1318 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
1319 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
1320 New files.
1321 * config/os/windiss/os_defines.h: Define __C9X__.
1322
47395a24
DE
13232003-10-19 David Edelsohn <edelsohn@gnu.org>
1324
1325 PR other/12506
1326 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
1327
8f4c7b67
AT
13282003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
1329
1330 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
1331 confusion of the use of the gthr API when __gthread_active_p()
1332 returns true.
1333
c755e77d
BK
13342003-10-17 Benjamin Kosnik <bkoz@redhat.com>
1335
1336 * src/Makefile.am: Add new files.
1337 * src/Makefile.in: Regenerate.
1338 * src/globals.cc: Split into..
1339 * src/globals_io.cc: New.
1340 * src/globals_locale.cc: New.
1341 * src/ios.cc: Split into...
1342 * src/ios_init.cc: New.
1343 * src/ios_locale.cc: New.
1344 * src/locale-inst.cc: Split into..
1345 * src/wlocale-inst.cc: New.
1346 * src/locale-misc-inst.cc: New.
1347 * src/locale.cc, src/localename: Split into...
1348 * src/locale_facets.cc: New.
1349 * src/locale_init.cc: New.
1350 * src/wstring-inst.cc: Add copyright info.
1351
4c4809c1
BK
13522003-10-16 Petur Runolfsson <peturr02@ru.is>
1353
4c4809c1
BK
1354 PR libstdc++/11450
1355 PR libstdc++/11543
1356 PR libstdc++/12065
1357 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
1358 Change return value from streampos to streamoff.
1359 (__basic_file::seekpos): Delete.
1360 * config/io/basic_file_stdio.h: Same.
1361 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
1362 * include/Makefile.am (bits_headers): Add bits/postypes.h.
1363 * include/bits/char_traits.h: Include bits/postypes.h instead of
1364 bits/fpos.h.
1365 * include/bits/fstream.tcc (basic_filebuf::open,
1366 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
1367 values, use == and != instead.
1368 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
1369 to pos_type.
1370 (basic_filebuf::imbue): Don't use ! on pos_type values, use
1371 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
1372 * include/bits/postypes.h: New file.
1373 Add __streamoff_base_type typedef, streamsize.
1374 (streamoff, streampos, wstreampos): Define typedefs, with
1375 streamoff defined as...
1376 (streamoff): New class. Document implementation defined
1377 aspects.
1378 (fpos): New implementation. Document implementation defined
1379 aspects.
1380 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
1381 explicit conversion from pos_type to off_type.
1382 * include/std/std_iosfwd.h: Include bits/postypes.h instead
1383 of bits/fpos.h.
1384 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
1385 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
1386 * testsuite/27_io/fpos/11450.cc: New test.
1387 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
1388 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
1389 * testsuite/27_io/types/3.cc: New test.
1390
13912003-10-16 Benjamin Kosnik <bkoz@redhat.com>
f883c8dc
PC
1392
1393 * configure.host: Remove fpos_include_dir.
1394 * configure.ac: Remove FPOS_INC_SRCDIR.
1395 * configure: Regenerate.
1396 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
1397 * aclocal.m4: Regenerate.
1398 * include/Makefile.am (host_headers): Remove fpos.h.
1399 (bits_headers): Add postypes.h.
1400 * include/Makefile.in: Regenerate.
1401 * config/os/gnu-linux/fposh: Remove.
1402 * config/os/generic/fpos.h: Remove.
1403
1404 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
1405 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
1406 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
1407 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
1408 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
1409 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
1410 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
1411 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
1412 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
1413 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
1414 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
1415 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
1416 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
1417 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
1418 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
1419 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1420 * testsuite/27_io/objects/char/10.cc: Same.
4c4809c1 1421
0392ff98
PC
14222003-10-16 Paolo Carlini <pcarlini@suse.de>
1423
1424 * src/locale.cc (locale::locale(const char*)): ... one
1425 more comparison missed in the previous commit.
1426
d2f663d1
BK
14272003-10-16 Benjamin Kosnik <bkoz@redhat.com>
1428
5d78fe72
BK
1429 * acconfig.h: Add HAVE_DRAND48.
1430 * crossconfig.m4: Remove ISATTY.
d2f663d1
BK
1431 * aclocal.m4: Regenerated.
1432 * config.h.in: Regenerated.
5d78fe72 1433 * configure: Regenerated.
d2f663d1 1434
068c84e3
BI
14352003-10-16 Bernardo Innocenti <bernie@develer.com>
1436
1437 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
1438 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
1439 Document SMP safeness of asm macros.
1440
eaed902b
PC
14412003-10-16 Paolo Carlini <pcarlini@suse.de>
1442
1443 * src/locale.cc (locale::locale(const char*)): Tweak
1444 a couple of comparisons to use basic_string operators.
1445
f991b1d8
PC
14462003-10-16 Paolo Carlini <pcarlini@suse.de>
1447
1448 PR libstdc++/12540
1449 * config/locale/gnu/monetary_members.cc
1450 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
1451 Don't leak memory if new throws.
1452 * src/locale.cc (locale::locale(const char*)): In order not
1453 to leak memory in case new throws, use a basic_string type
1454 for __res too and avoid strdup.
1455
84e72d83
JB
14562003-10-14 Jeff Bailey <jbailey@nisa.net>
1457
1458 PR libstdc++/12562
1459 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
1460 * configure: Regenerate.
1461
be3faf89
CW
14622003-10-14 Carlo Wood <carlo@alinoe.com>
1463
1464 PR libstdc++/12600
1465 * include/bits/demangle.h (session<Allocator>::
1466 decode_unqualified_name(string_type& output)): Fail on a
1467 <operator-name> when decoding <template-argument>.
1468 * testsuite/demangle/regression/cw-15.cc: New.
1469
1638f5c9
PC
14702003-10-14 Paolo Carlini <pcarlini@unitus.it>
1471
1472 PR libstdc++/11480
1473 * include/bits/stl_algo.h (unique): Fix.
1474 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
1475 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
1476 * testsuite/25_algorithms/unique/2.cc: New.
1477
42db0f21
PC
14782003-10-14 Paolo Carlini <pcarlini@unitus.it>
1479
1480 * src/localename.cc (_M_replace_categories, M_replace_facet):
1481 Const-ify a couple of variables.
1482
9dccaa6b
PR
14832003-10-14 Petur Runolfsson <peturr02@ru.is>
1484 Andreas Tobler <a.tobler@schweiz.ch>
1485
1486 * src/locale.cc (locale::_S_initialize): Workaround a confusion
1487 of the use of the gthr API when __gthread_active_p() returns true.
1488
a62e7311
PR
14892003-10-12 Petur Runolfsson <peturr02@ru.is>
1490 Paolo Carlini <pcarlini@unitus.it>
1491
1492 PR libstdc++/11460
1493 * src/strstream.cc (pbackfail): Fix to use to_int_type.
1494 * testsuite/backward/11460.cc: New, from the PR.
1495
f5677b15
PC
14962003-10-12 Paolo Carlini <pcarlini@unitus.it>
1497
1498 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1499 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
1500 * include/bits/basic_string.tcc: Likewise.
1501 * include/bits/ios_base.h: Likewise.
1502 * include/bits/istream.tcc: Likewise.
1503 * include/bits/locale_facets.tcc: Likewise.
1504 * include/bits/ostream.tcc: Likewise.
1505 * include/bits/stl_function.h: Likewise.
1506 * include/bits/stl_multiset.h: Likewise.
1507 * include/bits/stl_pair.h: Likewise.
1508 * include/bits/stl_set.h: Likewise.
1509 * include/bits/streambuf_iterator.h
1510 * include/std/std_iosfwd.h: Likewise.
1511 * include/std/std_istream.h: Likewise.
1512 * include/std/std_sstream.h: Likewise.
1513 * include/std/std_streambuf.h: Likewise.
1514 * src/ios.cc: Likewise.
1515 * include/bits/c++config:
1516 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
1517 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
1518 dg-error directive due to removal of a blank line.
1519 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1520
c411fdae
AT
15212003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
1522 Paolo Carlini <pcarlini@unitus.it>
1523
1524 PR libstdc++/11844/11740 (cont)
1525 * config/os/generic/ctype_inline.h (ctype<char>::is):
1526 Generically, use a bitmasksize of 15 (instead of 10);
1527 Fix the logic to actually return (M & m) != 0 as per
1528 22.2.1.1.2.
1529
796d7a86
BI
15302003-10-11 Bernardo Innocenti <bernie@develer.com>
1531
1532 * crossconfig.m4 (*-uclinux*): New target.
1533 * configure: Regenerate.
1534
6b61bca4
PC
15352003-10-10 Paolo Carlini <pcarlini@unitus.it>
1536
1537 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
1538 Avoid unnecessarily calling __builtin_alloca and dealing
1539 explicitly with width() smaller than zero.
1540 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
1541 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
1542 const char*), operator<<(basic_ostream<char, _Traits>&,
1543 const char*), operator<<(basic_ostream, const basic_string&)):
1544 Likewise.
1545
5aaa2108
BK
15462003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1547
1548 * config/linker-map.gnu: Make more *_type_info bits visible.
1549 Move new/delete bits back into GLIBCXX space.
1550
1551 * include/bits/locale_classes.h: Move _M_id out of line, so that
1552 locale::id::_S_highwater can be removed from the export list.
1553 * src/locale.cc (locale::id::_M_id): Define.
1554
64833be0
AT
15552003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
1556
1557 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
1558 SPARC64.
1559
2f800bcc
PC
15602003-10-09 Paolo Carlini <pcarlini@unitus.it>
1561
1562 PR libstdc++/11844
1563 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
1564 to conform to the requirements of 22.2.1.
1565 * config/os/bsd/freebsd/ctype_base.h: Likewise.
1566 * config/os/djgpp/ctype_base.h: Likewise.
1567 * config/os/generic/ctype_base.h: Likewise.
1568 * config/os/gnu-linux/ctype_base.h: Likewise.
1569 * config/os/hpux/ctype_base.h: Likewise.
1570 * config/os/irix/irix6.5/ctype_base.h: Likewise.
1571 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
1572 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
1573 * testsuite/22_locale/ctype/11844.cc: New.
1574
1575 * config/locale/generic/ctype_members.cc (do_is):
1576 Generically, use a bitmasksize of 15 (instead of 10), since
1577 we don't know the numerical encoding of the various categories
1578 in the underlying /usr/include/ctype.h.
1579
93d04686
BK
15802003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1581
1582 * src/string-inst.cc: Prune.
1583 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1584 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1585
15862003-10-09 Petur Runolfsson <peturr02@ru.is>
1587
1588 * src/io-inst.cc: Don't include iostream.
1589 * include/bits/ios_base.h (ios_base::failure): Use string.
1590 * src/Makefile.am: Add ios_failure.cc.
1591 * src/Makefile.in: Regenerate.
1592 * src/ios.cc: Move ios_base::failure definitions to...
1593 * src/ios_failure.cc: ...here. New.
1594
1a139c59
PR
15952003-10-09 Petur Runolfsson <peturr02@ru.is>
1596
1597 PR libstdc++/9874
1598 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1599 Move code needed for both seekoff and seekpos...
1600 (basic_filebuf::_M_seek): ...here. New function.
1601 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
1602 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
1603 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
1604
1605 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
1606
a761195b
PC
16072003-10-08 Paolo Carlini <pcarlini@unitus.it>
1608
1609 * include/bits/locale_facets.tcc: More minor cosmetic
1610 changes and const-ifications of some variables.
1611
905df1fb
PC
16122003-10-07 Paolo Carlini <pcarlini@unitus.it>
1613
1614 * include/bits/locale_facets.tcc: Minor cosmetic changes
1615 and const-ifications of some variables.
1616
1617 * include/bits/locale_facets.tcc
1618 (money_get::do_get(..., string_type&)): Simplify an if-else.
1619
ba9b12d1
PC
16202003-10-06 Paolo Carlini <pcarlini@unitus.it>
1621
1622 PR libstdc++/11740
1623 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
1624 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
1625 * config/locale/generic/ctype_members.cc: Same.
1626 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
1627
e4f7d0a1
PC
16282003-10-06 Paolo Carlini <pcarlini@unitus.it>
1629
1630 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
1631 Improve performance-wise: avoid one traits::copy, avoid
1632 the __builtin_alloca, streamline.
1633
5b577977
PC
16342003-10-05 Paolo Carlini <pcarlini@unitus.it>
1635
1636 * include/bits/locale_facets.tcc
1637 (num_put::do_put(..., bool)): Prefer ?: to if-else.
1638 (time_get::_M_extract_name): Qualify min with std::.
1639 (__pad<>::_S_pad): Constify two variables; simplify an
1640 if-else statement factoring out some code.
1641
1642 * include/bits/locale_facets.tcc: Minor cosmetic changes.
1643
dff186db
PC
16442003-10-04 Paolo Carlini <pcarlini@unitus.it>
1645
1646 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1647 Constify a couple of variables.
1648 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
1649 ++__beg to *__beg++.
1650
2811b823
PC
16512003-10-04 Paolo Carlini <pcarlini@unitus.it>
1652 Petur Runolfsson <peturr02@ru.is>
1653
1654 * include/ext/stdio_sync_filebuf.h: Don't include the whole
1655 <fstream>, only <streambuf> and <cstdio>.
1656
184b434c
PC
16572003-10-04 Paolo Carlini <pcarlini@unitus.it>
1658
1659 PR libstdc++/12206
1660 * include/bits/fstream.tcc (imbue): In case a codecvt facet
1661 is not available, set _M_codecvt = 0.
1662 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
1663
cafc7337
HB
16642003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
1665
1666 PR libstdc++/12451
1667 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
1668
bb1b12ec
BK
16692003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1670
1671 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
1672 * src/locale.cc: Define.
1673 * src/localename.cc: Use it.
1674 * config/locale/generic/time_members.h: Same.
1675 * config/locale/gnu/messages_members.h: Same.
1676 * config/locale/gnu/time_members.h: Same.
1677
8dcaff28
PC
16782003-10-02 Paolo Carlini <pcarlini@unitus.it>
1679
1680 PR libstdc++/12232
1681 * include/bits/fstream.tcc (seekoff): Ignore the openmode
1682 argument; simplify.
1683 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
1684 seekpos): Remove the openmode argument.
1685 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
1686 seekpos): Remove redundant placeholder for the openmode argument.
1687 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
1688 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
1689 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
1690 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
1691 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
1692
5c109a17
BK
16932003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1694
1695 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
1696 (locale::facet::_S_get_c_locale): Same.
1697
8ae81136
BK
16982003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1699
1700 * config/linker-map.gnu: Export _S_get_c_locale instead of
1701 _S_c_locale object.
1702
17032003-10-02 Petur Runolfsson <peturr02@ru.is>
1704
1705 * config/locale/generic/c_locale.cc
1706 (category_names, locale::_S_categories): Const qualify.
1707 * config/locale/gnu/c_locale.cc: Same.
1708 * config/locale/generic/time_members.h (__timepunct::__timepunct):
1709 Copy string contents before assigning to _M_name_timepunct,
1710 qualify strcpy and strlen with std::.
1711 * config/locale/gnu/time_members.h: Same.
1712 * config/locale/gnu/messages_members.h (messages::messages):
1713 Copy string contents before assigning to _M_name_messages,
1714 qualify strcpy and strlen with std::.
1715 * config/os/gnu-linux/ctype_noninline.h
1716 (ctype<char>::classic_table()): Don't call locale::classic().
1717 * include/bits/locale_classes.h
1718 (locale::_S_categories): Const qualify.
1719 (locale::_S_once, locale::_S_initialize_once,
1720 locale::facet::_S_once, locale::facet::_S_initialize_once,
1721 locale::facet::_S_get_c_locale): Declare.
1722 (locale::_S_initialize): Don't define.
1723 (locale::facet::_S_c_locale): Make private.
1724 (locale::facet::_S_c_name): Same, const qualify.
1725 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
1726 parameters, add throw() specifier.
1727 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
1728 messages::_M_name_messages): Const qualify.
1729 * src/locale.cc
1730 (locale::_S_once, locale::facet::_S_once): Define.
1731 (locale::classic): Move initialization code...
1732 (locale::_S_initialize_once): ...here.
1733 (locale::_S_initialize): Call _S_initialize_once through
1734 __gthread_once.
1735 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
1736 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
1737 __gthread_once before returning _S_c_locale.
1738 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
1739 Drop unused parameters, add throw() specifier, don't initialize
1740 locale::facet::_S_c_locale and _S_c_name.
1741
1742 * config/locale/generic/messages_members.h:
1743 Replace _S_c_locale with _S_get_c_locale().
1744 * config/locale/gnu/c_locale.cc: Same.
1745 * config/locale/gnu/messages_members.h: Same.
1746 * config/locale/gnu/numeric_members.cc: Same.
1747 * config/locale/gnu/time_members.cc: Same.
1748 * config/os/gnu-linux/ctype_noninline.h: Same.
1749 * include/bits/locale_facets.h: Same.
1750 * include/bits/locale_facets.tcc: Same.
1751 * src/codecvt.cc: Same.
1752 * src/ctype.cc: Same.
1753
4a035cf7
CW
17542003-10-02 Carlo Wood <carlo@alinoe.com>
1755
1756 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
1757 Decode symbols that start with _GLOBAL_[ID]_ differently: the
1758 trailing part ends with a terminating zero and is not necessarily an
1759 encoding.
1760 * src/demangle.cc (): Same.
1761 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
1762
86b4ab73
PC
17632003-10-02 Paolo Carlini <pcarlini@unitus.it>
1764
1765 * testsuite/22_locale/locale/cons/12438.cc: Use
1766 __gnu_test::try_named_locale("").
1767
222a5b1d
RO
17682003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1769
1770 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
1771 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
1772 instead of drand48.
1773 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
1774 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
1775 HAVE_DRAND48.
1776 * config.h.in, configure: Regenerate.
1777 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
1778 lrand48 use.
1779
e39dd1ce
NM
17802003-10-01 Nathan Myers <ncm@cantrip.org>
1781
1782 * include/bits/locale_facets.tcc (time_put::put): Avoid
1783 expensive *__s++, in favor of *__s, ++__s.
1784
530ce551
PC
17852003-10-01 Paolo Carlini <pcarlini@unitus.it>
1786
1787 * include/bits/locale_facets.tcc (time_put::put): Minor
1788 tweak to the previous commit.
1789
52a16d08
PC
17902003-10-01 Paolo Carlini <pcarlini@unitus.it>
1791
1792 PR libstdc++/12439
1793 * include/bits/locale_facets.tcc (time_put::put): Deal
1794 with the three issues pointed out by the PR.
1795 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
1796 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
1797 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
1798 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
1799 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
1800
ae7c3ba5
PC
18012003-09-30 Paolo Carlini <pcarlini@unitus.it>
1802
1803 * include/bits/stl_algo.h: Minor cosmetic reformattings.
1804
cbc6c296
PC
18052003-09-30 Paolo Carlini <pcarlini@unitus.it>
1806
1807 * include/bits/stl_algo.h (search_n): Tweak, to spare the
1808 first --__n.
1809
2ea247d3
PC
18102003-09-30 Paolo Carlini <pcarlini@unitus.it>
1811
1812 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
1813 qualify exception name.
1814
155f6fbb
PC
18152003-09-30 Paolo Carlini <pcarlini@unitus.it>
1816
1817 PR libstdc++/12438
1818 * include/bits/locale_facets.tcc (locale::combine): Don't
1819 leak memory if _M_replace_facet throws.
1820 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
1821
1822 * include/bits/locale_classes.h (locale::locale(const locale&,
1823 _Facet*)): Tweak, use consistently _M_remove_reference.
1824
70863cbd
PC
18252003-09-30 Paolo Carlini <pcarlini@unitus.it>
1826
1827 PR libstdc++/12352 (cont)
1828 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
1829 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
1830 calls fail.
1831 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
1832 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
1833 !_M_caches, !_M_names.
1834
51ac684e
RO
18352003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1836
1837 * configure.host: Handle Solaris 2.5 micro releases explicitly.
1838 Remove wildcards from Solaris 2.6, 7-9: there were no
1839 micro releases.
1840 Treat Solaris 10 and up like 7-9.
1841
6821a40b
PC
18422003-09-29 Paolo Carlini <pcarlini@unitus.it>
1843
1844 * include/bits/stl_algo.h (search_n): Improve the previous
1845 fix as suggested by Martin.
1846
e5012ba5
PC
18472003-09-29 Paolo Carlini <pcarlini@unitus.it>
1848
1849 PR libstdc++/12296
1850 * include/bits/istream.tcc (peek): Set eofbit if sgetc
1851 returns eof.
1852 * testsuite/27_io/basic_istream/peek/char/12296.cc:
1853 New, from the PR.
1854
18552003-09-29 Nathan Myers <ncm@cantrip.org>
1856 Paolo Carlini <pcarlini@unitus.it>
1857
1858 PR libstdc++/11400
1859 * include/bits/stl_algo.h (search_n):
1860 Use iterator_traits<>::difference_type for __n.
1861 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
1862
6cd6aed7
PC
18632003-09-29 Paolo Carlini <pcarlini@unitus.it>
1864
1865 * testsuite/22_locale/locale/cons/12352.cc:
1866 Use __attribute__((unused)) for test.
1867
33b16690
UW
18682003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
1869
1870 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
1871 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
1872 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
1873
2d07c3f5
BS
18742003-09-26 Brad Spencer <spencer@infointeractive.com>
1875
1876 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
1877 Explicitly qualify exceptions.
1878 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
1879 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1880 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1881 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1882
91675f9d
PC
18832003-09-25 Paolo Carlini <pcarlini@unitus.it>
1884
1885 PR libstdc++/12352
1886 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
1887 size_t)): Don't leak if memory allocations for _M_facets,
1888 _M_caches, and _M_names fail.
1889 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
1890 (locale::_Impl::_M_replace_categories(const _Impl*,
1891 category)): Ditto.
1892 (locale::_Impl::_M_install_facet(const locale::id*,
1893 const facet*)): Ditto.
1894 * include/bits/locale_classes.h (locale::locale(const locale&,
1895 _Facet*)): Don't leak memory.
1896 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
1897
1898 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
1899 bool)): Qualify with std:: strcpy, tweak.
1900 * include/bits/locale_classes.h
1901 (locale::_Impl::_M_check_same_name): Qualify strcmp.
1902
2b1be54b
BS
19032003-09-25 Brad Spencer <spencer@infointeractive.com>
1904
1905 PR libstdc++/6072
775ee48e
BK
1906 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
1907 wcstof, iswblank.
2b1be54b
BS
1908 * aclocal.m4: Regenerate.
1909 * config.h.in: Regenerate.
1910 * configure: Regenerate.
1911 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
1912 * config/io/basic_file_stdio.cc: Guard unistd.h.
1913 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
1914 * include/c_std/std_cwchar.h: Same.
1915 * include/c_std/std_cwctype.h: Same.
1916
465ad0c7
BK
19172003-09-25 Benjamin Kosnik <bkoz@redhat.com>
1918
775ee48e 1919 PR libstdc++/11065
465ad0c7
BK
1920 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
1921 * config/locale/generic/ctype_members.cc: Same.
1922 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
1923 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
1924
1925 * config/os/generic/ctype_inline.h: Update.
1926
7b865c36
UW
19272003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
1928
1929 * src/Makefile.am (version_dep): New variable.
1930 (libstdc___la_DEPENDENCIES): Use it to add dependency on
1931 libstdc++-symbol.ver only when using symbol versioning.
1932 * src/Makefile.in: Regenerate.
1933
11f10e6b
BK
19342003-09-23 Benjamin Kosnik <bkoz@redhat.com>
1935
1936 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
1937 * testsuite/testsuite_hooks.h: Same.
1938 * testsuite/*/*.cc: Same.
1939
89ec0c4b
PR
19402003-09-22 Petur Runolfsson <peturr02@ru.is>
1941
1942 * include/bits/istream.tcc (basic_istream::read,
1943 basic_istream::readsome, basic_istream::putback,
1944 basic_istream::unget, operator>>(basic_istream, CharT)):
1945 Avoid redundant setstate(failbit) calls when sentry::operator bool()
1946 returns false.
1947
dc25fbc7
CW
19482003-09-22 Carlo Wood <carlo@alinoe.com>
1949
1950 PR libstdc++/12365
1951 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
1952 char const*, int, int)): Remove unused identifier
1953 cv_qualifier for overloaded constructor.
1954
b2bc3339
BK
19552003-09-18 Benjamin Kosnik <bkoz@redhat.com>
1956
1957 PR libstdc++/11504
1958 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
1959 WARN_FLAGS, remove -Wno-format.
1960 * aclocal.m4: Regenerate.
1961 * configure: Regenerate.
1962
0b5ce4f1
PR
19632003-09-18 Petur Runolfsson <peturr02@ru.is>
1964
1965 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
1966 * config/io/basic_file_stdio.h: Same.
1967 * include/std/std_fstream.h (__ctype_type): Delete.
1968 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
1969
43892f8c
BK
19702003-09-17 Benjamin Kosnik <bkoz@redhat.com>
1971
1972 PR libstdc++/12239
1973 * configure.host (abi_baseline_pair): Error out on solaris2
1974 configurations without a minor version number.
1975
4bc8ae23
PE
19762003-09-13 Phil Edwards <phil@codesourcery.com>
1977
1978 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
1979 if man pages are on.
1980 * docs/doxygen/user.cfg.in: And here.
1981
dbc66058
DJ
19822003-09-10 Daniel Jacobowitz <drow@mvista.com>
1983 Andreas Jaeger <aj@suse.de>
1984
1985 PR libstdc++/12189
1986 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
1987 abi_check if cross compiling.
1988 * aclocal.m4: Regenerated.
1989 * configure: Regenerated.
1990
520abf69
JO
19912003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
1992
1993 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
1994 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
1995 (__cxa_vec_new3): Likewise.
1996
8c8dec01
PR
19972003-09-10 Petur Runolfsson <peturr02@ru.is>
1998
1999 * include/bits/fstream.tcc (basic_filebuf::seekoff):
2000 Use codecvt::length to handle variable-width stateless encodings
2001 correctly.
2002 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
2003 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
2004
80e46d77
AM
20052003-09-10 Alan Modra <amodra@bigpond.net.au>
2006
2007 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
2008 rather than or'ing.
2009
e517f636
AM
20102003-09-09 Alan Modra <amodra@bigpond.net.au>
2011
2012 * configure: Regenerate.
2013
263594d2
DE
20142003-09-09 David Edelsohn <edelsohn@gnu.org>
2015
2016 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
2017 qualifier from _S_synced_with_stdio.
2018
20192003-09-09 Bernardo Innocenti <bernie@develer.com>
e7f115de
BI
2020
2021 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
2022
f1813b69
PR
20232003-09-04 Petur Runolfsson <peturr02@ru.is>
2024
2025 PR libstdc++/9028
2026 * include/bits/fstream.tcc
2027 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
2028 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
2029 _M_ext_buf_size, _M_ext_next and _M_ext_end.
2030 (basic_filebuf::underflow): Handle variable-width stateless
2031 encodings (codecvt::encoding() == 0), including UTF-8.
2032 * include/std/std_fstream.h (basic_filebuf):
2033 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
2034 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
2035 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
2036 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
2037 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
2038 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
2039 * testsuite/27_io/objects/wchar_t/12.cc: New test.
2040 * testsuite/27_io/objects/wchar_t/13.cc: New test.
2041
7976070c
JW
20422003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
2043
2044 * docs/html/faq/index.html: Note that a namespace alias can't be
2045 used when specialising templates in extension namespace.
2046 * docs/html/faq/index.txt: Regenerate.
2047
149639d4
PR
20482003-09-03 Petur Runolfsson <peturr02@ru.is>
2049
2050 PR libstdc++/12048
2051 * include/ext/stdio_sync_filebuf.h
2052 (stdio_sync_filebuf::_M_unget_buf): Declare it.
2053 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
2054 (stdio_sync_filebuf::uflow): Store the returned character in
2055 _M_unget_buf.
2056 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
2057 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
2058 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
2059 _M_unget_buf, if any, else eof().
2060 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
2061 _M_unget_buf, if any, else eof().
2062 * testsuite/27_io/objects/char/12048.cc: Rename to...
2063 * testsuite/27_io/objects/char/12048-1.cc: ...this.
2064 * testsuite/27_io/objects/char/12048-2.cc: New test.
2065 * testsuite/27_io/objects/char/12048-3.cc: New test.
2066 * testsuite/27_io/objects/char/12048-4.cc: New test.
2067 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
2068 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
2069 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
2070 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
2071 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
2072 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
2073 * testsuite/ext/stdio_sync_filebuf_char.cc
2074 (test02, test03, test04, test05): New tests.
2075 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
2076 (test02, test03, test04, test05): New tests.
2077
20782003-09-03 Petur Runolfsson <peturr02@ru.is>
2079
2080 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
2081 stringbuf or strstreambuf. Fix typos.
2082
3660e02f
PE
20832003-09-02 Phil Edwards <phil@codesourcery.com>
2084
2085 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
2086 appropriately.
2087 * config.h.in: Add _GLIBCXX_HOSTED.
2088 * libsupc++/eh_term_handler.cc: Test it here; initialize
2089 __terminate_handler to std::abort if freestanding.
2090 * aclocal.m4, configure: Regenerated.
2091 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
2092
a3aff86a
NM
20932003-08-29 Nathan Myers <ncm@cantrip.org>
2094
2095 PR libstdc++/11990
2096 * include/bits/locale_facets.tcc (__pad): delete dead code.
2097
f5cf58dd
AM
20982003-08-28 Alan Modra <amodra@bigpond.net.au>
2099
2100 * configure.ac: Test $with_cross_host against $build_alias, not $build.
2101 * configure: Regenerate.
2102
3bedd161
PR
21032003-08-27 Petur Runolfsson <peturr02@ru.is>
2104
2105 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
2106 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
2107
ca618b60
PE
21082003-08-27 Phil Edwards <pme@gcc.gnu.org>
2109
2110 * Makefile.am: Remove trailing whitespace. Remove needless
2111 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
2112 * include/Makefile.am: Likewise.
2113 * libmath/Makefile.am: Likewise.
2114 * libsupc++/Makefile.am: Likewise.
2115 * po/Makefile.am: Likewise.
2116 * src/Makefile.am: Likewise.
2117 * testsuite/Makefile.am: Likewise.
2118
2119 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
2120 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2121 testsuite/Makefile.in: Regenerated.
2122
37e0ff11
PE
21232003-08-27 Phil Edwards <pme@gcc.gnu.org>
2124
2125 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
2126 includedir.
2127 * aclocal.m4, configure: Regenerate.
2128
72730fdb
DJ
21292003-08-27 Daniel Jacobowitz <drow@mvista.com>
2130
2131 * acinclude.m4: Include no-executables.m4.
2132 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
2133 * aclocal.m4: Regenerated.
2134 * configure: Regenerated.
2135
ec0d7421
DJ
21362003-08-27 Daniel Jacobowitz <drow@mvista.com>
2137
2138 * acinclude.m4: Don't call AC_ISC_POSIX.
2139 * aclocal.m4: Regenerated.
2140 * configure: Regenerated.
2141
92eabea2
PE
21422003-08-27 Phil Edwards <pme@gcc.gnu.org>
2143
2144 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
2145 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
2146 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
2147 used elsewhere in this file.
2148 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
2149 * configure.ac: ...called here to expand all conditionals.
2150 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
2151 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
2152 (install-freestanding-headers): New target, a subset of
2153 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
2154
2155 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2156 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2157 src/Makefile.in, testsuite/Makefile.in: Regenerated.
2158
a43d13fb
PE
21592003-08-26 Phil Edwards <pme@gcc.gnu.org>
2160
2161 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
2162 pathnames from generated tag file.
2163
82ba99d5
PE
21642003-08-26 Phil Edwards <pme@gcc.gnu.org>
2165
2166 * Makefile.am: Add comment.
2167 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
2168 SUBDIRS variables.
2169 * configure.ac: Use them both here, instead of hardcoded lists.
2170
2171 * fragment.am: Add STAMP varaible.
2172 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
2173 instead of @LN_S@.
2174 (stamp-*): Move file creation rule outside of 'if' branches to
2175 ensure the stamp-* files are actually updated. Use $(STAMP).
2176 * src/Makefile.am: Remove now-nonexistant variable.
2177 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
2178 for -prefer-pic.
2179 * po/Makefile.am: Include same fragment as all the others.
2180
2181 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2182 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
2183
73780bfe
LR
21842003-08-26 Loren J. Rittle <ljrittle@acm.org>
2185
2186 * testsuite/data/cin_unget-1.txt: New.
2187 * testsuite/27_io/objects/char/12048.cc: New.
2188
7e2055ec
ZW
21892003-08-25 Zack Weinberg <zack@codesourcery.com>
2190
2191 * config/os/hpux/os_defines.h: Unconditionally define
2192 _GLIBCXX_GTHREAD_USE_WEAK to 0.
2193
a6f3e253
GK
21942003-08-19 Geoffrey Keating <geoffk@apple.com>
2195
2196 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
2197 crosses to Darwin targets.
2198 * configure: Regenerate.
2199
1b391ba9
PR
22002003-08-19 Petur Runolfsson <peturr02@ru.is>
2201
7e2055ec
ZW
2202 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
2203
77e862fa
PE
22042003-08-17 Phil Edwards <pme@gcc.gnu.org>
2205
2206 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
2207 in the patch from 3 minutes ago. Boy, is my face red.
2208 * configure: At least I remembered to regenerate this.
2209
0df3f383
PE
22102003-08-17 Phil Edwards <pme@gcc.gnu.org>
2211
2212 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
2213 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
2214 things from the top level.
2215 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
2216 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
2217 (currently unused). Strip the fake-VPATH shell fragment from
2218 automake-generated rules, if present.
2219 * linkage.m4: Add comment.
2220
2221 * fragment.am: New file, containing factored-out common settings.
2222 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
2223 * Makefile.am: Include fragment.am. Remove common variables.
2224 * include/Makefile.am: Likewise.
2225 * libmath/Makefile.am: Likewise.
2226 * libsupc++/Makefile.am: Likewise.
2227 * po/Makefile.am: Likewise. Print rules during check.
2228 * src/Makefile.am: Likewise.
2229 * testsuite/Makefile.am: Likewise.
2230
2231 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2232 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2233 src/Makefile.in, testsuite/Makefile.in: Regenerate.
2234
e885821f
JL
22352003-08-11 John Levon <levon@movementarian.org>
2236
2237 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
2238 remaining places for the name change from GLIBCPP_FORCE_NEW
2239 to GLIBCXX_FORCE_NEW
2240
2803847d
BK
22412003-08-11 Benjamin Kosnik <bkoz@redhat.com>
2242
2243 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
7e2055ec 2244 typedefs to num_*.
2803847d
BK
2245 * include/bits/basic_ios.tcc: Same.
2246 * include/bits/istream.tcc: Same.
2247 * include/bits/locale_facets.h: Same.
2248 * include/bits/ostream.tcc: Same.
2249 * include/std/std_istream.h: Same.
2250 * include/std/std_ostream.h: Same.
2251 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
2252
2253 * include/ext/rope: Remove build warning.
7e2055ec 2254
51c1f3c9
AJ
22552003-08-11 Andreas Jaeger <aj@suse.de>
2256
2257 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
2258 to make SMP-safe.
2259 * include/Makefile.in: Regenerated.
2260
f6dda651
PE
22612003-08-11 Phil Edwards <pme@gcc.gnu.org>
2262
2263 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
2264 when calling AC_PROG_CC.
2265 * aclocal.m4, configure: Regenerate.
2266
fbe057bb
PE
22672003-08-11 Phil Edwards <pme@gcc.gnu.org>
2268
2269 * acinclude.m4: Properly quote variable which will be expanded
2270 inside makefiles. Use CXX instead of CC to extract compiler info.
2271 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
2272 correct form in PACKAGE.
2273 * aclocal.m4, configure: Regenerate.
2274
258e7dbc
BK
22752003-08-08 Benjamin Kosnik <bkoz@redhat.com>
2276
2277 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
2278 (check-abi-verbose): Same.
2279 * testsuite/testsuite_performance.h (report_performance): Same.
7e2055ec 2280
3e083bea
LR
22812003-08-08 Loren J. Rittle <ljrittle@acm.org>
2282
2283 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2284
5a9ed693
DG
22852003-08-07 Doug Gregor <dgregor@apple.com>
2286
7e2055ec
ZW
2287 * include/bits/char_traits.h (char_traits::not_eof): Match operand
2288 types in ? :.
5a9ed693 2289
4e9ebd4b
BI
22902003-08-07 Bernardo Innocenti <bernie@develer.com>
2291
2292 PR libstdc++/11784
2293 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
2294 Replace variants with new BSET-based version.
7e2055ec 2295
a9ebaa2b
CW
22962003-08-07 Carlo Wood <carlo@alinoe.com>
2297
0df3f383 2298 * include/bits/demangle.h: Do not use cctype functions that depend
a9ebaa2b 2299 on locale.
7e2055ec 2300
8b171e55
PE
23012003-08-05 Phil Edwards <pme@gcc.gnu.org>
2302
2303 * configure.in: Rename...
2304 * configure.ac: ...to this.
2305 * docs/html/17_intro/porting.texi: Update name.
2306
2307 * docs/html/17_intro/porting.html: Regenerate.
2308 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2309 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2310 testsuite/Makefile.in: Regenerate (picks up new dependancy).
2311
1260d70f
PE
23122003-08-05 Phil Edwards <pme@gcc.gnu.org>
2313
2314 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
2315 pipe, open the window to let out the fumes, redo the option-handling
2316 logic to properly execute the detection test.
2317 * aclocal.m4, configure: Regenerate.
2318
ff66d28f
PE
23192003-08-04 Phil Edwards <pme@gcc.gnu.org>
2320
2321 Convert to new autotools.
2322 * acconfig.h: Update with correct names.
2323 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
2324 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
2325 * configure.in: Update. Split hardcoded cross-configury settings
2326 out to...
2327 * crossconfig.m4: ...here. New file. Contents untouched.
2328 * acinclude.m4: Reorganize and rewrite as needed. Split large
2329 chunks out to...
2330 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
2331 Contents untouched.
2332 * scripts/testsuite_flags.in: Update.
2333
2334 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
2335 variables (already generated by automake).
2336 * include/Makefile.am: Ditto.
2337 * libmath/Makefile.am: Ditto.
2338 * libsupc++/Makefile.am: Ditto.
2339 * po/Makefile.am: Ditto.
2340 * src/Makefile.am: Ditto.
2341
2342 * aclocal.m4: Regenerate using new versions.
2343 * config.h.in: Ditto.
2344 * configure: Ditto.
2345 * Makefile.in: Ditto.
2346 * include/Makefile.in: Ditto.
2347 * libmath/Makefile.in: Ditto.
2348 * libsupc++/Makefile.in: Ditto.
2349 * po/Makefile.in: Ditto.
2350 * src/Makefile.in: Ditto.
2351 * testsuite/Makefile.in: Ditto.
2352
5e7c251d
PE
23532003-08-04 Phil Edwards <pme@gcc.gnu.org>
2354
2355 * po/libstdc++.pot: Re-extract/regenerate.
2356
caf21254
PE
23572003-08-04 Phil Edwards <pme@gcc.gnu.org>
2358
2359 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
2360 Remove unneeded variable assignments. Leave them for automake.
2361 * testsuite/lib/libstdc++-v3.exp: Rename...
2362 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
2363 accordingly.
2364 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
2365 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
2366 names accordingly.
2367
f7ab5fa4
PE
23682003-08-04 Phil Edwards <pme@gcc.gnu.org>
2369
2370 * docs/doxygen/guide.html: run_doxygen uses bash.
2371 * docs/doxygen/mainpage.html: We'll be shipping tag files.
2372 * docs/doxygen/run_doxygen: Tweaks and improvements.
2373 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
2374 * docs/html/install.html: Update autoconf/automake requirements.
2375 * docs/html/test.html: Add section describing DejaGNU support.
2376 * docs/html/17_intro/confdeps.dot: New file, generates...
2377 * docs/html/17_intro/confdeps.png: ...this new file.
2378 * docs/html/Makefile: Generated here.
2379 * docs/html/17_intro/configury.html: New file.
2380
b3f2a032
PE
23812003-07-31 Phil Edwards <pme@gcc.gnu.org>
2382
2383 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
2384 * testsuite/lib/libstdc++-v3.exp: ...to this.
2385 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
2386
e64a227a
DG
23872003-07-31 Doug Gregor <dgregor@apple.com>
2388
2389 Add user specialization tests.
2390 * testsuite/23_containers/deque/1.cc: New.
2391 * testsuite/23_containers/list/1.cc: New.
2392 * testsuite/23_containers/map/1.cc: New.
2393 * testsuite/23_containers/multimap/1.cc: New.
2394 * testsuite/23_containers/multiset/1.cc: New.
2395 * testsuite/23_containers/set/1.cc: New.
2396 * testsuite/23_containers/vector/1.cc: New.
7e2055ec 2397
17472bb6
BK
23982003-07-31 Benjamin Kosnik <bkoz@redhat.com>
2399
2400 Reshuffle 23_containers testsuite.
7e2055ec 2401 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
17472bb6
BK
2402 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
2403 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
2404 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
2405 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
2406 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
2407 vector_resize.cc: Split into...
2408 * 23_containers/bitset/cons/1.cc: New.
2409 * 23_containers/bitset/cons/6282.cc: New.
2410 * 23_containers/bitset/count/6124.cc: New.
2411 * 23_containers/bitset/operations/1.cc: New.
2412 * 23_containers/bitset/operations/2.cc: New.
2413 * 23_containers/bitset/test/1.cc: New.
2414 * 23_containers/bitset/to_ulong/1.cc: New.
2415 * 23_containers/deque/cons/1.cc: New.
2416 * 23_containers/deque/cons/2.cc: New.
2417 * 23_containers/deque/operators/1.cc: New.
2418 * 23_containers/list/capacity/1.cc: New.
2419 * 23_containers/list/cons/1.cc: New.
2420 * 23_containers/list/cons/2.cc: New.
2421 * 23_containers/list/cons/3.cc: New.
2422 * 23_containers/list/cons/4.cc: New.
2423 * 23_containers/list/cons/5.cc: New.
2424 * 23_containers/list/cons/6.cc: New.
2425 * 23_containers/list/cons/7.cc: New.
2426 * 23_containers/list/cons/8.cc: New.
2427 * 23_containers/list/cons/9.cc: New.
2428 * 23_containers/list/modifiers/1.cc: New.
2429 * 23_containers/list/modifiers/2.cc: New.
2430 * 23_containers/list/modifiers/3.cc: New.
2431 * 23_containers/list/operators/1.cc: New.
2432 * 23_containers/list/operators/2.cc: New.
2433 * 23_containers/list/operators/3.cc: New.
2434 * 23_containers/list/operators/4.cc: New.
2435 * 23_containers/map/insert/1.cc: New.
2436 * 23_containers/map/operators/1.cc: New.
2437 * 23_containers/map/operators/1_neg.cc: New.
2438 * 23_containers/multiset/insert/1.cc: New.
2439 * 23_containers/priority_queue/members/7161.cc: New.
2440 * 23_containers/queue/members/7157.cc: New.
2441 * 23_containers/set/operators/1_neg.cc: New.
2442 * 23_containers/stack/members/7158.cc: New.
2443 * 23_containers/vector/bool/1.cc: New.
2444 * 23_containers/vector/bool/6886.cc: New.
2445 * 23_containers/vector/capacity/1.cc: New.
2446 * 23_containers/vector/capacity/2.cc: New.
2447 * 23_containers/vector/capacity/8230.cc: New.
2448 * 23_containers/vector/cons/1.cc: New.
2449 * 23_containers/vector/cons/2.cc: New.
2450 * 23_containers/vector/cons/3.cc: New.
2451 * 23_containers/vector/cons/4.cc: New.
2452 * 23_containers/vector/cons/6513.cc: New.
2453 * 23_containers/vector/element_access/1.cc: New.
2454 * 23_containers/vector/modifiers/1.cc: New.
2455 * 23_containers/vector/modifiers/2.cc: New.
2456 * 23_containers/vector/resize/1.cc: New.
7e2055ec 2457
515aab7c
RO
24582003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2459
2460 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
2461 dg-options.
2462 * testsuite/thread/pthread2.cc: Likewise.
2463 * testsuite/thread/pthread3.cc: Likewise.
2464 * testsuite/thread/pthread4.cc: Likewise.
2465 * testsuite/thread/pthread5.cc: Likewise.
2466 * testsuite/thread/pthread6.cc: Likewise.
2467 * testsuite/thread/pthread7-rope.cc: Likewise.
2468
1051c718
PE
24692003-07-30 Phil Edwards <pme@gcc.gnu.org>
2470
2471 * include/bits/c++config: Partial reversion (comment placement) of
2472 previous patch.
2473
5f697f7a
BK
24742003-07-30 Benjamin Kosnik <bkoz@redhat.com>
2475
2476 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
2477 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
2478 (_GLIBCXX_AT_AT): Remove.
2479 (__USE_MALLOC): Remove.
2480 * include/std/std_fstream.h: Modify.
2481 * include/bits/basic_ios.h: Same.
2482 * include/bits/valarray_array.h: Same.
2483 * include/c_std/std_cmath.h: Same.
2484 * include/c_std/cmath.tcc: Same.
2485 * include/std/std_vector.h: Same.
2486 * include/std/std_string.h: Same.
2487 * include/std/std_stack.h: Same.
2488 * include/std/std_queue.h: Same.
2489 * include/std/std_list.h: Same.
2490 * include/std/std_deque.h: Same.
2491 * include/std/std_streambuf.h: Same.
2492 * include/std/std_sstream.h: Same.
2493 * include/std/std_ostream.h: Same.
2494 * include/std/std_istream.h: Same.
2495 * include/bits/valarray_array.tcc: Same, format.
2496
2497 * include/c/std_cctype.h: Fix include guards.
2498 * include/c/std_cerrno.h: Same.
2499 * include/c/std_cfloat.h: Same.
2500 * include/c/std_climits.h: Same.
2501 * include/c/std_clocale.h: Same.
2502 * include/c/std_cmath.h: Same.
2503 * include/c/std_csetjmp.h: Same.
2504 * include/c/std_csignal.h: Same.
2505 * include/c/std_cstdarg.h: Same.
2506 * include/c/std_cstddef.h: Same.
2507 * include/c/std_cstdio.h: Same.
2508 * include/c/std_cstdlib.h: Same.
2509 * include/c/std_cstring.h: Same.
2510 * include/c/std_ctime.h: Same.
2511 * include/c/std_cwchar.h: Same.
2512 * include/c/std_cwctype.h: Same.
2513 * include/c_std/cmath.tcc: Same.
2514 * include/c_std/std_cmath.h: Same.
7e2055ec 2515
b4c70e89
GB
25162003-07-30 Gawain Bolton <gp.bolton@computer.org>
2517
7e2055ec 2518 PR libstdc++/11504.
b4c70e89
GB
2519 * include/bits/stl_tree.h: Replace C-style casts with C++-style
2520 casts. Changes to avoid casting away constness. Eliminate
2521 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
2522 initialization lists. Move out implementation of __black_count()
2523 to...
7e2055ec
ZW
2524 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
2525 Rename_Rb_tree_base_iterator::_M_increment() to
2526 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
2527 _Rb_tree_decrement.
2528 * config/linker-map.gnu: Add and change symbols here.
b4c70e89 2529
48b3222d
JW
25302003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
2531
2532 * docs/html/22_locale/howto.html: Use locale::classic() instead
2533 of locale("C").
2534
cb584bcf
BK
25352003-07-28 Benjamin Kosnik <bkoz@redhat.com>
2536
2537 * testsuite/testsuite_hooks.h: Remove list include.
2538 (func_callback): Define as unique type, not std::list.
2539 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
2540 * testsuite/libstdc++-v3.dg/dg.exp: Same.
2541 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
7e2055ec 2542 * testsuite/23_containers/bitset_ctor.cc:
cb584bcf
BK
2543 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
2544 * testsuite/18_support/numeric_limits.cc: Same.
2545 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
2546 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
2547 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
2548 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
2549 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
2550 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
2551 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
2552 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
2553 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
2554 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
2555 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
2556 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
2557 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
2558 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
2559 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
2560 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
2561 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
2562 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
2563 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
2564 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
7e2055ec
ZW
2565 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
2566 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
2567 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
2568 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
2569 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
2570 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
2571 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
2572 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
2573 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
2574 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
cb584bcf
BK
2575 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
2576 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
2577 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
2578 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
2579 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
2580 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
2581 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
2582 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
2583 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
2584 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
2585 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
2586 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
2587 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
2588 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
2589 * testsuite/23_containers/bitset_ctor.cc: Same.
2590 * testsuite/23_containers/bitset_shift.cc: Same.
2591 * testsuite/23_containers/vector_ctor.cc: Same.
2592 * testsuite/23_containers/vector_element_access.cc: Same.
2593 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
2594 * testsuite/24_iterators/iterator.cc: Same.
2595 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
2596 * testsuite/25_algorithms/lower_bound.cc: Same.
2597 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
2598 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
2599 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
2600 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
2601 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
2602 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
2603 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
2604 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
2605 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
2606 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
7e2055ec
ZW
2607 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2608 Same.
2609
1cb1de7e
PE
26102003-07-28 Phil Edwards <pme@gcc.gnu.org>
2611
2612 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
2613 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
2614 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
2615 GLIBCPP to GLIBCXX (and explain as needed).
2616
6dfe0fc9
PE
26172003-07-28 Phil Edwards <pme@gcc.gnu.org>
2618
2619 * README: Update.
2620
2cb1c928
PE
26212003-07-28 Phil Edwards <pme@gcc.gnu.org>
2622
2623 * testsuite/22_locale/messages/members/char/1.cc,
2624 testsuite/22_locale/messages/members/char/2.cc,
2625 testsuite/22_locale/messages/members/char/3.cc,
2626 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
2627 the origin of LOCALEDIR.
2628 * testsuite/lib/libstdc++-v3.exp: New file.
2629
b66ea7d4
BK
26302003-07-25 Benjamin Kosnik <bkoz@redhat.com>
2631
2632 * include/bits/char_traits.h: Update copyright, tweak.
e884d397 2633 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
b66ea7d4
BK
2634 std types.
2635
d5ff4e3f
MA
26362003-07-24 Matt Austern <austern@apple.com>
2637
2638 * /include/bits/char_traits.h (class char_traits): Put all the
2639 real work into the new class template __gnu_cxx::char_traits.
2640 Gave generic definitions for member functions. Types are taken
2641 from the new class template __gnu_cxx::_Char_types.
2642 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
2643 file. Test of std::char_traits<short>, which serves as a test of
2644 the char_traits primary template.
2645
aecf642c
BK
26462003-07-24 Benjamin Kosnik <bkoz@redhat.com>
2647
2648 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
2649
26502003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
d7541133 2651
7e2055ec
ZW
2652 * testsuite/23_containers/map_operators.cc: Conform to
2653 container requirement as value must be Assignable.
d7541133 2654
118545ec
AO
26552003-07-23 Alexandre Oliva <aoliva@redhat.com>
2656
2657 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
2658 tests not only generation of pch files, but also their use.
2659 * aclocal.m4, configure: Rebuilt.
2660
ff89cb01
SE
26612003-07-23 Steve Ellcey <sje@cup.hp.com>
2662
2663 * config/cpu/hppa/atomicity.h: Change
2664 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
2665 to match misc-inst.cc
2666
1143680e
SE
26672003-07-23 Steve Ellcey <sje@cup.hp.com>
2668
2669 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
2670 * include/c_std/std_cctype.h: Ditto.
2671 * include/c_std/std_cerrno.h: Ditto.
2672 * include/c_std/std_cfloat.h: Ditto.
2673 * include/c_std/std_climits.h: Ditto.
2674 * include/c_std/std_clocale.h: Ditto.
2675 * include/c_std/std_cmath.h: Ditto.
2676 * include/c_std/std_csetjmp.h: Ditto.
2677 * include/c_std/std_csignal.h: Ditto.
2678 * include/c_std/std_cstdarg.h: Ditto.
2679 * include/c_std/std_cstddef.h: Ditto.
2680 * include/c_std/std_cstdio.h: Ditto.
2681 * include/c_std/std_cstdlib.h: Ditto.
2682 * include/c_std/std_cstring.h: Ditto.
2683 * include/c_std/std_ctime.h: Ditto.
2684 * include/c_std/std_cwchar.h: Ditto.
2685 * include/c_std/std_cwctype.h: Ditto.
2686 * include/std/std_algorithm.h: Ditto.
2687 * include/std/std_bitset.h: Ditto.
2688 * include/std/std_complex.h: Ditto.
2689 * include/std/std_deque.h: Ditto.
2690 * include/std/std_fstream.h: Ditto.
2691 * include/std/std_functional.h: Ditto.
2692 * include/std/std_iomanip.h: Ditto.
2693 * include/std/std_ios.h: Ditto.
2694 * include/std/std_iosfwd.h: Ditto.
2695 * include/std/std_iostream.h: Ditto.
2696 * include/std/std_istream.h: Ditto.
2697 * include/std/std_iterator.h: Ditto.
2698 * include/std/std_limits.h: Ditto.
2699 * include/std/std_list.h: Ditto.
2700 * include/std/std_locale.h: Ditto.
2701 * include/std/std_map.h: Ditto.
2702 * include/std/std_memory.h: Ditto.
2703 * include/std/std_numeric.h: Ditto.
2704 * include/std/std_ostream.h: Ditto.
2705 * include/std/std_queue.h: Ditto.
2706 * include/std/std_set.h: Ditto.
2707 * include/std/std_sstream.h: Ditto.
2708 * include/std/std_stack.h: Ditto.
2709 * include/std/std_stdexcept.h: Ditto.
2710 * include/std/std_streambuf.h: Ditto.
2711 * include/std/std_string.h: Ditto.
2712 * include/std/std_utility.h: Ditto.
2713 * include/std/std_valarray.h: Ditto.
2714 * include/std/std_vector.h: Ditto.
2715
3988d179
DG
27162003-07-22 Doug Gregor <dgregor@apple.com>
2717
2718 * include/bits/basic_string.h (basic_string::insert): Deprecate
2719 GNU extension.
2720
5dfda042
BK
27212003-07-21 Benjamin Kosnik <bkoz@redhat.com>
2722
2723 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
2724 paths for libio.
2725 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
2726 (test03): Include typeinfo for bad_cast.
2727 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2728 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2729 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2730
3988d179 27312003-07-21 Doug Gregor <dgregor@apple.com>
f345c6b5
DG
2732
2733 * include/bits/boost_concept_check.h:
7e2055ec
ZW
2734 (_EqualityComparableConcept::__constraints): Remove != from the
2735 list of constraints; it is not listed in Table 28 of the C++98
2736 standard.
f345c6b5 2737
2d5f9af2
AJ
27382003-07-18 Andreas Jaeger <aj@suse.de>
2739
2740 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
2741 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
2742 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
2743 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2744
fea4065d 27452003-07-17 Benjamin Kosnik <bkoz@redhat.com>
7e2055ec 2746
fea4065d
BK
2747 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
2748 * config/locale/generic/messages_members.h: Tweaks.
2749 * config/locale/generic/monetary_members.cc
2750 (moneypunct::_M_initialize_moneypunct): Use cache.
2751 (moneypunct::~moneypunct): Delete cache.
2752 * config/locale/generic/time_members.cc:
2753 (__timepunct::_M_initialize_timepunct): Use cache.
2754 * config/locale/generic/time_members.h:
2755 (__timepunct::~__timepunct): Delete cache.
2756 (__timepunct::__timepunct): Set cache.
2757 * config/locale/gnu/messages_members.h: Tweaks.
2758 * config/locale/gnu/monetary_members.cc:
2759 (moneypunct::_M_initialize_moneypunct): Use cache.
2760 (moneypunct::~moneypunct): Delete cache.
2761 * config/locale/gnu/time_members.cc:
2762 (__timepunct::_M_initialize_timepunct): Use cache.
2763 * config/locale/gnu/time_members.h:
2764 (__timepunct::~__timepunct): Delete cache.
2765 (__timepunct::__timepunct): Set cache.
2766 * include/bits/locale_facets.h (__timepunct_cache): New.
2767 (__moneypunct_cache): New.
2768 * include/bits/locale_facets.tcc: Tweak.
2769 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
2770 * src/locale-inst.cc: Instantiate caches.
2771 * src/globals.cc: Add "C" caches.
2772 * src/localename.cc: Use external "C" caches.
2773
83a279e4
PE
27742003-07-17 Phil Edwards <pme@gcc.gnu.org>
2775
2776 * docs/doxygen/guide.html: Fix typo.
2777
db5eed18
BK
27782003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2779
2780 * include/ext/pod_char_traits.h: Add state template argument.
2781
7942afdc
BK
27822003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2783
2784 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
2785 (num_get::_M_convert_int): To _M_insert_int.
7e2055ec 2786 (num_get::_M_convert_float): To _M_insert_float.
7942afdc
BK
2787 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2788 Use caches for ctype, num_get.
2789 (num_get::_M_extract_int): Same.
2790 (num_get::get(bool)): Same.
2791 (__verify_grouping): Use size_t.
2792 * src/locale-inst.cc: Update.
2793 * src/locale.cc: Adjust _S_atoms_in.
2794
1ef4a5d4
PE
27952003-07-16 Phil Edwards <pme@gcc.gnu.org>
2796
2797 * docs/doxygen/mainpage.html: Move building/writing instructions...
2798 * docs/doxygen/guide.html: ...to here. New file.
2799
dced0d12
JW
28002003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
2801
2802 * docs/html/ext/howto.html: Update URL for SGI STL docs.
2803 * docs/html/faq/index.html: Same.
2804 * docs/html/faq/index.txt: Regenerate.
2805
e50344b9
PC
28062003-07-16 Paolo Carlini <pcarlini@unitus.it>
2807
2808 PR libstdc++/11528
2809 * include/bits/locale_facets.tcc (money_get::do_get):
2810 Strip only _leading_ zeros.
2811 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
2812 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
2813
94b7906a
GP
28142003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2815
2816 * include/ext/hash_map (class hash_multimap): Remove extra
2817 semicolons from __glibcxx_class_requires3 entries.
2818 * include/ext/hash_set (class hash_set): Ditto.
2819 (class hash_multiset): Ditto.
2820
73a530bd
PR
28212003-07-15 Petur Runolfsson <peturr02@ru.is>
2822
2823 * include/bits/char_traits.h (char_traits<wchar_t>::move):
2824 Change last parameter from int_type to size_t.
2825
119dbb1f
JQ
28262003-07-15 Jerry Quinn <jlquinn@optonline.net>
2827
2828 * include/bits/stl_algo.h (includes, set_union, set_intersection,
7e2055ec
ZW
2829 set_difference, set_symmetric_difference, max_element, min_element,
2830 next_permutation, prev_permutation, find_first_of, find_end):
2831 Document.
119dbb1f 2832 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
7e2055ec 2833 restrictions in docs.
119dbb1f 2834 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
7e2055ec 2835 Document.
119dbb1f
JQ
2836 * docs/doxygen/doxygroups.cc (setoperations): New group.
2837
284f19bf
JQ
28382003-07-15 Jerry Quinn <jlquinn@optonline.net>
2839
7e2055ec 2840 * include/bits/basic_string.h: Document public functions.
284f19bf
JQ
2841 * docs/doxygen/TODO: Update c21 todo.
2842
709e7c9f
JQ
28432003-07-15 Jerry Quinn <jlquinn@optonline.net>
2844
2845 * include/bits/stl_list.h: Document more functions.
2846 * docs/doxygen/TODO: Update c23 todo.
2847
f45e487d
PC
28482003-07-14 Paolo Carlini <pcarlini@unitus.it>
2849
2850 * config/locale/gnu/c_locale.h (__convert_from_v): One more
2851 qualification.
2852
f088510d
PC
28532003-07-14 Paolo Carlini <pcarlini@unitus.it>
2854
2855 * include/bits/stl_tempbuf.h: Qualify free with std::.
2856 * src/locale.cc: Include <cstdlib>, qualify getenv.
2857
2def5b76
PC
28582003-07-14 Paolo Carlini <pcarlini@unitus.it>
2859
2860 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2861 <cstdio>. Qualify names.
2862 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
2863
bda243ec
PC
28642003-07-14 Paolo Carlini <pcarlini@unitus.it>
2865 Nathan C. Myers <ncm-nospam@cantrip.org>
2866
2867 PR libstdc++/11378
2868 * include/std/std_fstream.h (xsputn): Declare only.
2869 * include/bits/fstream.tcc (xsputn): Define, optimize for the
7e2055ec 2870 always_noconv() case: when __n is sufficiently large flush
bda243ec
PC
2871 the buffer and issue a direct write, if possible combining the
2872 two with writev in __basic_file<>::xsputn_2.
2873 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
2874 New, declare.
2875 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
2876 Define.
2877 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
2878 the availability of writev in <sys/uio.h>.
2879 * configure.in: Call here.
2880 * acconfig.h: Add undef for the corresponding symbol.
2881 * aclocal.m4: Regenerate.
2882 * configure: Regenerate.
2883 * config.h.in: Regenerate.
2884 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
2885
2886 * include/std/std_fstream.h (sync): Constify a variable.
2887
c573d965
BK
28882003-07-14 Benjamin Kosnik <bkoz@redhat.com>
2889
2890 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
2891 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
7e2055ec 2892
3ad249b9
GDR
28932003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
2894
2895 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2896 <cstring> and <cstdlib>. Qualify names.
2897
f2ffecb1
MM
28982003-07-13 Mark Mitchell <mark@codesourcery.com>
2899
2900 * config/locale/generic/c_locale.h: Include <cstdlib> and
2901 <cstring>.
2902 * include/bits/boost_concept_check.h: Add this-> to unqualified
2903 method calls.
2904 * include/bits/deque.tcc: Likewise.
2905 * include/bits/locale_facets.h : Likewise.
2906 * include/bits/ostream.tcc: Likewise.
2907 * include/bits/stl_algo.h: Likewise.
2908 * include/bits/stl_bvector.h: Likewise.
2909 * include/bits/stl_deque.h: Likewise.
2910 * include/bits/stl_list.h: Likewise.
2911 * include/bits/stl_tree.h: Likewise.
2912 * include/bits/stl_vector.h: Likewise.
2913 * include/bits/vector.tcc: Likewise.
2914 * include/ext/rope: Likewise.
2915 * include/ext/ropeimpl.h: Likewise.
2916 * include/ext/stdio_filebuf.h: Likewise.
2917
e2fcbaa3
JQ
29182003-07-11 Jerry Quinn <jlquinn@optonline.net>
2919
2920 * include/bits/basic_ios.h (copyfmt): Document.
2921 * include/bits/ios_base.h (event, event_callback, register_callback,
2922 xalloc, iword, pword): Document.
2923 (imbue, ~ios_base): Update docs on callbacks.
2924
58579a27
PE
29252003-07-11 Phil Edwards <pme@gcc.gnu.org>
2926
2927 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
2928 warning messages if the environment cannot support symbol versioning.
2929 (port_specific_symbol_file): It's plural, add an 's' on the end.
2930 * configure.host: Likewise.
2931 * src/Makefile.am: Likewise.
2932 * config/linker-map.gnu: Remove one semicolon, heh.
2933 * scripts/extract_symvers: Don't assume useful 'export' syntax.
2934 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
2935 * aclocal.m4, configure, src/Makefile.in: Regenerated.
2936
cde63840
BK
29372003-07-09 Benjamin Kosnik <bkoz@redhat.com>
2938
2939 * include/bits/locale_facets.tcc: Use function object for
7e2055ec 2940 __use_cache instead of template function. Partially specialize for
cde63840
BK
2941 __numpunct<_CharT>.
2942 * include/bits/locale_classes.h: Update friend declaration for
2943 __use_cache.
2944 (_M_install_cache): No throw exception specs.
2945 * src/locale.cc: Remove __use_cache specializations.
2946 * include/ext/pod_char_traits.h (length): Tweak.
2947 * include/bits/locale_facets.h (__numpunct_cache): Remove
2948 char_type typedef.
2949 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
2950 (pod_long): Remove.
2951 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
2952 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
2953 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
2954 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
2955 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
2956 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
7e2055ec 2957
e7f042e4
JQ
29582003-07-09 Jerry Quinn <jlquinn@optonline.net>
2959
2960 * src/ios.cc (_M_grow_words): Fix spelling.
2961
ca1c7011
GB
29622003-07-09 Gawain Bolton <gp.bolton@computer.org>
2963
2964 * include/bits/stl_tree.h: Move larger member functions in
2965 _Rb_tree_base_iterator and _Rb_tree_node to...
2966 * src/stl_tree.cc: Here.
2967 * src/Makefile.in: Add stl_tree.cc.
2968 * src/Makefile.in: Regenerated.
2969 * config/linker-map.gnu: Add symbols here.
2970
9e7facfd
BK
29712003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2972
2973 * testsuite/ext/pod_char_traits.cc: New.
2974 * include/ext/pod_char_traits.h: New.
2975 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
2976 * include/Makefile.in: Regenerate.
2977 * docs/html/21_strings/howto.html: Update.
7e2055ec 2978
e55dc371
GB
29792003-07-08 Gawain Bolton <gp.bolton@computer.org>
2980
2981 * testsuite/performance/list_create_fill_sort.cc: New.
2982
c094e9b9
BK
29832003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2984
2985 * config/locale/generic/numeric_members.cc: Correct type info.
2986 * config/locale/gnu/numeric_members.cc: Same.
2987 * include/bits/locale_facets.h: Same.
7e2055ec 2988
c094e9b9
BK
2989 * include/bits/char_traits.h: Correct spacing.
2990
2991 * src/locale.cc: Wrap to 80 col.
7e2055ec 2992
a8784c4c
PC
29932003-07-07 Paolo Carlini <pcarlini@unitus.it>
2994
2995 * include/std/std_complex.h: Partially revert last
2996 changes: cmath functions must not be qualified.
2997
313dd504
PE
29982003-07-06 Phil Edwards <pme@gcc.gnu.org>
2999
3000 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
3001 2.11 with globbing backport fix.
3002 * aclocal.m4, configure: Regenerated.
3003
6623b2f2
PC
30042003-07-06 Paolo Carlini <pcarlini@unitus.it>
3005
3006 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
3007 if output is at all possible (!_M_reading), cannot be active.
3008
3009 * include/std/std_fstream.h: Tweak comments to doxygen style.
3010
391cfc46
PC
30112003-07-06 Paolo Carlini <pcarlini@unitus.it>
3012
3013 * include/bits/locale_classes.h: Fully qualify standard
3014 functions with std::, thus avoiding Koenig lookup.
3015 * include/bits/locale_facets.tcc: Likewise.
3016 * src/locale.cc: Likewise.
3017 * src/localename.cc: Likewise.
3018
48166869
PE
30192003-07-06 Phil Edwards <pme@gcc.gnu.org>
3020
3021 * include/bits/allocator_traits.h: Fix doxygen markup.
3022 * include/ext/mt_allocator.h: Likewise.
3023
aaa4a229
PE
30242003-07-06 Phil Edwards <pme@gcc.gnu.org>
3025
3026 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
3027
e6b7a69a
PE
30282003-07-05 Phil Edwards <pme@gcc.gnu.org>
3029
3030 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
3031 requirement. Add port_specific_symbol_file variable.
3032 * configure.host: Add docs for port_specific_symbol_file.
3033 Clean up try_cpu block for x86.
3034 * config/linker-map.gnu: No more "last symbol can't have a
3035 semicolon" kaka. Add hook for port-specific symbols.
3036 * src/Makefile.am: Remove trailing whitespace.
3037 (libstdc++-symbol.ver): Detect the presence of port-specific
3038 symbols, and add them accordingly.
3039
3040 * docs/html/17_intro/porting.texi: Bring up to date.
3041
3042 * src/Makefile.in, aclocal.m4, configure,
3043 docs/html/17_intro/porting.html: Regenerated.
3044
ac3d7b44
PE
30452003-07-05 Phil Edwards <pme@gcc.gnu.org>
3046
3047 * scripts/create_testsuite_files: New file.
3048 * testsuite/Makefile.am (all-local, check-performance): Use it.
3049 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
3050 * testsuite/Makefile.in: Regenerated.
3051
3052 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
3053 files at the end.
3054 * testsuite/performance/fstream_seek_write.cc: Likewise.
3055 * testsuite/performance/ofstream_insert_float.cc: Likewise.
3056 * testsuite/performance/ofstream_insert_int.cc: Likewise.
3057 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
3058
e3d51be2
GB
30592003-07-05 Gawain Bolton <gp.bolton@computer.org>
3060
3061 * include/bits/stl_list.h: Performance and memory usage
c094e9b9
BK
3062 improvements. In particular, the behaviour of the constructor and
3063 destructor as the list header node is no longer dynamically
3064 allocated/de-allocated.
e3d51be2
GB
3065 * include/bits/list.tcc: Likewise.
3066
eb9a4231
PC
30672003-07-05 Paolo Carlini <pcarlini@unitus.it>
3068
3069 * include/std/std_complex.h: Fully qualify standard
3070 functions with std::, thus avoiding Koenig lookup.
3071 * include/std/std_memory.h: Likewise.
3072 * include/std/std_valarray.h: Likewise.
3073
f92c5313
GB
30742003-07-05 Gawain Bolton <gp.bolton@computer.org>
3075
3076 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
7e2055ec 3077 variable for grandparent and use const
f92c5313 3078
8b87d3fa
DB
30792003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
3080
3081 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
3082 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
3083 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
3084 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
3085 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
3086 * testsuite/27_io/objects/char/7.cc: Ditto
3087 * testsuite/27_io/objects/char/9661-1.cc: Ditto
3088
a8cad3e1
PC
30892003-07-05 Paolo Carlini <pcarlini@unitus.it>
3090
3091 * include/std/std_bitset.h: Fully qualify standard
3092 functions with std::, thus avoiding Koenig lookup.
3093
3094 * include/std/std_fstream.h: Change comment to doxygen style.
3095
2778669a
PE
30962003-07-05 Phil Edwards <pme@gcc.gnu.org>
3097
3098 * include/std/std_limits.h: More CPP->CXX changes.
3099 * scripts/check_survey.in: Likewise.
3100
3d7c150e
BK
31012003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3102
3103 Move from CPP to CXX.
3104 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
3105 * testsuite/Makefile.am: Same.
3106 * testsuite/Makefile.in: Regenerate.
3107 * po/Makefile.am: Same.
7e2055ec 3108 * po/Makefile.in: Regenerate.
3d7c150e 3109 * libsupc++/Makefile.am: Same.
7e2055ec 3110 * libsupc++/Makefile.in: Regenerate.
3d7c150e 3111 * libmath/Makefile.am: Same.
7e2055ec 3112 * libmath/Makefile.in: Regenerate.
3d7c150e 3113 * include/Makefile.am: Same.
7e2055ec 3114 * include/Makefile.in: Regenerate.
3d7c150e 3115 * src/Makefile.am: Same.
7e2055ec 3116 * src/Makefile.in: Regenerate.
3d7c150e
BK
3117 * acconfig.h: Same.
3118 * configure.host: Same.
3119 * configure.in: Same.
3120 * configure: Regenerate.
3121 * acinclude.m4: Same.
3122 * aclocal.m4: Same.
3123 * src: Change all files in this directory.
3124 * testsuite: Same.
3125 * include: Same, standardize include guards.
3126 * config: Same.
3127 * libsupc++: Same.
7e2055ec 3128
e6cc3a24
ZW
31292003-07-04 Zack Weinberg <zack@codesourcery.com>
3130
3131 * testsuite/22_locale/collate/compare/wchar_t/2.cc
3132 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
3133 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
3134 * testsuite/22_locale/collate/hash/wchar_t/2.cc
3135 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
3136 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
3137 * testsuite/22_locale/collate/transform/wchar_t/2.cc
3138 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
3139 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3140 XFAIL on all targets.
3141
d542f114
BK
31422003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3143
3144 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
3145 * aclocal.m4: Regenerate.
3146 * configure: Regenerate.
e6cc3a24 3147
d542f114
BK
31482003-07-04 Jerry Quinn <jlquinn@optonline.net>
3149
3150 * include/bits/locale_facets.tcc (__int_to_char): Move common case
3151 to the top.
3152
69ef29fd 31532003-07-04 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24
ZW
3154 Petur Runolfsson <peturr02@ru.is>
3155
69ef29fd
BK
3156 * config/io/basic_file_stdio.cc: Revert.
3157
5b5bf717
PC
31582003-07-04 Paolo Carlini <pcarlini@unitus.it>
3159
3160 * include/bits/deque.tcc: Fully qualify standard
3161 functions with std::, thus avoiding Koenig lookup.
3162 * include/bits/gslice_array.h: Likewise.
3163 * include/bits/indirect_array.h: Likewise.
3164 * include/bits/list.tcc: Likewise.
3165 * include/bits/mask_array.h: Likewise.
3166 * include/bits/slice_array.h: Likewise.
3167
7f6dd1ca
GB
31682003-07-04 Gawain Bolton <gbolton@free.fr>
3169
3170 * include/bits/stl_tree.h: Performance and memory usage
3171 improvements.
3172
8c90b13a
L
31732003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3174
3175 * Makefile.am: Replace PWD with PWD_COMMAND.
3176 * Makefile.in: Regenerated.
3177 * docs/html/Makefile: Likewise.
3178
2f805868
PC
31792003-07-04 Paolo Carlini <pcarlini@unitus.it>
3180
3181 * include/bits/valarray_array.h: Fully qualify standard
3182 functions with std::, thus avoiding Koenig lookup.
3183 * include/bits/vector.tcc: Likewise.
3184
a30335e9
BK
31852003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3186
3187 * include/Makefile.am: Update target_ to host_.
3188 * include/Makefile.in: Regenerate.
3189 * src/Makefile.am: Same.
3190 * src/Makefile.in: Regenerate.
3191
3192 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
e6cc3a24 3193
d8d81f62
BK
31942003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3195
3196 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
3197 --enable-libstdcxx-debug-flags.
3198 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
3199 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
3200 * aclocal.m4: Regenerate.
3201 * configure: Same.
3202 * docs/html/configopts.html: Update.
e6cc3a24 3203
10ef4e2e
PC
32042003-07-04 Paolo Carlini <pcarlini@unitus.it>
3205
3206 Revert the fix for libstdc++/11378.
3207
ac2c48d7
PC
32082003-07-04 Paolo Carlini <pcarlini@unitus.it>
3209
3210 PR libstdc++/11378
3211 * include/std/std_fstream.h (xsputn): In the unbuffered case,
3212 provided always_noconv(), issue directly _M_file.xsputn.
3213 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
3214
9dd90ac6
PC
32152003-07-04 Paolo Carlini <pcarlini@unitus.it>
3216
3217 * include/bits/stl_list.h: Fully qualify standard
3218 functions with std::, thus avoiding Koenig lookup.
3219 * include/bits/stl_queue.h: Likewise.
3220 * include/bits/stl_raw_storage_iter.h: Likewise.
3221 * include/bits/stl_tempbuf.h: Likewise.
3222 * include/bits/stl_tree.h: Likewise.
3223 * include/bits/stl_uninitialized.h: Likewise.
3224 * include/bits/stl_vector.h: Likewise.
e6cc3a24 3225 * include/ext/rope: Change includes order.
9dd90ac6 3226
1b33b6b2
BK
32272003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3228
3229 * configure.host (fpos_include_dir): Fix.
3230
369b78b0
PC
32312003-07-04 Paolo Carlini <pcarlini@unitus.it>
3232
3233 * include/bits/stl_heap.h: Fully qualify standard
3234 functions with std::, thus avoiding Koenig lookup.
3235 * include/bits/stl_iterator_base_funcs.h: Likewise.
3236
3237 * include/bits/stl_algo.h: Qualify __iterator_category too.
3238 * include/bits/stl_algobase.h: Likewise.
3239 * include/bits/stl_bvector.h: Likewise.
3240
3241 * include/bits/stl_algo.h: Don't qualify the pair type.
3242
cc5112c9
BK
32432003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3244
3245 * include/Makefile.am (target_headers): Add fpos.h
3246 (bits_headers): Remove.
3247 * include/Makefile.in: Regenerate.
3248 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
3249 * configure: Regenerate.
3250 * configure.host: Add fpos_include_dir.
3251 * config/os/gnu-linux/fpos.h: New.
e6cc3a24
ZW
3252 * config/os/generic/fpos.h: Add.
3253 * include/bits/fpos.h: Remove.
cc5112c9
BK
3254
3255 * config/io/c_io_stdio.h: Remove fpos_t typedef.
3256
3257 * include/bits/fstream.tcc: Tweaks.
3258 * include/std/std_fstream.h: Same.
e6cc3a24 3259
cc5112c9
BK
3260 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
3261 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
3262 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
3263 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
3264 * testsuite/27_io/fpos/1.cc: New.
e6cc3a24 3265
cc5112c9
BK
32662003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3267 Petur Runolfsson <peturr02@ru.is>
e6cc3a24 3268
cc5112c9
BK
3269 * include/std/std_streambuf.h: Remove _M_pos.
3270 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
3271 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
3272 use fread/fwrite instead of read/write.
3273 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
3274 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
3275 before reading again.
3276 * testsuite/27_io/objects/char/6.cc: Tweak.
e6cc3a24 3277
304d79dc
DE
32782003-07-03 David Edelsohn <edelsohn@gnu.org>
3279
3280 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
3281 _GLIBCPP_USE_WCHAR_T.
3282
41ba4c46
PC
32832003-07-02 Paolo Carlini <pcarlini@unitus.it>
3284
3285 * include/bits/basic_string.tcc (_M_replace_aux): Constify
3286 __n1 and __off1.
3287
da73f9de
PC
32882003-07-02 Paolo Carlini <pcarlini@unitus.it>
3289
3290 * include/bits/stl_bvector.h: Fully qualify standard
3291 functions with std::, thus avoiding Koenig lookup.
3292 * include/bits/stl_construct.h: Likewise.
3293 * include/bits/stl_deque.h: Likewise.
3294
1c380095
PC
32952003-07-02 Paolo Carlini <pcarlini@unitus.it>
3296
3297 * testsuite/22_locale/num_put/put/char/7.cc: Include
3298 <testsuite_hooks.h>, tweak.
3299 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
3300
f9f4d1e1
PE
33012003-07-01 Phil Edwards <pme@gcc.gnu.org>
3302
3303 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
3304 check* targets, but not libs/programs).
3305 * testsuite/Makefile.in: Regenerate.
3306
b7693a46
RS
33072003-07-01 Roger Sayle <roger@eyesopen.com>
3308
3309 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
3310 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
3311 * aclocal.m4: Regenerate.
3312 * configure: Regenerate.
3313
a5b1b26c
BK
33142003-07-01 Benjamin Kosnik <bkoz@redhat.com>
3315
3316 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
3317 * aclocal.m4: Regenerated.
3318 * configure: Regenerated.
e6cc3a24 3319
f64f3e74
PC
33202003-07-01 Paolo Carlini <pcarlini@unitus.it>
3321
3322 PR libstdc++/11389
3323 * include/bits/fstream.tcc (underflow): For encoding() == 0
3324 don't read more than __buflen chars.
3325 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
3326 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
3327 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
3328 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
3329
5ee78c21
JQ
33302003-07-01 Jerry Quinn <jlquinn@optonline.net>
3331
3332 * 22_locale/num_put/put/char/7.cc: New.
3333 * 22_locale/num_put/put/wchar_t/7.cc: New.
3334
e97ee22e
JQ
33352003-06-30 Jerry Quinn <jlquinn@optonline.net>
3336
3337 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
3338 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
3339
7d6a0993
BK
33402003-06-30 Benjamin Kosnik <bkoz@redhat.com>
3341
3342 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
3343 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
3344 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
3345 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
3346 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
3347 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
3348 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
3349 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
3350 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
3351 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
3352 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
3353 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
3354 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
3355 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
3356 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
3357 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
3358 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
3359 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
3360 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
3361 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
3362 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
3363 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
3364 * data/seekoff-1.tst: Remove.
3365 * data/seekoff-1io.tst: New.
3366 * data/seekoff-1out.tst: New.
3367 * data/seekoff-2.tst: Remove.
3368 * data/seekoff-2io.tst: New.
3369 * data/seekoff-2out.tst: New.
3370 * data/seekoff.txt
3371 * data/seekpos-1.tst: Remove.
3372 * data/seekpos-1io.tst: New.
3373 * data/seekpos-1out.tst: New.
3374 * data/seekpos-2.tst: Remove.
3375 * data/seekpos-2io.tst: New.
3376 * data/seekpos-2out.tst: New.
3377 * data/seekpos.txt: New.
3378
a5b1b26c 33792003-06-30 Jerry Quinn <jlquinn@optonline.net>
cf0cad09
JQ
3380
3381 * src/locale.cc (__use_cache<numpunct>): Move from here ...
3382 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
3383 here.
3384
884a757a
PC
33852003-06-30 Paolo Carlini <pcarlini@unitus.it>
3386
3387 * include/bits/stl_algobase.h: Fully qualify standard
3388 functions with std::, thus avoiding Koenig lookup.
3389
5892c641 33902003-06-30 Doug Gregor <dgregor@apple.com>
e6cc3a24 3391
5892c641 3392 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
e6cc3a24 3393 subscripting empty string.
5892c641 3394
7685a26d
PE
33952003-06-30 Phil Edwards <pme@gcc.gnu.org>
3396
3397 * testsuite/Makefile.am (check-am): Do not override.
3398 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
3399 * testsuite/Makefile.in: Regenerate.
3400
e6cc3a24
ZW
34012003-06-30 Doug Gregor <dgregor@apple.com>
3402
d147b75b
DG
3403 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
3404 Don't initialize an insert_iterator with a singular iterator.
3405
44f0760e 34062003-06-30 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 3407
44f0760e
BK
3408 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
3409 * aclocal.m4: Regenerate.
3410 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
3411 GLIBCPP_ENABLE_PCH, default to yes.
3412 * configure: Regenerate.
3413 * docs/html/configopts.html: Add --enable-pch.
e6cc3a24 3414
e37f7da7
PE
34152003-06-30 Phil Edwards <pme@gcc.gnu.org>
3416
3417 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
3418 (libstdc++-v3-init): Also set LD_RUN_PATH.
3419
cd16e04b
PC
34202003-06-30 Paolo Carlini <pcarlini@unitus.it>
3421
fbfcbadc
PC
3422 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
3423 from here to filebuf and stringbuf.
cd16e04b
PC
3424 (~basic_streambuf()): Don't set _M_mode.
3425 (basic_streambuf()): Don't set _M_mode.
3426 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
3427 (~basic_filebuf()): Clean up.
3428 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
3429 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
3430 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
3431 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
3432 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
3433 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
3434 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
3435
34362003-06-30 Paolo Carlini <pcarlini@unitus.it>
3437
3438 * include/std/std_fstream.h (_M_underflow): Remove.
3439 (uflow): Remove, inherited from streambuf.
3440 (underflow): Only declare.
e6cc3a24 3441 * include/bits/fstream.tcc (_M_underflow): Rename to
cd16e04b
PC
3442 underflow, to which is equivalent for __bump == false,
3443 simplify.
3444 * include/std/std_sstream.h (_M_underflow): Remove.
3445 (uflow): Remove, inherited from streambuf.
3446 (underflow): Only declare.
e6cc3a24 3447 * include/bits/sstream.tcc (_M_underflow): Rename to
cd16e04b
PC
3448 underflow, to which is equivalent for __bump == false,
3449 simplify.
3450
c868f37e
PC
34512003-06-29 Paolo Carlini <pcarlini@unitus.it>
3452
fbfcbadc
PC
3453 * include/bits/stl_algo.h: Fully qualify standard functions
3454 with std::, thus avoiding Koenig lookup.
c868f37e 3455
165f54e0
PC
34562003-06-29 Paolo Carlini <pcarlini@unitus.it>
3457
3458 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
3459 Improve type correctness-wise.
3460 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
3461 Likewise.
3462 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
3463 Likewise.
3464 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
3465 Likewise.
3466
90319d16
PC
34672003-06-29 Paolo Carlini <pcarlini@unitus.it>
3468
3469 * include/std/std_streambuf.h (uflow): According to
3470 27.5.2.4.3,p16, don't check gptr() < egptr().
3471
b417ae14
PC
34722003-06-28 Paolo Carlini <pcarlini@unitus.it>
3473
3474 PR libstdc++/9875
3475 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
3476 (seekpos): Likewise.
3477 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
3478 New test.
3479 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
3480 New test.
3481
f1a22109
BK
34822003-06-27 Benjamin Kosnik <bkoz@redhat.com>
3483
3484 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
3485 output name to libstdc++-v3-performance.sum.
3486 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
3487 * testsuite/Makefile.in: Regenerate.
e6cc3a24 3488
f1a22109
BK
34892003-06-27 Matthias Klose <doko@debian.org>
3490
3491 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
3492 output of abi-check in libstdc++-v3-abi.sum.
3493 * testsuite/Makefile.in: Regenerate.
3494
2e8a523f
KW
34952003-06-27 Krister Walfridsson <cato@df.lth.se>
3496
3497 * config/os/bsd/netbsd/ctype_noninline.h
3498 (_C_ctype_): Declare.
3499 (ctype<char>::classic_table): Return _C_ctype_ + 1.
3500 (ctype<char>::ctype): Use classic_table.
3501
3461133d
PC
35022003-06-27 Paolo Carlini <pcarlini@unitus.it>
3503 Nathan C. Myers <ncm-nospam@cantrip.org>
3504
3505 PR libstdc++/9178
3506 * include/bits/fstream.tcc (_M_underflow): Properly estimate
3507 the worst-case number of external bytes for a given get area.
3508 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
3509
35102003-06-27 Paolo Carlini <pcarlini@unitus.it>
3511 Petur Runolfsson <peturr02@ru.is>
3512
3513 PR libstdc++/11305
3514 * include/bits/fstream.tcc (overflow): Properly estimate the
3515 worst-case number of external bytes for a given put area
3516 (by using codecvt::max_length()).
3517 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
3518 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
3519 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
3520 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
3521
5648db54
NS
35222003-06-27 Nathan Sidwell <nathan@codesourcery.com>
3523
3524 * config/linker-map.gnu: Remove ; after __numpunct_cache.
3525
215f9e28
BK
35262003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3527
3528 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
3529 to the imbued locale.
3530 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
3531 _M_getloc.
3532 (num_put::_M_convert_float): Use.
3533
35342003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3535 Jerry Quinn <jlquinn@optonline.net>
3536
3537 * config/linker-map.gnu: Add __numpunct_cache.
3538 * config/locale/gnu/numeric_members.cc
3539 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
3540 all elements for "C" locale.
3541 (numpunct::~numpunct): Delete _M_data.
e6cc3a24 3542 * config/locale/generic/numeric_members.cc: Same.
215f9e28
BK
3543 * include/bits/basic_ios.tcc
3544 (basic_ios::init): Remove __locale_cache bits.
3545 (basic_ios::_M_cache_locale): Same.
e6cc3a24 3546 * include/bits/ios_base.h: Same. Tweaks.
215f9e28
BK
3547 * include/bits/locale_classes.h: Tweaks. Reorder classes.
3548 (__use_cache): Make friends with _Impl, locale.
3549 (_Impl::_M_caches): Add.
3550 (_Impl::_M_install_cache): Add.
3551 * include/bits/locale_facets.h (__numpunct_cache): New.
3552 (numpunct): Encapsulate data members in __numpunct_cache member,
3553 _M_data. Adjust virtuals.
e6cc3a24 3554 (numpunct::numpunct): New ctor for the same.
215f9e28 3555 (__locale_cache_base): Remove.
e6cc3a24 3556 (__locale_cache): Remove.
215f9e28
BK
3557 * include/bits/locale_facets.tcc (__use_cache): New function,
3558 specializations.
3559 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
3560 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
3561 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
3562 * src/locale-inst.cc: Same. Add __numpunct_cache.
3563 * src/locale.cc: Tweak inlines.
3564 (__use_cache): Define specializations.
3565 * src/localename.cc: Use global bits.
3566 (_Impl::~Impl): Deal with __numpunct_cache destruction.
3567 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
3568 (_Impl::_M_init_facet): Take into account __numpunct_cache.
3569 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
3570 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3571
8370378a 35722003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
e6cc3a24 3573 Paolo Carlini <pcarlini@unitus.it>
8370378a
NM
3574
3575 * testsuite/performance/filebuf_copy.cc: New, testing char
3576 by char file copy.
3577
2cfe4e68 35782003-06-26 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 3579 Nathan C. Myers <ncm-nospam@cantrip.org>
2cfe4e68
PC
3580
3581 * include/bits/fstream.tcc (_M_underflow): When the actual
3582 end of file is reached, set 'uncommitted' mode to allow a
3583 next write without an intervening seek (see C++98 27.8.1.1,2
3584 and C89 7.9.5.3).
3585 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
3586
29d9ed97
NM
35872003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
3588
3589 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3590 sputc): Move inline, from here...
3591 * include/std/std_streambuf.h: ... to here.
3592
3593 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
3594 sputbackc, sungetc, sputc): Use __builtin_expect.
3595
c1a62440
PE
35962003-06-24 Phil Edwards <pme@gcc.gnu.org>
3597
3598 * docs/doxygen/mainpage.html: Use a useful title.
3599
cdc1242a
BK
36002003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3601
3602 * docs/html/documentation.html: Remove assignment info.
3603 * docs/html/17_intro/contribute.html: Edits.
3604 * docs/html/17_intro/libstdc++-assign.tx: Remove.
3605
3606 * docs/html/test.html: Update.
3607
3608 * README: Update.
e6cc3a24 3609
1b6f0a56 36102003-06-24 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 3611 Ulrich Drepper <drepper@redhat.com>
1b6f0a56
BK
3612
3613 * testsuite/testsuite_performance.h: Tweak mallinfo.
3614
71b46021 36152003-06-24 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 3616 Nathan C. Myers <ncm-nospam@cantrip.org>
71b46021
PC
3617
3618 * include/std/std_fstream.h (_M_filepos): Remove.
3619 (_M_reading, _M_writing): New, encode the various I/O modes:
3620 'read', 'write' and 'uncommitted'.
3621 (sync): If there is something to flush, do it, then go to
3622 'uncommitted' mode.
3623 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
3624 with three different cases: __off > 0 (upon underflow),
3625 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
3626 seekoff/pos).
3627 (_M_underflow): Don't call overflow, set _M_reading to true
3628 on success, tweak.
3629 (pbackfail): Set _M_reading to true on pback creation, tweak.
3630 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
3631 set _M_writing to true on success, tweak.
3632 (seekoff): Simplify, set _M_reading, _M_writing to false, call
3633 _M_set_buffer(-1) ('uncommitted').
3634 (open, close, setbuf): Set _M_reading, _M_writing to false and
3635 call _M_set_buffer(-1), tweak.
3636 (basic_filebuf): Don't set _M_buf_unified.
3637 (_M_destroy_internal_buffer): Don't call setg and setp.
3638 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
3639 _M_writing and _M_set_buffer(-1).
3640 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
3641 _M_out_lim, _M_buf_unified): Remove.
3642 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
e6cc3a24 3643 (setp): Don't set _M_out_lim.
71b46021
PC
3644 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
3645 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
3646 upon open the mode is 'uncommitted' and therefore the put area
3647 pointers are null.
3648 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
3649 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
3650 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
3651 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
3652 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
3653 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
3654 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3655 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
3656 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
3657 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
3658 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
3659 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
3660 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
3661 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
3662 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
3663 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
3664 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
3665 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
3666 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
3667 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
3668
3669 * include/bits/fstream.tcc (showmanyc): Use only the
3670 documented derivation interface to basic_streambuf (gptr(),
3671 setg(), etc.) to work right with user specializations.
3672 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3673 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
3674 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
3675 Likewise.
3676 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
3677 xsgetn): Likewise.
3678
9eb6e1d3
LR
36792003-06-23 Loren J. Rittle <ljrittle@acm.org>
3680
3681 * configure.host (freebsd*): Set abi_baseline_pair.
3682 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
3683 (at or near first release) to 3.3.
3684 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
3685 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
3686 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
3687
3d57d7ba 3688 * include/ext/mt_allocator.h: Portability.
d1a2c4d6 3689 * testsuite/testsuite_performance.h: Likewise.
3d57d7ba 3690
c89c30dd
BK
36912003-06-23 Benjamin Kosnik <bkoz@redhat.com>
3692
3693 * docs/html/17_intro/libstdc++-assign.txt: Update address.
3694
3695 * testsuite/performance/ifstream_getline.cc: Fix.
e6cc3a24 3696
c89c30dd 36972003-06-23 Doug Gregor <dgregor@apple.com>
2b491e3a 3698
e6cc3a24
ZW
3699 * include/bits/boost_concept_check.h: Don't use _D or _R for type
3700 names.
2b491e3a 3701
1b170b55
PC
37022003-06-22 Paolo Carlini <pcarlini@unitus.it>
3703 Nathan C. Myers <ncm-nospam@cantrip.org>
3704
3705 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
3706 is now used only for filebuf, when _M_buf_unified is true.
3707 epgtr() plays the role of _M_out_lim but it's only updated
3708 upon overflow, underflow, uflow, seekoff/pos.
3709 * include/bits/sstream.tcc (_M_underflow): New, implements
3710 stringbuf::underflow and uflow.
3711 (seekoff, seekpos): Tweak, use _M_update_egptr.
3712 * include/std/std_sstream.h (str): Rewrote, deal correctly
3713 with the new logic, in particular, when pptr() > egptr().
3714 (_M_sync): When __testout && !__testin set all the get area
3715 pointers to the current string end.
3716 (_M_update_egptr): New, internal function updating egptr()
3717 to the actual string end.
3718 (_M_underflow): New, declare.
3719 (underflow): Dispatch to _M_underflow(false).
3720 (uflow): Dispatch to _M_underflow(true).
3721
3722 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
3723 seekpos): Use only the documented derivation interface to
3724 basic_streambuf (gptr(), setg(), etc.) to work right with
3725 user specializations.
3726 * include/std/std_sstream.h (str, _M_sync): Likewise.
3727
8dbe14be
DG
37282003-06-20 Doug Gregor <dgregor@apple.com>
3729
1b170b55
PC
3730 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
3731 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
3732 dereference end iterator.
3733 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
3734 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
3735 index equal to the length of a string.
3736 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
3737 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
3738 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
3739 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
3740 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
3741 * testsuite/23_containers/list_modifiers.cc: Don't dereference
3742 singular reverse iterator.
3743 * testsuite/23_containers/vector_bool.cc: Don't increment singular
3744 iterator.
3745 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
8dbe14be 3746
bdb0f0f5
DG
37472003-06-20 Doug Gregor <dgregor@apple.com>
3748
e6cc3a24 3749 * include/bits/basic_string.h (basic_string::replace): Dispatch
bdb0f0f5
DG
3750 _InputIterator version based on _Is_integer.
3751 * include/bits/basic_string.tcc (basic_string::replace):
3752 Renamed replace(iterator, iterator, size_type, _CharT) to
3753 _M_replace_aux.
3754 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
3755 Test basic_string::assign(_InputIterator, _InputIterator),
3756 which calls basic_string::replace(iterator, iterator,
3757 _Input_iterator, _InputIterator).
3758
f5a6463e
BK
37592003-06-20 Benjamin Kosnik <bkoz@redhat.com>
3760
3761 * testsuite/testsuite_performance.h (resource_counter): Don't use
3762 mallinfo at the moment.
3763
bbdfb3e8
MK
37642003-06-20 Matthias Klose <doko@debian.org>
3765
3766 * configure.host: Set try_cpu to target_cpu for existing
3767 baseline files.
3768
97460e9a
AJ
37692003-06-19 Andreas Jaeger <aj@suse.de>
3770
3771 * testsuite/Makefile.am (extract_symvers): Revert accidental
3772 change.
3773 * testsuite/Makefile.in: Regenerate.
3774
3775 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
3776 * configure: Regenerated.
3777
50af15ec
PC
37782003-06-19 Paolo Carlini <pcarlini@unitus.it>
3779
3780 * include/std/std_sstream.h (_M_sync): Make non virtual.
3781
ce4f8c6b
BK
37822003-06-18 Benjamin Kosnik <bkoz@redhat.com>
3783
3784 * testsuite/testsuite_performance.h (time_counter): New.
3785 (resource_counter): New.
3786 (report_performance): New.
3787 (start_counters): New.
3788 (stop_counters): New.
97460e9a 3789 (clear_counters): New.
ce4f8c6b
BK
3790 * testsuite/performance/allocator.cc: Instrument.
3791 * testsuite/performance/cout_insert_int.cc: Same.
3792 * testsuite/performance/complex_norm.cc: Same.
3793 * testsuite/performance/filebuf_sputc.cc: New.
3794 * testsuite/performance/fstream_seek_write.cc: Same.
3795 * testsuite/performance/ifstream_getline.cc: Same.
3796 * testsuite/performance/map_create_fill.cc: Same.
3797 * testsuite/performance/ofstream_insert_float.cc: Same.
3798 * testsuite/performance/ofstream_insert_int.cc: Same.
97460e9a 3799 * testsuite/performance/string_append.cc: Convert.
ce4f8c6b
BK
3800 * scripts/check_performance: New.
3801 * testsuite/Makefile.am (check-performance): New.
3802 (CLEANFILES): Add.
97460e9a 3803
b82a33d2 38042003-06-18 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 3805 Benjamin Kosnik <bkoz@redhat.com>
b82a33d2
PC
3806
3807 * include/std/std_sstream.h (setbuf): Check __n >= 0.
3808 * include/bits/fstream.tcc (setbuf): Tweak.
3809
4c526d09
PC
38102003-06-18 Paolo Carlini <pcarlini@unitus.it>
3811
3812 * include/bits/sstream.tcc (seekoff): We can't seek beyond
3813 _M_out_lim, therefore _M_move_out_cur boils down to simply
3814 updating _M_out_cur.
3815 (seekpos): Likewise, clean up.
3816
c1b74c21 38172003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
e6cc3a24 3818 Paolo Carlini <pcarlini@unitus.it>
c1b74c21
NM
3819
3820 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
3821 simply equivalent to the unbuffered case (0, 0) as far as
3822 _M_buf_size is concerned.
3823
a1af4623
AJ
38242003-06-18 Andreas Jaeger <aj@suse.de>
3825
3826 * testsuite/Makefile.am (new-abi-baseline): Create baseline
3827 directory.
3828 (baseline_file): Use baseline_dir.
3829 (baseline_dir): New.
3830 (mkinstalldirs): New.
3831
3832 * acinclude.m4: Rename baseline_file to baseline_dir, strip
3833 filename from baseline_dir.
3834
3835 * testsuite/Makefile.in: Regenerated.
3836 * Makefile.in: Regenerated.
3837 * aclocal.m4: Regenerated.
3838 * configure: Regenerated.
3839
2f934953
BK
38402003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3841
3842 * configure.in: Missed check_survey bit.
3843 * configure: Regenerated.
3844
0676e930
BK
38452003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3846
3847 * scripts: New.
3848 * config/abi/extract_symvers: Move to...
3849 * scripts/extract_symvers: ...here.
3850 * mkcheck.in: Move to..
3851 * scripts/check_survey.in: ...here.
3852 * testsuite_flags.in: Move to..
3853 * scripts/testsuite_flags.in: ...here.
3854 * configure.in: Change check and testsuite_flags locations.
3855 * configure: Regenerate.
3856 * testsuite/Makefile.am (current_symbols.txt): Change location.
3857 * testsuite/Makefile.in: Regenerate.
3858 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3859 location of testsuite_flags.
3860 * Makefile.am (check-script): Move..
3861 (check-script-install): Move...
a1af4623 3862 * testsuite/Makefile.am: ... here.
0676e930 3863 * testsuite/Makefile.in: Regenerate.
a1af4623
AJ
3864 * Makefile.in: Regenerate.
3865
82620aaf
BK
38662003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3867
3868 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
3869
c4c064e7
BK
38702003-06-16 Benjamin Kosnik <bkoz@redhat.com>
3871
3872 * Makefile.am (check-abi): Move...
3873 (new-abi-baseline): Move...
3874 * testsuite/Makefile.am: ...here.
3875 (new-abi-baseline): Conditionalize.
3876 (check-abi): Conditionalize.
3877 (check-abi-verbose): New.
3878 * Makefile.in: Regenerate.
a1af4623 3879 * testsuite/Makefile.in: Regenerate.
c4c064e7
BK
3880 * configure.in: Consolidate testsuite configure bits.
3881 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
3882 * configure: Regenerate.
a1af4623 3883 * aclocal.m4: Regenerate.
c4c064e7
BK
3884 * testsuite/abi_check.cc: Add --check-verbose.
3885 Only output detailed information if --check-verbose.
3886
e7bb3511 38872003-06-16 Andreas Jaeger <aj@suse.de>
a1af4623 3888
e6cc3a24 3889 * testsuite/abi_check.cc: Create summary report.
a1af4623 3890
8363b773
PC
38912003-06-16 Paolo Carlini <pcarlini@unitus.it>
3892
3893 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
3894 for systems with BUFSIZ != 8192.
3895 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3896 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
3897 Minor tweaks.
3898
5ab481e0
BK
38992003-06-16 Andreas Jaeger <aj@suse.de>
3900
3901 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
3902 check-abi multilib aware.
3903 * aclocal.m4: Regenerate.
3904 * configure: Regenerate.
a1af4623 3905
5ab481e0 39062003-06-16 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 3907 Andreas Jaeger <aj@suse.de>
5ab481e0
BK
3908
3909 * configure.host: Set x86_64 abi_baseline pair correctly.
3910
0bad3b7c
PC
39112003-06-16 Paolo Carlini <pcarlini@unitus.it>
3912
3913 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
e6cc3a24 3914 fix for missing seeks between gets and puts into...
0bad3b7c
PC
3915 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
3916 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
3917 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
3918 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
3919 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
3920 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
a1af4623 3921
dc4add82
RH
39222003-06-15 Richard Henderson <rth@redhat.com>
3923
3924 * config/linker-map.gnu: Export virtual function thunks for
3925 64-bit systems too.
3926
ef16a298
BK
39272003-06-13 Benjamin Kosnik <bkoz@redhat.com>
3928
3929 * config/abi/i686-pc-linux-gnu: To..
3930 * config/abi/i486-linux-gnu: ...this.
3931 * config/abi/alphaev67-unknown-linux-gnu: To..
3932 * config/abi/alpha-linux-gnu: ...this.
3933 * config/abi/ia64-unknown-linux-gnu: To...
3934 * config/abi/ia64-linux-gnu: ...this.
3935 * config/abi/x86_64-unknown-linux-gnu: To...
3936 * config/abi/x86_64-linux-gnu: ...this.
3937 * config/abi/i386-unknown-freebsd4: To...
3938 * config/abi/i386-freebsd4: ...this.
5ab481e0
BK
3939 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
3940 CXXABI.
ef16a298
BK
3941 * configure.host: abi_baseline_triplet to abi_baseline_pair.
3942 Simplify cpu bits so that abi_baseline_pair can use the same
3943 cpu configuration.
3944 * acinclude.m4: Same.
3945 * aclocal.m4: Regenerate.
3946 * configure.in: Can't get enable_abi_check to yes unless native.
3947 * configure: Regenerate.
3948
ed242935
PC
39492003-06-13 Paolo Carlini <pcarlini@unitus.it>
3950
3951 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
3952 fix for missing seeks between gets and puts into...
3953 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
3954 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
3955 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
3956 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
3957 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
3958 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
3959 for missing seeks between gets and puts.
3960 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
3961 * testsuite/data/seekoff-1.tst: New.
3962 * testsuite/data/seekoff-2.tst: New.
3963 * testsuite/data/seekpos-1.tst: New.
3964 * testsuite/data/seekpos-2.tst: New.
3965
ca566e4c
NM
39662003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
3967
3968 Avoid multi-processor bus contention on increment/decrement-and-
a1af4623 3969 test of the reference count in the empty-string object, by comparing
e6cc3a24
ZW
3970 addresses first, and never touching the reference count of the empty-
3971 string object.
ca566e4c
NM
3972 * include/bits/basic_string.h:
3973 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
3974 members.
a1af4623 3975 (_Rep::_S_empty_rep()): New accessor.
ca566e4c
NM
3976 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
3977 a base class _Rep_base.
3978 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
3979 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
3980 since no longer must increment its refcount.
3981 * include/bits/basic_string.tcc:
a1af4623 3982 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
e6cc3a24
ZW
3983 return immediately. The former might be unnecessary. The latter
3984 prevents begin() and end() from cloning it unnecessarily.
ca566e4c
NM
3985 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3986 input_iterator_tag), _S_construct(_InIterator, _InIterator,
3987 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
3988 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
3989 (_M_mutate): Check for the empty string and treat it as shared.
e6cc3a24
ZW
3990 This is necessary here because _M_mutate is sometimes called with
3991 all-zero arguments; in all other uses of _M_is_shared, the test comes
3992 out right anyhow.
a1af4623 3993
c37514ff
BK
39942003-06-12 Benjamin Kosnik <bkoz@redhat.com>
3995
3996 * src/allocator-inst.cc: Explicitly instantiate.
3997 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
3998 Tweaks.
3999 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
a1af4623 4000
58ac1d7f
BK
40012003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4002
4003 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
4004 * aclocal.m4: Regenerate.
4005 * Makefile.am (SUBDIRS): Remove libio.
4006 * Makefile.in: Regenerate.
4007 * configure.in: Same.
4008 * configure: Regenerate.
4009 * config/io/basic_file_libio.cc: Remove.
a1af4623 4010 * config/io/basic_file_libio.h: Remove.
58ac1d7f 4011 * config/io/c_io_libio_codecvt.c: Remove.
a1af4623 4012 * config/io/c_io_libio.h: Remove.
58ac1d7f
BK
4013 * libio/*: Remove.
4014 * src/Makefile.am: Same.
4015 * src/Makefile.in: Regenerate.
a1af4623 4016 * docs/html/configopts.html: Edits.
58ac1d7f 4017 * docs/html/explanations.html: Edits.
a1af4623 4018
1ff9402d
BK
40192003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4020
4021 * include/bits/stl_alloc.h (__debug_alloc): Move out.
4022 (__malloc_alloc): Same.
4023 (__pool_alloc): Same.
4024 (__new_alloc): Same.
4025 Rename to..
4026 * include/bits/allocator.h: ...this.
4027 * include/bits/stl_deque.h: Modify comment.
4028 * include/bits/stl_tree.h: Modify include.
4029 * include/std/std_memory.h: Same.
4030 * include/ext/rope: Same.
a1af4623 4031 * include/ext/slist: Same.
1ff9402d
BK
4032 * include/std/std_vector.h: Same.
4033 * include/std/std_stack.h: Same.
4034 * include/std/std_queue.h: Same.
4035 * include/std/std_list.h: Same.
4036 * include/std/std_deque.h: Same.
4037 * include/backward/alloc.h: Same.
4038 * include/ext/debug_allocator.h: New.
a1af4623
AJ
4039 * include/ext/malloc_allocator.h: New.
4040 * include/ext/pool_allocator.h: New.
1ff9402d
BK
4041 * include/ext/new_allocator.h: New.
4042 * include/bits/pthread_allocimpl.h: Remove.
a1af4623 4043 * include/bits/stl_pthread_alloc.h: Remove.
1ff9402d
BK
4044 * include/Makefile.am (ext_headers): Add.
4045 * include/Makefile.in: Regenerate.
4046 * src/stl-inst.cc: Use __gnu_cxx namespace.
4047 * src/stl-inst.cc: Move to...
4048 * src/allocator-inst.cc: Here.
4049 * src/Makefile.am (sources): Update.
4050 * src/Makefile.in: Regenerate.
4051 * config/linker-map.gnu: Remove __pool_alloc bits.
4052 * testsuite/ext/headers.cc: Add.
4053 * testsuite/ext/allocators.cc: Fixup.
a1af4623 4054
1ff9402d 40552003-06-11 Stefan Olsson <stefan@snon.net>
e6cc3a24 4056