]> gcc.gnu.org Git - gcc.git/blame - libstdc++-v3/ChangeLog
s390.md ("tmdi_reg", [...]): Insns now use multiple letter constraints.
[gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
11816ba2
PC
12003-11-30 Paolo Carlini <pcarlini@suse.de>
2
3 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
4 Minor stylistic tweak.
5
6c39c207
PC
62003-11-30 Paolo Carlini <pcarlini@suse.de>
7
8 * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
9 Minor tweaks, consistent with the style used in other facets.
10
4da2b960
PC
112003-11-29 Paolo Carlini <pcarlini@suse.de>
12
13 * include/bits/fstream.tcc (underflow): Minor tweaks in
14 preparation for libstdc++/13217.
15
2d25605a
PC
162003-11-29 Paolo Carlini <pcarlini@suse.de>
17
18 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
19 Tweak for a few small problems (fix timings, use VERIFY..)
20
05a47a47
PC
212003-11-28 Paolo Carlini <pcarlini@suse.de>
22
23 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.
24 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: New,
25 the original third testcase for libstdc++/13171 belong here.
26
ac912ba1
PC
272003-11-28 Paolo Carlini <pcarlini@suse.de>
28
29 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc:
30 Remove extraneous wchar_t lines.
31
5536b61c
PC
322003-11-27 Paolo Carlini <pcarlini@suse.de>
33
34 PR libstdc++/11544
35 PR libstdc++/11603
36 * include/bits/fstream.tcc (underflow): Throw ios_base:failure
37 upon incomplete or invalid byte sequences in the file.
38 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-1.cc: New.
39 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc: New.
40 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: New.
41
fb8d4638
PC
422003-11-27 Paolo Carlini <pcarlini@suse.de>
43
44 * include/std/std_streambuf.h (__copy_streambufs): Remove
45 the first, unused, basic_ios<> parameter.
46 * src/streambuf-inst.cc: Likewise.
47 * include/bits/streambuf.tcc: Likewise.
48 * include/bits/istream.tcc (operator>>(__streambuf_type*)):
49 Tweak accordingly the call.
50 * include/bits/ostream.tcc (operator<<(__streambuf_type*)):
51 Likewise.
52
53 * include/bits/streambuf.tcc (__copy_streambufs): Remove
54 redundant try/catch.
55
12841eb3
BK
562003-11-26 Benjamin Kosnik <bkoz@redhat.com>
57
58 PR libstdc++/9371
59 PR libstdc++/9546
60 PR libstdc++/10093
61 PR libstdc++/10095
62 * include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
63 (basic_ios::_M_setstate): Consolidate common error handling code.
64 * include/bits/basic_ios.tcc: Tweak.
65 * include/bits/fstream.tcc: Tweak.
66 * include/bits/istream.tcc: Use _M_setstate for common exception
67 handling. Move setstate calls after catch.
68 (basic_istream::tellg): Check for exceptions thrown by streambuf
69 virtual functions.
70 (basic_istream::seekg): Same.
71 * include/bits/ostream.tcc: Same, but for ostream.
72 (basic_ostream::flush): Check for exceptions thrown by streambuf
73 virtual functions.
74 (basic_istream::tellp): Same.
75 (basic_istream::seekp): Same.
76 * include/bits/locale_facets.tcc: Tweak.
77 * include/bits/streambuf.tcc: Tweak.
78 (__copy_streambufs): Propagate exceptions.
79 * testsuite/testsuite_io.h (fail_streambuf): New.
80 (fail_num_get): New.
81 (fail_num_put): New.
82 (facet_error): New.
83 (underflow_error): New.
84 (overflow_error): New.
85 (positioning_error): New.
86 * testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
87 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
88 exceptions_badbit_throw.cc, exceptions_failbit.cc,
89 exceptions_failbit_throw.cc: New.
90 * testsuite/27_io/basic_istream/extractors_other/char/
91 error_failbit.cc, exceptions_badbit_throw.cc,
92 exceptions_failbit_throw.cc, exceptions_null.cc: New.
93 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
94 New.
95 * testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
96 New.
97 * testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
98 New.
99 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
100 exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
101 * testsuite/27_io/basic_ostream/inserters_other/char/
102 error_failbit.cc, exceptions_badbit_throw.cc,
103 exceptions_failbit_throw.cc, exceptions_null.cc: New.
104 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
105 New.
106 * testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc:
107 New.
108
48f499cf
BK
1092003-11-26 Benjamin Kosnik <bkoz@redhat.com>
110
111 PR libstdc++/12297
112 * include/bits/istream.tcc
113 (basic_istream::sentry::sentry): Set failbit and eofbit when eof.
114 * testsuite/27_io/basic_istream/sentry/char/12297.cc: New.
115
c03d83d4
PC
1162003-11-26 Paolo Carlini <pcarlini@suse.de>
117 Petur Runolfsson <peturr02@ru.is>
118
119 PR libstdc++/13171
120 * include/bits/fstream.tcc (imbue): Relax the conditions under
121 which the function succeeds: allow for two consecutive calls with
122 the same name; state dependent encodings are ok even after open
123 if at the beginning of the file; don't check seekoff return value
124 (pipes, cin, cout, etc...)
125 * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: New.
126 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: New.
127 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: New.
128 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: New.
129 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak comment.
130 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: Likewise.
131 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Tweak comment.
132 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: Likewise.
133
134 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: More
135 correctly use the UTF-8 locale appearing in the PR.
136
7fb1d711
PC
1372003-11-26 Paolo Carlini <pcarlini@suse.de>
138
139 * include/bits/locale_facets.h
140 (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
141 _M_truename and _M_falsename: the constructor always does
142 it immediately before the _M_cache call.
143
5af91f06
PC
1442003-11-25 Paolo Carlini <pcarlini@suse.de>
145
146 * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
147 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
148 former is very fast, but stops if encounters a NUL.
149 (codecvt::do_out): Tweaks.
150 (codecvt::do_in): Tweaks, improve the code dealing with errors.
151 * testsuite/performance/wchar_t_length.cc: New.
152
3c8797ae
PC
1532003-11-24 Paolo Carlini <pcarlini@suse.de>
154
155 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
156 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
157 former is very fast, but stops if encounters a NUL.
158 (codecvt::do_out): Tweak.
159 * testsuite/performance/wchar_t_in.cc: New.
160
1612003-11-24 Paolo Carlini <pcarlini@suse.de>
162
163 * include/bits/locale_facets.h
164 (__numpunct_cache<>::_M_cache): Set _M_allocated at the beginning
165 in order to avoid memory leaks; simplify a bit.
166
e0ec69c9
BK
1672003-11-24 Benjamin Kosnik <bkoz@redhat.com>
168
169 * include/bits/streambuf_iterator.h (ostreambuf_iterator): Remove
170 non-standard throw specs.
171 * testsuite/24_iterators/istreambuf_iterator.cc: Split into...
172 * testsuite/24_iterators/istreambuf_iterator/1.cc
173 * testsuite/24_iterators/istreambuf_iterator/2.cc
174 * testsuite/24_iterators/istreambuf_iterator/2627.cc
175 * testsuite/24_iterators/ostreambuf_iterator.cc: Split into...
176 * testsuite/24_iterators/ostreambuf_iterator/1.cc
177 * testsuite/24_iterators/ostreambuf_iterator/2.cc
178
179 * testsuite/24_iterators/reverse_iterator/1.cc: Just compile,
180 don't link.
181
182 * include/bits/allocator.h: Formatting tweak.
183
ce492af3
PC
1842003-11-24 Paolo Carlini <pcarlini@suse.de>
185
186 * src/locale_init.cc: Cosmetic reformatting.
187
bf058d22
PC
1882003-11-23 Paolo Carlini <pcarlini@suse.de>
189
190 * include/bits/locale_facets.tcc (__add_grouping):
191 Cosmetic reformatting.
192
89a2fb90
PC
1932003-11-23 Paolo Carlini <pcarlini@suse.de>
194
195 * include/bits/locale_facets.tcc (_M_extract_float,
196 _M_extract_int): Remove a wrong comment and simplify
197 the corresponding code using char_traits::find().
198
cc0c2f79
PC
1992003-11-22 Paolo Carlini <pcarlini@suse.de>
200
201 * config/locale/gnu/monetary_members.cc
202 (money_base::_S_construct_pattern): Factor out two assignments.
203
a3b1b804
PC
2042003-11-22 Paolo Carlini <pcarlini@suse.de>
205
206 * include/bits/istream.tcc (getline(basic_string<>&)):
207 Fix error in comment of the previous commit.
208
1a311979
PC
2092003-11-22 Paolo Carlini <pcarlini@suse.de>
210
211 PR libstdc++/12593
212 * include/bits/istream.tcc (operator>>(basic_string<>&),
213 getline(basic_string<>&)): Implement resolution of DR 91 [WP];
214 fix some minor issues with the exit conditions.
215 * docs/html/ext/howto.html: Add an entry for DR 91.
216
f7ba331c
PC
2172003-11-21 Paolo Carlini <pcarlini@suse.de>
218
219 * config/locale/gnu/monetary_members.cc
220 (money_base::_S_construct_pattern): Factor out an assignment.
221
5c89246d
PC
2222003-11-21 Paolo Carlini <pcarlini@suse.de>
223
224 PR libstdc++/12882 (partial)
225 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
226 and ftello64 too.
227 * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
228 and ftello64 if available.
229 * aclocal.m4: Regenerate.
230 * configure: Ditto.
231
9dc420e6
BK
2322003-11-20 Benjamin Kosnik <bkoz@redhat.com>
233
234 * include/debug/formatter.h: Use _Tp as template argument.
235 * src/debug.cc: Same, instantiate std::size_t.
236
4be58168
BK
2372003-11-20 Benjamin Kosnik <bkoz@redhat.com>
238
239 PR libstdc++/13109
240 * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
241 * src/debug.cc (__gnu_debug): Format.
242 (_Error_formatter::_M_format_word): Define, use, instantiate.
243
0fd18701
PC
2442003-11-20 Paolo Carlini <pcarlini@suse.de>
245
246 PR libstdc++/11602
247 * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
248 Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
249 former is very fast, but stops if encounters a NUL.
250 * testsuite/performance/wchar_t_out.cc: New, from the PR.
251
1f33554a
PC
2522003-11-19 Paolo Carlini <pcarlini@suse.de>
253
254 * config/locale/gnu/codecvt_members.cc (do_out): If
255 we can upper bound the total number of external chars
256 to something smaller than __to_end - __to, avoid the
257 temporary buffer, the memcopy and simplify the loop.
258 * config/locale/generic/codecvt_members.cc (do_out):
259 Likewise.
260
90635952
AT
2612003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
262
263 * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
264 * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
265 flag.
266
bc225f98
JW
2672003-11-18 Jonathan Wakely <redi@gcc.gnu.org>
268
269 * docs/html/configopts.html, docs/html/debug.html,
270 docs/html/documentation.html, docs/html/explanations.html,
271 docs/html/install.html, docs/html/17_intro/contribute.html,
272 docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
273 docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
274 docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
275 docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
276 docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
277 docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
278 docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
279 docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
280 docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
281
29342463
PC
2822003-11-18 Paolo Carlini <pcarlini@suse.de>
283
284 PR libstdc++/12868
285 * include/bits/fstream.tcc (imbue): For encodings != -1 it's
286 always ok to imbue a new locale, provided seekoff(0, cur, ...)
287 doesn't fail, of course.
288 (underflow): In order for the above to work, deal gracefully
289 with _M_codecvt->in returning codecvt_base::error while
290 (__ilen = __iend - this->eback()) > 0: it just means __ilen
291 correctly converted internal characters before an error.
292 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
293
c2466393
PC
2942003-11-17 Paolo Carlini <pcarlini@suse.de>
295
296 * include/bits/locale_facets.tcc: Fix typo in comment.
297
6a7ee0d6
PC
2982003-11-17 Paolo Carlini <pcarlini@suse.de>
299
300 * testsuite/22_locale/num_put/put/char/8.cc: New test,
301 summarizing the discussion ensuing libstdc++/12988.
302 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
303
781a5298
PC
3042003-11-15 Paolo Carlini <pcarlini@suse.de>
305
306 * include/std/std_fstream.h: Tweak a comment.
307
c85dfef7
RS
3082003-11-15 Roger Sayle <roger@eyesopen.com>
309
310 * include/c_std/std_cmath.h: Don't import C99's float transcendentals
311 into the __gnu_cxx::__c99_binding namespace.
312 (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
313 ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
314 GCC's math builtins, i.e. __builtin_foo.
315 * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
316 ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
317 ldexpf, ldexpl, modff, modfl): Provide stub implementations.
318
38455b2b
PC
3192003-11-14 Paolo Carlini <pcarlini@suse.de>
320
321 * testsuite/22_locale/locale/cons/12352.cc: Use
322 __gnu_test::try_named_locale.
323
c60cfc76
PC
3242003-11-14 Paolo Carlini <pcarlini@suse.de>
325
326 * docs/html/ext/howto.html: Add entries for DR 63, 75
327 and 305; tweak entries for DR 60 and 328.
328
1b80d64a
DG
3292003-11-13 Douglas Gregor <gregod@cs.rpi.edu>
330
331 * docs/html/debug.html: Users are allowed to specialize in
332 namespace __gnu_debug, unlike in the Apple version of the debug
333 mode. Clear up a confusing double-negative. Note that
334 std::basic_string does provide extra debugging capabilities, but
335 not safe iterators.
336 * include/bits/basic_string.tcc: Make sure there's never an
337 ambiguity when calling __is_null_pointer.
338 * include/debug/deque: (deque::erase) Properly handle invalidation
339 when erasing at the end of the deque.
340 * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
341 (vector::clear): Set the guaranteed capacity to 0.
342 * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
343 iterator invalidation when erasing at the end of the deque.
344
a2dcfada
PC
3452003-11-13 Paolo Carlini <pcarlini@suse.de>
346 Petur Runolfsson <peturr02@ru.is>
347
348 PR libstdc++/13007
349 * include/bits/fstream.tcc (imbue): Don't touch the stored
350 locale.
351 * include/std/std_streambuf.h (imbue): According to the
352 standard, base class version does nothing.
353 (pubimbue): Store the locale.
354 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
355 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
356 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
357 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
358 * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
359 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
360 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
361 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
362
5681c890
PR
3632003-11-13 Petur Runolfsson <peturr02@ru.is>
364
365 PR libstdc++/12594
366 * include/bits/ostream.tcc
367 (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
368 basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
369 basic_ostream::operator<<(ios_base& (*)(ios_base&))):
370 Implement the resolution of DR 60 (TC): These are not formatted
371 output functions so don't construct sentry objects and don't
372 catch exceptions.
373 (basic_ostream::put, basic_ostream::write): Implement the
374 resolution of DR 63 (TC) by catching exceptions and setting
375 badbit.
376 (basic_ostream::flush): Implement the resolution of DR 60 (TC):
377 This is not an unformatted output function so don't construct
378 a sentry object.
379 * testsuite/testsuite_io.h (sync_streambuf): Define.
380 * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
381 * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
382 * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
383 * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
384
f144e859
PC
3852003-11-13 Paolo Carlini <pcarlini@suse.de>
386
387 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
388 Fix, closely following the testcase included in the PR.
389 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
390 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
391 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
392
a198480e
JW
3932003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
394
395 * docs/html/17_intro/configury.html: XHTML tweak.
396
684edd67
JW
3972003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
398
399 * docs/html/debug_mode.html: XHTML fixes.
400
89341602
BK
4012003-11-12 Benjamin Kosnik <bkoz@redhat.com>
402
403 * docs/html/debug_mode.html: Update.
404 * docs/html/17_intro/TODO: Update.
405
f9d52373
BK
4062003-11-12 Benjamin Kosnik <bkoz@redhat.com>
407
408 * include/bits/c++config: Move using directive...
409 * include/debug/formatter.h: ...here.
410
22e5c8fa
CW
4112003-11-12 Carlo Wood <carlo@alinoe.com>
412
413 PR libstdc++/12947
414 * bits/demangle.h
415 (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
416 (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
417 (session<Allocator>::next_peek() const): Added.
418 (decode_non_negative_decimal_integer(string_type&)):
419 Renamed from decode_decimal_integer(string_type&).
420 (session<Allocator>::decode_nested_name):
421 Decode <template_param> as well.
422 (session<Allocator>::add_substitution):
423 Handle <template-param> for <nested-name>'s.
424 (enum xary_nt): Added.
425 (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
426 (symbol_name_table_c): Updated for `entry_st::type' and additional
427 operators (unary `operator+' and `sizeof(type)').
428 (offset_table_c): Updated for new operators (causing a new hash map).
429 (decode_operator_name): Match the updated hash map.
430 (session<Allocator>::decode_expression):
431 Support for `sizeof ([typename] type)' (st),
432 dependent names (sr) and casting operator (cv). Handle
433 `entry_st::type'. Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
434 and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
435 (session<Allocator>::decode_type_with_postfix):
436 Support `extern "C"' function types (FY).
437 * testsuite/demangle/regression/cw-16.cc: Added tests for the
438 added functionality.
439 * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
440 appended.
441
dfad48c6
PC
4422003-11-11 Paolo Carlini <pcarlini@suse.de>
443
444 PR libstdc++/12875
445 * include/bits/fstream.tcc (setbuf): Don't do anything
446 after open(), in particular don't discard data.
447 (_M_allocate_internal_buffer): Tweak to not allocate memory
448 in case the buffer is provided by the user via setbuf.
449 * include/ext/stdio_filebuf.h: Tweak comment.
450 * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
451 * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
452 * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
453 setbuf does nothing after open().
454 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
455
285b36d6
BK
4562003-11-11 Doug Gregor <gregod@cs.rpi.edu>
457
458 * docs/html/debug.html: Document libstdc++ debug mode.
459 * docs/html/debug_mode.html: Document libstdc++ debug mode design.
460 * docs/html/test.html: Document how to test under debug mode.
461 * docs/html/17_intro/howto.html: Document debug-mode macros.
462 * include/Makefile.am: Install debug-mode headers.
463 * src/Makefile.am: Include debug.cc.
464 * include/bits/basic_string.tcc:
465 (basic_string::_S_construct): Fix NULL pointer check.
466 (__is_null_pointer): New.
467 Add precondition annotations.
468 * include/bits/stream_iterator.h (istream_iterator,
469 ostream_iterator): Added precondition annotations.
470 * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
471 * include/bits/stl_queue.h (queue, priority_queue): Ditto.
472 * include/bits/stl_stack.h (stack): Ditto.
473 * include/bits/basic_string.h (basic_string): Ditto.
474 * include/bits/basic_string.tcc (basic_string): Ditto.
475 * include/std/std_memory.h (auto_ptr): Ditto.
476 * include/std/std_valarray.h (valarray): Ditto.
477 * include/bits/stl_algo.h: Added algorithm precondition
478 annotations.
479 * include/bits/stl_algobase.h: Added algorithm precondition
480 annotations.
481 * include/bits/stl_numeric.h: Ditto.
482 * include/ext/algorithm: Added algorithm precondition
483 annotations.
484 (__is_heap): Moved away from here.
485 * include/bits/stl_heap.h: Added algorithm precondition
486 annotations.
487 (__is_heap): Moved to the top of this file.
488 (__is_heap): Added iterator range overloads.
489 * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
490 with changes in std_memory.h.
491 * testsuite/23_containers/list/operators/4.cc: Don't verify
492 performance guarantees when in debug mode.
493 * testsuite/23_containers/bitset/invalidation/1.cc: New.
494 * testsuite/23_containers/deque/invalidation/1.cc: New.
495 * testsuite/23_containers/deque/invalidation/2.cc: New.
496 * testsuite/23_containers/deque/invalidation/3.cc: New.
497 * testsuite/23_containers/deque/invalidation/4.cc: New.
498 * testsuite/23_containers/list/invalidation/1.cc: New.
499 * testsuite/23_containers/list/invalidation/2.cc: New.
500 * testsuite/23_containers/list/invalidation/3.cc: New.
501 * testsuite/23_containers/list/invalidation/4.cc: New.
502 * testsuite/23_containers/map/invalidation/1.cc: New.
503 * testsuite/23_containers/map/invalidation/2.cc: New.
504 * testsuite/23_containers/multimap/invalidation/1.cc: New.
505 * testsuite/23_containers/multimap/invalidation/2.cc: New.
506 * testsuite/23_containers/multiset/invalidation/1.cc: New.
507 * testsuite/23_containers/multiset/invalidation/2.cc: New.
508 * testsuite/23_containers/set/invalidation/1.cc: New.
509 * testsuite/23_containers/set/invalidation/2.cc: New.
510 * testsuite/23_containers/vector/invalidation/1.cc: New.
511 * testsuite/23_containers/vector/invalidation/2.cc: New.
512 * testsuite/23_containers/vector/invalidation/3.cc: New.
513 * testsuite/23_containers/vector/invalidation/4.cc: New.
514 * testsuite/25_algorithms/heap.cc: Don't verify
515 performance guarantees when in debug mode.
516 * include/debug/bitset: New.
517 * include/debug/debug.h: New.
518 * include/debug/deque: New.
519 * include/debug/formatter.h: New.
520 * include/debug/hash_map: New.
521 * include/debug/hash_map.h: New.
522 * include/debug/hash_multimap.h: New.
523 * include/debug/hash_set: New.
524 * include/debug/hash_set.h: New.
525 * include/debug/hash_multiset.h: New.
526 * include/debug/list: New.
527 * include/debug/map: New.
528 * include/debug/map.h: New.
529 * include/debug/multimap.h: New.
530 * include/debug/multiset.h: New.
531 * include/debug/safe_base.h: New.
532 * include/debug/safe_iterator.h: New.
533 * include/debug/safe_iterator.tcc: New.
534 * include/debug/safe_sequence.h: New.
535 * include/debug/set: New.
536 * include/debug/set.h: New.
537 * include/debug/string: New.
538 * include/debug/vector: New.
539 * src/debug.cc: New.
540 * config/linker-map.gnu: Add debug mode symbols.
541
5422003-11-11 Benjamin Kosnik <bkoz@redhat.com>
543
544 * src/string-inst.cc: Tweak namespaces.
545 * src/misc-inst.cc: Same.
546 * docs/html/debug.html: Edits.
547 * config/link-map.gnu: Remove cruft.
548
549 * include/bits/c++config: Add in namespace associations.
550 * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
551 comment tweaks.
552 * include/bits/deque.tcc: Same.
553 * include/bits/list.tcc: Same.
554 * include/bits/stl_bvector.h: Same.
555 * include/bits/stl_deque.h: Same.
556 * include/bits/stl_list.h: Same.
557 * include/bits/stl_map.h: Same.
558 * include/bits/stl_multimap.h: Same.
559 * include/bits/stl_multiset.h: Same.
560 * include/bits/stl_set.h: Same.
561 * include/bits/stl_vector.h: Same.
562 * include/bits/vector.tcc: Same.
563
564 * include/std/std_algorithm.h: Remove markup comments.
565 * include/std/std_functional.h: Same.
566 * include/std/std_iterator.h: Same.
567 * include/std/std_numeric.h: Same.
568 * include/std/std_utility.h: Same.
569 * include/bits/stl_queue.h: Formatting tweaks.
570 * include/bits/stl_stack.h: Same.
571 * include/std/std_deque.h: Include debugging version in debug mode.
572 * include/std/std_list.h: Same.
573 * include/std/std_map.h: Same.
574 * include/std/std_set.h: Same.
575 * include/std/std_vector.h: Same.
576 * include/std/std_queue.h: Use deque, vector.
577 * include/std/std_stack.h: Same.
578
f6a7db9e
PC
5792003-11-09 Paolo Carlini <pcarlini@suse.de>
580
581 * include/bits/locale_facets.tcc (_M_insert_int,
582 _M_insert_float): Move a couple of vars inside an if block.
583
7c752655
PC
5842003-11-09 Paolo Carlini <pcarlini@suse.de>
585
586 PR libstdc++/12971
587 * include/bits/locale_facets.tcc
588 (money_put::do_put(..., long double)): Fix conversion
589 specification as per DR 328 [WP].
590 * testsuite/22_locale/money_put/put/char/12971.cc: Add.
591 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
592 * docs/html/ext/howto.html: Add entry for DR 328.
593
41d3a0c3
PC
5942003-11-08 Paolo Carlini <pcarlini@suse.de>
595
596 PR libstdc++/12967
597 * include/bits/list.tcc (merge): Implement resolution of
598 DR 300 [WP].
599 * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
600 for DR 231.
601
602 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
603 Import R27.
604
3ab3dca6
JW
6052003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
606
607 * libsupc++/vec.cc: Conform to C++STYLE.
608
2d369f35
CW
6092003-11-07 Carlo Wood <carlo@alinoe.com>
610
611 PR libstdc++/12736
612 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
613 (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
614 K, V, r and A qualifiers before processing them as a group.
615 * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
616 * testsuite/demangle/regression/cw-16.cc: New.
617
b938ad89
RM
6182003-11-07 Robert Millan <robertmh@gnu.org>
619
f6a7db9e
PC
620 * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
621 * crossconfig.m4: Likewise.
622 * configure: Regenerate.
b938ad89 623
eb622d37
CW
6242003-11-07 Carlo Wood <carlo@alinoe.com>
625
f6a7db9e
PC
626 * include/bits/demangle.h
627 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
628 string_type&, bool member_function_pointer_qualifiers):
629 Always separate the '[' of an array type with a space from
630 what is left of it, except when that is the closing bracket
631 of another array dimension.
eb622d37 632
2215f732
CW
6332003-11-07 Carlo Wood <carlo@alinoe.com>
634
f6a7db9e 635 * include/bits/demangle.h
2215f732
CW
636 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
637 string_type&, bool) const): Made const.
638 (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
639 (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
640 std::ostream& operator<<(std::ostream&, qualifier const&),
641 std::ostream& operator<<(std::ostream&, qualifier_list const&),
642 qualifier_list<Allocator>::decode_qualifiers(string_type&,
643 string_type&, bool) const,
644 session<Allocator>::decode_type_with_postfix(string_type&,
645 string_type&, qualifier_list<Allocator>*))
646 Added and/or changed debug-only hooks and code.
647
d30b600a
JO
6482003-11-04 Jeffrey D. Oldham <oldham@codesourcery.com>
649
650 * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
651 immediately return. This reflects a C++ ABI change 2003 Nov 03.
652 (__cxa_vec_delete3): Likewise.
653
5e93f39f
PR
6542003-11-03 Petur Runolfsson <peturr02@ru.is>
655
656 PR libstdc++/12790
657 * include/bits/fstream.tcc: Delete _M_last_overflowed.
658 (basic_filebuf::basic_filebuf): Initialize _M_state_last.
659 (basic_filebuf::open, basic_filebuf::close): Assign
660 _M_state_beg to _M_state_cur and _M_state_last.
661 (basic_filebuf::close): Call _M_terminate_output to handle
662 unshift and flushing.
663 (basic_filebuf::underflow): Assign _M_state_last, throw
664 exception instead of calling abort when codecvt::max_length()
665 is bad.
666 (basic_filebuf::seekoff): Use _M_state_last when calling
667 codecvt::length(), pass correct state to _M_seek.
668 (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
669 (basic_filebuf::_M_seek): Add __state_type parameter,
670 set _M_state_cur correctly, store the resulting state in
671 the return value and use _M_terminate_output to handle
672 flushing and unshift.
673 (basic_filebuf::_M_terminate_output): Flush contents of
674 output buffer, if any, then call codecvt::unshift as
675 needed and output the result.
676 (basic_filebuf::sync): Move here, don't modify _M_writing
677 or _M_reading.
678
679 * include/std/std_fstream.h
680 (basic_filebuf::_M_state_last): Declare it.
681 (basic_filebuf::_M_last_overflowed): Delete.
682 (basic_filebuf::_M_seek): Add __state_type parameter.
683 (basic_filebuf::sync): Declare only.
684 (basic_filebuf::_M_output_unshift): Delete.
685 (basic_filebuf::_M_terminate_output): Declare it.
686
687 * testsuite/testsuite_character.h:
688 Define character class and state class plus char_traits and
689 codecvt specializations for same for testing support for
690 stateful encodings.
691
692 * testsuite/27_io/basic_filebuf/close/12790-1.cc,
693 * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
694 * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
695 * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
696 * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
697 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
698 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
699 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
700 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
701 * testsuite/27_io/basic_filebuf/open/12790-1.cc,
702 * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
703 * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
704 * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
705 * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
706 * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
707 * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
708 * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
709 * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
710 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
711 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
712 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
713 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
714 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
715 * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
716 * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
717 * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
718 * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
719 * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
720 * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
721 * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
722 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
723 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
724 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
725 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
726 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
727 * testsuite/27_io/basic_filebuf/sync/char/1.cc,
728 * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
729 New tests.
730
731 * testsuite/27_io/basic_filebuf/3.cc,
732 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
733 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
734 * testsuite/27_io/basic_fstream/3.cc,
735 * testsuite/27_io/basic_ifstream/3.cc,
736 * testsuite/27_io/basic_ofstream/3.cc:
737 Use streamoff as off_type and fpos<state_type> as pos_type.
738
739 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
740 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
741 Check that sync does *not* set _M_writing to false.
742
1b9e6d64
AG
7432003-11-03 Anthony Green <green@redhat.com>
744
745 * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
746 they're used.
747
e0f05105
BK
7482003-11-03 Benjamin Kosnik <bkoz@redhat.com>
749
750 * include/bits/locale_facets.h (time_get::_M_extract_name): Add
751 ctype argument.
752 * include/bits/locale_facets.tcc: Same, use it to allow
753 capitalized names.
754
755 * include/bits/fstream.tcc: Spacing tweak.
756 * include/bits/istream.tcc: Same.
757 * include/bits/ostream.tcc: Same.
758
08b9183d
PC
7592003-10-30 Paolo Carlini <pcarlini@suse.de>
760
761 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
762 __mod is only assigned, never used its value, remove it.
763
f1e7988a
PC
7642003-10-29 Paolo Carlini <pcarlini@suse.de>
765
766 * include/bits/locale_facets.tcc (time_get::do_get_year):
767 Absolutely avoid dereferencing end iterators.
768 (time_put::put): Minor clean up.
769
770 * include/bits/locale_facets.tcc: Cosmetic reformattings.
771
58c9703f
PC
7722003-10-29 Paolo Carlini <pcarlini@suse.de>
773
774 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
775 Revert the last commit, is not correct, sorry.
776
4f363232
PC
7772003-10-29 Paolo Carlini <pcarlini@suse.de>
778
779 * config/locale/generic/c_locale.cc: Add back <cmath> and
780 <cstdlib>.
781
782 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
783 Clean up.
784
6bf0b59c
PC
7852003-10-29 Paolo Carlini <pcarlini@suse.de>
786
787 * include/bits/locale_facets.tcc (time_put::put): Absolutely
788 avoid dereferencing end iterators; clean up.
789
790 * include/bits/locale_facets.tcc (num_get::_M_extract_float,
791 num_get::_M_extract_int): Minor tweak.
792
c9cca2c2
PC
7932003-10-29 Paolo Carlini <pcarlini@suse.de>
794
795 * include/bits/locale_facets.tcc: Remove some unnecessary
796 includes.
797 * config/locale/generic/c_locale.cc: Include <cerrno> here.
798 * config/locale/gnu/c_locale.cc: Likewise.
799
157f3283
PC
8002003-10-28 Paolo Carlini <pcarlini@suse.de>
801
802 * include/bits/locale_facets.tcc
803 (money_get<>::do_get(..., string_type&)): Absolutely avoid
804 dereferencing end iterators; general clean up.
805
cc27f5a2
PC
8062003-10-28 Paolo Carlini <pcarlini@suse.de>
807
808 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
809 Absolutely avoid dereferencing end iterators.
810 (time_get::_M_extract_name): Likewise.
811
812 * include/bits/locale_facets.tcc
813 (time_get::_M_extract_via_format, case 'e'): Don't try to
814 be smart wrt returning the right __beg in case of parse
815 error, time_get::_M_extract_num must be fixed instead.
816
0c6b814a
PC
8172003-10-27 Paolo Carlini <pcarlini@suse.de>
818
819 PR libstdc++/12778
820 * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
821 * aclocal.m4: Regenerate.
822 * configure: Regenerate.
823
0f09879b
BK
8242003-10-27 Benjamin Kosnik <bkoz@redhat.com>
825
826 * docs/html/17_intro/TODO: Add links.
827 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
828 Uncomment.
829
f20d2b78
PC
8302003-10-27 Paolo Carlini <pcarlini@suse.de>
831
832 PR libstdc++/12750
833 * include/bits/locale_facets.tcc
834 (time_get::_M_extract_via_format): Deal with code 'e'.
835 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
836 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
837
838 * include/bits/locale_facets.tcc
839 (time_get::_M_extract_via_format): Tweak to absolutely avoid
840 dereferencing end iterators.
841
842 * include/bits/locale_facets.h (__verify_grouping):
843 Const-ify second parameter.
844 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
845 * src/locale-inst.cc (__verify_grouping): Ditto.
846
8472003-10-27 Paolo Carlini <pcarlini@suse.de>
848
849 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
850 Various things: 1- Avoid absolutely end iterator dereferences;
851 2- Improve performance-wise the code skipping leading zeros;
852 3- Fix two bugs wrt early bail out in case of parsing errors
853 (see testcases); 4- General clean up.
854 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
855 use __builtin_expect to favor base 10 inputs.
856 * testsuite/22_locale/num_get/get/char/7.cc: New.
857 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
858
f883c8dc
PC
8592003-10-26 Paolo Carlini <pcarlini@suse.de>
860
861 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
862 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
863
999bf60f
PC
8642003-10-25 Paolo Carlini <pcarlini@suse.de>
865
866 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
867 __pos in only incremented, never used its value, remove it.
868
b2398b49
RM
8692003-10-24 Robert Millan <robertmh@gnu.org>
870
871 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
872 and knetbsd*-gnu.
873 * aclocal.m4: Regenerated.
874 * configure: Regenerated.
875
761faeec
PC
8762003-10-24 Paolo Carlini <pcarlini@suse.de>
877
878 * include/bits/locale_facets.tcc (money_get::do_get(...,
879 long double&): Properly size the temporary buffer.
880 * testsuite/22_locale/money_get/get/char/11.cc: New.
881 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
882
883 * include/bits/locale_facets.tcc (num_put::_M_group_int,
884 num_put::_M_group_float, money_put::do_put(..., const
885 string_type&), collate::do_compare, collate::do_transform):
886 Prefer basic_string::data() to c_str() when the '\0'
887 terminator is not really needed.
888
eebf21ef
PC
8892003-10-24 Paolo Carlini <pcarlini@suse.de>
890
891 * include/bits/locale_facets.tcc (__verify_grouping):
892 Prefer '=' to an unnecessary '&='.
893
ebaeca8b
PC
8942003-10-24 Paolo Carlini <pcarlini@suse.de>
895
896 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
897 Tweak my fix for libstdc++/12657.
898
bf22935f
PC
8992003-10-24 Paolo Carlini <pcarlini@suse.de>
900
901 * include/bits/locale_facets.tcc (money_get::do_get(...,
902 string_type&): Minor tweak to the previous commit.
903
14628700
PC
9042003-10-24 Paolo Carlini <pcarlini@suse.de>
905
906 * include/bits/locale_facets.tcc (money_get::do_get(...,
907 string_type&): Disregard the previous commit: doesn't hurt but
908 doesn't accomplish anything useful either. This is the right
909 one, speeding up greatly the function in case of early fail.
910
cdd5cf72
PC
9112003-10-24 Paolo Carlini <pcarlini@suse.de>
912
913 * include/bits/locale_facets.tcc (money_get::do_get(...,
914 string_type&): Move an if block, thus minimizing the amount
915 of code processed anyway when __tmp_units.size() == 0.
916
c21dbe85
PC
9172003-10-24 Paolo Carlini <pcarlini@suse.de>
918
919 * include/bits/locale_facets.tcc
920 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
921 equivalent to 'y'.
922
d2c354f3
BK
9232003-10-23 Benjamin Kosnik <bkoz@redhat.com>
924
925 * docs/html/documentation.html: Add a pointer to the doxygen style
926 guide.
927 * docs/html/17_intro/TODO: Update.
928 * docs/html/test.html: Add instructions for running a subset of
929 tests, update.
930
60aa9fc3
PC
9312003-10-23 Paolo Carlini <pcarlini@suse.de>
932
933 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
934 string_type&)): Use find_first_not_of to strip leading
935 zeros; if __tmp_units == "0" never prefix it with '-';
936 always fail if __tmp_units is empty.
937 * testsuite/22_locale/money_get/get/char/10.cc: New.
938 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
939
861f9573
PE
9402003-10-23 Phil Edwards <phil@codesourcery.com>
941
942 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
943 2003-10-21 change.
944
3c21d6e0
PC
9452003-10-22 Paolo Carlini <pcarlini@suse.de>
946
947 * include/bits/locale_facets.tcc (__int_to_char): Remove
948 the const int parameter.
949 (_M_insert_int): Update caller.
950 * src/locale-inst.cc (__int_to_char): Update instantiations.
951
bf5fe473
BK
9522003-10-22 Benjamin Kosnik <bkoz@redhat.com>
953
954 * include/bits/locale_facets.h: Correct byname facets for "C"
955 locale.
956 * config/locale/generic/ctype_members.cc: Same.
957 * config/locale/generic/messages_members.h: Same.
958 * config/locale/gnu/ctype_members.cc: Same.
959 * config/locale/gnu/messages_members.h: Same.
960 * include/bits/codecvt.h: Same.
961 * src/ctype.cc: Same.
962 * testsuite/22_locale/codecvt_byname/1.cc: New.
963 * testsuite/22_locale/collate/1.cc: Edit.
964 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
965 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
966 * testsuite/22_locale/ctype/1.cc: Derivation tests.
967 * testsuite/22_locale/ctype/11844.cc: Move...
968 * testsuite/22_locale/ctype_base/11844.cc: ...here.
969 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
970 * testsuite/22_locale/ctype_byname/1.cc: Name.
971 * testsuite/22_locale/messages_byname/1.cc: New.
972 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
973 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
974 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
975 * testsuite/22_locale/numpunct/1.cc: Edit.
976 * testsuite/22_locale/numpunct_byname/2.cc: Move...
977 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
978 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
979 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
980
3d05b345
PC
9812003-10-22 Paolo Carlini <pcarlini@suse.de>
982
983 PR libstdc++/8610
984 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
985 checking for the availability of int64_t.
986 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
987 * configure.ac: Call here.
988 * acconfig.h: Add undef for the corresponding symbols.
989 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
990 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
991 (__basic_file<char>::seekoff): Likewise, call lseek64 when
992 available, otherwise lseek, checking the __off parameter.
993 * include/bits/postypes.h: Typedef __streamoff_base_type
994 to int64_t if available, otherwise long long.
995 * aclocal.m4: Regenerate.
996 * config.h.in: Likewise.
997 * configure: Likewise.
998
999 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
1000 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
1001
57d01e69
PC
10022003-10-22 Paolo Carlini <pcarlini@suse.de>
1003
1004 PR libstdc++/12657
1005 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1006 Implement resolution of DR 292 (WP).
1007 * docs/html/ext/howto.html: Add entry for DR 292.
1008
6b5a2662
BK
10092003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1010
1011 * include/ext/mt_allocator.h: Change include to gthr.h.
1012 * include/ext/rope: Same. Add _Refcount_base definitions.
1013 * include/ext/pool_allocator.h: Adjust namespaces.
1014 * include/bits/stl_threads.h (_Refcount_base): Move.
1015 Put remaining into namespace __gnu_cxx.
1016
82c2e3d4
BK
10172003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1018
1019 PR libstdc++/9858
1020 * include/bits/locale_facets.h (ctype<char>): Remove
1021 __ctype_abstract_base.
1022 (ctype<char>::do_is): Remove.
1023 (ctype<char>::do_scan_is): Remove.
1024 * src/ctype.cc: Same. Inline the rest.
1025 * testsuite/22_locale/ctype/is/char/9858.cc: New.
1026 * config/os/aix/ctype_noninline.h: Adjust ctor.
1027 * config/os/bsd/freebsd/ctype_noninline.h: Same.
1028 * config/os/bsd/netbsd/ctype_noninline.h: Same.
1029 * config/os/djgpp/ctype_noninline.h: Same.
1030 * config/os/generic/ctype_noninline.h: Same.
1031 * config/os/gnu-linux/ctype_noninline.h: Same.
1032 * config/os/hpux/ctype_noninline.h: Same.
1033 * config/os/irix/irix5.2/ctype_noninline.h: Same.
1034 * config/os/irix/irix6.5/ctype_noninline.h: Same.
1035 * config/os/mingw32/ctype_noninline.h: Same.
1036 * config/os/newlib/ctype_noninline.h: Same.
1037 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
1038 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
1039 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
1040 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
1041 * config/os/windiss/ctype_noninline.h: Same.
1042
d23ad8c8
PC
10432003-10-21 Paolo Carlini <pcarlini@suse.de>
1044
1045 * src/locale.cc: Tweak a comment.
1046 * src/localename.cc: Move a comment.
1047
9540958e
BK
10482003-10-20 Benjamin Kosnik <bkoz@redhat.com>
1049
1050 PR libstdc++/10081
1051 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
1052 * testsuite_hooks.cc: Same.
1053 * 22_locale/numpunct/members/pod/1.cc: Edit.
1054 * 22_locale/numpunct/members/pod/2.cc: Same.
1055 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
1056 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
1057 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
1058 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
1059 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
1060 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
1061 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
1062 * 27_io/basic_istream/sentry/pod/1.cc: New.
1063 * 27_io/basic_ostream/sentry/pod/1.cc: New.
1064 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
1065 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
1066
27d54b2a
RO
10672003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1068
1069 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
1070 of external _MIPS_SIM_ABI32.
1071
65fc9769
PE
10722003-10-20 Phil Edwards <phil@codesourcery.com>
1073
1074 * configure.ac: Fix comment typo.
1075 * configure.host: Add vxworks to host_os switch.
1076 * crossconfig.m4: Remove old commented os_include_dir variables
1077 left over from autotools transition.
1078 (*-vxworks): New stanza.
1079 (*-windiss): Add missing symbols.
1080 * configure: Regenerate.
1081 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
1082 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
1083 New files.
1084 * config/os/windiss/os_defines.h: Define __C9X__.
1085
47395a24
DE
10862003-10-19 David Edelsohn <edelsohn@gnu.org>
1087
1088 PR other/12506
1089 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
1090
8f4c7b67
AT
10912003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
1092
1093 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
1094 confusion of the use of the gthr API when __gthread_active_p()
1095 returns true.
1096
c755e77d
BK
10972003-10-17 Benjamin Kosnik <bkoz@redhat.com>
1098
1099 * src/Makefile.am: Add new files.
1100 * src/Makefile.in: Regenerate.
1101 * src/globals.cc: Split into..
1102 * src/globals_io.cc: New.
1103 * src/globals_locale.cc: New.
1104 * src/ios.cc: Split into...
1105 * src/ios_init.cc: New.
1106 * src/ios_locale.cc: New.
1107 * src/locale-inst.cc: Split into..
1108 * src/wlocale-inst.cc: New.
1109 * src/locale-misc-inst.cc: New.
1110 * src/locale.cc, src/localename: Split into...
1111 * src/locale_facets.cc: New.
1112 * src/locale_init.cc: New.
1113 * src/wstring-inst.cc: Add copyright info.
1114
4c4809c1
BK
11152003-10-16 Petur Runolfsson <peturr02@ru.is>
1116
4c4809c1
BK
1117 PR libstdc++/11450
1118 PR libstdc++/11543
1119 PR libstdc++/12065
1120 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
1121 Change return value from streampos to streamoff.
1122 (__basic_file::seekpos): Delete.
1123 * config/io/basic_file_stdio.h: Same.
1124 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
1125 * include/Makefile.am (bits_headers): Add bits/postypes.h.
1126 * include/bits/char_traits.h: Include bits/postypes.h instead of
1127 bits/fpos.h.
1128 * include/bits/fstream.tcc (basic_filebuf::open,
1129 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
1130 values, use == and != instead.
1131 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
1132 to pos_type.
1133 (basic_filebuf::imbue): Don't use ! on pos_type values, use
1134 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
1135 * include/bits/postypes.h: New file.
1136 Add __streamoff_base_type typedef, streamsize.
1137 (streamoff, streampos, wstreampos): Define typedefs, with
1138 streamoff defined as...
1139 (streamoff): New class. Document implementation defined
1140 aspects.
1141 (fpos): New implementation. Document implementation defined
1142 aspects.
1143 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
1144 explicit conversion from pos_type to off_type.
1145 * include/std/std_iosfwd.h: Include bits/postypes.h instead
1146 of bits/fpos.h.
1147 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
1148 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
1149 * testsuite/27_io/fpos/11450.cc: New test.
1150 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
1151 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
1152 * testsuite/27_io/types/3.cc: New test.
1153
11542003-10-16 Benjamin Kosnik <bkoz@redhat.com>
f883c8dc
PC
1155
1156 * configure.host: Remove fpos_include_dir.
1157 * configure.ac: Remove FPOS_INC_SRCDIR.
1158 * configure: Regenerate.
1159 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
1160 * aclocal.m4: Regenerate.
1161 * include/Makefile.am (host_headers): Remove fpos.h.
1162 (bits_headers): Add postypes.h.
1163 * include/Makefile.in: Regenerate.
1164 * config/os/gnu-linux/fposh: Remove.
1165 * config/os/generic/fpos.h: Remove.
1166
1167 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
1168 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
1169 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
1170 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
1171 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
1172 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
1173 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
1174 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
1175 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
1176 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
1177 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
1178 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
1179 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
1180 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
1181 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
1182 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1183 * testsuite/27_io/objects/char/10.cc: Same.
4c4809c1 1184
0392ff98
PC
11852003-10-16 Paolo Carlini <pcarlini@suse.de>
1186
1187 * src/locale.cc (locale::locale(const char*)): ... one
1188 more comparison missed in the previous commit.
1189
d2f663d1
BK
11902003-10-16 Benjamin Kosnik <bkoz@redhat.com>
1191
5d78fe72
BK
1192 * acconfig.h: Add HAVE_DRAND48.
1193 * crossconfig.m4: Remove ISATTY.
d2f663d1
BK
1194 * aclocal.m4: Regenerated.
1195 * config.h.in: Regenerated.
5d78fe72 1196 * configure: Regenerated.
d2f663d1 1197
068c84e3
BI
11982003-10-16 Bernardo Innocenti <bernie@develer.com>
1199
1200 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
1201 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
1202 Document SMP safeness of asm macros.
1203
eaed902b
PC
12042003-10-16 Paolo Carlini <pcarlini@suse.de>
1205
1206 * src/locale.cc (locale::locale(const char*)): Tweak
1207 a couple of comparisons to use basic_string operators.
1208
f991b1d8
PC
12092003-10-16 Paolo Carlini <pcarlini@suse.de>
1210
1211 PR libstdc++/12540
1212 * config/locale/gnu/monetary_members.cc
1213 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
1214 Don't leak memory if new throws.
1215 * src/locale.cc (locale::locale(const char*)): In order not
1216 to leak memory in case new throws, use a basic_string type
1217 for __res too and avoid strdup.
1218
84e72d83
JB
12192003-10-14 Jeff Bailey <jbailey@nisa.net>
1220
1221 PR libstdc++/12562
1222 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
1223 * configure: Regenerate.
1224
be3faf89
CW
12252003-10-14 Carlo Wood <carlo@alinoe.com>
1226
1227 PR libstdc++/12600
1228 * include/bits/demangle.h (session<Allocator>::
1229 decode_unqualified_name(string_type& output)): Fail on a
1230 <operator-name> when decoding <template-argument>.
1231 * testsuite/demangle/regression/cw-15.cc: New.
1232
1638f5c9
PC
12332003-10-14 Paolo Carlini <pcarlini@unitus.it>
1234
1235 PR libstdc++/11480
1236 * include/bits/stl_algo.h (unique): Fix.
1237 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
1238 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
1239 * testsuite/25_algorithms/unique/2.cc: New.
1240
42db0f21
PC
12412003-10-14 Paolo Carlini <pcarlini@unitus.it>
1242
1243 * src/localename.cc (_M_replace_categories, M_replace_facet):
1244 Const-ify a couple of variables.
1245
9dccaa6b
PR
12462003-10-14 Petur Runolfsson <peturr02@ru.is>
1247 Andreas Tobler <a.tobler@schweiz.ch>
1248
1249 * src/locale.cc (locale::_S_initialize): Workaround a confusion
1250 of the use of the gthr API when __gthread_active_p() returns true.
1251
a62e7311
PR
12522003-10-12 Petur Runolfsson <peturr02@ru.is>
1253 Paolo Carlini <pcarlini@unitus.it>
1254
1255 PR libstdc++/11460
1256 * src/strstream.cc (pbackfail): Fix to use to_int_type.
1257 * testsuite/backward/11460.cc: New, from the PR.
1258
f5677b15
PC
12592003-10-12 Paolo Carlini <pcarlini@unitus.it>
1260
1261 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
1262 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
1263 * include/bits/basic_string.tcc: Likewise.
1264 * include/bits/ios_base.h: Likewise.
1265 * include/bits/istream.tcc: Likewise.
1266 * include/bits/locale_facets.tcc: Likewise.
1267 * include/bits/ostream.tcc: Likewise.
1268 * include/bits/stl_function.h: Likewise.
1269 * include/bits/stl_multiset.h: Likewise.
1270 * include/bits/stl_pair.h: Likewise.
1271 * include/bits/stl_set.h: Likewise.
1272 * include/bits/streambuf_iterator.h
1273 * include/std/std_iosfwd.h: Likewise.
1274 * include/std/std_istream.h: Likewise.
1275 * include/std/std_sstream.h: Likewise.
1276 * include/std/std_streambuf.h: Likewise.
1277 * src/ios.cc: Likewise.
1278 * include/bits/c++config:
1279 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
1280 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
1281 dg-error directive due to removal of a blank line.
1282 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1283
c411fdae
AT
12842003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
1285 Paolo Carlini <pcarlini@unitus.it>
1286
1287 PR libstdc++/11844/11740 (cont)
1288 * config/os/generic/ctype_inline.h (ctype<char>::is):
1289 Generically, use a bitmasksize of 15 (instead of 10);
1290 Fix the logic to actually return (M & m) != 0 as per
1291 22.2.1.1.2.
1292
796d7a86
BI
12932003-10-11 Bernardo Innocenti <bernie@develer.com>
1294
1295 * crossconfig.m4 (*-uclinux*): New target.
1296 * configure: Regenerate.
1297
6b61bca4
PC
12982003-10-10 Paolo Carlini <pcarlini@unitus.it>
1299
1300 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
1301 Avoid unnecessarily calling __builtin_alloca and dealing
1302 explicitly with width() smaller than zero.
1303 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
1304 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
1305 const char*), operator<<(basic_ostream<char, _Traits>&,
1306 const char*), operator<<(basic_ostream, const basic_string&)):
1307 Likewise.
1308
5aaa2108
BK
13092003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1310
1311 * config/linker-map.gnu: Make more *_type_info bits visible.
1312 Move new/delete bits back into GLIBCXX space.
1313
1314 * include/bits/locale_classes.h: Move _M_id out of line, so that
1315 locale::id::_S_highwater can be removed from the export list.
1316 * src/locale.cc (locale::id::_M_id): Define.
1317
64833be0
AT
13182003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
1319
1320 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
1321 SPARC64.
1322
2f800bcc
PC
13232003-10-09 Paolo Carlini <pcarlini@unitus.it>
1324
1325 PR libstdc++/11844
1326 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
1327 to conform to the requirements of 22.2.1.
1328 * config/os/bsd/freebsd/ctype_base.h: Likewise.
1329 * config/os/djgpp/ctype_base.h: Likewise.
1330 * config/os/generic/ctype_base.h: Likewise.
1331 * config/os/gnu-linux/ctype_base.h: Likewise.
1332 * config/os/hpux/ctype_base.h: Likewise.
1333 * config/os/irix/irix6.5/ctype_base.h: Likewise.
1334 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
1335 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
1336 * testsuite/22_locale/ctype/11844.cc: New.
1337
1338 * config/locale/generic/ctype_members.cc (do_is):
1339 Generically, use a bitmasksize of 15 (instead of 10), since
1340 we don't know the numerical encoding of the various categories
1341 in the underlying /usr/include/ctype.h.
1342
93d04686
BK
13432003-10-09 Benjamin Kosnik <bkoz@redhat.com>
1344
1345 * src/string-inst.cc: Prune.
1346 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1347 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1348
13492003-10-09 Petur Runolfsson <peturr02@ru.is>
1350
1351 * src/io-inst.cc: Don't include iostream.
1352 * include/bits/ios_base.h (ios_base::failure): Use string.
1353 * src/Makefile.am: Add ios_failure.cc.
1354 * src/Makefile.in: Regenerate.
1355 * src/ios.cc: Move ios_base::failure definitions to...
1356 * src/ios_failure.cc: ...here. New.
1357
1a139c59
PR
13582003-10-09 Petur Runolfsson <peturr02@ru.is>
1359
1360 PR libstdc++/9874
1361 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1362 Move code needed for both seekoff and seekpos...
1363 (basic_filebuf::_M_seek): ...here. New function.
1364 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
1365 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
1366 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
1367
1368 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
1369
a761195b
PC
13702003-10-08 Paolo Carlini <pcarlini@unitus.it>
1371
1372 * include/bits/locale_facets.tcc: More minor cosmetic
1373 changes and const-ifications of some variables.
1374
905df1fb
PC
13752003-10-07 Paolo Carlini <pcarlini@unitus.it>
1376
1377 * include/bits/locale_facets.tcc: Minor cosmetic changes
1378 and const-ifications of some variables.
1379
1380 * include/bits/locale_facets.tcc
1381 (money_get::do_get(..., string_type&)): Simplify an if-else.
1382
ba9b12d1
PC
13832003-10-06 Paolo Carlini <pcarlini@unitus.it>
1384
1385 PR libstdc++/11740
1386 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
1387 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
1388 * config/locale/generic/ctype_members.cc: Same.
1389 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
1390
e4f7d0a1
PC
13912003-10-06 Paolo Carlini <pcarlini@unitus.it>
1392
1393 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
1394 Improve performance-wise: avoid one traits::copy, avoid
1395 the __builtin_alloca, streamline.
1396
5b577977
PC
13972003-10-05 Paolo Carlini <pcarlini@unitus.it>
1398
1399 * include/bits/locale_facets.tcc
1400 (num_put::do_put(..., bool)): Prefer ?: to if-else.
1401 (time_get::_M_extract_name): Qualify min with std::.
1402 (__pad<>::_S_pad): Constify two variables; simplify an
1403 if-else statement factoring out some code.
1404
1405 * include/bits/locale_facets.tcc: Minor cosmetic changes.
1406
dff186db
PC
14072003-10-04 Paolo Carlini <pcarlini@unitus.it>
1408
1409 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1410 Constify a couple of variables.
1411 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
1412 ++__beg to *__beg++.
1413
2811b823
PC
14142003-10-04 Paolo Carlini <pcarlini@unitus.it>
1415 Petur Runolfsson <peturr02@ru.is>
1416
1417 * include/ext/stdio_sync_filebuf.h: Don't include the whole
1418 <fstream>, only <streambuf> and <cstdio>.
1419
184b434c
PC
14202003-10-04 Paolo Carlini <pcarlini@unitus.it>
1421
1422 PR libstdc++/12206
1423 * include/bits/fstream.tcc (imbue): In case a codecvt facet
1424 is not available, set _M_codecvt = 0.
1425 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
1426
cafc7337
HB
14272003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
1428
1429 PR libstdc++/12451
1430 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
1431
bb1b12ec
BK
14322003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1433
1434 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
1435 * src/locale.cc: Define.
1436 * src/localename.cc: Use it.
1437 * config/locale/generic/time_members.h: Same.
1438 * config/locale/gnu/messages_members.h: Same.
1439 * config/locale/gnu/time_members.h: Same.
1440
8dcaff28
PC
14412003-10-02 Paolo Carlini <pcarlini@unitus.it>
1442
1443 PR libstdc++/12232
1444 * include/bits/fstream.tcc (seekoff): Ignore the openmode
1445 argument; simplify.
1446 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
1447 seekpos): Remove the openmode argument.
1448 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
1449 seekpos): Remove redundant placeholder for the openmode argument.
1450 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
1451 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
1452 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
1453 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
1454 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
1455
5c109a17
BK
14562003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1457
1458 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
1459 (locale::facet::_S_get_c_locale): Same.
1460
8ae81136
BK
14612003-10-02 Benjamin Kosnik <bkoz@redhat.com>
1462
1463 * config/linker-map.gnu: Export _S_get_c_locale instead of
1464 _S_c_locale object.
1465
14662003-10-02 Petur Runolfsson <peturr02@ru.is>
1467
1468 * config/locale/generic/c_locale.cc
1469 (category_names, locale::_S_categories): Const qualify.
1470 * config/locale/gnu/c_locale.cc: Same.
1471 * config/locale/generic/time_members.h (__timepunct::__timepunct):
1472 Copy string contents before assigning to _M_name_timepunct,
1473 qualify strcpy and strlen with std::.
1474 * config/locale/gnu/time_members.h: Same.
1475 * config/locale/gnu/messages_members.h (messages::messages):
1476 Copy string contents before assigning to _M_name_messages,
1477 qualify strcpy and strlen with std::.
1478 * config/os/gnu-linux/ctype_noninline.h
1479 (ctype<char>::classic_table()): Don't call locale::classic().
1480 * include/bits/locale_classes.h
1481 (locale::_S_categories): Const qualify.
1482 (locale::_S_once, locale::_S_initialize_once,
1483 locale::facet::_S_once, locale::facet::_S_initialize_once,
1484 locale::facet::_S_get_c_locale): Declare.
1485 (locale::_S_initialize): Don't define.
1486 (locale::facet::_S_c_locale): Make private.
1487 (locale::facet::_S_c_name): Same, const qualify.
1488 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
1489 parameters, add throw() specifier.
1490 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
1491 messages::_M_name_messages): Const qualify.
1492 * src/locale.cc
1493 (locale::_S_once, locale::facet::_S_once): Define.
1494 (locale::classic): Move initialization code...
1495 (locale::_S_initialize_once): ...here.
1496 (locale::_S_initialize): Call _S_initialize_once through
1497 __gthread_once.
1498 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
1499 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
1500 __gthread_once before returning _S_c_locale.
1501 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
1502 Drop unused parameters, add throw() specifier, don't initialize
1503 locale::facet::_S_c_locale and _S_c_name.
1504
1505 * config/locale/generic/messages_members.h:
1506 Replace _S_c_locale with _S_get_c_locale().
1507 * config/locale/gnu/c_locale.cc: Same.
1508 * config/locale/gnu/messages_members.h: Same.
1509 * config/locale/gnu/numeric_members.cc: Same.
1510 * config/locale/gnu/time_members.cc: Same.
1511 * config/os/gnu-linux/ctype_noninline.h: Same.
1512 * include/bits/locale_facets.h: Same.
1513 * include/bits/locale_facets.tcc: Same.
1514 * src/codecvt.cc: Same.
1515 * src/ctype.cc: Same.
1516
4a035cf7
CW
15172003-10-02 Carlo Wood <carlo@alinoe.com>
1518
1519 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
1520 Decode symbols that start with _GLOBAL_[ID]_ differently: the
1521 trailing part ends with a terminating zero and is not necessarily an
1522 encoding.
1523 * src/demangle.cc (): Same.
1524 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
1525
86b4ab73
PC
15262003-10-02 Paolo Carlini <pcarlini@unitus.it>
1527
1528 * testsuite/22_locale/locale/cons/12438.cc: Use
1529 __gnu_test::try_named_locale("").
1530
222a5b1d
RO
15312003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1532
1533 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
1534 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
1535 instead of drand48.
1536 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
1537 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
1538 HAVE_DRAND48.
1539 * config.h.in, configure: Regenerate.
1540 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
1541 lrand48 use.
1542
e39dd1ce
NM
15432003-10-01 Nathan Myers <ncm@cantrip.org>
1544
1545 * include/bits/locale_facets.tcc (time_put::put): Avoid
1546 expensive *__s++, in favor of *__s, ++__s.
1547
530ce551
PC
15482003-10-01 Paolo Carlini <pcarlini@unitus.it>
1549
1550 * include/bits/locale_facets.tcc (time_put::put): Minor
1551 tweak to the previous commit.
1552
52a16d08
PC
15532003-10-01 Paolo Carlini <pcarlini@unitus.it>
1554
1555 PR libstdc++/12439
1556 * include/bits/locale_facets.tcc (time_put::put): Deal
1557 with the three issues pointed out by the PR.
1558 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
1559 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
1560 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
1561 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
1562 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
1563
ae7c3ba5
PC
15642003-09-30 Paolo Carlini <pcarlini@unitus.it>
1565
1566 * include/bits/stl_algo.h: Minor cosmetic reformattings.
1567
cbc6c296
PC
15682003-09-30 Paolo Carlini <pcarlini@unitus.it>
1569
1570 * include/bits/stl_algo.h (search_n): Tweak, to spare the
1571 first --__n.
1572
2ea247d3
PC
15732003-09-30 Paolo Carlini <pcarlini@unitus.it>
1574
1575 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
1576 qualify exception name.
1577
155f6fbb
PC
15782003-09-30 Paolo Carlini <pcarlini@unitus.it>
1579
1580 PR libstdc++/12438
1581 * include/bits/locale_facets.tcc (locale::combine): Don't
1582 leak memory if _M_replace_facet throws.
1583 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
1584
1585 * include/bits/locale_classes.h (locale::locale(const locale&,
1586 _Facet*)): Tweak, use consistently _M_remove_reference.
1587
70863cbd
PC
15882003-09-30 Paolo Carlini <pcarlini@unitus.it>
1589
1590 PR libstdc++/12352 (cont)
1591 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
1592 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
1593 calls fail.
1594 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
1595 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
1596 !_M_caches, !_M_names.
1597
51ac684e
RO
15982003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1599
1600 * configure.host: Handle Solaris 2.5 micro releases explicitly.
1601 Remove wildcards from Solaris 2.6, 7-9: there were no
1602 micro releases.
1603 Treat Solaris 10 and up like 7-9.
1604
6821a40b
PC
16052003-09-29 Paolo Carlini <pcarlini@unitus.it>
1606
1607 * include/bits/stl_algo.h (search_n): Improve the previous
1608 fix as suggested by Martin.
1609
e5012ba5
PC
16102003-09-29 Paolo Carlini <pcarlini@unitus.it>
1611
1612 PR libstdc++/12296
1613 * include/bits/istream.tcc (peek): Set eofbit if sgetc
1614 returns eof.
1615 * testsuite/27_io/basic_istream/peek/char/12296.cc:
1616 New, from the PR.
1617
16182003-09-29 Nathan Myers <ncm@cantrip.org>
1619 Paolo Carlini <pcarlini@unitus.it>
1620
1621 PR libstdc++/11400
1622 * include/bits/stl_algo.h (search_n):
1623 Use iterator_traits<>::difference_type for __n.
1624 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
1625
6cd6aed7
PC
16262003-09-29 Paolo Carlini <pcarlini@unitus.it>
1627
1628 * testsuite/22_locale/locale/cons/12352.cc:
1629 Use __attribute__((unused)) for test.
1630
33b16690
UW
16312003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
1632
1633 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
1634 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
1635 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
1636
2d07c3f5
BS
16372003-09-26 Brad Spencer <spencer@infointeractive.com>
1638
1639 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
1640 Explicitly qualify exceptions.
1641 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
1642 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1643 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1644 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1645
91675f9d
PC
16462003-09-25 Paolo Carlini <pcarlini@unitus.it>
1647
1648 PR libstdc++/12352
1649 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
1650 size_t)): Don't leak if memory allocations for _M_facets,
1651 _M_caches, and _M_names fail.
1652 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
1653 (locale::_Impl::_M_replace_categories(const _Impl*,
1654 category)): Ditto.
1655 (locale::_Impl::_M_install_facet(const locale::id*,
1656 const facet*)): Ditto.
1657 * include/bits/locale_classes.h (locale::locale(const locale&,
1658 _Facet*)): Don't leak memory.
1659 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
1660
1661 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
1662 bool)): Qualify with std:: strcpy, tweak.
1663 * include/bits/locale_classes.h
1664 (locale::_Impl::_M_check_same_name): Qualify strcmp.
1665
2b1be54b
BS
16662003-09-25 Brad Spencer <spencer@infointeractive.com>
1667
1668 PR libstdc++/6072
775ee48e
BK
1669 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
1670 wcstof, iswblank.
2b1be54b
BS
1671 * aclocal.m4: Regenerate.
1672 * config.h.in: Regenerate.
1673 * configure: Regenerate.
1674 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
1675 * config/io/basic_file_stdio.cc: Guard unistd.h.
1676 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
1677 * include/c_std/std_cwchar.h: Same.
1678 * include/c_std/std_cwctype.h: Same.
1679
465ad0c7
BK
16802003-09-25 Benjamin Kosnik <bkoz@redhat.com>
1681
775ee48e 1682 PR libstdc++/11065
465ad0c7
BK
1683 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
1684 * config/locale/generic/ctype_members.cc: Same.
1685 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
1686 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
1687
1688 * config/os/generic/ctype_inline.h: Update.
1689
7b865c36
UW
16902003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
1691
1692 * src/Makefile.am (version_dep): New variable.
1693 (libstdc___la_DEPENDENCIES): Use it to add dependency on
1694 libstdc++-symbol.ver only when using symbol versioning.
1695 * src/Makefile.in: Regenerate.
1696
11f10e6b
BK
16972003-09-23 Benjamin Kosnik <bkoz@redhat.com>
1698
1699 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
1700 * testsuite/testsuite_hooks.h: Same.
1701 * testsuite/*/*.cc: Same.
1702
89ec0c4b
PR
17032003-09-22 Petur Runolfsson <peturr02@ru.is>
1704
1705 * include/bits/istream.tcc (basic_istream::read,
1706 basic_istream::readsome, basic_istream::putback,
1707 basic_istream::unget, operator>>(basic_istream, CharT)):
1708 Avoid redundant setstate(failbit) calls when sentry::operator bool()
1709 returns false.
1710
dc25fbc7
CW
17112003-09-22 Carlo Wood <carlo@alinoe.com>
1712
1713 PR libstdc++/12365
1714 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
1715 char const*, int, int)): Remove unused identifier
1716 cv_qualifier for overloaded constructor.
1717
b2bc3339
BK
17182003-09-18 Benjamin Kosnik <bkoz@redhat.com>
1719
1720 PR libstdc++/11504
1721 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
1722 WARN_FLAGS, remove -Wno-format.
1723 * aclocal.m4: Regenerate.
1724 * configure: Regenerate.
1725
0b5ce4f1
PR
17262003-09-18 Petur Runolfsson <peturr02@ru.is>
1727
1728 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
1729 * config/io/basic_file_stdio.h: Same.
1730 * include/std/std_fstream.h (__ctype_type): Delete.
1731 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
1732
43892f8c
BK
17332003-09-17 Benjamin Kosnik <bkoz@redhat.com>
1734
1735 PR libstdc++/12239
1736 * configure.host (abi_baseline_pair): Error out on solaris2
1737 configurations without a minor version number.
1738
4bc8ae23
PE
17392003-09-13 Phil Edwards <phil@codesourcery.com>
1740
1741 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
1742 if man pages are on.
1743 * docs/doxygen/user.cfg.in: And here.
1744
dbc66058
DJ
17452003-09-10 Daniel Jacobowitz <drow@mvista.com>
1746 Andreas Jaeger <aj@suse.de>
1747
1748 PR libstdc++/12189
1749 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
1750 abi_check if cross compiling.
1751 * aclocal.m4: Regenerated.
1752 * configure: Regenerated.
1753
520abf69
JO
17542003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
1755
1756 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
1757 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
1758 (__cxa_vec_new3): Likewise.
1759
8c8dec01
PR
17602003-09-10 Petur Runolfsson <peturr02@ru.is>
1761
1762 * include/bits/fstream.tcc (basic_filebuf::seekoff):
1763 Use codecvt::length to handle variable-width stateless encodings
1764 correctly.
1765 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
1766 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
1767
80e46d77
AM
17682003-09-10 Alan Modra <amodra@bigpond.net.au>
1769
1770 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
1771 rather than or'ing.
1772
e517f636
AM
17732003-09-09 Alan Modra <amodra@bigpond.net.au>
1774
1775 * configure: Regenerate.
1776
263594d2
DE
17772003-09-09 David Edelsohn <edelsohn@gnu.org>
1778
1779 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
1780 qualifier from _S_synced_with_stdio.
1781
17822003-09-09 Bernardo Innocenti <bernie@develer.com>
e7f115de
BI
1783
1784 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
1785
f1813b69
PR
17862003-09-04 Petur Runolfsson <peturr02@ru.is>
1787
1788 PR libstdc++/9028
1789 * include/bits/fstream.tcc
1790 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
1791 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
1792 _M_ext_buf_size, _M_ext_next and _M_ext_end.
1793 (basic_filebuf::underflow): Handle variable-width stateless
1794 encodings (codecvt::encoding() == 0), including UTF-8.
1795 * include/std/std_fstream.h (basic_filebuf):
1796 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
1797 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
1798 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
1799 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
1800 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
1801 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
1802 * testsuite/27_io/objects/wchar_t/12.cc: New test.
1803 * testsuite/27_io/objects/wchar_t/13.cc: New test.
1804
7976070c
JW
18052003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
1806
1807 * docs/html/faq/index.html: Note that a namespace alias can't be
1808 used when specialising templates in extension namespace.
1809 * docs/html/faq/index.txt: Regenerate.
1810
149639d4
PR
18112003-09-03 Petur Runolfsson <peturr02@ru.is>
1812
1813 PR libstdc++/12048
1814 * include/ext/stdio_sync_filebuf.h
1815 (stdio_sync_filebuf::_M_unget_buf): Declare it.
1816 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
1817 (stdio_sync_filebuf::uflow): Store the returned character in
1818 _M_unget_buf.
1819 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
1820 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
1821 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
1822 _M_unget_buf, if any, else eof().
1823 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
1824 _M_unget_buf, if any, else eof().
1825 * testsuite/27_io/objects/char/12048.cc: Rename to...
1826 * testsuite/27_io/objects/char/12048-1.cc: ...this.
1827 * testsuite/27_io/objects/char/12048-2.cc: New test.
1828 * testsuite/27_io/objects/char/12048-3.cc: New test.
1829 * testsuite/27_io/objects/char/12048-4.cc: New test.
1830 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
1831 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
1832 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
1833 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
1834 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
1835 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
1836 * testsuite/ext/stdio_sync_filebuf_char.cc
1837 (test02, test03, test04, test05): New tests.
1838 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
1839 (test02, test03, test04, test05): New tests.
1840
18412003-09-03 Petur Runolfsson <peturr02@ru.is>
1842
1843 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
1844 stringbuf or strstreambuf. Fix typos.
1845
3660e02f
PE
18462003-09-02 Phil Edwards <phil@codesourcery.com>
1847
1848 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
1849 appropriately.
1850 * config.h.in: Add _GLIBCXX_HOSTED.
1851 * libsupc++/eh_term_handler.cc: Test it here; initialize
1852 __terminate_handler to std::abort if freestanding.
1853 * aclocal.m4, configure: Regenerated.
1854 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
1855
a3aff86a
NM
18562003-08-29 Nathan Myers <ncm@cantrip.org>
1857
1858 PR libstdc++/11990
1859 * include/bits/locale_facets.tcc (__pad): delete dead code.
1860
f5cf58dd
AM
18612003-08-28 Alan Modra <amodra@bigpond.net.au>
1862
1863 * configure.ac: Test $with_cross_host against $build_alias, not $build.
1864 * configure: Regenerate.
1865
3bedd161
PR
18662003-08-27 Petur Runolfsson <peturr02@ru.is>
1867
1868 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
1869 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
1870
ca618b60
PE
18712003-08-27 Phil Edwards <pme@gcc.gnu.org>
1872
1873 * Makefile.am: Remove trailing whitespace. Remove needless
1874 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
1875 * include/Makefile.am: Likewise.
1876 * libmath/Makefile.am: Likewise.
1877 * libsupc++/Makefile.am: Likewise.
1878 * po/Makefile.am: Likewise.
1879 * src/Makefile.am: Likewise.
1880 * testsuite/Makefile.am: Likewise.
1881
1882 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
1883 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1884 testsuite/Makefile.in: Regenerated.
1885
37e0ff11
PE
18862003-08-27 Phil Edwards <pme@gcc.gnu.org>
1887
1888 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
1889 includedir.
1890 * aclocal.m4, configure: Regenerate.
1891
72730fdb
DJ
18922003-08-27 Daniel Jacobowitz <drow@mvista.com>
1893
1894 * acinclude.m4: Include no-executables.m4.
1895 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
1896 * aclocal.m4: Regenerated.
1897 * configure: Regenerated.
1898
ec0d7421
DJ
18992003-08-27 Daniel Jacobowitz <drow@mvista.com>
1900
1901 * acinclude.m4: Don't call AC_ISC_POSIX.
1902 * aclocal.m4: Regenerated.
1903 * configure: Regenerated.
1904
92eabea2
PE
19052003-08-27 Phil Edwards <pme@gcc.gnu.org>
1906
1907 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
1908 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
1909 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
1910 used elsewhere in this file.
1911 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
1912 * configure.ac: ...called here to expand all conditionals.
1913 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
1914 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
1915 (install-freestanding-headers): New target, a subset of
1916 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
1917
1918 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1919 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1920 src/Makefile.in, testsuite/Makefile.in: Regenerated.
1921
a43d13fb
PE
19222003-08-26 Phil Edwards <pme@gcc.gnu.org>
1923
1924 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
1925 pathnames from generated tag file.
1926
82ba99d5
PE
19272003-08-26 Phil Edwards <pme@gcc.gnu.org>
1928
1929 * Makefile.am: Add comment.
1930 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
1931 SUBDIRS variables.
1932 * configure.ac: Use them both here, instead of hardcoded lists.
1933
1934 * fragment.am: Add STAMP varaible.
1935 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
1936 instead of @LN_S@.
1937 (stamp-*): Move file creation rule outside of 'if' branches to
1938 ensure the stamp-* files are actually updated. Use $(STAMP).
1939 * src/Makefile.am: Remove now-nonexistant variable.
1940 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
1941 for -prefer-pic.
1942 * po/Makefile.am: Include same fragment as all the others.
1943
1944 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1945 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
1946
73780bfe
LR
19472003-08-26 Loren J. Rittle <ljrittle@acm.org>
1948
1949 * testsuite/data/cin_unget-1.txt: New.
1950 * testsuite/27_io/objects/char/12048.cc: New.
1951
7e2055ec
ZW
19522003-08-25 Zack Weinberg <zack@codesourcery.com>
1953
1954 * config/os/hpux/os_defines.h: Unconditionally define
1955 _GLIBCXX_GTHREAD_USE_WEAK to 0.
1956
a6f3e253
GK
19572003-08-19 Geoffrey Keating <geoffk@apple.com>
1958
1959 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
1960 crosses to Darwin targets.
1961 * configure: Regenerate.
1962
1b391ba9
PR
19632003-08-19 Petur Runolfsson <peturr02@ru.is>
1964
7e2055ec
ZW
1965 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
1966
77e862fa
PE
19672003-08-17 Phil Edwards <pme@gcc.gnu.org>
1968
1969 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
1970 in the patch from 3 minutes ago. Boy, is my face red.
1971 * configure: At least I remembered to regenerate this.
1972
0df3f383
PE
19732003-08-17 Phil Edwards <pme@gcc.gnu.org>
1974
1975 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
1976 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
1977 things from the top level.
1978 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
1979 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
1980 (currently unused). Strip the fake-VPATH shell fragment from
1981 automake-generated rules, if present.
1982 * linkage.m4: Add comment.
1983
1984 * fragment.am: New file, containing factored-out common settings.
1985 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
1986 * Makefile.am: Include fragment.am. Remove common variables.
1987 * include/Makefile.am: Likewise.
1988 * libmath/Makefile.am: Likewise.
1989 * libsupc++/Makefile.am: Likewise.
1990 * po/Makefile.am: Likewise. Print rules during check.
1991 * src/Makefile.am: Likewise.
1992 * testsuite/Makefile.am: Likewise.
1993
1994 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
1995 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1996 src/Makefile.in, testsuite/Makefile.in: Regenerate.
1997
e885821f
JL
19982003-08-11 John Levon <levon@movementarian.org>
1999
2000 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
2001 remaining places for the name change from GLIBCPP_FORCE_NEW
2002 to GLIBCXX_FORCE_NEW
2003
2803847d
BK
20042003-08-11 Benjamin Kosnik <bkoz@redhat.com>
2005
2006 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
7e2055ec 2007 typedefs to num_*.
2803847d
BK
2008 * include/bits/basic_ios.tcc: Same.
2009 * include/bits/istream.tcc: Same.
2010 * include/bits/locale_facets.h: Same.
2011 * include/bits/ostream.tcc: Same.
2012 * include/std/std_istream.h: Same.
2013 * include/std/std_ostream.h: Same.
2014 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
2015
2016 * include/ext/rope: Remove build warning.
7e2055ec 2017
51c1f3c9
AJ
20182003-08-11 Andreas Jaeger <aj@suse.de>
2019
2020 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
2021 to make SMP-safe.
2022 * include/Makefile.in: Regenerated.
2023
f6dda651
PE
20242003-08-11 Phil Edwards <pme@gcc.gnu.org>
2025
2026 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
2027 when calling AC_PROG_CC.
2028 * aclocal.m4, configure: Regenerate.
2029
fbe057bb
PE
20302003-08-11 Phil Edwards <pme@gcc.gnu.org>
2031
2032 * acinclude.m4: Properly quote variable which will be expanded
2033 inside makefiles. Use CXX instead of CC to extract compiler info.
2034 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
2035 correct form in PACKAGE.
2036 * aclocal.m4, configure: Regenerate.
2037
258e7dbc
BK
20382003-08-08 Benjamin Kosnik <bkoz@redhat.com>
2039
2040 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
2041 (check-abi-verbose): Same.
2042 * testsuite/testsuite_performance.h (report_performance): Same.
7e2055ec 2043
3e083bea
LR
20442003-08-08 Loren J. Rittle <ljrittle@acm.org>
2045
2046 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2047
5a9ed693
DG
20482003-08-07 Doug Gregor <dgregor@apple.com>
2049
7e2055ec
ZW
2050 * include/bits/char_traits.h (char_traits::not_eof): Match operand
2051 types in ? :.
5a9ed693 2052
4e9ebd4b
BI
20532003-08-07 Bernardo Innocenti <bernie@develer.com>
2054
2055 PR libstdc++/11784
2056 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
2057 Replace variants with new BSET-based version.
7e2055ec 2058
a9ebaa2b
CW
20592003-08-07 Carlo Wood <carlo@alinoe.com>
2060
0df3f383 2061 * include/bits/demangle.h: Do not use cctype functions that depend
a9ebaa2b 2062 on locale.
7e2055ec 2063
8b171e55
PE
20642003-08-05 Phil Edwards <pme@gcc.gnu.org>
2065
2066 * configure.in: Rename...
2067 * configure.ac: ...to this.
2068 * docs/html/17_intro/porting.texi: Update name.
2069
2070 * docs/html/17_intro/porting.html: Regenerate.
2071 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2072 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2073 testsuite/Makefile.in: Regenerate (picks up new dependancy).
2074
1260d70f
PE
20752003-08-05 Phil Edwards <pme@gcc.gnu.org>
2076
2077 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
2078 pipe, open the window to let out the fumes, redo the option-handling
2079 logic to properly execute the detection test.
2080 * aclocal.m4, configure: Regenerate.
2081
ff66d28f
PE
20822003-08-04 Phil Edwards <pme@gcc.gnu.org>
2083
2084 Convert to new autotools.
2085 * acconfig.h: Update with correct names.
2086 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
2087 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
2088 * configure.in: Update. Split hardcoded cross-configury settings
2089 out to...
2090 * crossconfig.m4: ...here. New file. Contents untouched.
2091 * acinclude.m4: Reorganize and rewrite as needed. Split large
2092 chunks out to...
2093 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
2094 Contents untouched.
2095 * scripts/testsuite_flags.in: Update.
2096
2097 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
2098 variables (already generated by automake).
2099 * include/Makefile.am: Ditto.
2100 * libmath/Makefile.am: Ditto.
2101 * libsupc++/Makefile.am: Ditto.
2102 * po/Makefile.am: Ditto.
2103 * src/Makefile.am: Ditto.
2104
2105 * aclocal.m4: Regenerate using new versions.
2106 * config.h.in: Ditto.
2107 * configure: Ditto.
2108 * Makefile.in: Ditto.
2109 * include/Makefile.in: Ditto.
2110 * libmath/Makefile.in: Ditto.
2111 * libsupc++/Makefile.in: Ditto.
2112 * po/Makefile.in: Ditto.
2113 * src/Makefile.in: Ditto.
2114 * testsuite/Makefile.in: Ditto.
2115
5e7c251d
PE
21162003-08-04 Phil Edwards <pme@gcc.gnu.org>
2117
2118 * po/libstdc++.pot: Re-extract/regenerate.
2119
caf21254
PE
21202003-08-04 Phil Edwards <pme@gcc.gnu.org>
2121
2122 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
2123 Remove unneeded variable assignments. Leave them for automake.
2124 * testsuite/lib/libstdc++-v3.exp: Rename...
2125 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
2126 accordingly.
2127 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
2128 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
2129 names accordingly.
2130
f7ab5fa4
PE
21312003-08-04 Phil Edwards <pme@gcc.gnu.org>
2132
2133 * docs/doxygen/guide.html: run_doxygen uses bash.
2134 * docs/doxygen/mainpage.html: We'll be shipping tag files.
2135 * docs/doxygen/run_doxygen: Tweaks and improvements.
2136 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
2137 * docs/html/install.html: Update autoconf/automake requirements.
2138 * docs/html/test.html: Add section describing DejaGNU support.
2139 * docs/html/17_intro/confdeps.dot: New file, generates...
2140 * docs/html/17_intro/confdeps.png: ...this new file.
2141 * docs/html/Makefile: Generated here.
2142 * docs/html/17_intro/configury.html: New file.
2143
b3f2a032
PE
21442003-07-31 Phil Edwards <pme@gcc.gnu.org>
2145
2146 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
2147 * testsuite/lib/libstdc++-v3.exp: ...to this.
2148 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
2149
e64a227a
DG
21502003-07-31 Doug Gregor <dgregor@apple.com>
2151
2152 Add user specialization tests.
2153 * testsuite/23_containers/deque/1.cc: New.
2154 * testsuite/23_containers/list/1.cc: New.
2155 * testsuite/23_containers/map/1.cc: New.
2156 * testsuite/23_containers/multimap/1.cc: New.
2157 * testsuite/23_containers/multiset/1.cc: New.
2158 * testsuite/23_containers/set/1.cc: New.
2159 * testsuite/23_containers/vector/1.cc: New.
7e2055ec 2160
17472bb6
BK
21612003-07-31 Benjamin Kosnik <bkoz@redhat.com>
2162
2163 Reshuffle 23_containers testsuite.
7e2055ec 2164 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
17472bb6
BK
2165 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
2166 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
2167 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
2168 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
2169 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
2170 vector_resize.cc: Split into...
2171 * 23_containers/bitset/cons/1.cc: New.
2172 * 23_containers/bitset/cons/6282.cc: New.
2173 * 23_containers/bitset/count/6124.cc: New.
2174 * 23_containers/bitset/operations/1.cc: New.
2175 * 23_containers/bitset/operations/2.cc: New.
2176 * 23_containers/bitset/test/1.cc: New.
2177 * 23_containers/bitset/to_ulong/1.cc: New.
2178 * 23_containers/deque/cons/1.cc: New.
2179 * 23_containers/deque/cons/2.cc: New.
2180 * 23_containers/deque/operators/1.cc: New.
2181 * 23_containers/list/capacity/1.cc: New.
2182 * 23_containers/list/cons/1.cc: New.
2183 * 23_containers/list/cons/2.cc: New.
2184 * 23_containers/list/cons/3.cc: New.
2185 * 23_containers/list/cons/4.cc: New.
2186 * 23_containers/list/cons/5.cc: New.
2187 * 23_containers/list/cons/6.cc: New.
2188 * 23_containers/list/cons/7.cc: New.
2189 * 23_containers/list/cons/8.cc: New.
2190 * 23_containers/list/cons/9.cc: New.
2191 * 23_containers/list/modifiers/1.cc: New.
2192 * 23_containers/list/modifiers/2.cc: New.
2193 * 23_containers/list/modifiers/3.cc: New.
2194 * 23_containers/list/operators/1.cc: New.
2195 * 23_containers/list/operators/2.cc: New.
2196 * 23_containers/list/operators/3.cc: New.
2197 * 23_containers/list/operators/4.cc: New.
2198 * 23_containers/map/insert/1.cc: New.
2199 * 23_containers/map/operators/1.cc: New.
2200 * 23_containers/map/operators/1_neg.cc: New.
2201 * 23_containers/multiset/insert/1.cc: New.
2202 * 23_containers/priority_queue/members/7161.cc: New.
2203 * 23_containers/queue/members/7157.cc: New.
2204 * 23_containers/set/operators/1_neg.cc: New.
2205 * 23_containers/stack/members/7158.cc: New.
2206 * 23_containers/vector/bool/1.cc: New.
2207 * 23_containers/vector/bool/6886.cc: New.
2208 * 23_containers/vector/capacity/1.cc: New.
2209 * 23_containers/vector/capacity/2.cc: New.
2210 * 23_containers/vector/capacity/8230.cc: New.
2211 * 23_containers/vector/cons/1.cc: New.
2212 * 23_containers/vector/cons/2.cc: New.
2213 * 23_containers/vector/cons/3.cc: New.
2214 * 23_containers/vector/cons/4.cc: New.
2215 * 23_containers/vector/cons/6513.cc: New.
2216 * 23_containers/vector/element_access/1.cc: New.
2217 * 23_containers/vector/modifiers/1.cc: New.
2218 * 23_containers/vector/modifiers/2.cc: New.
2219 * 23_containers/vector/resize/1.cc: New.
7e2055ec 2220
515aab7c
RO
22212003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2222
2223 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
2224 dg-options.
2225 * testsuite/thread/pthread2.cc: Likewise.
2226 * testsuite/thread/pthread3.cc: Likewise.
2227 * testsuite/thread/pthread4.cc: Likewise.
2228 * testsuite/thread/pthread5.cc: Likewise.
2229 * testsuite/thread/pthread6.cc: Likewise.
2230 * testsuite/thread/pthread7-rope.cc: Likewise.
2231
1051c718
PE
22322003-07-30 Phil Edwards <pme@gcc.gnu.org>
2233
2234 * include/bits/c++config: Partial reversion (comment placement) of
2235 previous patch.
2236
5f697f7a
BK
22372003-07-30 Benjamin Kosnik <bkoz@redhat.com>
2238
2239 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
2240 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
2241 (_GLIBCXX_AT_AT): Remove.
2242 (__USE_MALLOC): Remove.
2243 * include/std/std_fstream.h: Modify.
2244 * include/bits/basic_ios.h: Same.
2245 * include/bits/valarray_array.h: Same.
2246 * include/c_std/std_cmath.h: Same.
2247 * include/c_std/cmath.tcc: Same.
2248 * include/std/std_vector.h: Same.
2249 * include/std/std_string.h: Same.
2250 * include/std/std_stack.h: Same.
2251 * include/std/std_queue.h: Same.
2252 * include/std/std_list.h: Same.
2253 * include/std/std_deque.h: Same.
2254 * include/std/std_streambuf.h: Same.
2255 * include/std/std_sstream.h: Same.
2256 * include/std/std_ostream.h: Same.
2257 * include/std/std_istream.h: Same.
2258 * include/bits/valarray_array.tcc: Same, format.
2259
2260 * include/c/std_cctype.h: Fix include guards.
2261 * include/c/std_cerrno.h: Same.
2262 * include/c/std_cfloat.h: Same.
2263 * include/c/std_climits.h: Same.
2264 * include/c/std_clocale.h: Same.
2265 * include/c/std_cmath.h: Same.
2266 * include/c/std_csetjmp.h: Same.
2267 * include/c/std_csignal.h: Same.
2268 * include/c/std_cstdarg.h: Same.
2269 * include/c/std_cstddef.h: Same.
2270 * include/c/std_cstdio.h: Same.
2271 * include/c/std_cstdlib.h: Same.
2272 * include/c/std_cstring.h: Same.
2273 * include/c/std_ctime.h: Same.
2274 * include/c/std_cwchar.h: Same.
2275 * include/c/std_cwctype.h: Same.
2276 * include/c_std/cmath.tcc: Same.
2277 * include/c_std/std_cmath.h: Same.
7e2055ec 2278
b4c70e89
GB
22792003-07-30 Gawain Bolton <gp.bolton@computer.org>
2280
7e2055ec 2281 PR libstdc++/11504.
b4c70e89
GB
2282 * include/bits/stl_tree.h: Replace C-style casts with C++-style
2283 casts. Changes to avoid casting away constness. Eliminate
2284 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
2285 initialization lists. Move out implementation of __black_count()
2286 to...
7e2055ec
ZW
2287 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
2288 Rename_Rb_tree_base_iterator::_M_increment() to
2289 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
2290 _Rb_tree_decrement.
2291 * config/linker-map.gnu: Add and change symbols here.
b4c70e89 2292
48b3222d
JW
22932003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
2294
2295 * docs/html/22_locale/howto.html: Use locale::classic() instead
2296 of locale("C").
2297
cb584bcf
BK
22982003-07-28 Benjamin Kosnik <bkoz@redhat.com>
2299
2300 * testsuite/testsuite_hooks.h: Remove list include.
2301 (func_callback): Define as unique type, not std::list.
2302 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
2303 * testsuite/libstdc++-v3.dg/dg.exp: Same.
2304 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
7e2055ec 2305 * testsuite/23_containers/bitset_ctor.cc:
cb584bcf
BK
2306 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
2307 * testsuite/18_support/numeric_limits.cc: Same.
2308 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
2309 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
2310 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
2311 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
2312 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
2313 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
2314 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
2315 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
2316 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
2317 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
2318 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
2319 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
2320 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
2321 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
2322 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
2323 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
2324 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
2325 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
2326 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
2327 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
7e2055ec
ZW
2328 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
2329 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
2330 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
2331 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
2332 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
2333 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
2334 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
2335 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
2336 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
2337 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
cb584bcf
BK
2338 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
2339 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
2340 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
2341 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
2342 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
2343 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
2344 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
2345 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
2346 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
2347 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
2348 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
2349 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
2350 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
2351 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
2352 * testsuite/23_containers/bitset_ctor.cc: Same.
2353 * testsuite/23_containers/bitset_shift.cc: Same.
2354 * testsuite/23_containers/vector_ctor.cc: Same.
2355 * testsuite/23_containers/vector_element_access.cc: Same.
2356 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
2357 * testsuite/24_iterators/iterator.cc: Same.
2358 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
2359 * testsuite/25_algorithms/lower_bound.cc: Same.
2360 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
2361 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
2362 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
2363 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
2364 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
2365 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
2366 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
2367 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
2368 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
2369 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
7e2055ec
ZW
2370 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
2371 Same.
2372
1cb1de7e
PE
23732003-07-28 Phil Edwards <pme@gcc.gnu.org>
2374
2375 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
2376 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
2377 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
2378 GLIBCPP to GLIBCXX (and explain as needed).
2379
6dfe0fc9
PE
23802003-07-28 Phil Edwards <pme@gcc.gnu.org>
2381
2382 * README: Update.
2383
2cb1c928
PE
23842003-07-28 Phil Edwards <pme@gcc.gnu.org>
2385
2386 * testsuite/22_locale/messages/members/char/1.cc,
2387 testsuite/22_locale/messages/members/char/2.cc,
2388 testsuite/22_locale/messages/members/char/3.cc,
2389 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
2390 the origin of LOCALEDIR.
2391 * testsuite/lib/libstdc++-v3.exp: New file.
2392
b66ea7d4
BK
23932003-07-25 Benjamin Kosnik <bkoz@redhat.com>
2394
2395 * include/bits/char_traits.h: Update copyright, tweak.
e884d397 2396 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
b66ea7d4
BK
2397 std types.
2398
d5ff4e3f
MA
23992003-07-24 Matt Austern <austern@apple.com>
2400
2401 * /include/bits/char_traits.h (class char_traits): Put all the
2402 real work into the new class template __gnu_cxx::char_traits.
2403 Gave generic definitions for member functions. Types are taken
2404 from the new class template __gnu_cxx::_Char_types.
2405 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
2406 file. Test of std::char_traits<short>, which serves as a test of
2407 the char_traits primary template.
2408
aecf642c
BK
24092003-07-24 Benjamin Kosnik <bkoz@redhat.com>
2410
2411 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
2412
24132003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
d7541133 2414
7e2055ec
ZW
2415 * testsuite/23_containers/map_operators.cc: Conform to
2416 container requirement as value must be Assignable.
d7541133 2417
118545ec
AO
24182003-07-23 Alexandre Oliva <aoliva@redhat.com>
2419
2420 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
2421 tests not only generation of pch files, but also their use.
2422 * aclocal.m4, configure: Rebuilt.
2423
ff89cb01
SE
24242003-07-23 Steve Ellcey <sje@cup.hp.com>
2425
2426 * config/cpu/hppa/atomicity.h: Change
2427 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
2428 to match misc-inst.cc
2429
1143680e
SE
24302003-07-23 Steve Ellcey <sje@cup.hp.com>
2431
2432 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
2433 * include/c_std/std_cctype.h: Ditto.
2434 * include/c_std/std_cerrno.h: Ditto.
2435 * include/c_std/std_cfloat.h: Ditto.
2436 * include/c_std/std_climits.h: Ditto.
2437 * include/c_std/std_clocale.h: Ditto.
2438 * include/c_std/std_cmath.h: Ditto.
2439 * include/c_std/std_csetjmp.h: Ditto.
2440 * include/c_std/std_csignal.h: Ditto.
2441 * include/c_std/std_cstdarg.h: Ditto.
2442 * include/c_std/std_cstddef.h: Ditto.
2443 * include/c_std/std_cstdio.h: Ditto.
2444 * include/c_std/std_cstdlib.h: Ditto.
2445 * include/c_std/std_cstring.h: Ditto.
2446 * include/c_std/std_ctime.h: Ditto.
2447 * include/c_std/std_cwchar.h: Ditto.
2448 * include/c_std/std_cwctype.h: Ditto.
2449 * include/std/std_algorithm.h: Ditto.
2450 * include/std/std_bitset.h: Ditto.
2451 * include/std/std_complex.h: Ditto.
2452 * include/std/std_deque.h: Ditto.
2453 * include/std/std_fstream.h: Ditto.
2454 * include/std/std_functional.h: Ditto.
2455 * include/std/std_iomanip.h: Ditto.
2456 * include/std/std_ios.h: Ditto.
2457 * include/std/std_iosfwd.h: Ditto.
2458 * include/std/std_iostream.h: Ditto.
2459 * include/std/std_istream.h: Ditto.
2460 * include/std/std_iterator.h: Ditto.
2461 * include/std/std_limits.h: Ditto.
2462 * include/std/std_list.h: Ditto.
2463 * include/std/std_locale.h: Ditto.
2464 * include/std/std_map.h: Ditto.
2465 * include/std/std_memory.h: Ditto.
2466 * include/std/std_numeric.h: Ditto.
2467 * include/std/std_ostream.h: Ditto.
2468 * include/std/std_queue.h: Ditto.
2469 * include/std/std_set.h: Ditto.
2470 * include/std/std_sstream.h: Ditto.
2471 * include/std/std_stack.h: Ditto.
2472 * include/std/std_stdexcept.h: Ditto.
2473 * include/std/std_streambuf.h: Ditto.
2474 * include/std/std_string.h: Ditto.
2475 * include/std/std_utility.h: Ditto.
2476 * include/std/std_valarray.h: Ditto.
2477 * include/std/std_vector.h: Ditto.
2478
3988d179
DG
24792003-07-22 Doug Gregor <dgregor@apple.com>
2480
2481 * include/bits/basic_string.h (basic_string::insert): Deprecate
2482 GNU extension.
2483
5dfda042
BK
24842003-07-21 Benjamin Kosnik <bkoz@redhat.com>
2485
2486 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
2487 paths for libio.
2488 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
2489 (test03): Include typeinfo for bad_cast.
2490 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2491 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2492 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2493
3988d179 24942003-07-21 Doug Gregor <dgregor@apple.com>
f345c6b5
DG
2495
2496 * include/bits/boost_concept_check.h:
7e2055ec
ZW
2497 (_EqualityComparableConcept::__constraints): Remove != from the
2498 list of constraints; it is not listed in Table 28 of the C++98
2499 standard.
f345c6b5 2500
2d5f9af2
AJ
25012003-07-18 Andreas Jaeger <aj@suse.de>
2502
2503 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
2504 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
2505 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
2506 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
2507
fea4065d 25082003-07-17 Benjamin Kosnik <bkoz@redhat.com>
7e2055ec 2509
fea4065d
BK
2510 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
2511 * config/locale/generic/messages_members.h: Tweaks.
2512 * config/locale/generic/monetary_members.cc
2513 (moneypunct::_M_initialize_moneypunct): Use cache.
2514 (moneypunct::~moneypunct): Delete cache.
2515 * config/locale/generic/time_members.cc:
2516 (__timepunct::_M_initialize_timepunct): Use cache.
2517 * config/locale/generic/time_members.h:
2518 (__timepunct::~__timepunct): Delete cache.
2519 (__timepunct::__timepunct): Set cache.
2520 * config/locale/gnu/messages_members.h: Tweaks.
2521 * config/locale/gnu/monetary_members.cc:
2522 (moneypunct::_M_initialize_moneypunct): Use cache.
2523 (moneypunct::~moneypunct): Delete cache.
2524 * config/locale/gnu/time_members.cc:
2525 (__timepunct::_M_initialize_timepunct): Use cache.
2526 * config/locale/gnu/time_members.h:
2527 (__timepunct::~__timepunct): Delete cache.
2528 (__timepunct::__timepunct): Set cache.
2529 * include/bits/locale_facets.h (__timepunct_cache): New.
2530 (__moneypunct_cache): New.
2531 * include/bits/locale_facets.tcc: Tweak.
2532 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
2533 * src/locale-inst.cc: Instantiate caches.
2534 * src/globals.cc: Add "C" caches.
2535 * src/localename.cc: Use external "C" caches.
2536
83a279e4
PE
25372003-07-17 Phil Edwards <pme@gcc.gnu.org>
2538
2539 * docs/doxygen/guide.html: Fix typo.
2540
db5eed18
BK
25412003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2542
2543 * include/ext/pod_char_traits.h: Add state template argument.
2544
7942afdc
BK
25452003-07-16 Benjamin Kosnik <bkoz@redhat.com>
2546
2547 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
2548 (num_get::_M_convert_int): To _M_insert_int.
7e2055ec 2549 (num_get::_M_convert_float): To _M_insert_float.
7942afdc
BK
2550 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2551 Use caches for ctype, num_get.
2552 (num_get::_M_extract_int): Same.
2553 (num_get::get(bool)): Same.
2554 (__verify_grouping): Use size_t.
2555 * src/locale-inst.cc: Update.
2556 * src/locale.cc: Adjust _S_atoms_in.
2557
1ef4a5d4
PE
25582003-07-16 Phil Edwards <pme@gcc.gnu.org>
2559
2560 * docs/doxygen/mainpage.html: Move building/writing instructions...
2561 * docs/doxygen/guide.html: ...to here. New file.
2562
dced0d12
JW
25632003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
2564
2565 * docs/html/ext/howto.html: Update URL for SGI STL docs.
2566 * docs/html/faq/index.html: Same.
2567 * docs/html/faq/index.txt: Regenerate.
2568
e50344b9
PC
25692003-07-16 Paolo Carlini <pcarlini@unitus.it>
2570
2571 PR libstdc++/11528
2572 * include/bits/locale_facets.tcc (money_get::do_get):
2573 Strip only _leading_ zeros.
2574 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
2575 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
2576
94b7906a
GP
25772003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2578
2579 * include/ext/hash_map (class hash_multimap): Remove extra
2580 semicolons from __glibcxx_class_requires3 entries.
2581 * include/ext/hash_set (class hash_set): Ditto.
2582 (class hash_multiset): Ditto.
2583
73a530bd
PR
25842003-07-15 Petur Runolfsson <peturr02@ru.is>
2585
2586 * include/bits/char_traits.h (char_traits<wchar_t>::move):
2587 Change last parameter from int_type to size_t.
2588
119dbb1f
JQ
25892003-07-15 Jerry Quinn <jlquinn@optonline.net>
2590
2591 * include/bits/stl_algo.h (includes, set_union, set_intersection,
7e2055ec
ZW
2592 set_difference, set_symmetric_difference, max_element, min_element,
2593 next_permutation, prev_permutation, find_first_of, find_end):
2594 Document.
119dbb1f 2595 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
7e2055ec 2596 restrictions in docs.
119dbb1f 2597 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
7e2055ec 2598 Document.
119dbb1f
JQ
2599 * docs/doxygen/doxygroups.cc (setoperations): New group.
2600
284f19bf
JQ
26012003-07-15 Jerry Quinn <jlquinn@optonline.net>
2602
7e2055ec 2603 * include/bits/basic_string.h: Document public functions.
284f19bf
JQ
2604 * docs/doxygen/TODO: Update c21 todo.
2605
709e7c9f
JQ
26062003-07-15 Jerry Quinn <jlquinn@optonline.net>
2607
2608 * include/bits/stl_list.h: Document more functions.
2609 * docs/doxygen/TODO: Update c23 todo.
2610
f45e487d
PC
26112003-07-14 Paolo Carlini <pcarlini@unitus.it>
2612
2613 * config/locale/gnu/c_locale.h (__convert_from_v): One more
2614 qualification.
2615
f088510d
PC
26162003-07-14 Paolo Carlini <pcarlini@unitus.it>
2617
2618 * include/bits/stl_tempbuf.h: Qualify free with std::.
2619 * src/locale.cc: Include <cstdlib>, qualify getenv.
2620
2def5b76
PC
26212003-07-14 Paolo Carlini <pcarlini@unitus.it>
2622
2623 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2624 <cstdio>. Qualify names.
2625 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
2626
bda243ec
PC
26272003-07-14 Paolo Carlini <pcarlini@unitus.it>
2628 Nathan C. Myers <ncm-nospam@cantrip.org>
2629
2630 PR libstdc++/11378
2631 * include/std/std_fstream.h (xsputn): Declare only.
2632 * include/bits/fstream.tcc (xsputn): Define, optimize for the
7e2055ec 2633 always_noconv() case: when __n is sufficiently large flush
bda243ec
PC
2634 the buffer and issue a direct write, if possible combining the
2635 two with writev in __basic_file<>::xsputn_2.
2636 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
2637 New, declare.
2638 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
2639 Define.
2640 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
2641 the availability of writev in <sys/uio.h>.
2642 * configure.in: Call here.
2643 * acconfig.h: Add undef for the corresponding symbol.
2644 * aclocal.m4: Regenerate.
2645 * configure: Regenerate.
2646 * config.h.in: Regenerate.
2647 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
2648
2649 * include/std/std_fstream.h (sync): Constify a variable.
2650
c573d965
BK
26512003-07-14 Benjamin Kosnik <bkoz@redhat.com>
2652
2653 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
2654 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
7e2055ec 2655
3ad249b9
GDR
26562003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
2657
2658 * config/locale/gnu/c_locale.h (__convert_from_v): Include
2659 <cstring> and <cstdlib>. Qualify names.
2660
f2ffecb1
MM
26612003-07-13 Mark Mitchell <mark@codesourcery.com>
2662
2663 * config/locale/generic/c_locale.h: Include <cstdlib> and
2664 <cstring>.
2665 * include/bits/boost_concept_check.h: Add this-> to unqualified
2666 method calls.
2667 * include/bits/deque.tcc: Likewise.
2668 * include/bits/locale_facets.h : Likewise.
2669 * include/bits/ostream.tcc: Likewise.
2670 * include/bits/stl_algo.h: Likewise.
2671 * include/bits/stl_bvector.h: Likewise.
2672 * include/bits/stl_deque.h: Likewise.
2673 * include/bits/stl_list.h: Likewise.
2674 * include/bits/stl_tree.h: Likewise.
2675 * include/bits/stl_vector.h: Likewise.
2676 * include/bits/vector.tcc: Likewise.
2677 * include/ext/rope: Likewise.
2678 * include/ext/ropeimpl.h: Likewise.
2679 * include/ext/stdio_filebuf.h: Likewise.
2680
e2fcbaa3
JQ
26812003-07-11 Jerry Quinn <jlquinn@optonline.net>
2682
2683 * include/bits/basic_ios.h (copyfmt): Document.
2684 * include/bits/ios_base.h (event, event_callback, register_callback,
2685 xalloc, iword, pword): Document.
2686 (imbue, ~ios_base): Update docs on callbacks.
2687
58579a27
PE
26882003-07-11 Phil Edwards <pme@gcc.gnu.org>
2689
2690 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
2691 warning messages if the environment cannot support symbol versioning.
2692 (port_specific_symbol_file): It's plural, add an 's' on the end.
2693 * configure.host: Likewise.
2694 * src/Makefile.am: Likewise.
2695 * config/linker-map.gnu: Remove one semicolon, heh.
2696 * scripts/extract_symvers: Don't assume useful 'export' syntax.
2697 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
2698 * aclocal.m4, configure, src/Makefile.in: Regenerated.
2699
cde63840
BK
27002003-07-09 Benjamin Kosnik <bkoz@redhat.com>
2701
2702 * include/bits/locale_facets.tcc: Use function object for
7e2055ec 2703 __use_cache instead of template function. Partially specialize for
cde63840
BK
2704 __numpunct<_CharT>.
2705 * include/bits/locale_classes.h: Update friend declaration for
2706 __use_cache.
2707 (_M_install_cache): No throw exception specs.
2708 * src/locale.cc: Remove __use_cache specializations.
2709 * include/ext/pod_char_traits.h (length): Tweak.
2710 * include/bits/locale_facets.h (__numpunct_cache): Remove
2711 char_type typedef.
2712 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
2713 (pod_long): Remove.
2714 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
2715 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
2716 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
2717 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
2718 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
2719 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
7e2055ec 2720
e7f042e4
JQ
27212003-07-09 Jerry Quinn <jlquinn@optonline.net>
2722
2723 * src/ios.cc (_M_grow_words): Fix spelling.
2724
ca1c7011
GB
27252003-07-09 Gawain Bolton <gp.bolton@computer.org>
2726
2727 * include/bits/stl_tree.h: Move larger member functions in
2728 _Rb_tree_base_iterator and _Rb_tree_node to...
2729 * src/stl_tree.cc: Here.
2730 * src/Makefile.in: Add stl_tree.cc.
2731 * src/Makefile.in: Regenerated.
2732 * config/linker-map.gnu: Add symbols here.
2733
9e7facfd
BK
27342003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2735
2736 * testsuite/ext/pod_char_traits.cc: New.
2737 * include/ext/pod_char_traits.h: New.
2738 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
2739 * include/Makefile.in: Regenerate.
2740 * docs/html/21_strings/howto.html: Update.
7e2055ec 2741
e55dc371
GB
27422003-07-08 Gawain Bolton <gp.bolton@computer.org>
2743
2744 * testsuite/performance/list_create_fill_sort.cc: New.
2745
c094e9b9
BK
27462003-07-08 Benjamin Kosnik <bkoz@redhat.com>
2747
2748 * config/locale/generic/numeric_members.cc: Correct type info.
2749 * config/locale/gnu/numeric_members.cc: Same.
2750 * include/bits/locale_facets.h: Same.
7e2055ec 2751
c094e9b9
BK
2752 * include/bits/char_traits.h: Correct spacing.
2753
2754 * src/locale.cc: Wrap to 80 col.
7e2055ec 2755
a8784c4c
PC
27562003-07-07 Paolo Carlini <pcarlini@unitus.it>
2757
2758 * include/std/std_complex.h: Partially revert last
2759 changes: cmath functions must not be qualified.
2760
313dd504
PE
27612003-07-06 Phil Edwards <pme@gcc.gnu.org>
2762
2763 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
2764 2.11 with globbing backport fix.
2765 * aclocal.m4, configure: Regenerated.
2766
6623b2f2
PC
27672003-07-06 Paolo Carlini <pcarlini@unitus.it>
2768
2769 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
2770 if output is at all possible (!_M_reading), cannot be active.
2771
2772 * include/std/std_fstream.h: Tweak comments to doxygen style.
2773
391cfc46
PC
27742003-07-06 Paolo Carlini <pcarlini@unitus.it>
2775
2776 * include/bits/locale_classes.h: Fully qualify standard
2777 functions with std::, thus avoiding Koenig lookup.
2778 * include/bits/locale_facets.tcc: Likewise.
2779 * src/locale.cc: Likewise.
2780 * src/localename.cc: Likewise.
2781
48166869
PE
27822003-07-06 Phil Edwards <pme@gcc.gnu.org>
2783
2784 * include/bits/allocator_traits.h: Fix doxygen markup.
2785 * include/ext/mt_allocator.h: Likewise.
2786
aaa4a229
PE
27872003-07-06 Phil Edwards <pme@gcc.gnu.org>
2788
2789 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
2790
e6b7a69a
PE
27912003-07-05 Phil Edwards <pme@gcc.gnu.org>
2792
2793 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
2794 requirement. Add port_specific_symbol_file variable.
2795 * configure.host: Add docs for port_specific_symbol_file.
2796 Clean up try_cpu block for x86.
2797 * config/linker-map.gnu: No more "last symbol can't have a
2798 semicolon" kaka. Add hook for port-specific symbols.
2799 * src/Makefile.am: Remove trailing whitespace.
2800 (libstdc++-symbol.ver): Detect the presence of port-specific
2801 symbols, and add them accordingly.
2802
2803 * docs/html/17_intro/porting.texi: Bring up to date.
2804
2805 * src/Makefile.in, aclocal.m4, configure,
2806 docs/html/17_intro/porting.html: Regenerated.
2807
ac3d7b44
PE
28082003-07-05 Phil Edwards <pme@gcc.gnu.org>
2809
2810 * scripts/create_testsuite_files: New file.
2811 * testsuite/Makefile.am (all-local, check-performance): Use it.
2812 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
2813 * testsuite/Makefile.in: Regenerated.
2814
2815 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
2816 files at the end.
2817 * testsuite/performance/fstream_seek_write.cc: Likewise.
2818 * testsuite/performance/ofstream_insert_float.cc: Likewise.
2819 * testsuite/performance/ofstream_insert_int.cc: Likewise.
2820 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
2821
e3d51be2
GB
28222003-07-05 Gawain Bolton <gp.bolton@computer.org>
2823
2824 * include/bits/stl_list.h: Performance and memory usage
c094e9b9
BK
2825 improvements. In particular, the behaviour of the constructor and
2826 destructor as the list header node is no longer dynamically
2827 allocated/de-allocated.
e3d51be2
GB
2828 * include/bits/list.tcc: Likewise.
2829
eb9a4231
PC
28302003-07-05 Paolo Carlini <pcarlini@unitus.it>
2831
2832 * include/std/std_complex.h: Fully qualify standard
2833 functions with std::, thus avoiding Koenig lookup.
2834 * include/std/std_memory.h: Likewise.
2835 * include/std/std_valarray.h: Likewise.
2836
f92c5313
GB
28372003-07-05 Gawain Bolton <gp.bolton@computer.org>
2838
2839 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
7e2055ec 2840 variable for grandparent and use const
f92c5313 2841
8b87d3fa
DB
28422003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
2843
2844 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
2845 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
2846 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
2847 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
2848 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
2849 * testsuite/27_io/objects/char/7.cc: Ditto
2850 * testsuite/27_io/objects/char/9661-1.cc: Ditto
2851
a8cad3e1
PC
28522003-07-05 Paolo Carlini <pcarlini@unitus.it>
2853
2854 * include/std/std_bitset.h: Fully qualify standard
2855 functions with std::, thus avoiding Koenig lookup.
2856
2857 * include/std/std_fstream.h: Change comment to doxygen style.
2858
2778669a
PE
28592003-07-05 Phil Edwards <pme@gcc.gnu.org>
2860
2861 * include/std/std_limits.h: More CPP->CXX changes.
2862 * scripts/check_survey.in: Likewise.
2863
3d7c150e
BK
28642003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2865
2866 Move from CPP to CXX.
2867 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
2868 * testsuite/Makefile.am: Same.
2869 * testsuite/Makefile.in: Regenerate.
2870 * po/Makefile.am: Same.
7e2055ec 2871 * po/Makefile.in: Regenerate.
3d7c150e 2872 * libsupc++/Makefile.am: Same.
7e2055ec 2873 * libsupc++/Makefile.in: Regenerate.
3d7c150e 2874 * libmath/Makefile.am: Same.
7e2055ec 2875 * libmath/Makefile.in: Regenerate.
3d7c150e 2876 * include/Makefile.am: Same.
7e2055ec 2877 * include/Makefile.in: Regenerate.
3d7c150e 2878 * src/Makefile.am: Same.
7e2055ec 2879 * src/Makefile.in: Regenerate.
3d7c150e
BK
2880 * acconfig.h: Same.
2881 * configure.host: Same.
2882 * configure.in: Same.
2883 * configure: Regenerate.
2884 * acinclude.m4: Same.
2885 * aclocal.m4: Same.
2886 * src: Change all files in this directory.
2887 * testsuite: Same.
2888 * include: Same, standardize include guards.
2889 * config: Same.
2890 * libsupc++: Same.
7e2055ec 2891
e6cc3a24
ZW
28922003-07-04 Zack Weinberg <zack@codesourcery.com>
2893
2894 * testsuite/22_locale/collate/compare/wchar_t/2.cc
2895 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
2896 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
2897 * testsuite/22_locale/collate/hash/wchar_t/2.cc
2898 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
2899 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
2900 * testsuite/22_locale/collate/transform/wchar_t/2.cc
2901 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
2902 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2903 XFAIL on all targets.
2904
d542f114
BK
29052003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2906
2907 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
2908 * aclocal.m4: Regenerate.
2909 * configure: Regenerate.
e6cc3a24 2910
d542f114
BK
29112003-07-04 Jerry Quinn <jlquinn@optonline.net>
2912
2913 * include/bits/locale_facets.tcc (__int_to_char): Move common case
2914 to the top.
2915
69ef29fd 29162003-07-04 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24
ZW
2917 Petur Runolfsson <peturr02@ru.is>
2918
69ef29fd
BK
2919 * config/io/basic_file_stdio.cc: Revert.
2920
5b5bf717
PC
29212003-07-04 Paolo Carlini <pcarlini@unitus.it>
2922
2923 * include/bits/deque.tcc: Fully qualify standard
2924 functions with std::, thus avoiding Koenig lookup.
2925 * include/bits/gslice_array.h: Likewise.
2926 * include/bits/indirect_array.h: Likewise.
2927 * include/bits/list.tcc: Likewise.
2928 * include/bits/mask_array.h: Likewise.
2929 * include/bits/slice_array.h: Likewise.
2930
7f6dd1ca
GB
29312003-07-04 Gawain Bolton <gbolton@free.fr>
2932
2933 * include/bits/stl_tree.h: Performance and memory usage
2934 improvements.
2935
8c90b13a
L
29362003-07-04 H.J. Lu <hongjiu.lu@intel.com>
2937
2938 * Makefile.am: Replace PWD with PWD_COMMAND.
2939 * Makefile.in: Regenerated.
2940 * docs/html/Makefile: Likewise.
2941
2f805868
PC
29422003-07-04 Paolo Carlini <pcarlini@unitus.it>
2943
2944 * include/bits/valarray_array.h: Fully qualify standard
2945 functions with std::, thus avoiding Koenig lookup.
2946 * include/bits/vector.tcc: Likewise.
2947
a30335e9
BK
29482003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2949
2950 * include/Makefile.am: Update target_ to host_.
2951 * include/Makefile.in: Regenerate.
2952 * src/Makefile.am: Same.
2953 * src/Makefile.in: Regenerate.
2954
2955 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
e6cc3a24 2956
d8d81f62
BK
29572003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2958
2959 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
2960 --enable-libstdcxx-debug-flags.
2961 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
2962 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
2963 * aclocal.m4: Regenerate.
2964 * configure: Same.
2965 * docs/html/configopts.html: Update.
e6cc3a24 2966
10ef4e2e
PC
29672003-07-04 Paolo Carlini <pcarlini@unitus.it>
2968
2969 Revert the fix for libstdc++/11378.
2970
ac2c48d7
PC
29712003-07-04 Paolo Carlini <pcarlini@unitus.it>
2972
2973 PR libstdc++/11378
2974 * include/std/std_fstream.h (xsputn): In the unbuffered case,
2975 provided always_noconv(), issue directly _M_file.xsputn.
2976 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
2977
9dd90ac6
PC
29782003-07-04 Paolo Carlini <pcarlini@unitus.it>
2979
2980 * include/bits/stl_list.h: Fully qualify standard
2981 functions with std::, thus avoiding Koenig lookup.
2982 * include/bits/stl_queue.h: Likewise.
2983 * include/bits/stl_raw_storage_iter.h: Likewise.
2984 * include/bits/stl_tempbuf.h: Likewise.
2985 * include/bits/stl_tree.h: Likewise.
2986 * include/bits/stl_uninitialized.h: Likewise.
2987 * include/bits/stl_vector.h: Likewise.
e6cc3a24 2988 * include/ext/rope: Change includes order.
9dd90ac6 2989
1b33b6b2
BK
29902003-07-04 Benjamin Kosnik <bkoz@redhat.com>
2991
2992 * configure.host (fpos_include_dir): Fix.
2993
369b78b0
PC
29942003-07-04 Paolo Carlini <pcarlini@unitus.it>
2995
2996 * include/bits/stl_heap.h: Fully qualify standard
2997 functions with std::, thus avoiding Koenig lookup.
2998 * include/bits/stl_iterator_base_funcs.h: Likewise.
2999
3000 * include/bits/stl_algo.h: Qualify __iterator_category too.
3001 * include/bits/stl_algobase.h: Likewise.
3002 * include/bits/stl_bvector.h: Likewise.
3003
3004 * include/bits/stl_algo.h: Don't qualify the pair type.
3005
cc5112c9
BK
30062003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3007
3008 * include/Makefile.am (target_headers): Add fpos.h
3009 (bits_headers): Remove.
3010 * include/Makefile.in: Regenerate.
3011 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
3012 * configure: Regenerate.
3013 * configure.host: Add fpos_include_dir.
3014 * config/os/gnu-linux/fpos.h: New.
e6cc3a24
ZW
3015 * config/os/generic/fpos.h: Add.
3016 * include/bits/fpos.h: Remove.
cc5112c9
BK
3017
3018 * config/io/c_io_stdio.h: Remove fpos_t typedef.
3019
3020 * include/bits/fstream.tcc: Tweaks.
3021 * include/std/std_fstream.h: Same.
e6cc3a24 3022
cc5112c9
BK
3023 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
3024 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
3025 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
3026 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
3027 * testsuite/27_io/fpos/1.cc: New.
e6cc3a24 3028
cc5112c9
BK
30292003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3030 Petur Runolfsson <peturr02@ru.is>
e6cc3a24 3031
cc5112c9
BK
3032 * include/std/std_streambuf.h: Remove _M_pos.
3033 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
3034 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
3035 use fread/fwrite instead of read/write.
3036 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
3037 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
3038 before reading again.
3039 * testsuite/27_io/objects/char/6.cc: Tweak.
e6cc3a24 3040
304d79dc
DE
30412003-07-03 David Edelsohn <edelsohn@gnu.org>
3042
3043 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
3044 _GLIBCPP_USE_WCHAR_T.
3045
41ba4c46
PC
30462003-07-02 Paolo Carlini <pcarlini@unitus.it>
3047
3048 * include/bits/basic_string.tcc (_M_replace_aux): Constify
3049 __n1 and __off1.
3050
da73f9de
PC
30512003-07-02 Paolo Carlini <pcarlini@unitus.it>
3052
3053 * include/bits/stl_bvector.h: Fully qualify standard
3054 functions with std::, thus avoiding Koenig lookup.
3055 * include/bits/stl_construct.h: Likewise.
3056 * include/bits/stl_deque.h: Likewise.
3057
1c380095
PC
30582003-07-02 Paolo Carlini <pcarlini@unitus.it>
3059
3060 * testsuite/22_locale/num_put/put/char/7.cc: Include
3061 <testsuite_hooks.h>, tweak.
3062 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
3063
f9f4d1e1
PE
30642003-07-01 Phil Edwards <pme@gcc.gnu.org>
3065
3066 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
3067 check* targets, but not libs/programs).
3068 * testsuite/Makefile.in: Regenerate.
3069
b7693a46
RS
30702003-07-01 Roger Sayle <roger@eyesopen.com>
3071
3072 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
3073 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
3074 * aclocal.m4: Regenerate.
3075 * configure: Regenerate.
3076
a5b1b26c
BK
30772003-07-01 Benjamin Kosnik <bkoz@redhat.com>
3078
3079 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
3080 * aclocal.m4: Regenerated.
3081 * configure: Regenerated.
e6cc3a24 3082
f64f3e74
PC
30832003-07-01 Paolo Carlini <pcarlini@unitus.it>
3084
3085 PR libstdc++/11389
3086 * include/bits/fstream.tcc (underflow): For encoding() == 0
3087 don't read more than __buflen chars.
3088 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
3089 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
3090 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
3091 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
3092
5ee78c21
JQ
30932003-07-01 Jerry Quinn <jlquinn@optonline.net>
3094
3095 * 22_locale/num_put/put/char/7.cc: New.
3096 * 22_locale/num_put/put/wchar_t/7.cc: New.
3097
e97ee22e
JQ
30982003-06-30 Jerry Quinn <jlquinn@optonline.net>
3099
3100 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
3101 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
3102
7d6a0993
BK
31032003-06-30 Benjamin Kosnik <bkoz@redhat.com>
3104
3105 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
3106 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
3107 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
3108 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
3109 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
3110 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
3111 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
3112 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
3113 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
3114 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
3115 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
3116 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
3117 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
3118 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
3119 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
3120 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
3121 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
3122 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
3123 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
3124 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
3125 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
3126 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
3127 * data/seekoff-1.tst: Remove.
3128 * data/seekoff-1io.tst: New.
3129 * data/seekoff-1out.tst: New.
3130 * data/seekoff-2.tst: Remove.
3131 * data/seekoff-2io.tst: New.
3132 * data/seekoff-2out.tst: New.
3133 * data/seekoff.txt
3134 * data/seekpos-1.tst: Remove.
3135 * data/seekpos-1io.tst: New.
3136 * data/seekpos-1out.tst: New.
3137 * data/seekpos-2.tst: Remove.
3138 * data/seekpos-2io.tst: New.
3139 * data/seekpos-2out.tst: New.
3140 * data/seekpos.txt: New.
3141
a5b1b26c 31422003-06-30 Jerry Quinn <jlquinn@optonline.net>
cf0cad09
JQ
3143
3144 * src/locale.cc (__use_cache<numpunct>): Move from here ...
3145 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
3146 here.
3147
884a757a
PC
31482003-06-30 Paolo Carlini <pcarlini@unitus.it>
3149
3150 * include/bits/stl_algobase.h: Fully qualify standard
3151 functions with std::, thus avoiding Koenig lookup.
3152
5892c641 31532003-06-30 Doug Gregor <dgregor@apple.com>
e6cc3a24 3154
5892c641 3155 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
e6cc3a24 3156 subscripting empty string.
5892c641 3157
7685a26d
PE
31582003-06-30 Phil Edwards <pme@gcc.gnu.org>
3159
3160 * testsuite/Makefile.am (check-am): Do not override.
3161 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
3162 * testsuite/Makefile.in: Regenerate.
3163
e6cc3a24
ZW
31642003-06-30 Doug Gregor <dgregor@apple.com>
3165
d147b75b
DG
3166 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
3167 Don't initialize an insert_iterator with a singular iterator.
3168
44f0760e 31692003-06-30 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 3170
44f0760e
BK
3171 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
3172 * aclocal.m4: Regenerate.
3173 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
3174 GLIBCPP_ENABLE_PCH, default to yes.
3175 * configure: Regenerate.
3176 * docs/html/configopts.html: Add --enable-pch.
e6cc3a24 3177
e37f7da7
PE
31782003-06-30 Phil Edwards <pme@gcc.gnu.org>
3179
3180 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
3181 (libstdc++-v3-init): Also set LD_RUN_PATH.
3182
cd16e04b
PC
31832003-06-30 Paolo Carlini <pcarlini@unitus.it>
3184
fbfcbadc
PC
3185 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
3186 from here to filebuf and stringbuf.
cd16e04b
PC
3187 (~basic_streambuf()): Don't set _M_mode.
3188 (basic_streambuf()): Don't set _M_mode.
3189 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
3190 (~basic_filebuf()): Clean up.
3191 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
3192 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
3193 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
3194 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
3195 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
3196 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
3197 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
3198
31992003-06-30 Paolo Carlini <pcarlini@unitus.it>
3200
3201 * include/std/std_fstream.h (_M_underflow): Remove.
3202 (uflow): Remove, inherited from streambuf.
3203 (underflow): Only declare.
e6cc3a24 3204 * include/bits/fstream.tcc (_M_underflow): Rename to
cd16e04b
PC
3205 underflow, to which is equivalent for __bump == false,
3206 simplify.
3207 * include/std/std_sstream.h (_M_underflow): Remove.
3208 (uflow): Remove, inherited from streambuf.
3209 (underflow): Only declare.
e6cc3a24 3210 * include/bits/sstream.tcc (_M_underflow): Rename to
cd16e04b
PC
3211 underflow, to which is equivalent for __bump == false,
3212 simplify.
3213
c868f37e
PC
32142003-06-29 Paolo Carlini <pcarlini@unitus.it>
3215
fbfcbadc
PC
3216 * include/bits/stl_algo.h: Fully qualify standard functions
3217 with std::, thus avoiding Koenig lookup.
c868f37e 3218
165f54e0
PC
32192003-06-29 Paolo Carlini <pcarlini@unitus.it>
3220
3221 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
3222 Improve type correctness-wise.
3223 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
3224 Likewise.
3225 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
3226 Likewise.
3227 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
3228 Likewise.
3229
90319d16
PC
32302003-06-29 Paolo Carlini <pcarlini@unitus.it>
3231
3232 * include/std/std_streambuf.h (uflow): According to
3233 27.5.2.4.3,p16, don't check gptr() < egptr().
3234
b417ae14
PC
32352003-06-28 Paolo Carlini <pcarlini@unitus.it>
3236
3237 PR libstdc++/9875
3238 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
3239 (seekpos): Likewise.
3240 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
3241 New test.
3242 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
3243 New test.
3244
f1a22109
BK
32452003-06-27 Benjamin Kosnik <bkoz@redhat.com>
3246
3247 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
3248 output name to libstdc++-v3-performance.sum.
3249 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
3250 * testsuite/Makefile.in: Regenerate.
e6cc3a24 3251
f1a22109
BK
32522003-06-27 Matthias Klose <doko@debian.org>
3253
3254 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
3255 output of abi-check in libstdc++-v3-abi.sum.
3256 * testsuite/Makefile.in: Regenerate.
3257
2e8a523f
KW
32582003-06-27 Krister Walfridsson <cato@df.lth.se>
3259
3260 * config/os/bsd/netbsd/ctype_noninline.h
3261 (_C_ctype_): Declare.
3262 (ctype<char>::classic_table): Return _C_ctype_ + 1.
3263 (ctype<char>::ctype): Use classic_table.
3264
3461133d
PC
32652003-06-27 Paolo Carlini <pcarlini@unitus.it>
3266 Nathan C. Myers <ncm-nospam@cantrip.org>
3267
3268 PR libstdc++/9178
3269 * include/bits/fstream.tcc (_M_underflow): Properly estimate
3270 the worst-case number of external bytes for a given get area.
3271 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
3272
32732003-06-27 Paolo Carlini <pcarlini@unitus.it>
3274 Petur Runolfsson <peturr02@ru.is>
3275
3276 PR libstdc++/11305
3277 * include/bits/fstream.tcc (overflow): Properly estimate the
3278 worst-case number of external bytes for a given put area
3279 (by using codecvt::max_length()).
3280 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
3281 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
3282 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
3283 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
3284
5648db54
NS
32852003-06-27 Nathan Sidwell <nathan@codesourcery.com>
3286
3287 * config/linker-map.gnu: Remove ; after __numpunct_cache.
3288
215f9e28
BK
32892003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3290
3291 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
3292 to the imbued locale.
3293 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
3294 _M_getloc.
3295 (num_put::_M_convert_float): Use.
3296
32972003-06-26 Benjamin Kosnik <bkoz@redhat.com>
3298 Jerry Quinn <jlquinn@optonline.net>
3299
3300 * config/linker-map.gnu: Add __numpunct_cache.
3301 * config/locale/gnu/numeric_members.cc
3302 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
3303 all elements for "C" locale.
3304 (numpunct::~numpunct): Delete _M_data.
e6cc3a24 3305 * config/locale/generic/numeric_members.cc: Same.
215f9e28
BK
3306 * include/bits/basic_ios.tcc
3307 (basic_ios::init): Remove __locale_cache bits.
3308 (basic_ios::_M_cache_locale): Same.
e6cc3a24 3309 * include/bits/ios_base.h: Same. Tweaks.
215f9e28
BK
3310 * include/bits/locale_classes.h: Tweaks. Reorder classes.
3311 (__use_cache): Make friends with _Impl, locale.
3312 (_Impl::_M_caches): Add.
3313 (_Impl::_M_install_cache): Add.
3314 * include/bits/locale_facets.h (__numpunct_cache): New.
3315 (numpunct): Encapsulate data members in __numpunct_cache member,
3316 _M_data. Adjust virtuals.
e6cc3a24 3317 (numpunct::numpunct): New ctor for the same.
215f9e28 3318 (__locale_cache_base): Remove.
e6cc3a24 3319 (__locale_cache): Remove.
215f9e28
BK
3320 * include/bits/locale_facets.tcc (__use_cache): New function,
3321 specializations.
3322 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
3323 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
3324 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
3325 * src/locale-inst.cc: Same. Add __numpunct_cache.
3326 * src/locale.cc: Tweak inlines.
3327 (__use_cache): Define specializations.
3328 * src/localename.cc: Use global bits.
3329 (_Impl::~Impl): Deal with __numpunct_cache destruction.
3330 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
3331 (_Impl::_M_init_facet): Take into account __numpunct_cache.
3332 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
3333 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
3334
8370378a 33352003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
e6cc3a24 3336 Paolo Carlini <pcarlini@unitus.it>
8370378a
NM
3337
3338 * testsuite/performance/filebuf_copy.cc: New, testing char
3339 by char file copy.
3340
2cfe4e68 33412003-06-26 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 3342 Nathan C. Myers <ncm-nospam@cantrip.org>
2cfe4e68
PC
3343
3344 * include/bits/fstream.tcc (_M_underflow): When the actual
3345 end of file is reached, set 'uncommitted' mode to allow a
3346 next write without an intervening seek (see C++98 27.8.1.1,2
3347 and C89 7.9.5.3).
3348 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
3349
29d9ed97
NM
33502003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
3351
3352 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3353 sputc): Move inline, from here...
3354 * include/std/std_streambuf.h: ... to here.
3355
3356 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
3357 sputbackc, sungetc, sputc): Use __builtin_expect.
3358
c1a62440
PE
33592003-06-24 Phil Edwards <pme@gcc.gnu.org>
3360
3361 * docs/doxygen/mainpage.html: Use a useful title.
3362
cdc1242a
BK
33632003-06-24 Benjamin Kosnik <bkoz@redhat.com>
3364
3365 * docs/html/documentation.html: Remove assignment info.
3366 * docs/html/17_intro/contribute.html: Edits.
3367 * docs/html/17_intro/libstdc++-assign.tx: Remove.
3368
3369 * docs/html/test.html: Update.
3370
3371 * README: Update.
e6cc3a24 3372
1b6f0a56 33732003-06-24 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 3374 Ulrich Drepper <drepper@redhat.com>
1b6f0a56
BK
3375
3376 * testsuite/testsuite_performance.h: Tweak mallinfo.
3377
71b46021 33782003-06-24 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 3379 Nathan C. Myers <ncm-nospam@cantrip.org>
71b46021
PC
3380
3381 * include/std/std_fstream.h (_M_filepos): Remove.
3382 (_M_reading, _M_writing): New, encode the various I/O modes:
3383 'read', 'write' and 'uncommitted'.
3384 (sync): If there is something to flush, do it, then go to
3385 'uncommitted' mode.
3386 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
3387 with three different cases: __off > 0 (upon underflow),
3388 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
3389 seekoff/pos).
3390 (_M_underflow): Don't call overflow, set _M_reading to true
3391 on success, tweak.
3392 (pbackfail): Set _M_reading to true on pback creation, tweak.
3393 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
3394 set _M_writing to true on success, tweak.
3395 (seekoff): Simplify, set _M_reading, _M_writing to false, call
3396 _M_set_buffer(-1) ('uncommitted').
3397 (open, close, setbuf): Set _M_reading, _M_writing to false and
3398 call _M_set_buffer(-1), tweak.
3399 (basic_filebuf): Don't set _M_buf_unified.
3400 (_M_destroy_internal_buffer): Don't call setg and setp.
3401 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
3402 _M_writing and _M_set_buffer(-1).
3403 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
3404 _M_out_lim, _M_buf_unified): Remove.
3405 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
e6cc3a24 3406 (setp): Don't set _M_out_lim.
71b46021
PC
3407 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
3408 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
3409 upon open the mode is 'uncommitted' and therefore the put area
3410 pointers are null.
3411 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
3412 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
3413 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
3414 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
3415 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
3416 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
3417 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3418 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
3419 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
3420 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
3421 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
3422 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
3423 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
3424 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
3425 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
3426 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
3427 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
3428 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
3429 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
3430 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
3431
3432 * include/bits/fstream.tcc (showmanyc): Use only the
3433 documented derivation interface to basic_streambuf (gptr(),
3434 setg(), etc.) to work right with user specializations.
3435 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
3436 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
3437 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
3438 Likewise.
3439 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
3440 xsgetn): Likewise.
3441
9eb6e1d3
LR
34422003-06-23 Loren J. Rittle <ljrittle@acm.org>
3443
3444 * configure.host (freebsd*): Set abi_baseline_pair.
3445 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
3446 (at or near first release) to 3.3.
3447 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
3448 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
3449 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
3450
3d57d7ba 3451 * include/ext/mt_allocator.h: Portability.
d1a2c4d6 3452 * testsuite/testsuite_performance.h: Likewise.
3d57d7ba 3453
c89c30dd
BK
34542003-06-23 Benjamin Kosnik <bkoz@redhat.com>
3455
3456 * docs/html/17_intro/libstdc++-assign.txt: Update address.
3457
3458 * testsuite/performance/ifstream_getline.cc: Fix.
e6cc3a24 3459
c89c30dd 34602003-06-23 Doug Gregor <dgregor@apple.com>
2b491e3a 3461
e6cc3a24
ZW
3462 * include/bits/boost_concept_check.h: Don't use _D or _R for type
3463 names.
2b491e3a 3464
1b170b55
PC
34652003-06-22 Paolo Carlini <pcarlini@unitus.it>
3466 Nathan C. Myers <ncm-nospam@cantrip.org>
3467
3468 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
3469 is now used only for filebuf, when _M_buf_unified is true.
3470 epgtr() plays the role of _M_out_lim but it's only updated
3471 upon overflow, underflow, uflow, seekoff/pos.
3472 * include/bits/sstream.tcc (_M_underflow): New, implements
3473 stringbuf::underflow and uflow.
3474 (seekoff, seekpos): Tweak, use _M_update_egptr.
3475 * include/std/std_sstream.h (str): Rewrote, deal correctly
3476 with the new logic, in particular, when pptr() > egptr().
3477 (_M_sync): When __testout && !__testin set all the get area
3478 pointers to the current string end.
3479 (_M_update_egptr): New, internal function updating egptr()
3480 to the actual string end.
3481 (_M_underflow): New, declare.
3482 (underflow): Dispatch to _M_underflow(false).
3483 (uflow): Dispatch to _M_underflow(true).
3484
3485 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
3486 seekpos): Use only the documented derivation interface to
3487 basic_streambuf (gptr(), setg(), etc.) to work right with
3488 user specializations.
3489 * include/std/std_sstream.h (str, _M_sync): Likewise.
3490
8dbe14be
DG
34912003-06-20 Doug Gregor <dgregor@apple.com>
3492
1b170b55
PC
3493 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
3494 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
3495 dereference end iterator.
3496 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
3497 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
3498 index equal to the length of a string.
3499 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
3500 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
3501 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
3502 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
3503 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
3504 * testsuite/23_containers/list_modifiers.cc: Don't dereference
3505 singular reverse iterator.
3506 * testsuite/23_containers/vector_bool.cc: Don't increment singular
3507 iterator.
3508 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
8dbe14be 3509
bdb0f0f5
DG
35102003-06-20 Doug Gregor <dgregor@apple.com>
3511
e6cc3a24 3512 * include/bits/basic_string.h (basic_string::replace): Dispatch
bdb0f0f5
DG
3513 _InputIterator version based on _Is_integer.
3514 * include/bits/basic_string.tcc (basic_string::replace):
3515 Renamed replace(iterator, iterator, size_type, _CharT) to
3516 _M_replace_aux.
3517 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
3518 Test basic_string::assign(_InputIterator, _InputIterator),
3519 which calls basic_string::replace(iterator, iterator,
3520 _Input_iterator, _InputIterator).
3521
f5a6463e
BK
35222003-06-20 Benjamin Kosnik <bkoz@redhat.com>
3523
3524 * testsuite/testsuite_performance.h (resource_counter): Don't use
3525 mallinfo at the moment.
3526
bbdfb3e8
MK
35272003-06-20 Matthias Klose <doko@debian.org>
3528
3529 * configure.host: Set try_cpu to target_cpu for existing
3530 baseline files.
3531
97460e9a
AJ
35322003-06-19 Andreas Jaeger <aj@suse.de>
3533
3534 * testsuite/Makefile.am (extract_symvers): Revert accidental
3535 change.
3536 * testsuite/Makefile.in: Regenerate.
3537
3538 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
3539 * configure: Regenerated.
3540
50af15ec
PC
35412003-06-19 Paolo Carlini <pcarlini@unitus.it>
3542
3543 * include/std/std_sstream.h (_M_sync): Make non virtual.
3544
ce4f8c6b
BK
35452003-06-18 Benjamin Kosnik <bkoz@redhat.com>
3546
3547 * testsuite/testsuite_performance.h (time_counter): New.
3548 (resource_counter): New.
3549 (report_performance): New.
3550 (start_counters): New.
3551 (stop_counters): New.
97460e9a 3552 (clear_counters): New.
ce4f8c6b
BK
3553 * testsuite/performance/allocator.cc: Instrument.
3554 * testsuite/performance/cout_insert_int.cc: Same.
3555 * testsuite/performance/complex_norm.cc: Same.
3556 * testsuite/performance/filebuf_sputc.cc: New.
3557 * testsuite/performance/fstream_seek_write.cc: Same.
3558 * testsuite/performance/ifstream_getline.cc: Same.
3559 * testsuite/performance/map_create_fill.cc: Same.
3560 * testsuite/performance/ofstream_insert_float.cc: Same.
3561 * testsuite/performance/ofstream_insert_int.cc: Same.
97460e9a 3562 * testsuite/performance/string_append.cc: Convert.
ce4f8c6b
BK
3563 * scripts/check_performance: New.
3564 * testsuite/Makefile.am (check-performance): New.
3565 (CLEANFILES): Add.
97460e9a 3566
b82a33d2 35672003-06-18 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 3568 Benjamin Kosnik <bkoz@redhat.com>
b82a33d2
PC
3569
3570 * include/std/std_sstream.h (setbuf): Check __n >= 0.
3571 * include/bits/fstream.tcc (setbuf): Tweak.
3572
4c526d09
PC
35732003-06-18 Paolo Carlini <pcarlini@unitus.it>
3574
3575 * include/bits/sstream.tcc (seekoff): We can't seek beyond
3576 _M_out_lim, therefore _M_move_out_cur boils down to simply
3577 updating _M_out_cur.
3578 (seekpos): Likewise, clean up.
3579
c1b74c21 35802003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
e6cc3a24 3581 Paolo Carlini <pcarlini@unitus.it>
c1b74c21
NM
3582
3583 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
3584 simply equivalent to the unbuffered case (0, 0) as far as
3585 _M_buf_size is concerned.
3586
a1af4623
AJ
35872003-06-18 Andreas Jaeger <aj@suse.de>
3588
3589 * testsuite/Makefile.am (new-abi-baseline): Create baseline
3590 directory.
3591 (baseline_file): Use baseline_dir.
3592 (baseline_dir): New.
3593 (mkinstalldirs): New.
3594
3595 * acinclude.m4: Rename baseline_file to baseline_dir, strip
3596 filename from baseline_dir.
3597
3598 * testsuite/Makefile.in: Regenerated.
3599 * Makefile.in: Regenerated.
3600 * aclocal.m4: Regenerated.
3601 * configure: Regenerated.
3602
2f934953
BK
36032003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3604
3605 * configure.in: Missed check_survey bit.
3606 * configure: Regenerated.
3607
0676e930
BK
36082003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3609
3610 * scripts: New.
3611 * config/abi/extract_symvers: Move to...
3612 * scripts/extract_symvers: ...here.
3613 * mkcheck.in: Move to..
3614 * scripts/check_survey.in: ...here.
3615 * testsuite_flags.in: Move to..
3616 * scripts/testsuite_flags.in: ...here.
3617 * configure.in: Change check and testsuite_flags locations.
3618 * configure: Regenerate.
3619 * testsuite/Makefile.am (current_symbols.txt): Change location.
3620 * testsuite/Makefile.in: Regenerate.
3621 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
3622 location of testsuite_flags.
3623 * Makefile.am (check-script): Move..
3624 (check-script-install): Move...
a1af4623 3625 * testsuite/Makefile.am: ... here.
0676e930 3626 * testsuite/Makefile.in: Regenerate.
a1af4623
AJ
3627 * Makefile.in: Regenerate.
3628
82620aaf
BK
36292003-06-17 Benjamin Kosnik <bkoz@redhat.com>
3630
3631 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
3632
c4c064e7
BK
36332003-06-16 Benjamin Kosnik <bkoz@redhat.com>
3634
3635 * Makefile.am (check-abi): Move...
3636 (new-abi-baseline): Move...
3637 * testsuite/Makefile.am: ...here.
3638 (new-abi-baseline): Conditionalize.
3639 (check-abi): Conditionalize.
3640 (check-abi-verbose): New.
3641 * Makefile.in: Regenerate.
a1af4623 3642 * testsuite/Makefile.in: Regenerate.
c4c064e7
BK
3643 * configure.in: Consolidate testsuite configure bits.
3644 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
3645 * configure: Regenerate.
a1af4623 3646 * aclocal.m4: Regenerate.
c4c064e7
BK
3647 * testsuite/abi_check.cc: Add --check-verbose.
3648 Only output detailed information if --check-verbose.
3649
e7bb3511 36502003-06-16 Andreas Jaeger <aj@suse.de>
a1af4623 3651
e6cc3a24 3652 * testsuite/abi_check.cc: Create summary report.
a1af4623 3653
8363b773
PC
36542003-06-16 Paolo Carlini <pcarlini@unitus.it>
3655
3656 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
3657 for systems with BUFSIZ != 8192.
3658 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
3659 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
3660 Minor tweaks.
3661
5ab481e0
BK
36622003-06-16 Andreas Jaeger <aj@suse.de>
3663
3664 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
3665 check-abi multilib aware.
3666 * aclocal.m4: Regenerate.
3667 * configure: Regenerate.
a1af4623 3668
5ab481e0 36692003-06-16 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 3670 Andreas Jaeger <aj@suse.de>
5ab481e0
BK
3671
3672 * configure.host: Set x86_64 abi_baseline pair correctly.
3673
0bad3b7c
PC
36742003-06-16 Paolo Carlini <pcarlini@unitus.it>
3675
3676 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
e6cc3a24 3677 fix for missing seeks between gets and puts into...
0bad3b7c
PC
3678 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
3679 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
3680 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
3681 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
3682 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
3683 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
a1af4623 3684
dc4add82
RH
36852003-06-15 Richard Henderson <rth@redhat.com>
3686
3687 * config/linker-map.gnu: Export virtual function thunks for
3688 64-bit systems too.
3689
ef16a298
BK
36902003-06-13 Benjamin Kosnik <bkoz@redhat.com>
3691
3692 * config/abi/i686-pc-linux-gnu: To..
3693 * config/abi/i486-linux-gnu: ...this.
3694 * config/abi/alphaev67-unknown-linux-gnu: To..
3695 * config/abi/alpha-linux-gnu: ...this.
3696 * config/abi/ia64-unknown-linux-gnu: To...
3697 * config/abi/ia64-linux-gnu: ...this.
3698 * config/abi/x86_64-unknown-linux-gnu: To...
3699 * config/abi/x86_64-linux-gnu: ...this.
3700 * config/abi/i386-unknown-freebsd4: To...
3701 * config/abi/i386-freebsd4: ...this.
5ab481e0
BK
3702 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
3703 CXXABI.
ef16a298
BK
3704 * configure.host: abi_baseline_triplet to abi_baseline_pair.
3705 Simplify cpu bits so that abi_baseline_pair can use the same
3706 cpu configuration.
3707 * acinclude.m4: Same.
3708 * aclocal.m4: Regenerate.
3709 * configure.in: Can't get enable_abi_check to yes unless native.
3710 * configure: Regenerate.
3711
ed242935
PC
37122003-06-13 Paolo Carlini <pcarlini@unitus.it>
3713
3714 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
3715 fix for missing seeks between gets and puts into...
3716 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
3717 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
3718 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
3719 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
3720 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
3721 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
3722 for missing seeks between gets and puts.
3723 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
3724 * testsuite/data/seekoff-1.tst: New.
3725 * testsuite/data/seekoff-2.tst: New.
3726 * testsuite/data/seekpos-1.tst: New.
3727 * testsuite/data/seekpos-2.tst: New.
3728
ca566e4c
NM
37292003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
3730
3731 Avoid multi-processor bus contention on increment/decrement-and-
a1af4623 3732 test of the reference count in the empty-string object, by comparing
e6cc3a24
ZW
3733 addresses first, and never touching the reference count of the empty-
3734 string object.
ca566e4c
NM
3735 * include/bits/basic_string.h:
3736 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
3737 members.
a1af4623 3738 (_Rep::_S_empty_rep()): New accessor.
ca566e4c
NM
3739 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
3740 a base class _Rep_base.
3741 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
3742 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
3743 since no longer must increment its refcount.
3744 * include/bits/basic_string.tcc:
a1af4623 3745 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
e6cc3a24
ZW
3746 return immediately. The former might be unnecessary. The latter
3747 prevents begin() and end() from cloning it unnecessarily.
ca566e4c
NM
3748 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3749 input_iterator_tag), _S_construct(_InIterator, _InIterator,
3750 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
3751 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
3752 (_M_mutate): Check for the empty string and treat it as shared.
e6cc3a24
ZW
3753 This is necessary here because _M_mutate is sometimes called with
3754 all-zero arguments; in all other uses of _M_is_shared, the test comes
3755 out right anyhow.
a1af4623 3756
c37514ff
BK
37572003-06-12 Benjamin Kosnik <bkoz@redhat.com>
3758
3759 * src/allocator-inst.cc: Explicitly instantiate.
3760 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
3761 Tweaks.
3762 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
a1af4623 3763
58ac1d7f
BK
37642003-06-11 Benjamin Kosnik <bkoz@redhat.com>
3765
3766 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
3767 * aclocal.m4: Regenerate.
3768 * Makefile.am (SUBDIRS): Remove libio.
3769 * Makefile.in: Regenerate.
3770 * configure.in: Same.
3771 * configure: Regenerate.
3772 * config/io/basic_file_libio.cc: Remove.
a1af4623 3773 * config/io/basic_file_libio.h: Remove.
58ac1d7f 3774 * config/io/c_io_libio_codecvt.c: Remove.
a1af4623 3775 * config/io/c_io_libio.h: Remove.
58ac1d7f
BK
3776 * libio/*: Remove.
3777 * src/Makefile.am: Same.
3778 * src/Makefile.in: Regenerate.
a1af4623 3779 * docs/html/configopts.html: Edits.
58ac1d7f 3780 * docs/html/explanations.html: Edits.
a1af4623 3781
1ff9402d
BK
37822003-06-11 Benjamin Kosnik <bkoz@redhat.com>
3783
3784 * include/bits/stl_alloc.h (__debug_alloc): Move out.
3785 (__malloc_alloc): Same.
3786 (__pool_alloc): Same.
3787 (__new_alloc): Same.
3788 Rename to..
3789 * include/bits/allocator.h: ...this.
3790 * include/bits/stl_deque.h: Modify comment.
3791 * include/bits/stl_tree.h: Modify include.
3792 * include/std/std_memory.h: Same.
3793 * include/ext/rope: Same.
a1af4623 3794 * include/ext/slist: Same.
1ff9402d
BK
3795 * include/std/std_vector.h: Same.
3796 * include/std/std_stack.h: Same.
3797 * include/std/std_queue.h: Same.
3798 * include/std/std_list.h: Same.
3799 * include/std/std_deque.h: Same.
3800 * include/backward/alloc.h: Same.
3801 * include/ext/debug_allocator.h: New.
a1af4623
AJ
3802 * include/ext/malloc_allocator.h: New.
3803 * include/ext/pool_allocator.h: New.
1ff9402d
BK
3804 * include/ext/new_allocator.h: New.
3805 * include/bits/pthread_allocimpl.h: Remove.
a1af4623 3806 * include/bits/stl_pthread_alloc.h: Remove.
1ff9402d
BK
3807 * include/Makefile.am (ext_headers): Add.
3808 * include/Makefile.in: Regenerate.
3809 * src/stl-inst.cc: Use __gnu_cxx namespace.
3810 * src/stl-inst.cc: Move to...
3811 * src/allocator-inst.cc: Here.
3812 * src/Makefile.am (sources): Update.
3813 * src/Makefile.in: Regenerate.
3814 * config/linker-map.gnu: Remove __pool_alloc bits.
3815 * testsuite/ext/headers.cc: Add.
3816 * testsuite/ext/allocators.cc: Fixup.
a1af4623 3817
1ff9402d 38182003-06-11 Stefan Olsson <stefan@snon.net>
e6cc3a24 3819