]> gcc.gnu.org Git - gcc.git/blame - libstdc++-v3/ChangeLog
re PR debug/11473 (ICE with -gstabs when empty struct inheits from an empty struct)
[gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
119dbb1f
JQ
12003-07-15 Jerry Quinn <jlquinn@optonline.net>
2
3 * include/bits/stl_algo.h (includes, set_union, set_intersection,
4 set_difference, set_symmetric_difference, max_element, min_element,
5 next_permutation, prev_permutation, find_first_of, find_end):
6 Document.
7 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
8 restrictions in docs.
9 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
10 Document.
11 * docs/doxygen/doxygroups.cc (setoperations): New group.
12
284f19bf
JQ
132003-07-15 Jerry Quinn <jlquinn@optonline.net>
14
15 * include/bits/basic_string.h: Document public functions.
16 * docs/doxygen/TODO: Update c21 todo.
17
709e7c9f
JQ
182003-07-15 Jerry Quinn <jlquinn@optonline.net>
19
20 * include/bits/stl_list.h: Document more functions.
21 * docs/doxygen/TODO: Update c23 todo.
22
f45e487d
PC
232003-07-14 Paolo Carlini <pcarlini@unitus.it>
24
25 * config/locale/gnu/c_locale.h (__convert_from_v): One more
26 qualification.
27
f088510d
PC
282003-07-14 Paolo Carlini <pcarlini@unitus.it>
29
30 * include/bits/stl_tempbuf.h: Qualify free with std::.
31 * src/locale.cc: Include <cstdlib>, qualify getenv.
32
2def5b76
PC
332003-07-14 Paolo Carlini <pcarlini@unitus.it>
34
35 * config/locale/gnu/c_locale.h (__convert_from_v): Include
36 <cstdio>. Qualify names.
37 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
38
bda243ec
PC
392003-07-14 Paolo Carlini <pcarlini@unitus.it>
40 Nathan C. Myers <ncm-nospam@cantrip.org>
41
42 PR libstdc++/11378
43 * include/std/std_fstream.h (xsputn): Declare only.
44 * include/bits/fstream.tcc (xsputn): Define, optimize for the
45 always_noconv() case: when __n is sufficiently large flush
46 the buffer and issue a direct write, if possible combining the
47 two with writev in __basic_file<>::xsputn_2.
48 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
49 New, declare.
50 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
51 Define.
52 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
53 the availability of writev in <sys/uio.h>.
54 * configure.in: Call here.
55 * acconfig.h: Add undef for the corresponding symbol.
56 * aclocal.m4: Regenerate.
57 * configure: Regenerate.
58 * config.h.in: Regenerate.
59 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
60
61 * include/std/std_fstream.h (sync): Constify a variable.
62
c573d965
BK
632003-07-14 Benjamin Kosnik <bkoz@redhat.com>
64
65 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
66 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
67
3ad249b9
GDR
682003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
69
70 * config/locale/gnu/c_locale.h (__convert_from_v): Include
71 <cstring> and <cstdlib>. Qualify names.
72
f2ffecb1
MM
732003-07-13 Mark Mitchell <mark@codesourcery.com>
74
75 * config/locale/generic/c_locale.h: Include <cstdlib> and
76 <cstring>.
77 * include/bits/boost_concept_check.h: Add this-> to unqualified
78 method calls.
79 * include/bits/deque.tcc: Likewise.
80 * include/bits/locale_facets.h : Likewise.
81 * include/bits/ostream.tcc: Likewise.
82 * include/bits/stl_algo.h: Likewise.
83 * include/bits/stl_bvector.h: Likewise.
84 * include/bits/stl_deque.h: Likewise.
85 * include/bits/stl_list.h: Likewise.
86 * include/bits/stl_tree.h: Likewise.
87 * include/bits/stl_vector.h: Likewise.
88 * include/bits/vector.tcc: Likewise.
89 * include/ext/rope: Likewise.
90 * include/ext/ropeimpl.h: Likewise.
91 * include/ext/stdio_filebuf.h: Likewise.
92
e2fcbaa3
JQ
932003-07-11 Jerry Quinn <jlquinn@optonline.net>
94
95 * include/bits/basic_ios.h (copyfmt): Document.
96 * include/bits/ios_base.h (event, event_callback, register_callback,
97 xalloc, iword, pword): Document.
98 (imbue, ~ios_base): Update docs on callbacks.
99
58579a27
PE
1002003-07-11 Phil Edwards <pme@gcc.gnu.org>
101
102 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
103 warning messages if the environment cannot support symbol versioning.
104 (port_specific_symbol_file): It's plural, add an 's' on the end.
105 * configure.host: Likewise.
106 * src/Makefile.am: Likewise.
107 * config/linker-map.gnu: Remove one semicolon, heh.
108 * scripts/extract_symvers: Don't assume useful 'export' syntax.
109 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
110 * aclocal.m4, configure, src/Makefile.in: Regenerated.
111
cde63840
BK
1122003-07-09 Benjamin Kosnik <bkoz@redhat.com>
113
114 * include/bits/locale_facets.tcc: Use function object for
115 __use_cache instead of template function. Partially specialize for
116 __numpunct<_CharT>.
117 * include/bits/locale_classes.h: Update friend declaration for
118 __use_cache.
119 (_M_install_cache): No throw exception specs.
120 * src/locale.cc: Remove __use_cache specializations.
121 * include/ext/pod_char_traits.h (length): Tweak.
122 * include/bits/locale_facets.h (__numpunct_cache): Remove
123 char_type typedef.
124 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
125 (pod_long): Remove.
126 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
127 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
128 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
129 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
130 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
131 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
132
e7f042e4
JQ
1332003-07-09 Jerry Quinn <jlquinn@optonline.net>
134
135 * src/ios.cc (_M_grow_words): Fix spelling.
136
ca1c7011
GB
1372003-07-09 Gawain Bolton <gp.bolton@computer.org>
138
139 * include/bits/stl_tree.h: Move larger member functions in
140 _Rb_tree_base_iterator and _Rb_tree_node to...
141 * src/stl_tree.cc: Here.
142 * src/Makefile.in: Add stl_tree.cc.
143 * src/Makefile.in: Regenerated.
144 * config/linker-map.gnu: Add symbols here.
145
9e7facfd
BK
1462003-07-08 Benjamin Kosnik <bkoz@redhat.com>
147
148 * testsuite/ext/pod_char_traits.cc: New.
149 * include/ext/pod_char_traits.h: New.
150 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
151 * include/Makefile.in: Regenerate.
152 * docs/html/21_strings/howto.html: Update.
ca1c7011 153
e55dc371
GB
1542003-07-08 Gawain Bolton <gp.bolton@computer.org>
155
156 * testsuite/performance/list_create_fill_sort.cc: New.
157
c094e9b9
BK
1582003-07-08 Benjamin Kosnik <bkoz@redhat.com>
159
160 * config/locale/generic/numeric_members.cc: Correct type info.
161 * config/locale/gnu/numeric_members.cc: Same.
162 * include/bits/locale_facets.h: Same.
163
164 * include/bits/char_traits.h: Correct spacing.
165
166 * src/locale.cc: Wrap to 80 col.
167
a8784c4c
PC
1682003-07-07 Paolo Carlini <pcarlini@unitus.it>
169
170 * include/std/std_complex.h: Partially revert last
171 changes: cmath functions must not be qualified.
172
313dd504
PE
1732003-07-06 Phil Edwards <pme@gcc.gnu.org>
174
175 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
176 2.11 with globbing backport fix.
177 * aclocal.m4, configure: Regenerated.
178
6623b2f2
PC
1792003-07-06 Paolo Carlini <pcarlini@unitus.it>
180
181 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
182 if output is at all possible (!_M_reading), cannot be active.
183
184 * include/std/std_fstream.h: Tweak comments to doxygen style.
185
391cfc46
PC
1862003-07-06 Paolo Carlini <pcarlini@unitus.it>
187
188 * include/bits/locale_classes.h: Fully qualify standard
189 functions with std::, thus avoiding Koenig lookup.
190 * include/bits/locale_facets.tcc: Likewise.
191 * src/locale.cc: Likewise.
192 * src/localename.cc: Likewise.
193
48166869
PE
1942003-07-06 Phil Edwards <pme@gcc.gnu.org>
195
196 * include/bits/allocator_traits.h: Fix doxygen markup.
197 * include/ext/mt_allocator.h: Likewise.
198
aaa4a229
PE
1992003-07-06 Phil Edwards <pme@gcc.gnu.org>
200
201 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
202
e6b7a69a
PE
2032003-07-05 Phil Edwards <pme@gcc.gnu.org>
204
205 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
206 requirement. Add port_specific_symbol_file variable.
207 * configure.host: Add docs for port_specific_symbol_file.
208 Clean up try_cpu block for x86.
209 * config/linker-map.gnu: No more "last symbol can't have a
210 semicolon" kaka. Add hook for port-specific symbols.
211 * src/Makefile.am: Remove trailing whitespace.
212 (libstdc++-symbol.ver): Detect the presence of port-specific
213 symbols, and add them accordingly.
214
215 * docs/html/17_intro/porting.texi: Bring up to date.
216
217 * src/Makefile.in, aclocal.m4, configure,
218 docs/html/17_intro/porting.html: Regenerated.
219
ac3d7b44
PE
2202003-07-05 Phil Edwards <pme@gcc.gnu.org>
221
222 * scripts/create_testsuite_files: New file.
223 * testsuite/Makefile.am (all-local, check-performance): Use it.
224 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
225 * testsuite/Makefile.in: Regenerated.
226
227 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
228 files at the end.
229 * testsuite/performance/fstream_seek_write.cc: Likewise.
230 * testsuite/performance/ofstream_insert_float.cc: Likewise.
231 * testsuite/performance/ofstream_insert_int.cc: Likewise.
232 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
233
e3d51be2
GB
2342003-07-05 Gawain Bolton <gp.bolton@computer.org>
235
236 * include/bits/stl_list.h: Performance and memory usage
c094e9b9
BK
237 improvements. In particular, the behaviour of the constructor and
238 destructor as the list header node is no longer dynamically
239 allocated/de-allocated.
e3d51be2
GB
240 * include/bits/list.tcc: Likewise.
241
eb9a4231
PC
2422003-07-05 Paolo Carlini <pcarlini@unitus.it>
243
244 * include/std/std_complex.h: Fully qualify standard
245 functions with std::, thus avoiding Koenig lookup.
246 * include/std/std_memory.h: Likewise.
247 * include/std/std_valarray.h: Likewise.
248
f92c5313
GB
2492003-07-05 Gawain Bolton <gp.bolton@computer.org>
250
251 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
252 variable for grandparent and use const
253
8b87d3fa
DB
2542003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
255
256 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
257 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
258 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
259 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
260 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
261 * testsuite/27_io/objects/char/7.cc: Ditto
262 * testsuite/27_io/objects/char/9661-1.cc: Ditto
263
a8cad3e1
PC
2642003-07-05 Paolo Carlini <pcarlini@unitus.it>
265
266 * include/std/std_bitset.h: Fully qualify standard
267 functions with std::, thus avoiding Koenig lookup.
268
269 * include/std/std_fstream.h: Change comment to doxygen style.
270
2778669a
PE
2712003-07-05 Phil Edwards <pme@gcc.gnu.org>
272
273 * include/std/std_limits.h: More CPP->CXX changes.
274 * scripts/check_survey.in: Likewise.
275
3d7c150e
BK
2762003-07-04 Benjamin Kosnik <bkoz@redhat.com>
277
278 Move from CPP to CXX.
279 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
280 * testsuite/Makefile.am: Same.
281 * testsuite/Makefile.in: Regenerate.
282 * po/Makefile.am: Same.
283 * po/Makefile.in: Regenerate.
284 * libsupc++/Makefile.am: Same.
285 * libsupc++/Makefile.in: Regenerate.
286 * libmath/Makefile.am: Same.
287 * libmath/Makefile.in: Regenerate.
288 * include/Makefile.am: Same.
289 * include/Makefile.in: Regenerate.
290 * src/Makefile.am: Same.
291 * src/Makefile.in: Regenerate.
292 * acconfig.h: Same.
293 * configure.host: Same.
294 * configure.in: Same.
295 * configure: Regenerate.
296 * acinclude.m4: Same.
297 * aclocal.m4: Same.
298 * src: Change all files in this directory.
299 * testsuite: Same.
300 * include: Same, standardize include guards.
301 * config: Same.
302 * libsupc++: Same.
303
e6cc3a24
ZW
3042003-07-04 Zack Weinberg <zack@codesourcery.com>
305
306 * testsuite/22_locale/collate/compare/wchar_t/2.cc
307 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
308 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
309 * testsuite/22_locale/collate/hash/wchar_t/2.cc
310 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
311 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
312 * testsuite/22_locale/collate/transform/wchar_t/2.cc
313 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
314 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
315 XFAIL on all targets.
316
d542f114
BK
3172003-07-04 Benjamin Kosnik <bkoz@redhat.com>
318
319 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
320 * aclocal.m4: Regenerate.
321 * configure: Regenerate.
e6cc3a24 322
d542f114
BK
3232003-07-04 Jerry Quinn <jlquinn@optonline.net>
324
325 * include/bits/locale_facets.tcc (__int_to_char): Move common case
326 to the top.
327
69ef29fd 3282003-07-04 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24
ZW
329 Petur Runolfsson <peturr02@ru.is>
330
69ef29fd
BK
331 * config/io/basic_file_stdio.cc: Revert.
332
5b5bf717
PC
3332003-07-04 Paolo Carlini <pcarlini@unitus.it>
334
335 * include/bits/deque.tcc: Fully qualify standard
336 functions with std::, thus avoiding Koenig lookup.
337 * include/bits/gslice_array.h: Likewise.
338 * include/bits/indirect_array.h: Likewise.
339 * include/bits/list.tcc: Likewise.
340 * include/bits/mask_array.h: Likewise.
341 * include/bits/slice_array.h: Likewise.
342
7f6dd1ca
GB
3432003-07-04 Gawain Bolton <gbolton@free.fr>
344
345 * include/bits/stl_tree.h: Performance and memory usage
346 improvements.
347
8c90b13a
L
3482003-07-04 H.J. Lu <hongjiu.lu@intel.com>
349
350 * Makefile.am: Replace PWD with PWD_COMMAND.
351 * Makefile.in: Regenerated.
352 * docs/html/Makefile: Likewise.
353
2f805868
PC
3542003-07-04 Paolo Carlini <pcarlini@unitus.it>
355
356 * include/bits/valarray_array.h: Fully qualify standard
357 functions with std::, thus avoiding Koenig lookup.
358 * include/bits/vector.tcc: Likewise.
359
a30335e9
BK
3602003-07-04 Benjamin Kosnik <bkoz@redhat.com>
361
362 * include/Makefile.am: Update target_ to host_.
363 * include/Makefile.in: Regenerate.
364 * src/Makefile.am: Same.
365 * src/Makefile.in: Regenerate.
366
367 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
e6cc3a24 368
d8d81f62
BK
3692003-07-04 Benjamin Kosnik <bkoz@redhat.com>
370
371 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
372 --enable-libstdcxx-debug-flags.
373 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
374 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
375 * aclocal.m4: Regenerate.
376 * configure: Same.
377 * docs/html/configopts.html: Update.
e6cc3a24 378
10ef4e2e
PC
3792003-07-04 Paolo Carlini <pcarlini@unitus.it>
380
381 Revert the fix for libstdc++/11378.
382
ac2c48d7
PC
3832003-07-04 Paolo Carlini <pcarlini@unitus.it>
384
385 PR libstdc++/11378
386 * include/std/std_fstream.h (xsputn): In the unbuffered case,
387 provided always_noconv(), issue directly _M_file.xsputn.
388 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
389
9dd90ac6
PC
3902003-07-04 Paolo Carlini <pcarlini@unitus.it>
391
392 * include/bits/stl_list.h: Fully qualify standard
393 functions with std::, thus avoiding Koenig lookup.
394 * include/bits/stl_queue.h: Likewise.
395 * include/bits/stl_raw_storage_iter.h: Likewise.
396 * include/bits/stl_tempbuf.h: Likewise.
397 * include/bits/stl_tree.h: Likewise.
398 * include/bits/stl_uninitialized.h: Likewise.
399 * include/bits/stl_vector.h: Likewise.
e6cc3a24 400 * include/ext/rope: Change includes order.
9dd90ac6 401
1b33b6b2
BK
4022003-07-04 Benjamin Kosnik <bkoz@redhat.com>
403
404 * configure.host (fpos_include_dir): Fix.
405
369b78b0
PC
4062003-07-04 Paolo Carlini <pcarlini@unitus.it>
407
408 * include/bits/stl_heap.h: Fully qualify standard
409 functions with std::, thus avoiding Koenig lookup.
410 * include/bits/stl_iterator_base_funcs.h: Likewise.
411
412 * include/bits/stl_algo.h: Qualify __iterator_category too.
413 * include/bits/stl_algobase.h: Likewise.
414 * include/bits/stl_bvector.h: Likewise.
415
416 * include/bits/stl_algo.h: Don't qualify the pair type.
417
cc5112c9
BK
4182003-07-03 Benjamin Kosnik <bkoz@redhat.com>
419
420 * include/Makefile.am (target_headers): Add fpos.h
421 (bits_headers): Remove.
422 * include/Makefile.in: Regenerate.
423 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
424 * configure: Regenerate.
425 * configure.host: Add fpos_include_dir.
426 * config/os/gnu-linux/fpos.h: New.
e6cc3a24
ZW
427 * config/os/generic/fpos.h: Add.
428 * include/bits/fpos.h: Remove.
cc5112c9
BK
429
430 * config/io/c_io_stdio.h: Remove fpos_t typedef.
431
432 * include/bits/fstream.tcc: Tweaks.
433 * include/std/std_fstream.h: Same.
e6cc3a24 434
cc5112c9
BK
435 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
436 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
437 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
438 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
439 * testsuite/27_io/fpos/1.cc: New.
e6cc3a24 440
cc5112c9
BK
4412003-07-03 Benjamin Kosnik <bkoz@redhat.com>
442 Petur Runolfsson <peturr02@ru.is>
e6cc3a24 443
cc5112c9
BK
444 * include/std/std_streambuf.h: Remove _M_pos.
445 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
446 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
447 use fread/fwrite instead of read/write.
448 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
449 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
450 before reading again.
451 * testsuite/27_io/objects/char/6.cc: Tweak.
e6cc3a24 452
304d79dc
DE
4532003-07-03 David Edelsohn <edelsohn@gnu.org>
454
455 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
456 _GLIBCPP_USE_WCHAR_T.
457
41ba4c46
PC
4582003-07-02 Paolo Carlini <pcarlini@unitus.it>
459
460 * include/bits/basic_string.tcc (_M_replace_aux): Constify
461 __n1 and __off1.
462
da73f9de
PC
4632003-07-02 Paolo Carlini <pcarlini@unitus.it>
464
465 * include/bits/stl_bvector.h: Fully qualify standard
466 functions with std::, thus avoiding Koenig lookup.
467 * include/bits/stl_construct.h: Likewise.
468 * include/bits/stl_deque.h: Likewise.
469
1c380095
PC
4702003-07-02 Paolo Carlini <pcarlini@unitus.it>
471
472 * testsuite/22_locale/num_put/put/char/7.cc: Include
473 <testsuite_hooks.h>, tweak.
474 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
475
f9f4d1e1
PE
4762003-07-01 Phil Edwards <pme@gcc.gnu.org>
477
478 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
479 check* targets, but not libs/programs).
480 * testsuite/Makefile.in: Regenerate.
481
b7693a46
RS
4822003-07-01 Roger Sayle <roger@eyesopen.com>
483
484 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
485 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
486 * aclocal.m4: Regenerate.
487 * configure: Regenerate.
488
a5b1b26c
BK
4892003-07-01 Benjamin Kosnik <bkoz@redhat.com>
490
491 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
492 * aclocal.m4: Regenerated.
493 * configure: Regenerated.
e6cc3a24 494
f64f3e74
PC
4952003-07-01 Paolo Carlini <pcarlini@unitus.it>
496
497 PR libstdc++/11389
498 * include/bits/fstream.tcc (underflow): For encoding() == 0
499 don't read more than __buflen chars.
500 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
501 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
502 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
503 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
504
5ee78c21
JQ
5052003-07-01 Jerry Quinn <jlquinn@optonline.net>
506
507 * 22_locale/num_put/put/char/7.cc: New.
508 * 22_locale/num_put/put/wchar_t/7.cc: New.
509
e97ee22e
JQ
5102003-06-30 Jerry Quinn <jlquinn@optonline.net>
511
512 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
513 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
514
7d6a0993
BK
5152003-06-30 Benjamin Kosnik <bkoz@redhat.com>
516
517 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
518 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
519 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
520 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
521 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
522 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
523 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
524 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
525 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
526 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
527 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
528 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
529 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
530 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
531 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
532 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
533 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
534 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
535 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
536 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
537 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
538 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
539 * data/seekoff-1.tst: Remove.
540 * data/seekoff-1io.tst: New.
541 * data/seekoff-1out.tst: New.
542 * data/seekoff-2.tst: Remove.
543 * data/seekoff-2io.tst: New.
544 * data/seekoff-2out.tst: New.
545 * data/seekoff.txt
546 * data/seekpos-1.tst: Remove.
547 * data/seekpos-1io.tst: New.
548 * data/seekpos-1out.tst: New.
549 * data/seekpos-2.tst: Remove.
550 * data/seekpos-2io.tst: New.
551 * data/seekpos-2out.tst: New.
552 * data/seekpos.txt: New.
553
a5b1b26c 5542003-06-30 Jerry Quinn <jlquinn@optonline.net>
cf0cad09
JQ
555
556 * src/locale.cc (__use_cache<numpunct>): Move from here ...
557 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
558 here.
559
884a757a
PC
5602003-06-30 Paolo Carlini <pcarlini@unitus.it>
561
562 * include/bits/stl_algobase.h: Fully qualify standard
563 functions with std::, thus avoiding Koenig lookup.
564
5892c641 5652003-06-30 Doug Gregor <dgregor@apple.com>
e6cc3a24 566
5892c641 567 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
e6cc3a24 568 subscripting empty string.
5892c641 569
7685a26d
PE
5702003-06-30 Phil Edwards <pme@gcc.gnu.org>
571
572 * testsuite/Makefile.am (check-am): Do not override.
573 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
574 * testsuite/Makefile.in: Regenerate.
575
e6cc3a24
ZW
5762003-06-30 Doug Gregor <dgregor@apple.com>
577
d147b75b
DG
578 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
579 Don't initialize an insert_iterator with a singular iterator.
580
44f0760e 5812003-06-30 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 582
44f0760e
BK
583 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
584 * aclocal.m4: Regenerate.
585 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
586 GLIBCPP_ENABLE_PCH, default to yes.
587 * configure: Regenerate.
588 * docs/html/configopts.html: Add --enable-pch.
e6cc3a24 589
e37f7da7
PE
5902003-06-30 Phil Edwards <pme@gcc.gnu.org>
591
592 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
593 (libstdc++-v3-init): Also set LD_RUN_PATH.
594
cd16e04b
PC
5952003-06-30 Paolo Carlini <pcarlini@unitus.it>
596
fbfcbadc
PC
597 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
598 from here to filebuf and stringbuf.
cd16e04b
PC
599 (~basic_streambuf()): Don't set _M_mode.
600 (basic_streambuf()): Don't set _M_mode.
601 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
602 (~basic_filebuf()): Clean up.
603 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
604 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
605 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
606 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
607 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
608 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
609 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
610
6112003-06-30 Paolo Carlini <pcarlini@unitus.it>
612
613 * include/std/std_fstream.h (_M_underflow): Remove.
614 (uflow): Remove, inherited from streambuf.
615 (underflow): Only declare.
e6cc3a24 616 * include/bits/fstream.tcc (_M_underflow): Rename to
cd16e04b
PC
617 underflow, to which is equivalent for __bump == false,
618 simplify.
619 * include/std/std_sstream.h (_M_underflow): Remove.
620 (uflow): Remove, inherited from streambuf.
621 (underflow): Only declare.
e6cc3a24 622 * include/bits/sstream.tcc (_M_underflow): Rename to
cd16e04b
PC
623 underflow, to which is equivalent for __bump == false,
624 simplify.
625
c868f37e
PC
6262003-06-29 Paolo Carlini <pcarlini@unitus.it>
627
fbfcbadc
PC
628 * include/bits/stl_algo.h: Fully qualify standard functions
629 with std::, thus avoiding Koenig lookup.
c868f37e 630
165f54e0
PC
6312003-06-29 Paolo Carlini <pcarlini@unitus.it>
632
633 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
634 Improve type correctness-wise.
635 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
636 Likewise.
637 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
638 Likewise.
639 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
640 Likewise.
641
90319d16
PC
6422003-06-29 Paolo Carlini <pcarlini@unitus.it>
643
644 * include/std/std_streambuf.h (uflow): According to
645 27.5.2.4.3,p16, don't check gptr() < egptr().
646
b417ae14
PC
6472003-06-28 Paolo Carlini <pcarlini@unitus.it>
648
649 PR libstdc++/9875
650 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
651 (seekpos): Likewise.
652 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
653 New test.
654 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
655 New test.
656
f1a22109
BK
6572003-06-27 Benjamin Kosnik <bkoz@redhat.com>
658
659 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
660 output name to libstdc++-v3-performance.sum.
661 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
662 * testsuite/Makefile.in: Regenerate.
e6cc3a24 663
f1a22109
BK
6642003-06-27 Matthias Klose <doko@debian.org>
665
666 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
667 output of abi-check in libstdc++-v3-abi.sum.
668 * testsuite/Makefile.in: Regenerate.
669
2e8a523f
KW
6702003-06-27 Krister Walfridsson <cato@df.lth.se>
671
672 * config/os/bsd/netbsd/ctype_noninline.h
673 (_C_ctype_): Declare.
674 (ctype<char>::classic_table): Return _C_ctype_ + 1.
675 (ctype<char>::ctype): Use classic_table.
676
3461133d
PC
6772003-06-27 Paolo Carlini <pcarlini@unitus.it>
678 Nathan C. Myers <ncm-nospam@cantrip.org>
679
680 PR libstdc++/9178
681 * include/bits/fstream.tcc (_M_underflow): Properly estimate
682 the worst-case number of external bytes for a given get area.
683 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
684
6852003-06-27 Paolo Carlini <pcarlini@unitus.it>
686 Petur Runolfsson <peturr02@ru.is>
687
688 PR libstdc++/11305
689 * include/bits/fstream.tcc (overflow): Properly estimate the
690 worst-case number of external bytes for a given put area
691 (by using codecvt::max_length()).
692 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
693 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
694 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
695 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
696
5648db54
NS
6972003-06-27 Nathan Sidwell <nathan@codesourcery.com>
698
699 * config/linker-map.gnu: Remove ; after __numpunct_cache.
700
215f9e28
BK
7012003-06-26 Benjamin Kosnik <bkoz@redhat.com>
702
703 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
704 to the imbued locale.
705 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
706 _M_getloc.
707 (num_put::_M_convert_float): Use.
708
7092003-06-26 Benjamin Kosnik <bkoz@redhat.com>
710 Jerry Quinn <jlquinn@optonline.net>
711
712 * config/linker-map.gnu: Add __numpunct_cache.
713 * config/locale/gnu/numeric_members.cc
714 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
715 all elements for "C" locale.
716 (numpunct::~numpunct): Delete _M_data.
e6cc3a24 717 * config/locale/generic/numeric_members.cc: Same.
215f9e28
BK
718 * include/bits/basic_ios.tcc
719 (basic_ios::init): Remove __locale_cache bits.
720 (basic_ios::_M_cache_locale): Same.
e6cc3a24 721 * include/bits/ios_base.h: Same. Tweaks.
215f9e28
BK
722 * include/bits/locale_classes.h: Tweaks. Reorder classes.
723 (__use_cache): Make friends with _Impl, locale.
724 (_Impl::_M_caches): Add.
725 (_Impl::_M_install_cache): Add.
726 * include/bits/locale_facets.h (__numpunct_cache): New.
727 (numpunct): Encapsulate data members in __numpunct_cache member,
728 _M_data. Adjust virtuals.
e6cc3a24 729 (numpunct::numpunct): New ctor for the same.
215f9e28 730 (__locale_cache_base): Remove.
e6cc3a24 731 (__locale_cache): Remove.
215f9e28
BK
732 * include/bits/locale_facets.tcc (__use_cache): New function,
733 specializations.
734 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
735 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
736 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
737 * src/locale-inst.cc: Same. Add __numpunct_cache.
738 * src/locale.cc: Tweak inlines.
739 (__use_cache): Define specializations.
740 * src/localename.cc: Use global bits.
741 (_Impl::~Impl): Deal with __numpunct_cache destruction.
742 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
743 (_Impl::_M_init_facet): Take into account __numpunct_cache.
744 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
745 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
746
8370378a 7472003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
e6cc3a24 748 Paolo Carlini <pcarlini@unitus.it>
8370378a
NM
749
750 * testsuite/performance/filebuf_copy.cc: New, testing char
751 by char file copy.
752
2cfe4e68 7532003-06-26 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 754 Nathan C. Myers <ncm-nospam@cantrip.org>
2cfe4e68
PC
755
756 * include/bits/fstream.tcc (_M_underflow): When the actual
757 end of file is reached, set 'uncommitted' mode to allow a
758 next write without an intervening seek (see C++98 27.8.1.1,2
759 and C89 7.9.5.3).
760 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
761
29d9ed97
NM
7622003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
763
764 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
765 sputc): Move inline, from here...
766 * include/std/std_streambuf.h: ... to here.
767
768 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
769 sputbackc, sungetc, sputc): Use __builtin_expect.
770
c1a62440
PE
7712003-06-24 Phil Edwards <pme@gcc.gnu.org>
772
773 * docs/doxygen/mainpage.html: Use a useful title.
774
cdc1242a
BK
7752003-06-24 Benjamin Kosnik <bkoz@redhat.com>
776
777 * docs/html/documentation.html: Remove assignment info.
778 * docs/html/17_intro/contribute.html: Edits.
779 * docs/html/17_intro/libstdc++-assign.tx: Remove.
780
781 * docs/html/test.html: Update.
782
783 * README: Update.
e6cc3a24 784
1b6f0a56 7852003-06-24 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 786 Ulrich Drepper <drepper@redhat.com>
1b6f0a56
BK
787
788 * testsuite/testsuite_performance.h: Tweak mallinfo.
789
71b46021 7902003-06-24 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 791 Nathan C. Myers <ncm-nospam@cantrip.org>
71b46021
PC
792
793 * include/std/std_fstream.h (_M_filepos): Remove.
794 (_M_reading, _M_writing): New, encode the various I/O modes:
795 'read', 'write' and 'uncommitted'.
796 (sync): If there is something to flush, do it, then go to
797 'uncommitted' mode.
798 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
799 with three different cases: __off > 0 (upon underflow),
800 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
801 seekoff/pos).
802 (_M_underflow): Don't call overflow, set _M_reading to true
803 on success, tweak.
804 (pbackfail): Set _M_reading to true on pback creation, tweak.
805 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
806 set _M_writing to true on success, tweak.
807 (seekoff): Simplify, set _M_reading, _M_writing to false, call
808 _M_set_buffer(-1) ('uncommitted').
809 (open, close, setbuf): Set _M_reading, _M_writing to false and
810 call _M_set_buffer(-1), tweak.
811 (basic_filebuf): Don't set _M_buf_unified.
812 (_M_destroy_internal_buffer): Don't call setg and setp.
813 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
814 _M_writing and _M_set_buffer(-1).
815 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
816 _M_out_lim, _M_buf_unified): Remove.
817 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
e6cc3a24 818 (setp): Don't set _M_out_lim.
71b46021
PC
819 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
820 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
821 upon open the mode is 'uncommitted' and therefore the put area
822 pointers are null.
823 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
824 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
825 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
826 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
827 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
828 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
829 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
830 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
831 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
832 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
833 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
834 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
835 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
836 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
837 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
838 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
839 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
840 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
841 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
842 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
843
844 * include/bits/fstream.tcc (showmanyc): Use only the
845 documented derivation interface to basic_streambuf (gptr(),
846 setg(), etc.) to work right with user specializations.
847 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
848 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
849 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
850 Likewise.
851 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
852 xsgetn): Likewise.
853
9eb6e1d3
LR
8542003-06-23 Loren J. Rittle <ljrittle@acm.org>
855
856 * configure.host (freebsd*): Set abi_baseline_pair.
857 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
858 (at or near first release) to 3.3.
859 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
860 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
861 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
862
3d57d7ba 863 * include/ext/mt_allocator.h: Portability.
d1a2c4d6 864 * testsuite/testsuite_performance.h: Likewise.
3d57d7ba 865
c89c30dd
BK
8662003-06-23 Benjamin Kosnik <bkoz@redhat.com>
867
868 * docs/html/17_intro/libstdc++-assign.txt: Update address.
869
870 * testsuite/performance/ifstream_getline.cc: Fix.
e6cc3a24 871
c89c30dd 8722003-06-23 Doug Gregor <dgregor@apple.com>
2b491e3a 873
e6cc3a24
ZW
874 * include/bits/boost_concept_check.h: Don't use _D or _R for type
875 names.
2b491e3a 876
1b170b55
PC
8772003-06-22 Paolo Carlini <pcarlini@unitus.it>
878 Nathan C. Myers <ncm-nospam@cantrip.org>
879
880 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
881 is now used only for filebuf, when _M_buf_unified is true.
882 epgtr() plays the role of _M_out_lim but it's only updated
883 upon overflow, underflow, uflow, seekoff/pos.
884 * include/bits/sstream.tcc (_M_underflow): New, implements
885 stringbuf::underflow and uflow.
886 (seekoff, seekpos): Tweak, use _M_update_egptr.
887 * include/std/std_sstream.h (str): Rewrote, deal correctly
888 with the new logic, in particular, when pptr() > egptr().
889 (_M_sync): When __testout && !__testin set all the get area
890 pointers to the current string end.
891 (_M_update_egptr): New, internal function updating egptr()
892 to the actual string end.
893 (_M_underflow): New, declare.
894 (underflow): Dispatch to _M_underflow(false).
895 (uflow): Dispatch to _M_underflow(true).
896
897 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
898 seekpos): Use only the documented derivation interface to
899 basic_streambuf (gptr(), setg(), etc.) to work right with
900 user specializations.
901 * include/std/std_sstream.h (str, _M_sync): Likewise.
902
8dbe14be
DG
9032003-06-20 Doug Gregor <dgregor@apple.com>
904
1b170b55
PC
905 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
906 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
907 dereference end iterator.
908 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
909 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
910 index equal to the length of a string.
911 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
912 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
913 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
914 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
915 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
916 * testsuite/23_containers/list_modifiers.cc: Don't dereference
917 singular reverse iterator.
918 * testsuite/23_containers/vector_bool.cc: Don't increment singular
919 iterator.
920 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
8dbe14be 921
bdb0f0f5
DG
9222003-06-20 Doug Gregor <dgregor@apple.com>
923
e6cc3a24 924 * include/bits/basic_string.h (basic_string::replace): Dispatch
bdb0f0f5
DG
925 _InputIterator version based on _Is_integer.
926 * include/bits/basic_string.tcc (basic_string::replace):
927 Renamed replace(iterator, iterator, size_type, _CharT) to
928 _M_replace_aux.
929 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
930 Test basic_string::assign(_InputIterator, _InputIterator),
931 which calls basic_string::replace(iterator, iterator,
932 _Input_iterator, _InputIterator).
933
f5a6463e
BK
9342003-06-20 Benjamin Kosnik <bkoz@redhat.com>
935
936 * testsuite/testsuite_performance.h (resource_counter): Don't use
937 mallinfo at the moment.
938
bbdfb3e8
MK
9392003-06-20 Matthias Klose <doko@debian.org>
940
941 * configure.host: Set try_cpu to target_cpu for existing
942 baseline files.
943
97460e9a
AJ
9442003-06-19 Andreas Jaeger <aj@suse.de>
945
946 * testsuite/Makefile.am (extract_symvers): Revert accidental
947 change.
948 * testsuite/Makefile.in: Regenerate.
949
950 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
951 * configure: Regenerated.
952
50af15ec
PC
9532003-06-19 Paolo Carlini <pcarlini@unitus.it>
954
955 * include/std/std_sstream.h (_M_sync): Make non virtual.
956
ce4f8c6b
BK
9572003-06-18 Benjamin Kosnik <bkoz@redhat.com>
958
959 * testsuite/testsuite_performance.h (time_counter): New.
960 (resource_counter): New.
961 (report_performance): New.
962 (start_counters): New.
963 (stop_counters): New.
97460e9a 964 (clear_counters): New.
ce4f8c6b
BK
965 * testsuite/performance/allocator.cc: Instrument.
966 * testsuite/performance/cout_insert_int.cc: Same.
967 * testsuite/performance/complex_norm.cc: Same.
968 * testsuite/performance/filebuf_sputc.cc: New.
969 * testsuite/performance/fstream_seek_write.cc: Same.
970 * testsuite/performance/ifstream_getline.cc: Same.
971 * testsuite/performance/map_create_fill.cc: Same.
972 * testsuite/performance/ofstream_insert_float.cc: Same.
973 * testsuite/performance/ofstream_insert_int.cc: Same.
97460e9a 974 * testsuite/performance/string_append.cc: Convert.
ce4f8c6b
BK
975 * scripts/check_performance: New.
976 * testsuite/Makefile.am (check-performance): New.
977 (CLEANFILES): Add.
97460e9a 978
b82a33d2 9792003-06-18 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 980 Benjamin Kosnik <bkoz@redhat.com>
b82a33d2
PC
981
982 * include/std/std_sstream.h (setbuf): Check __n >= 0.
983 * include/bits/fstream.tcc (setbuf): Tweak.
984
4c526d09
PC
9852003-06-18 Paolo Carlini <pcarlini@unitus.it>
986
987 * include/bits/sstream.tcc (seekoff): We can't seek beyond
988 _M_out_lim, therefore _M_move_out_cur boils down to simply
989 updating _M_out_cur.
990 (seekpos): Likewise, clean up.
991
c1b74c21 9922003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
e6cc3a24 993 Paolo Carlini <pcarlini@unitus.it>
c1b74c21
NM
994
995 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
996 simply equivalent to the unbuffered case (0, 0) as far as
997 _M_buf_size is concerned.
998
a1af4623
AJ
9992003-06-18 Andreas Jaeger <aj@suse.de>
1000
1001 * testsuite/Makefile.am (new-abi-baseline): Create baseline
1002 directory.
1003 (baseline_file): Use baseline_dir.
1004 (baseline_dir): New.
1005 (mkinstalldirs): New.
1006
1007 * acinclude.m4: Rename baseline_file to baseline_dir, strip
1008 filename from baseline_dir.
1009
1010 * testsuite/Makefile.in: Regenerated.
1011 * Makefile.in: Regenerated.
1012 * aclocal.m4: Regenerated.
1013 * configure: Regenerated.
1014
2f934953
BK
10152003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1016
1017 * configure.in: Missed check_survey bit.
1018 * configure: Regenerated.
1019
0676e930
BK
10202003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1021
1022 * scripts: New.
1023 * config/abi/extract_symvers: Move to...
1024 * scripts/extract_symvers: ...here.
1025 * mkcheck.in: Move to..
1026 * scripts/check_survey.in: ...here.
1027 * testsuite_flags.in: Move to..
1028 * scripts/testsuite_flags.in: ...here.
1029 * configure.in: Change check and testsuite_flags locations.
1030 * configure: Regenerate.
1031 * testsuite/Makefile.am (current_symbols.txt): Change location.
1032 * testsuite/Makefile.in: Regenerate.
1033 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
1034 location of testsuite_flags.
1035 * Makefile.am (check-script): Move..
1036 (check-script-install): Move...
a1af4623 1037 * testsuite/Makefile.am: ... here.
0676e930 1038 * testsuite/Makefile.in: Regenerate.
a1af4623
AJ
1039 * Makefile.in: Regenerate.
1040
82620aaf
BK
10412003-06-17 Benjamin Kosnik <bkoz@redhat.com>
1042
1043 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
1044
c4c064e7
BK
10452003-06-16 Benjamin Kosnik <bkoz@redhat.com>
1046
1047 * Makefile.am (check-abi): Move...
1048 (new-abi-baseline): Move...
1049 * testsuite/Makefile.am: ...here.
1050 (new-abi-baseline): Conditionalize.
1051 (check-abi): Conditionalize.
1052 (check-abi-verbose): New.
1053 * Makefile.in: Regenerate.
a1af4623 1054 * testsuite/Makefile.in: Regenerate.
c4c064e7
BK
1055 * configure.in: Consolidate testsuite configure bits.
1056 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
1057 * configure: Regenerate.
a1af4623 1058 * aclocal.m4: Regenerate.
c4c064e7
BK
1059 * testsuite/abi_check.cc: Add --check-verbose.
1060 Only output detailed information if --check-verbose.
1061
e7bb3511 10622003-06-16 Andreas Jaeger <aj@suse.de>
a1af4623 1063
e6cc3a24 1064 * testsuite/abi_check.cc: Create summary report.
a1af4623 1065
8363b773
PC
10662003-06-16 Paolo Carlini <pcarlini@unitus.it>
1067
1068 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
1069 for systems with BUFSIZ != 8192.
1070 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1071 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
1072 Minor tweaks.
1073
5ab481e0
BK
10742003-06-16 Andreas Jaeger <aj@suse.de>
1075
1076 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
1077 check-abi multilib aware.
1078 * aclocal.m4: Regenerate.
1079 * configure: Regenerate.
a1af4623 1080
5ab481e0 10812003-06-16 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 1082 Andreas Jaeger <aj@suse.de>
5ab481e0
BK
1083
1084 * configure.host: Set x86_64 abi_baseline pair correctly.
1085
0bad3b7c
PC
10862003-06-16 Paolo Carlini <pcarlini@unitus.it>
1087
1088 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
e6cc3a24 1089 fix for missing seeks between gets and puts into...
0bad3b7c
PC
1090 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
1091 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
1092 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
1093 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
1094 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
1095 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
a1af4623 1096
dc4add82
RH
10972003-06-15 Richard Henderson <rth@redhat.com>
1098
1099 * config/linker-map.gnu: Export virtual function thunks for
1100 64-bit systems too.
1101
ef16a298
BK
11022003-06-13 Benjamin Kosnik <bkoz@redhat.com>
1103
1104 * config/abi/i686-pc-linux-gnu: To..
1105 * config/abi/i486-linux-gnu: ...this.
1106 * config/abi/alphaev67-unknown-linux-gnu: To..
1107 * config/abi/alpha-linux-gnu: ...this.
1108 * config/abi/ia64-unknown-linux-gnu: To...
1109 * config/abi/ia64-linux-gnu: ...this.
1110 * config/abi/x86_64-unknown-linux-gnu: To...
1111 * config/abi/x86_64-linux-gnu: ...this.
1112 * config/abi/i386-unknown-freebsd4: To...
1113 * config/abi/i386-freebsd4: ...this.
5ab481e0
BK
1114 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
1115 CXXABI.
ef16a298
BK
1116 * configure.host: abi_baseline_triplet to abi_baseline_pair.
1117 Simplify cpu bits so that abi_baseline_pair can use the same
1118 cpu configuration.
1119 * acinclude.m4: Same.
1120 * aclocal.m4: Regenerate.
1121 * configure.in: Can't get enable_abi_check to yes unless native.
1122 * configure: Regenerate.
1123
ed242935
PC
11242003-06-13 Paolo Carlini <pcarlini@unitus.it>
1125
1126 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
1127 fix for missing seeks between gets and puts into...
1128 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
1129 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
1130 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
1131 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
1132 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
1133 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
1134 for missing seeks between gets and puts.
1135 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
1136 * testsuite/data/seekoff-1.tst: New.
1137 * testsuite/data/seekoff-2.tst: New.
1138 * testsuite/data/seekpos-1.tst: New.
1139 * testsuite/data/seekpos-2.tst: New.
1140
ca566e4c
NM
11412003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
1142
1143 Avoid multi-processor bus contention on increment/decrement-and-
a1af4623 1144 test of the reference count in the empty-string object, by comparing
e6cc3a24
ZW
1145 addresses first, and never touching the reference count of the empty-
1146 string object.
ca566e4c
NM
1147 * include/bits/basic_string.h:
1148 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
1149 members.
a1af4623 1150 (_Rep::_S_empty_rep()): New accessor.
ca566e4c
NM
1151 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
1152 a base class _Rep_base.
1153 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
1154 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
1155 since no longer must increment its refcount.
1156 * include/bits/basic_string.tcc:
a1af4623 1157 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
e6cc3a24
ZW
1158 return immediately. The former might be unnecessary. The latter
1159 prevents begin() and end() from cloning it unnecessarily.
ca566e4c
NM
1160 (_S_construct(_InIterator, _InIterator, const _Alloc&,
1161 input_iterator_tag), _S_construct(_InIterator, _InIterator,
1162 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
1163 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
1164 (_M_mutate): Check for the empty string and treat it as shared.
e6cc3a24
ZW
1165 This is necessary here because _M_mutate is sometimes called with
1166 all-zero arguments; in all other uses of _M_is_shared, the test comes
1167 out right anyhow.
a1af4623 1168
c37514ff
BK
11692003-06-12 Benjamin Kosnik <bkoz@redhat.com>
1170
1171 * src/allocator-inst.cc: Explicitly instantiate.
1172 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
1173 Tweaks.
1174 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
a1af4623 1175
58ac1d7f
BK
11762003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1177
1178 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
1179 * aclocal.m4: Regenerate.
1180 * Makefile.am (SUBDIRS): Remove libio.
1181 * Makefile.in: Regenerate.
1182 * configure.in: Same.
1183 * configure: Regenerate.
1184 * config/io/basic_file_libio.cc: Remove.
a1af4623 1185 * config/io/basic_file_libio.h: Remove.
58ac1d7f 1186 * config/io/c_io_libio_codecvt.c: Remove.
a1af4623 1187 * config/io/c_io_libio.h: Remove.
58ac1d7f
BK
1188 * libio/*: Remove.
1189 * src/Makefile.am: Same.
1190 * src/Makefile.in: Regenerate.
a1af4623 1191 * docs/html/configopts.html: Edits.
58ac1d7f 1192 * docs/html/explanations.html: Edits.
a1af4623 1193
1ff9402d
BK
11942003-06-11 Benjamin Kosnik <bkoz@redhat.com>
1195
1196 * include/bits/stl_alloc.h (__debug_alloc): Move out.
1197 (__malloc_alloc): Same.
1198 (__pool_alloc): Same.
1199 (__new_alloc): Same.
1200 Rename to..
1201 * include/bits/allocator.h: ...this.
1202 * include/bits/stl_deque.h: Modify comment.
1203 * include/bits/stl_tree.h: Modify include.
1204 * include/std/std_memory.h: Same.
1205 * include/ext/rope: Same.
a1af4623 1206 * include/ext/slist: Same.
1ff9402d
BK
1207 * include/std/std_vector.h: Same.
1208 * include/std/std_stack.h: Same.
1209 * include/std/std_queue.h: Same.
1210 * include/std/std_list.h: Same.
1211 * include/std/std_deque.h: Same.
1212 * include/backward/alloc.h: Same.
1213 * include/ext/debug_allocator.h: New.
a1af4623
AJ
1214 * include/ext/malloc_allocator.h: New.
1215 * include/ext/pool_allocator.h: New.
1ff9402d
BK
1216 * include/ext/new_allocator.h: New.
1217 * include/bits/pthread_allocimpl.h: Remove.
a1af4623 1218 * include/bits/stl_pthread_alloc.h: Remove.
1ff9402d
BK
1219 * include/Makefile.am (ext_headers): Add.
1220 * include/Makefile.in: Regenerate.
1221 * src/stl-inst.cc: Use __gnu_cxx namespace.
1222 * src/stl-inst.cc: Move to...
1223 * src/allocator-inst.cc: Here.
1224 * src/Makefile.am (sources): Update.
1225 * src/Makefile.in: Regenerate.
1226 * config/linker-map.gnu: Remove __pool_alloc bits.
1227 * testsuite/ext/headers.cc: Add.
1228 * testsuite/ext/allocators.cc: Fixup.
a1af4623 1229
1ff9402d 12302003-06-11 Stefan Olsson <stefan@snon.net>
e6cc3a24 1231