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