]> gcc.gnu.org Git - gcc.git/blame - libstdc++-v3/ChangeLog
[multiple changes]
[gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
8ae81136
BK
12003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2
3 * config/linker-map.gnu: Export _S_get_c_locale instead of
4 _S_c_locale object.
5
62003-10-02 Petur Runolfsson <peturr02@ru.is>
7
8 * config/locale/generic/c_locale.cc
9 (category_names, locale::_S_categories): Const qualify.
10 * config/locale/gnu/c_locale.cc: Same.
11 * config/locale/generic/time_members.h (__timepunct::__timepunct):
12 Copy string contents before assigning to _M_name_timepunct,
13 qualify strcpy and strlen with std::.
14 * config/locale/gnu/time_members.h: Same.
15 * config/locale/gnu/messages_members.h (messages::messages):
16 Copy string contents before assigning to _M_name_messages,
17 qualify strcpy and strlen with std::.
18 * config/os/gnu-linux/ctype_noninline.h
19 (ctype<char>::classic_table()): Don't call locale::classic().
20 * include/bits/locale_classes.h
21 (locale::_S_categories): Const qualify.
22 (locale::_S_once, locale::_S_initialize_once,
23 locale::facet::_S_once, locale::facet::_S_initialize_once,
24 locale::facet::_S_get_c_locale): Declare.
25 (locale::_S_initialize): Don't define.
26 (locale::facet::_S_c_locale): Make private.
27 (locale::facet::_S_c_name): Same, const qualify.
28 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
29 parameters, add throw() specifier.
30 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
31 messages::_M_name_messages): Const qualify.
32 * src/locale.cc
33 (locale::_S_once, locale::facet::_S_once): Define.
34 (locale::classic): Move initialization code...
35 (locale::_S_initialize_once): ...here.
36 (locale::_S_initialize): Call _S_initialize_once through
37 __gthread_once.
38 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
39 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
40 __gthread_once before returning _S_c_locale.
41 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
42 Drop unused parameters, add throw() specifier, don't initialize
43 locale::facet::_S_c_locale and _S_c_name.
44
45 * config/locale/generic/messages_members.h:
46 Replace _S_c_locale with _S_get_c_locale().
47 * config/locale/gnu/c_locale.cc: Same.
48 * config/locale/gnu/messages_members.h: Same.
49 * config/locale/gnu/numeric_members.cc: Same.
50 * config/locale/gnu/time_members.cc: Same.
51 * config/os/gnu-linux/ctype_noninline.h: Same.
52 * include/bits/locale_facets.h: Same.
53 * include/bits/locale_facets.tcc: Same.
54 * src/codecvt.cc: Same.
55 * src/ctype.cc: Same.
56
4a035cf7
CW
572003-10-02 Carlo Wood <carlo@alinoe.com>
58
59 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
60 Decode symbols that start with _GLOBAL_[ID]_ differently: the
61 trailing part ends with a terminating zero and is not necessarily an
62 encoding.
63 * src/demangle.cc (): Same.
64 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
65
86b4ab73
PC
662003-10-02 Paolo Carlini <pcarlini@unitus.it>
67
68 * testsuite/22_locale/locale/cons/12438.cc: Use
69 __gnu_test::try_named_locale("").
70
222a5b1d
RO
712003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
72
73 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
74 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
75 instead of drand48.
76 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
77 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
78 HAVE_DRAND48.
79 * config.h.in, configure: Regenerate.
80 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
81 lrand48 use.
82
e39dd1ce
NM
832003-10-01 Nathan Myers <ncm@cantrip.org>
84
85 * include/bits/locale_facets.tcc (time_put::put): Avoid
86 expensive *__s++, in favor of *__s, ++__s.
87
530ce551
PC
882003-10-01 Paolo Carlini <pcarlini@unitus.it>
89
90 * include/bits/locale_facets.tcc (time_put::put): Minor
91 tweak to the previous commit.
92
52a16d08
PC
932003-10-01 Paolo Carlini <pcarlini@unitus.it>
94
95 PR libstdc++/12439
96 * include/bits/locale_facets.tcc (time_put::put): Deal
97 with the three issues pointed out by the PR.
98 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
99 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
100 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
101 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
102 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
103
ae7c3ba5
PC
1042003-09-30 Paolo Carlini <pcarlini@unitus.it>
105
106 * include/bits/stl_algo.h: Minor cosmetic reformattings.
107
cbc6c296
PC
1082003-09-30 Paolo Carlini <pcarlini@unitus.it>
109
110 * include/bits/stl_algo.h (search_n): Tweak, to spare the
111 first --__n.
112
2ea247d3
PC
1132003-09-30 Paolo Carlini <pcarlini@unitus.it>
114
115 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
116 qualify exception name.
117
155f6fbb
PC
1182003-09-30 Paolo Carlini <pcarlini@unitus.it>
119
120 PR libstdc++/12438
121 * include/bits/locale_facets.tcc (locale::combine): Don't
122 leak memory if _M_replace_facet throws.
123 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
124
125 * include/bits/locale_classes.h (locale::locale(const locale&,
126 _Facet*)): Tweak, use consistently _M_remove_reference.
127
70863cbd
PC
1282003-09-30 Paolo Carlini <pcarlini@unitus.it>
129
130 PR libstdc++/12352 (cont)
131 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
132 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
133 calls fail.
134 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
135 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
136 !_M_caches, !_M_names.
137
51ac684e
RO
1382003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
139
140 * configure.host: Handle Solaris 2.5 micro releases explicitly.
141 Remove wildcards from Solaris 2.6, 7-9: there were no
142 micro releases.
143 Treat Solaris 10 and up like 7-9.
144
6821a40b
PC
1452003-09-29 Paolo Carlini <pcarlini@unitus.it>
146
147 * include/bits/stl_algo.h (search_n): Improve the previous
148 fix as suggested by Martin.
149
e5012ba5
PC
1502003-09-29 Paolo Carlini <pcarlini@unitus.it>
151
152 PR libstdc++/12296
153 * include/bits/istream.tcc (peek): Set eofbit if sgetc
154 returns eof.
155 * testsuite/27_io/basic_istream/peek/char/12296.cc:
156 New, from the PR.
157
1582003-09-29 Nathan Myers <ncm@cantrip.org>
159 Paolo Carlini <pcarlini@unitus.it>
160
161 PR libstdc++/11400
162 * include/bits/stl_algo.h (search_n):
163 Use iterator_traits<>::difference_type for __n.
164 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
165
6cd6aed7
PC
1662003-09-29 Paolo Carlini <pcarlini@unitus.it>
167
168 * testsuite/22_locale/locale/cons/12352.cc:
169 Use __attribute__((unused)) for test.
170
33b16690
UW
1712003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
172
173 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
174 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
175 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
176
2d07c3f5
BS
1772003-09-26 Brad Spencer <spencer@infointeractive.com>
178
179 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
180 Explicitly qualify exceptions.
181 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
182 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
183 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
184 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
185
91675f9d
PC
1862003-09-25 Paolo Carlini <pcarlini@unitus.it>
187
188 PR libstdc++/12352
189 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
190 size_t)): Don't leak if memory allocations for _M_facets,
191 _M_caches, and _M_names fail.
192 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
193 (locale::_Impl::_M_replace_categories(const _Impl*,
194 category)): Ditto.
195 (locale::_Impl::_M_install_facet(const locale::id*,
196 const facet*)): Ditto.
197 * include/bits/locale_classes.h (locale::locale(const locale&,
198 _Facet*)): Don't leak memory.
199 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
200
201 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
202 bool)): Qualify with std:: strcpy, tweak.
203 * include/bits/locale_classes.h
204 (locale::_Impl::_M_check_same_name): Qualify strcmp.
205
2b1be54b
BS
2062003-09-25 Brad Spencer <spencer@infointeractive.com>
207
208 PR libstdc++/6072
775ee48e
BK
209 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
210 wcstof, iswblank.
2b1be54b
BS
211 * aclocal.m4: Regenerate.
212 * config.h.in: Regenerate.
213 * configure: Regenerate.
214 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
215 * config/io/basic_file_stdio.cc: Guard unistd.h.
216 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
217 * include/c_std/std_cwchar.h: Same.
218 * include/c_std/std_cwctype.h: Same.
219
465ad0c7
BK
2202003-09-25 Benjamin Kosnik <bkoz@redhat.com>
221
775ee48e 222 PR libstdc++/11065
465ad0c7
BK
223 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
224 * config/locale/generic/ctype_members.cc: Same.
225 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
226 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
227
228 * config/os/generic/ctype_inline.h: Update.
229
7b865c36
UW
2302003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
231
232 * src/Makefile.am (version_dep): New variable.
233 (libstdc___la_DEPENDENCIES): Use it to add dependency on
234 libstdc++-symbol.ver only when using symbol versioning.
235 * src/Makefile.in: Regenerate.
236
11f10e6b
BK
2372003-09-23 Benjamin Kosnik <bkoz@redhat.com>
238
239 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
240 * testsuite/testsuite_hooks.h: Same.
241 * testsuite/*/*.cc: Same.
242
89ec0c4b
PR
2432003-09-22 Petur Runolfsson <peturr02@ru.is>
244
245 * include/bits/istream.tcc (basic_istream::read,
246 basic_istream::readsome, basic_istream::putback,
247 basic_istream::unget, operator>>(basic_istream, CharT)):
248 Avoid redundant setstate(failbit) calls when sentry::operator bool()
249 returns false.
250
dc25fbc7
CW
2512003-09-22 Carlo Wood <carlo@alinoe.com>
252
253 PR libstdc++/12365
254 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
255 char const*, int, int)): Remove unused identifier
256 cv_qualifier for overloaded constructor.
257
b2bc3339
BK
2582003-09-18 Benjamin Kosnik <bkoz@redhat.com>
259
260 PR libstdc++/11504
261 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
262 WARN_FLAGS, remove -Wno-format.
263 * aclocal.m4: Regenerate.
264 * configure: Regenerate.
265
0b5ce4f1
PR
2662003-09-18 Petur Runolfsson <peturr02@ru.is>
267
268 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
269 * config/io/basic_file_stdio.h: Same.
270 * include/std/std_fstream.h (__ctype_type): Delete.
271 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
272
43892f8c
BK
2732003-09-17 Benjamin Kosnik <bkoz@redhat.com>
274
275 PR libstdc++/12239
276 * configure.host (abi_baseline_pair): Error out on solaris2
277 configurations without a minor version number.
278
4bc8ae23
PE
2792003-09-13 Phil Edwards <phil@codesourcery.com>
280
281 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
282 if man pages are on.
283 * docs/doxygen/user.cfg.in: And here.
284
dbc66058
DJ
2852003-09-10 Daniel Jacobowitz <drow@mvista.com>
286 Andreas Jaeger <aj@suse.de>
287
288 PR libstdc++/12189
289 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
290 abi_check if cross compiling.
291 * aclocal.m4: Regenerated.
292 * configure: Regenerated.
293
520abf69
JO
2942003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
295
296 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
297 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
298 (__cxa_vec_new3): Likewise.
299
8c8dec01
PR
3002003-09-10 Petur Runolfsson <peturr02@ru.is>
301
302 * include/bits/fstream.tcc (basic_filebuf::seekoff):
303 Use codecvt::length to handle variable-width stateless encodings
304 correctly.
305 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
306 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
307
80e46d77
AM
3082003-09-10 Alan Modra <amodra@bigpond.net.au>
309
310 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
311 rather than or'ing.
312
e517f636
AM
3132003-09-09 Alan Modra <amodra@bigpond.net.au>
314
315 * configure: Regenerate.
316
263594d2
DE
3172003-09-09 David Edelsohn <edelsohn@gnu.org>
318
319 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
320 qualifier from _S_synced_with_stdio.
321
3222003-09-09 Bernardo Innocenti <bernie@develer.com>
e7f115de
BI
323
324 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
325
f1813b69
PR
3262003-09-04 Petur Runolfsson <peturr02@ru.is>
327
328 PR libstdc++/9028
329 * include/bits/fstream.tcc
330 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
331 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
332 _M_ext_buf_size, _M_ext_next and _M_ext_end.
333 (basic_filebuf::underflow): Handle variable-width stateless
334 encodings (codecvt::encoding() == 0), including UTF-8.
335 * include/std/std_fstream.h (basic_filebuf):
336 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
337 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
338 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
339 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
340 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
341 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
342 * testsuite/27_io/objects/wchar_t/12.cc: New test.
343 * testsuite/27_io/objects/wchar_t/13.cc: New test.
344
7976070c
JW
3452003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
346
347 * docs/html/faq/index.html: Note that a namespace alias can't be
348 used when specialising templates in extension namespace.
349 * docs/html/faq/index.txt: Regenerate.
350
149639d4
PR
3512003-09-03 Petur Runolfsson <peturr02@ru.is>
352
353 PR libstdc++/12048
354 * include/ext/stdio_sync_filebuf.h
355 (stdio_sync_filebuf::_M_unget_buf): Declare it.
356 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
357 (stdio_sync_filebuf::uflow): Store the returned character in
358 _M_unget_buf.
359 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
360 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
361 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
362 _M_unget_buf, if any, else eof().
363 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
364 _M_unget_buf, if any, else eof().
365 * testsuite/27_io/objects/char/12048.cc: Rename to...
366 * testsuite/27_io/objects/char/12048-1.cc: ...this.
367 * testsuite/27_io/objects/char/12048-2.cc: New test.
368 * testsuite/27_io/objects/char/12048-3.cc: New test.
369 * testsuite/27_io/objects/char/12048-4.cc: New test.
370 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
371 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
372 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
373 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
374 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
375 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
376 * testsuite/ext/stdio_sync_filebuf_char.cc
377 (test02, test03, test04, test05): New tests.
378 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
379 (test02, test03, test04, test05): New tests.
380
3812003-09-03 Petur Runolfsson <peturr02@ru.is>
382
383 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
384 stringbuf or strstreambuf. Fix typos.
385
3660e02f
PE
3862003-09-02 Phil Edwards <phil@codesourcery.com>
387
388 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
389 appropriately.
390 * config.h.in: Add _GLIBCXX_HOSTED.
391 * libsupc++/eh_term_handler.cc: Test it here; initialize
392 __terminate_handler to std::abort if freestanding.
393 * aclocal.m4, configure: Regenerated.
394 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
395
a3aff86a
NM
3962003-08-29 Nathan Myers <ncm@cantrip.org>
397
398 PR libstdc++/11990
399 * include/bits/locale_facets.tcc (__pad): delete dead code.
400
f5cf58dd
AM
4012003-08-28 Alan Modra <amodra@bigpond.net.au>
402
403 * configure.ac: Test $with_cross_host against $build_alias, not $build.
404 * configure: Regenerate.
405
3bedd161
PR
4062003-08-27 Petur Runolfsson <peturr02@ru.is>
407
408 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
409 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
410
ca618b60
PE
4112003-08-27 Phil Edwards <pme@gcc.gnu.org>
412
413 * Makefile.am: Remove trailing whitespace. Remove needless
414 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
415 * include/Makefile.am: Likewise.
416 * libmath/Makefile.am: Likewise.
417 * libsupc++/Makefile.am: Likewise.
418 * po/Makefile.am: Likewise.
419 * src/Makefile.am: Likewise.
420 * testsuite/Makefile.am: Likewise.
421
422 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
423 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
424 testsuite/Makefile.in: Regenerated.
425
37e0ff11
PE
4262003-08-27 Phil Edwards <pme@gcc.gnu.org>
427
428 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
429 includedir.
430 * aclocal.m4, configure: Regenerate.
431
72730fdb
DJ
4322003-08-27 Daniel Jacobowitz <drow@mvista.com>
433
434 * acinclude.m4: Include no-executables.m4.
435 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
436 * aclocal.m4: Regenerated.
437 * configure: Regenerated.
438
ec0d7421
DJ
4392003-08-27 Daniel Jacobowitz <drow@mvista.com>
440
441 * acinclude.m4: Don't call AC_ISC_POSIX.
442 * aclocal.m4: Regenerated.
443 * configure: Regenerated.
444
92eabea2
PE
4452003-08-27 Phil Edwards <pme@gcc.gnu.org>
446
447 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
448 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
449 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
450 used elsewhere in this file.
451 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
452 * configure.ac: ...called here to expand all conditionals.
453 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
454 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
455 (install-freestanding-headers): New target, a subset of
456 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
457
458 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
459 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
460 src/Makefile.in, testsuite/Makefile.in: Regenerated.
461
a43d13fb
PE
4622003-08-26 Phil Edwards <pme@gcc.gnu.org>
463
464 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
465 pathnames from generated tag file.
466
82ba99d5
PE
4672003-08-26 Phil Edwards <pme@gcc.gnu.org>
468
469 * Makefile.am: Add comment.
470 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
471 SUBDIRS variables.
472 * configure.ac: Use them both here, instead of hardcoded lists.
473
474 * fragment.am: Add STAMP varaible.
475 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
476 instead of @LN_S@.
477 (stamp-*): Move file creation rule outside of 'if' branches to
478 ensure the stamp-* files are actually updated. Use $(STAMP).
479 * src/Makefile.am: Remove now-nonexistant variable.
480 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
481 for -prefer-pic.
482 * po/Makefile.am: Include same fragment as all the others.
483
484 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
485 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
486
73780bfe
LR
4872003-08-26 Loren J. Rittle <ljrittle@acm.org>
488
489 * testsuite/data/cin_unget-1.txt: New.
490 * testsuite/27_io/objects/char/12048.cc: New.
491
7e2055ec
ZW
4922003-08-25 Zack Weinberg <zack@codesourcery.com>
493
494 * config/os/hpux/os_defines.h: Unconditionally define
495 _GLIBCXX_GTHREAD_USE_WEAK to 0.
496
a6f3e253
GK
4972003-08-19 Geoffrey Keating <geoffk@apple.com>
498
499 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
500 crosses to Darwin targets.
501 * configure: Regenerate.
502
1b391ba9
PR
5032003-08-19 Petur Runolfsson <peturr02@ru.is>
504
7e2055ec
ZW
505 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
506
77e862fa
PE
5072003-08-17 Phil Edwards <pme@gcc.gnu.org>
508
509 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
510 in the patch from 3 minutes ago. Boy, is my face red.
511 * configure: At least I remembered to regenerate this.
512
0df3f383
PE
5132003-08-17 Phil Edwards <pme@gcc.gnu.org>
514
515 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
516 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
517 things from the top level.
518 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
519 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
520 (currently unused). Strip the fake-VPATH shell fragment from
521 automake-generated rules, if present.
522 * linkage.m4: Add comment.
523
524 * fragment.am: New file, containing factored-out common settings.
525 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
526 * Makefile.am: Include fragment.am. Remove common variables.
527 * include/Makefile.am: Likewise.
528 * libmath/Makefile.am: Likewise.
529 * libsupc++/Makefile.am: Likewise.
530 * po/Makefile.am: Likewise. Print rules during check.
531 * src/Makefile.am: Likewise.
532 * testsuite/Makefile.am: Likewise.
533
534 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
535 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
536 src/Makefile.in, testsuite/Makefile.in: Regenerate.
537
e885821f
JL
5382003-08-11 John Levon <levon@movementarian.org>
539
540 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
541 remaining places for the name change from GLIBCPP_FORCE_NEW
542 to GLIBCXX_FORCE_NEW
543
2803847d
BK
5442003-08-11 Benjamin Kosnik <bkoz@redhat.com>
545
546 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
7e2055ec 547 typedefs to num_*.
2803847d
BK
548 * include/bits/basic_ios.tcc: Same.
549 * include/bits/istream.tcc: Same.
550 * include/bits/locale_facets.h: Same.
551 * include/bits/ostream.tcc: Same.
552 * include/std/std_istream.h: Same.
553 * include/std/std_ostream.h: Same.
554 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
555
556 * include/ext/rope: Remove build warning.
7e2055ec 557
51c1f3c9
AJ
5582003-08-11 Andreas Jaeger <aj@suse.de>
559
560 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
561 to make SMP-safe.
562 * include/Makefile.in: Regenerated.
563
f6dda651
PE
5642003-08-11 Phil Edwards <pme@gcc.gnu.org>
565
566 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
567 when calling AC_PROG_CC.
568 * aclocal.m4, configure: Regenerate.
569
fbe057bb
PE
5702003-08-11 Phil Edwards <pme@gcc.gnu.org>
571
572 * acinclude.m4: Properly quote variable which will be expanded
573 inside makefiles. Use CXX instead of CC to extract compiler info.
574 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
575 correct form in PACKAGE.
576 * aclocal.m4, configure: Regenerate.
577
258e7dbc
BK
5782003-08-08 Benjamin Kosnik <bkoz@redhat.com>
579
580 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
581 (check-abi-verbose): Same.
582 * testsuite/testsuite_performance.h (report_performance): Same.
7e2055ec 583
3e083bea
LR
5842003-08-08 Loren J. Rittle <ljrittle@acm.org>
585
586 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
587
5a9ed693
DG
5882003-08-07 Doug Gregor <dgregor@apple.com>
589
7e2055ec
ZW
590 * include/bits/char_traits.h (char_traits::not_eof): Match operand
591 types in ? :.
5a9ed693 592
4e9ebd4b
BI
5932003-08-07 Bernardo Innocenti <bernie@develer.com>
594
595 PR libstdc++/11784
596 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
597 Replace variants with new BSET-based version.
7e2055ec 598
a9ebaa2b
CW
5992003-08-07 Carlo Wood <carlo@alinoe.com>
600
0df3f383 601 * include/bits/demangle.h: Do not use cctype functions that depend
a9ebaa2b 602 on locale.
7e2055ec 603
8b171e55
PE
6042003-08-05 Phil Edwards <pme@gcc.gnu.org>
605
606 * configure.in: Rename...
607 * configure.ac: ...to this.
608 * docs/html/17_intro/porting.texi: Update name.
609
610 * docs/html/17_intro/porting.html: Regenerate.
611 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
612 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
613 testsuite/Makefile.in: Regenerate (picks up new dependancy).
614
1260d70f
PE
6152003-08-05 Phil Edwards <pme@gcc.gnu.org>
616
617 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
618 pipe, open the window to let out the fumes, redo the option-handling
619 logic to properly execute the detection test.
620 * aclocal.m4, configure: Regenerate.
621
ff66d28f
PE
6222003-08-04 Phil Edwards <pme@gcc.gnu.org>
623
624 Convert to new autotools.
625 * acconfig.h: Update with correct names.
626 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
627 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
628 * configure.in: Update. Split hardcoded cross-configury settings
629 out to...
630 * crossconfig.m4: ...here. New file. Contents untouched.
631 * acinclude.m4: Reorganize and rewrite as needed. Split large
632 chunks out to...
633 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
634 Contents untouched.
635 * scripts/testsuite_flags.in: Update.
636
637 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
638 variables (already generated by automake).
639 * include/Makefile.am: Ditto.
640 * libmath/Makefile.am: Ditto.
641 * libsupc++/Makefile.am: Ditto.
642 * po/Makefile.am: Ditto.
643 * src/Makefile.am: Ditto.
644
645 * aclocal.m4: Regenerate using new versions.
646 * config.h.in: Ditto.
647 * configure: Ditto.
648 * Makefile.in: Ditto.
649 * include/Makefile.in: Ditto.
650 * libmath/Makefile.in: Ditto.
651 * libsupc++/Makefile.in: Ditto.
652 * po/Makefile.in: Ditto.
653 * src/Makefile.in: Ditto.
654 * testsuite/Makefile.in: Ditto.
655
5e7c251d
PE
6562003-08-04 Phil Edwards <pme@gcc.gnu.org>
657
658 * po/libstdc++.pot: Re-extract/regenerate.
659
caf21254
PE
6602003-08-04 Phil Edwards <pme@gcc.gnu.org>
661
662 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
663 Remove unneeded variable assignments. Leave them for automake.
664 * testsuite/lib/libstdc++-v3.exp: Rename...
665 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
666 accordingly.
667 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
668 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
669 names accordingly.
670
f7ab5fa4
PE
6712003-08-04 Phil Edwards <pme@gcc.gnu.org>
672
673 * docs/doxygen/guide.html: run_doxygen uses bash.
674 * docs/doxygen/mainpage.html: We'll be shipping tag files.
675 * docs/doxygen/run_doxygen: Tweaks and improvements.
676 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
677 * docs/html/install.html: Update autoconf/automake requirements.
678 * docs/html/test.html: Add section describing DejaGNU support.
679 * docs/html/17_intro/confdeps.dot: New file, generates...
680 * docs/html/17_intro/confdeps.png: ...this new file.
681 * docs/html/Makefile: Generated here.
682 * docs/html/17_intro/configury.html: New file.
683
b3f2a032
PE
6842003-07-31 Phil Edwards <pme@gcc.gnu.org>
685
686 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
687 * testsuite/lib/libstdc++-v3.exp: ...to this.
688 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
689
e64a227a
DG
6902003-07-31 Doug Gregor <dgregor@apple.com>
691
692 Add user specialization tests.
693 * testsuite/23_containers/deque/1.cc: New.
694 * testsuite/23_containers/list/1.cc: New.
695 * testsuite/23_containers/map/1.cc: New.
696 * testsuite/23_containers/multimap/1.cc: New.
697 * testsuite/23_containers/multiset/1.cc: New.
698 * testsuite/23_containers/set/1.cc: New.
699 * testsuite/23_containers/vector/1.cc: New.
7e2055ec 700
17472bb6
BK
7012003-07-31 Benjamin Kosnik <bkoz@redhat.com>
702
703 Reshuffle 23_containers testsuite.
7e2055ec 704 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
17472bb6
BK
705 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
706 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
707 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
708 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
709 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
710 vector_resize.cc: Split into...
711 * 23_containers/bitset/cons/1.cc: New.
712 * 23_containers/bitset/cons/6282.cc: New.
713 * 23_containers/bitset/count/6124.cc: New.
714 * 23_containers/bitset/operations/1.cc: New.
715 * 23_containers/bitset/operations/2.cc: New.
716 * 23_containers/bitset/test/1.cc: New.
717 * 23_containers/bitset/to_ulong/1.cc: New.
718 * 23_containers/deque/cons/1.cc: New.
719 * 23_containers/deque/cons/2.cc: New.
720 * 23_containers/deque/operators/1.cc: New.
721 * 23_containers/list/capacity/1.cc: New.
722 * 23_containers/list/cons/1.cc: New.
723 * 23_containers/list/cons/2.cc: New.
724 * 23_containers/list/cons/3.cc: New.
725 * 23_containers/list/cons/4.cc: New.
726 * 23_containers/list/cons/5.cc: New.
727 * 23_containers/list/cons/6.cc: New.
728 * 23_containers/list/cons/7.cc: New.
729 * 23_containers/list/cons/8.cc: New.
730 * 23_containers/list/cons/9.cc: New.
731 * 23_containers/list/modifiers/1.cc: New.
732 * 23_containers/list/modifiers/2.cc: New.
733 * 23_containers/list/modifiers/3.cc: New.
734 * 23_containers/list/operators/1.cc: New.
735 * 23_containers/list/operators/2.cc: New.
736 * 23_containers/list/operators/3.cc: New.
737 * 23_containers/list/operators/4.cc: New.
738 * 23_containers/map/insert/1.cc: New.
739 * 23_containers/map/operators/1.cc: New.
740 * 23_containers/map/operators/1_neg.cc: New.
741 * 23_containers/multiset/insert/1.cc: New.
742 * 23_containers/priority_queue/members/7161.cc: New.
743 * 23_containers/queue/members/7157.cc: New.
744 * 23_containers/set/operators/1_neg.cc: New.
745 * 23_containers/stack/members/7158.cc: New.
746 * 23_containers/vector/bool/1.cc: New.
747 * 23_containers/vector/bool/6886.cc: New.
748 * 23_containers/vector/capacity/1.cc: New.
749 * 23_containers/vector/capacity/2.cc: New.
750 * 23_containers/vector/capacity/8230.cc: New.
751 * 23_containers/vector/cons/1.cc: New.
752 * 23_containers/vector/cons/2.cc: New.
753 * 23_containers/vector/cons/3.cc: New.
754 * 23_containers/vector/cons/4.cc: New.
755 * 23_containers/vector/cons/6513.cc: New.
756 * 23_containers/vector/element_access/1.cc: New.
757 * 23_containers/vector/modifiers/1.cc: New.
758 * 23_containers/vector/modifiers/2.cc: New.
759 * 23_containers/vector/resize/1.cc: New.
7e2055ec 760
515aab7c
RO
7612003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
762
763 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
764 dg-options.
765 * testsuite/thread/pthread2.cc: Likewise.
766 * testsuite/thread/pthread3.cc: Likewise.
767 * testsuite/thread/pthread4.cc: Likewise.
768 * testsuite/thread/pthread5.cc: Likewise.
769 * testsuite/thread/pthread6.cc: Likewise.
770 * testsuite/thread/pthread7-rope.cc: Likewise.
771
1051c718
PE
7722003-07-30 Phil Edwards <pme@gcc.gnu.org>
773
774 * include/bits/c++config: Partial reversion (comment placement) of
775 previous patch.
776
5f697f7a
BK
7772003-07-30 Benjamin Kosnik <bkoz@redhat.com>
778
779 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
780 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
781 (_GLIBCXX_AT_AT): Remove.
782 (__USE_MALLOC): Remove.
783 * include/std/std_fstream.h: Modify.
784 * include/bits/basic_ios.h: Same.
785 * include/bits/valarray_array.h: Same.
786 * include/c_std/std_cmath.h: Same.
787 * include/c_std/cmath.tcc: Same.
788 * include/std/std_vector.h: Same.
789 * include/std/std_string.h: Same.
790 * include/std/std_stack.h: Same.
791 * include/std/std_queue.h: Same.
792 * include/std/std_list.h: Same.
793 * include/std/std_deque.h: Same.
794 * include/std/std_streambuf.h: Same.
795 * include/std/std_sstream.h: Same.
796 * include/std/std_ostream.h: Same.
797 * include/std/std_istream.h: Same.
798 * include/bits/valarray_array.tcc: Same, format.
799
800 * include/c/std_cctype.h: Fix include guards.
801 * include/c/std_cerrno.h: Same.
802 * include/c/std_cfloat.h: Same.
803 * include/c/std_climits.h: Same.
804 * include/c/std_clocale.h: Same.
805 * include/c/std_cmath.h: Same.
806 * include/c/std_csetjmp.h: Same.
807 * include/c/std_csignal.h: Same.
808 * include/c/std_cstdarg.h: Same.
809 * include/c/std_cstddef.h: Same.
810 * include/c/std_cstdio.h: Same.
811 * include/c/std_cstdlib.h: Same.
812 * include/c/std_cstring.h: Same.
813 * include/c/std_ctime.h: Same.
814 * include/c/std_cwchar.h: Same.
815 * include/c/std_cwctype.h: Same.
816 * include/c_std/cmath.tcc: Same.
817 * include/c_std/std_cmath.h: Same.
7e2055ec 818
b4c70e89
GB
8192003-07-30 Gawain Bolton <gp.bolton@computer.org>
820
7e2055ec 821 PR libstdc++/11504.
b4c70e89
GB
822 * include/bits/stl_tree.h: Replace C-style casts with C++-style
823 casts. Changes to avoid casting away constness. Eliminate
824 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
825 initialization lists. Move out implementation of __black_count()
826 to...
7e2055ec
ZW
827 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
828 Rename_Rb_tree_base_iterator::_M_increment() to
829 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
830 _Rb_tree_decrement.
831 * config/linker-map.gnu: Add and change symbols here.
b4c70e89 832
48b3222d
JW
8332003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
834
835 * docs/html/22_locale/howto.html: Use locale::classic() instead
836 of locale("C").
837
cb584bcf
BK
8382003-07-28 Benjamin Kosnik <bkoz@redhat.com>
839
840 * testsuite/testsuite_hooks.h: Remove list include.
841 (func_callback): Define as unique type, not std::list.
842 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
843 * testsuite/libstdc++-v3.dg/dg.exp: Same.
844 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
7e2055ec 845 * testsuite/23_containers/bitset_ctor.cc:
cb584bcf
BK
846 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
847 * testsuite/18_support/numeric_limits.cc: Same.
848 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
849 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
850 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
851 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
852 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
853 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
854 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
855 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
856 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
857 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
858 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
859 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
860 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
861 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
862 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
863 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
864 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
865 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
866 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
867 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
7e2055ec
ZW
868 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
869 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
870 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
871 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
872 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
873 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
874 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
875 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
876 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
877 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
cb584bcf
BK
878 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
879 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
880 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
881 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
882 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
883 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
884 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
885 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
886 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
887 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
888 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
889 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
890 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
891 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
892 * testsuite/23_containers/bitset_ctor.cc: Same.
893 * testsuite/23_containers/bitset_shift.cc: Same.
894 * testsuite/23_containers/vector_ctor.cc: Same.
895 * testsuite/23_containers/vector_element_access.cc: Same.
896 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
897 * testsuite/24_iterators/iterator.cc: Same.
898 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
899 * testsuite/25_algorithms/lower_bound.cc: Same.
900 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
901 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
902 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
903 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
904 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
905 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
906 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
907 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
908 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
909 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
7e2055ec
ZW
910 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
911 Same.
912
1cb1de7e
PE
9132003-07-28 Phil Edwards <pme@gcc.gnu.org>
914
915 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
916 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
917 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
918 GLIBCPP to GLIBCXX (and explain as needed).
919
6dfe0fc9
PE
9202003-07-28 Phil Edwards <pme@gcc.gnu.org>
921
922 * README: Update.
923
2cb1c928
PE
9242003-07-28 Phil Edwards <pme@gcc.gnu.org>
925
926 * testsuite/22_locale/messages/members/char/1.cc,
927 testsuite/22_locale/messages/members/char/2.cc,
928 testsuite/22_locale/messages/members/char/3.cc,
929 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
930 the origin of LOCALEDIR.
931 * testsuite/lib/libstdc++-v3.exp: New file.
932
b66ea7d4
BK
9332003-07-25 Benjamin Kosnik <bkoz@redhat.com>
934
935 * include/bits/char_traits.h: Update copyright, tweak.
e884d397 936 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
b66ea7d4
BK
937 std types.
938
d5ff4e3f
MA
9392003-07-24 Matt Austern <austern@apple.com>
940
941 * /include/bits/char_traits.h (class char_traits): Put all the
942 real work into the new class template __gnu_cxx::char_traits.
943 Gave generic definitions for member functions. Types are taken
944 from the new class template __gnu_cxx::_Char_types.
945 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
946 file. Test of std::char_traits<short>, which serves as a test of
947 the char_traits primary template.
948
aecf642c
BK
9492003-07-24 Benjamin Kosnik <bkoz@redhat.com>
950
951 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
952
9532003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
d7541133 954
7e2055ec
ZW
955 * testsuite/23_containers/map_operators.cc: Conform to
956 container requirement as value must be Assignable.
d7541133 957
118545ec
AO
9582003-07-23 Alexandre Oliva <aoliva@redhat.com>
959
960 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
961 tests not only generation of pch files, but also their use.
962 * aclocal.m4, configure: Rebuilt.
963
ff89cb01
SE
9642003-07-23 Steve Ellcey <sje@cup.hp.com>
965
966 * config/cpu/hppa/atomicity.h: Change
967 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
968 to match misc-inst.cc
969
1143680e
SE
9702003-07-23 Steve Ellcey <sje@cup.hp.com>
971
972 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
973 * include/c_std/std_cctype.h: Ditto.
974 * include/c_std/std_cerrno.h: Ditto.
975 * include/c_std/std_cfloat.h: Ditto.
976 * include/c_std/std_climits.h: Ditto.
977 * include/c_std/std_clocale.h: Ditto.
978 * include/c_std/std_cmath.h: Ditto.
979 * include/c_std/std_csetjmp.h: Ditto.
980 * include/c_std/std_csignal.h: Ditto.
981 * include/c_std/std_cstdarg.h: Ditto.
982 * include/c_std/std_cstddef.h: Ditto.
983 * include/c_std/std_cstdio.h: Ditto.
984 * include/c_std/std_cstdlib.h: Ditto.
985 * include/c_std/std_cstring.h: Ditto.
986 * include/c_std/std_ctime.h: Ditto.
987 * include/c_std/std_cwchar.h: Ditto.
988 * include/c_std/std_cwctype.h: Ditto.
989 * include/std/std_algorithm.h: Ditto.
990 * include/std/std_bitset.h: Ditto.
991 * include/std/std_complex.h: Ditto.
992 * include/std/std_deque.h: Ditto.
993 * include/std/std_fstream.h: Ditto.
994 * include/std/std_functional.h: Ditto.
995 * include/std/std_iomanip.h: Ditto.
996 * include/std/std_ios.h: Ditto.
997 * include/std/std_iosfwd.h: Ditto.
998 * include/std/std_iostream.h: Ditto.
999 * include/std/std_istream.h: Ditto.
1000 * include/std/std_iterator.h: Ditto.
1001 * include/std/std_limits.h: Ditto.
1002 * include/std/std_list.h: Ditto.
1003 * include/std/std_locale.h: Ditto.
1004 * include/std/std_map.h: Ditto.
1005 * include/std/std_memory.h: Ditto.
1006 * include/std/std_numeric.h: Ditto.
1007 * include/std/std_ostream.h: Ditto.
1008 * include/std/std_queue.h: Ditto.
1009 * include/std/std_set.h: Ditto.
1010 * include/std/std_sstream.h: Ditto.
1011 * include/std/std_stack.h: Ditto.
1012 * include/std/std_stdexcept.h: Ditto.
1013 * include/std/std_streambuf.h: Ditto.
1014 * include/std/std_string.h: Ditto.
1015 * include/std/std_utility.h: Ditto.
1016 * include/std/std_valarray.h: Ditto.
1017 * include/std/std_vector.h: Ditto.
1018
3988d179
DG
10192003-07-22 Doug Gregor <dgregor@apple.com>
1020
1021 * include/bits/basic_string.h (basic_string::insert): Deprecate
1022 GNU extension.
1023
5dfda042
BK
10242003-07-21 Benjamin Kosnik <bkoz@redhat.com>
1025
1026 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
1027 paths for libio.
1028 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
1029 (test03): Include typeinfo for bad_cast.
1030 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
1031 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
1032 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
1033
3988d179 10342003-07-21 Doug Gregor <dgregor@apple.com>
f345c6b5
DG
1035
1036 * include/bits/boost_concept_check.h:
7e2055ec
ZW
1037 (_EqualityComparableConcept::__constraints): Remove != from the
1038 list of constraints; it is not listed in Table 28 of the C++98
1039 standard.
f345c6b5 1040
2d5f9af2
AJ
10412003-07-18 Andreas Jaeger <aj@suse.de>
1042
1043 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
1044 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
1045 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
1046 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
1047
fea4065d 10482003-07-17 Benjamin Kosnik <bkoz@redhat.com>
7e2055ec 1049
fea4065d
BK
1050 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
1051 * config/locale/generic/messages_members.h: Tweaks.
1052 * config/locale/generic/monetary_members.cc
1053 (moneypunct::_M_initialize_moneypunct): Use cache.
1054 (moneypunct::~moneypunct): Delete cache.
1055 * config/locale/generic/time_members.cc:
1056 (__timepunct::_M_initialize_timepunct): Use cache.
1057 * config/locale/generic/time_members.h:
1058 (__timepunct::~__timepunct): Delete cache.
1059 (__timepunct::__timepunct): Set cache.
1060 * config/locale/gnu/messages_members.h: Tweaks.
1061 * config/locale/gnu/monetary_members.cc:
1062 (moneypunct::_M_initialize_moneypunct): Use cache.
1063 (moneypunct::~moneypunct): Delete cache.
1064 * config/locale/gnu/time_members.cc:
1065 (__timepunct::_M_initialize_timepunct): Use cache.
1066 * config/locale/gnu/time_members.h:
1067 (__timepunct::~__timepunct): Delete cache.
1068 (__timepunct::__timepunct): Set cache.
1069 * include/bits/locale_facets.h (__timepunct_cache): New.
1070 (__moneypunct_cache): New.
1071 * include/bits/locale_facets.tcc: Tweak.
1072 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
1073 * src/locale-inst.cc: Instantiate caches.
1074 * src/globals.cc: Add "C" caches.
1075 * src/localename.cc: Use external "C" caches.
1076
83a279e4
PE
10772003-07-17 Phil Edwards <pme@gcc.gnu.org>
1078
1079 * docs/doxygen/guide.html: Fix typo.
1080
db5eed18
BK
10812003-07-16 Benjamin Kosnik <bkoz@redhat.com>
1082
1083 * include/ext/pod_char_traits.h: Add state template argument.
1084
7942afdc
BK
10852003-07-16 Benjamin Kosnik <bkoz@redhat.com>
1086
1087 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
1088 (num_get::_M_convert_int): To _M_insert_int.
7e2055ec 1089 (num_get::_M_convert_float): To _M_insert_float.
7942afdc
BK
1090 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1091 Use caches for ctype, num_get.
1092 (num_get::_M_extract_int): Same.
1093 (num_get::get(bool)): Same.
1094 (__verify_grouping): Use size_t.
1095 * src/locale-inst.cc: Update.
1096 * src/locale.cc: Adjust _S_atoms_in.
1097
1ef4a5d4
PE
10982003-07-16 Phil Edwards <pme@gcc.gnu.org>
1099
1100 * docs/doxygen/mainpage.html: Move building/writing instructions...
1101 * docs/doxygen/guide.html: ...to here. New file.
1102
dced0d12
JW
11032003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
1104
1105 * docs/html/ext/howto.html: Update URL for SGI STL docs.
1106 * docs/html/faq/index.html: Same.
1107 * docs/html/faq/index.txt: Regenerate.
1108
e50344b9
PC
11092003-07-16 Paolo Carlini <pcarlini@unitus.it>
1110
1111 PR libstdc++/11528
1112 * include/bits/locale_facets.tcc (money_get::do_get):
1113 Strip only _leading_ zeros.
1114 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
1115 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
1116
94b7906a
GP
11172003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1118
1119 * include/ext/hash_map (class hash_multimap): Remove extra
1120 semicolons from __glibcxx_class_requires3 entries.
1121 * include/ext/hash_set (class hash_set): Ditto.
1122 (class hash_multiset): Ditto.
1123
73a530bd
PR
11242003-07-15 Petur Runolfsson <peturr02@ru.is>
1125
1126 * include/bits/char_traits.h (char_traits<wchar_t>::move):
1127 Change last parameter from int_type to size_t.
1128
119dbb1f
JQ
11292003-07-15 Jerry Quinn <jlquinn@optonline.net>
1130
1131 * include/bits/stl_algo.h (includes, set_union, set_intersection,
7e2055ec
ZW
1132 set_difference, set_symmetric_difference, max_element, min_element,
1133 next_permutation, prev_permutation, find_first_of, find_end):
1134 Document.
119dbb1f 1135 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
7e2055ec 1136 restrictions in docs.
119dbb1f 1137 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
7e2055ec 1138 Document.
119dbb1f
JQ
1139 * docs/doxygen/doxygroups.cc (setoperations): New group.
1140
284f19bf
JQ
11412003-07-15 Jerry Quinn <jlquinn@optonline.net>
1142
7e2055ec 1143 * include/bits/basic_string.h: Document public functions.
284f19bf
JQ
1144 * docs/doxygen/TODO: Update c21 todo.
1145
709e7c9f
JQ
11462003-07-15 Jerry Quinn <jlquinn@optonline.net>
1147
1148 * include/bits/stl_list.h: Document more functions.
1149 * docs/doxygen/TODO: Update c23 todo.
1150
f45e487d
PC
11512003-07-14 Paolo Carlini <pcarlini@unitus.it>
1152
1153 * config/locale/gnu/c_locale.h (__convert_from_v): One more
1154 qualification.
1155
f088510d
PC
11562003-07-14 Paolo Carlini <pcarlini@unitus.it>
1157
1158 * include/bits/stl_tempbuf.h: Qualify free with std::.
1159 * src/locale.cc: Include <cstdlib>, qualify getenv.
1160
2def5b76
PC
11612003-07-14 Paolo Carlini <pcarlini@unitus.it>
1162
1163 * config/locale/gnu/c_locale.h (__convert_from_v): Include
1164 <cstdio>. Qualify names.
1165 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
1166
bda243ec
PC
11672003-07-14 Paolo Carlini <pcarlini@unitus.it>
1168 Nathan C. Myers <ncm-nospam@cantrip.org>
1169
1170 PR libstdc++/11378
1171 * include/std/std_fstream.h (xsputn): Declare only.
1172 * include/bits/fstream.tcc (xsputn): Define, optimize for the
7e2055ec 1173 always_noconv() case: when __n is sufficiently large flush
bda243ec
PC
1174 the buffer and issue a direct write, if possible combining the
1175 two with writev in __basic_file<>::xsputn_2.
1176 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
1177 New, declare.
1178 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
1179 Define.
1180 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
1181 the availability of writev in <sys/uio.h>.
1182 * configure.in: Call here.
1183 * acconfig.h: Add undef for the corresponding symbol.
1184 * aclocal.m4: Regenerate.
1185 * configure: Regenerate.
1186 * config.h.in: Regenerate.
1187 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
1188
1189 * include/std/std_fstream.h (sync): Constify a variable.
1190
c573d965
BK
11912003-07-14 Benjamin Kosnik <bkoz@redhat.com>
1192
1193 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
1194 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
7e2055ec 1195
3ad249b9
GDR
11962003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
1197
1198 * config/locale/gnu/c_locale.h (__convert_from_v): Include
1199 <cstring> and <cstdlib>. Qualify names.
1200
f2ffecb1
MM
12012003-07-13 Mark Mitchell <mark@codesourcery.com>
1202
1203 * config/locale/generic/c_locale.h: Include <cstdlib> and
1204 <cstring>.
1205 * include/bits/boost_concept_check.h: Add this-> to unqualified
1206 method calls.
1207 * include/bits/deque.tcc: Likewise.
1208 * include/bits/locale_facets.h : Likewise.
1209 * include/bits/ostream.tcc: Likewise.
1210 * include/bits/stl_algo.h: Likewise.
1211 * include/bits/stl_bvector.h: Likewise.
1212 * include/bits/stl_deque.h: Likewise.
1213 * include/bits/stl_list.h: Likewise.
1214 * include/bits/stl_tree.h: Likewise.
1215 * include/bits/stl_vector.h: Likewise.
1216 * include/bits/vector.tcc: Likewise.
1217 * include/ext/rope: Likewise.
1218 * include/ext/ropeimpl.h: Likewise.
1219 * include/ext/stdio_filebuf.h: Likewise.
1220
e2fcbaa3
JQ
12212003-07-11 Jerry Quinn <jlquinn@optonline.net>
1222
1223 * include/bits/basic_ios.h (copyfmt): Document.
1224 * include/bits/ios_base.h (event, event_callback, register_callback,
1225 xalloc, iword, pword): Document.
1226 (imbue, ~ios_base): Update docs on callbacks.
1227
58579a27
PE
12282003-07-11 Phil Edwards <pme@gcc.gnu.org>
1229
1230 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
1231 warning messages if the environment cannot support symbol versioning.
1232 (port_specific_symbol_file): It's plural, add an 's' on the end.
1233 * configure.host: Likewise.
1234 * src/Makefile.am: Likewise.
1235 * config/linker-map.gnu: Remove one semicolon, heh.
1236 * scripts/extract_symvers: Don't assume useful 'export' syntax.
1237 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
1238 * aclocal.m4, configure, src/Makefile.in: Regenerated.
1239
cde63840
BK
12402003-07-09 Benjamin Kosnik <bkoz@redhat.com>
1241
1242 * include/bits/locale_facets.tcc: Use function object for
7e2055ec 1243 __use_cache instead of template function. Partially specialize for
cde63840
BK
1244 __numpunct<_CharT>.
1245 * include/bits/locale_classes.h: Update friend declaration for
1246 __use_cache.
1247 (_M_install_cache): No throw exception specs.
1248 * src/locale.cc: Remove __use_cache specializations.
1249 * include/ext/pod_char_traits.h (length): Tweak.
1250 * include/bits/locale_facets.h (__numpunct_cache): Remove
1251 char_type typedef.
1252 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
1253 (pod_long): Remove.
1254 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
1255 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
1256 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
1257 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
1258 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
1259 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
7e2055ec 1260
e7f042e4
JQ
12612003-07-09 Jerry Quinn <jlquinn@optonline.net>
1262
1263 * src/ios.cc (_M_grow_words): Fix spelling.
1264
ca1c7011
GB
12652003-07-09 Gawain Bolton <gp.bolton@computer.org>
1266
1267 * include/bits/stl_tree.h: Move larger member functions in
1268 _Rb_tree_base_iterator and _Rb_tree_node to...
1269 * src/stl_tree.cc: Here.
1270 * src/Makefile.in: Add stl_tree.cc.
1271 * src/Makefile.in: Regenerated.
1272 * config/linker-map.gnu: Add symbols here.
1273
9e7facfd
BK
12742003-07-08 Benjamin Kosnik <bkoz@redhat.com>
1275
1276 * testsuite/ext/pod_char_traits.cc: New.
1277 * include/ext/pod_char_traits.h: New.
1278 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
1279 * include/Makefile.in: Regenerate.
1280 * docs/html/21_strings/howto.html: Update.
7e2055ec 1281
e55dc371
GB
12822003-07-08 Gawain Bolton <gp.bolton@computer.org>
1283
1284 * testsuite/performance/list_create_fill_sort.cc: New.
1285
c094e9b9
BK
12862003-07-08 Benjamin Kosnik <bkoz@redhat.com>
1287
1288 * config/locale/generic/numeric_members.cc: Correct type info.
1289 * config/locale/gnu/numeric_members.cc: Same.
1290 * include/bits/locale_facets.h: Same.
7e2055ec 1291
c094e9b9
BK
1292 * include/bits/char_traits.h: Correct spacing.
1293
1294 * src/locale.cc: Wrap to 80 col.
7e2055ec 1295
a8784c4c
PC
12962003-07-07 Paolo Carlini <pcarlini@unitus.it>
1297
1298 * include/std/std_complex.h: Partially revert last
1299 changes: cmath functions must not be qualified.
1300
313dd504
PE
13012003-07-06 Phil Edwards <pme@gcc.gnu.org>
1302
1303 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
1304 2.11 with globbing backport fix.
1305 * aclocal.m4, configure: Regenerated.
1306
6623b2f2
PC
13072003-07-06 Paolo Carlini <pcarlini@unitus.it>
1308
1309 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
1310 if output is at all possible (!_M_reading), cannot be active.
1311
1312 * include/std/std_fstream.h: Tweak comments to doxygen style.
1313
391cfc46
PC
13142003-07-06 Paolo Carlini <pcarlini@unitus.it>
1315
1316 * include/bits/locale_classes.h: Fully qualify standard
1317 functions with std::, thus avoiding Koenig lookup.
1318 * include/bits/locale_facets.tcc: Likewise.
1319 * src/locale.cc: Likewise.
1320 * src/localename.cc: Likewise.
1321
48166869
PE
13222003-07-06 Phil Edwards <pme@gcc.gnu.org>
1323
1324 * include/bits/allocator_traits.h: Fix doxygen markup.
1325 * include/ext/mt_allocator.h: Likewise.
1326
aaa4a229
PE
13272003-07-06 Phil Edwards <pme@gcc.gnu.org>
1328
1329 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
1330
e6b7a69a
PE
13312003-07-05 Phil Edwards <pme@gcc.gnu.org>
1332
1333 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
1334 requirement. Add port_specific_symbol_file variable.
1335 * configure.host: Add docs for port_specific_symbol_file.
1336 Clean up try_cpu block for x86.
1337 * config/linker-map.gnu: No more "last symbol can't have a
1338 semicolon" kaka. Add hook for port-specific symbols.
1339 * src/Makefile.am: Remove trailing whitespace.
1340 (libstdc++-symbol.ver): Detect the presence of port-specific
1341 symbols, and add them accordingly.
1342
1343 * docs/html/17_intro/porting.texi: Bring up to date.
1344
1345 * src/Makefile.in, aclocal.m4, configure,
1346 docs/html/17_intro/porting.html: Regenerated.
1347
ac3d7b44
PE
13482003-07-05 Phil Edwards <pme@gcc.gnu.org>
1349
1350 * scripts/create_testsuite_files: New file.
1351 * testsuite/Makefile.am (all-local, check-performance): Use it.
1352 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
1353 * testsuite/Makefile.in: Regenerated.
1354
1355 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
1356 files at the end.
1357 * testsuite/performance/fstream_seek_write.cc: Likewise.
1358 * testsuite/performance/ofstream_insert_float.cc: Likewise.
1359 * testsuite/performance/ofstream_insert_int.cc: Likewise.
1360 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
1361
e3d51be2
GB
13622003-07-05 Gawain Bolton <gp.bolton@computer.org>
1363
1364 * include/bits/stl_list.h: Performance and memory usage
c094e9b9
BK
1365 improvements. In particular, the behaviour of the constructor and
1366 destructor as the list header node is no longer dynamically
1367 allocated/de-allocated.
e3d51be2
GB
1368 * include/bits/list.tcc: Likewise.
1369
eb9a4231
PC
13702003-07-05 Paolo Carlini <pcarlini@unitus.it>
1371
1372 * include/std/std_complex.h: Fully qualify standard
1373 functions with std::, thus avoiding Koenig lookup.
1374 * include/std/std_memory.h: Likewise.
1375 * include/std/std_valarray.h: Likewise.
1376
f92c5313
GB
13772003-07-05 Gawain Bolton <gp.bolton@computer.org>
1378
1379 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
7e2055ec 1380 variable for grandparent and use const
f92c5313 1381
8b87d3fa
DB
13822003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
1383
1384 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
1385 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
1386 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
1387 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
1388 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
1389 * testsuite/27_io/objects/char/7.cc: Ditto
1390 * testsuite/27_io/objects/char/9661-1.cc: Ditto
1391
a8cad3e1
PC
13922003-07-05 Paolo Carlini <pcarlini@unitus.it>
1393
1394 * include/std/std_bitset.h: Fully qualify standard
1395 functions with std::, thus avoiding Koenig lookup.
1396
1397 * include/std/std_fstream.h: Change comment to doxygen style.
1398
2778669a
PE
13992003-07-05 Phil Edwards <pme@gcc.gnu.org>
1400
1401 * include/std/std_limits.h: More CPP->CXX changes.
1402 * scripts/check_survey.in: Likewise.
1403
3d7c150e
BK
14042003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1405
1406 Move from CPP to CXX.
1407 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
1408 * testsuite/Makefile.am: Same.
1409 * testsuite/Makefile.in: Regenerate.
1410 * po/Makefile.am: Same.
7e2055ec 1411 * po/Makefile.in: Regenerate.
3d7c150e 1412 * libsupc++/Makefile.am: Same.
7e2055ec 1413 * libsupc++/Makefile.in: Regenerate.
3d7c150e 1414 * libmath/Makefile.am: Same.
7e2055ec 1415 * libmath/Makefile.in: Regenerate.
3d7c150e 1416 * include/Makefile.am: Same.
7e2055ec 1417 * include/Makefile.in: Regenerate.
3d7c150e 1418 * src/Makefile.am: Same.
7e2055ec 1419 * src/Makefile.in: Regenerate.
3d7c150e
BK
1420 * acconfig.h: Same.
1421 * configure.host: Same.
1422 * configure.in: Same.
1423 * configure: Regenerate.
1424 * acinclude.m4: Same.
1425 * aclocal.m4: Same.
1426 * src: Change all files in this directory.
1427 * testsuite: Same.
1428 * include: Same, standardize include guards.
1429 * config: Same.
1430 * libsupc++: Same.
7e2055ec 1431
e6cc3a24
ZW
14322003-07-04 Zack Weinberg <zack@codesourcery.com>
1433
1434 * testsuite/22_locale/collate/compare/wchar_t/2.cc
1435 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
1436 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
1437 * testsuite/22_locale/collate/hash/wchar_t/2.cc
1438 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
1439 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
1440 * testsuite/22_locale/collate/transform/wchar_t/2.cc
1441 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
1442 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1443 XFAIL on all targets.
1444
d542f114
BK
14452003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1446
1447 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
1448 * aclocal.m4: Regenerate.
1449 * configure: Regenerate.
e6cc3a24 1450
d542f114
BK
14512003-07-04 Jerry Quinn <jlquinn@optonline.net>
1452
1453 * include/bits/locale_facets.tcc (__int_to_char): Move common case
1454 to the top.
1455
69ef29fd 14562003-07-04 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24
ZW
1457 Petur Runolfsson <peturr02@ru.is>
1458
69ef29fd
BK
1459 * config/io/basic_file_stdio.cc: Revert.
1460
5b5bf717
PC
14612003-07-04 Paolo Carlini <pcarlini@unitus.it>
1462
1463 * include/bits/deque.tcc: Fully qualify standard
1464 functions with std::, thus avoiding Koenig lookup.
1465 * include/bits/gslice_array.h: Likewise.
1466 * include/bits/indirect_array.h: Likewise.
1467 * include/bits/list.tcc: Likewise.
1468 * include/bits/mask_array.h: Likewise.
1469 * include/bits/slice_array.h: Likewise.
1470
7f6dd1ca
GB
14712003-07-04 Gawain Bolton <gbolton@free.fr>
1472
1473 * include/bits/stl_tree.h: Performance and memory usage
1474 improvements.
1475
8c90b13a
L
14762003-07-04 H.J. Lu <hongjiu.lu@intel.com>
1477
1478 * Makefile.am: Replace PWD with PWD_COMMAND.
1479 * Makefile.in: Regenerated.
1480 * docs/html/Makefile: Likewise.
1481
2f805868
PC
14822003-07-04 Paolo Carlini <pcarlini@unitus.it>
1483
1484 * include/bits/valarray_array.h: Fully qualify standard
1485 functions with std::, thus avoiding Koenig lookup.
1486 * include/bits/vector.tcc: Likewise.
1487
a30335e9
BK
14882003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1489
1490 * include/Makefile.am: Update target_ to host_.
1491 * include/Makefile.in: Regenerate.
1492 * src/Makefile.am: Same.
1493 * src/Makefile.in: Regenerate.
1494
1495 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
e6cc3a24 1496
d8d81f62
BK
14972003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1498
1499 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
1500 --enable-libstdcxx-debug-flags.
1501 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
1502 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
1503 * aclocal.m4: Regenerate.
1504 * configure: Same.
1505 * docs/html/configopts.html: Update.
e6cc3a24 1506
10ef4e2e
PC
15072003-07-04 Paolo Carlini <pcarlini@unitus.it>
1508
1509 Revert the fix for libstdc++/11378.
1510
ac2c48d7
PC
15112003-07-04 Paolo Carlini <pcarlini@unitus.it>
1512
1513 PR libstdc++/11378
1514 * include/std/std_fstream.h (xsputn): In the unbuffered case,
1515 provided always_noconv(), issue directly _M_file.xsputn.
1516 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
1517
9dd90ac6
PC
15182003-07-04 Paolo Carlini <pcarlini@unitus.it>
1519
1520 * include/bits/stl_list.h: Fully qualify standard
1521 functions with std::, thus avoiding Koenig lookup.
1522 * include/bits/stl_queue.h: Likewise.
1523 * include/bits/stl_raw_storage_iter.h: Likewise.
1524 * include/bits/stl_tempbuf.h: Likewise.
1525 * include/bits/stl_tree.h: Likewise.
1526 * include/bits/stl_uninitialized.h: Likewise.
1527 * include/bits/stl_vector.h: Likewise.
e6cc3a24 1528 * include/ext/rope: Change includes order.
9dd90ac6 1529
1b33b6b2
BK
15302003-07-04 Benjamin Kosnik <bkoz@redhat.com>
1531
1532 * configure.host (fpos_include_dir): Fix.
1533
369b78b0
PC
15342003-07-04 Paolo Carlini <pcarlini@unitus.it>
1535
1536 * include/bits/stl_heap.h: Fully qualify standard
1537 functions with std::, thus avoiding Koenig lookup.
1538 * include/bits/stl_iterator_base_funcs.h: Likewise.
1539
1540 * include/bits/stl_algo.h: Qualify __iterator_category too.
1541 * include/bits/stl_algobase.h: Likewise.
1542 * include/bits/stl_bvector.h: Likewise.
1543
1544 * include/bits/stl_algo.h: Don't qualify the pair type.
1545
cc5112c9
BK
15462003-07-03 Benjamin Kosnik <bkoz@redhat.com>
1547
1548 * include/Makefile.am (target_headers): Add fpos.h
1549 (bits_headers): Remove.
1550 * include/Makefile.in: Regenerate.
1551 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
1552 * configure: Regenerate.
1553 * configure.host: Add fpos_include_dir.
1554 * config/os/gnu-linux/fpos.h: New.
e6cc3a24
ZW
1555 * config/os/generic/fpos.h: Add.
1556 * include/bits/fpos.h: Remove.
cc5112c9
BK
1557
1558 * config/io/c_io_stdio.h: Remove fpos_t typedef.
1559
1560 * include/bits/fstream.tcc: Tweaks.
1561 * include/std/std_fstream.h: Same.
e6cc3a24 1562
cc5112c9
BK
1563 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
1564 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
1565 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
1566 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
1567 * testsuite/27_io/fpos/1.cc: New.
e6cc3a24 1568
cc5112c9
BK
15692003-07-03 Benjamin Kosnik <bkoz@redhat.com>
1570 Petur Runolfsson <peturr02@ru.is>
e6cc3a24 1571
cc5112c9
BK
1572 * include/std/std_streambuf.h: Remove _M_pos.
1573 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
1574 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
1575 use fread/fwrite instead of read/write.
1576 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
1577 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
1578 before reading again.
1579 * testsuite/27_io/objects/char/6.cc: Tweak.
e6cc3a24 1580
304d79dc
DE
15812003-07-03 David Edelsohn <edelsohn@gnu.org>
1582
1583 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
1584 _GLIBCPP_USE_WCHAR_T.
1585
41ba4c46
PC
15862003-07-02 Paolo Carlini <pcarlini@unitus.it>
1587
1588 * include/bits/basic_string.tcc (_M_replace_aux): Constify
1589 __n1 and __off1.
1590
da73f9de
PC
15912003-07-02 Paolo Carlini <pcarlini@unitus.it>
1592
1593 * include/bits/stl_bvector.h: Fully qualify standard
1594 functions with std::, thus avoiding Koenig lookup.
1595 * include/bits/stl_construct.h: Likewise.
1596 * include/bits/stl_deque.h: Likewise.
1597
1c380095
PC
15982003-07-02 Paolo Carlini <pcarlini@unitus.it>
1599
1600 * testsuite/22_locale/num_put/put/char/7.cc: Include
1601 <testsuite_hooks.h>, tweak.
1602 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
1603
f9f4d1e1
PE
16042003-07-01 Phil Edwards <pme@gcc.gnu.org>
1605
1606 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
1607 check* targets, but not libs/programs).
1608 * testsuite/Makefile.in: Regenerate.
1609
b7693a46
RS
16102003-07-01 Roger Sayle <roger@eyesopen.com>
1611
1612 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
1613 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
1614 * aclocal.m4: Regenerate.
1615 * configure: Regenerate.
1616
a5b1b26c
BK
16172003-07-01 Benjamin Kosnik <bkoz@redhat.com>
1618
1619 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
1620 * aclocal.m4: Regenerated.
1621 * configure: Regenerated.
e6cc3a24 1622
f64f3e74
PC
16232003-07-01 Paolo Carlini <pcarlini@unitus.it>
1624
1625 PR libstdc++/11389
1626 * include/bits/fstream.tcc (underflow): For encoding() == 0
1627 don't read more than __buflen chars.
1628 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
1629 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
1630 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
1631 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
1632
5ee78c21
JQ
16332003-07-01 Jerry Quinn <jlquinn@optonline.net>
1634
1635 * 22_locale/num_put/put/char/7.cc: New.
1636 * 22_locale/num_put/put/wchar_t/7.cc: New.
1637
e97ee22e
JQ
16382003-06-30 Jerry Quinn <jlquinn@optonline.net>
1639
1640 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
1641 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
1642
7d6a0993
BK
16432003-06-30 Benjamin Kosnik <bkoz@redhat.com>
1644
1645 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
1646 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
1647 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
1648 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
1649 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
1650 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
1651 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
1652 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
1653 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
1654 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
1655 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
1656 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
1657 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
1658 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
1659 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
1660 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
1661 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
1662 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
1663 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
1664 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
1665 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
1666 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
1667 * data/seekoff-1.tst: Remove.
1668 * data/seekoff-1io.tst: New.
1669 * data/seekoff-1out.tst: New.
1670 * data/seekoff-2.tst: Remove.
1671 * data/seekoff-2io.tst: New.
1672 * data/seekoff-2out.tst: New.
1673 * data/seekoff.txt
1674 * data/seekpos-1.tst: Remove.
1675 * data/seekpos-1io.tst: New.
1676 * data/seekpos-1out.tst: New.
1677 * data/seekpos-2.tst: Remove.
1678 * data/seekpos-2io.tst: New.
1679 * data/seekpos-2out.tst: New.
1680 * data/seekpos.txt: New.
1681
a5b1b26c 16822003-06-30 Jerry Quinn <jlquinn@optonline.net>
cf0cad09
JQ
1683
1684 * src/locale.cc (__use_cache<numpunct>): Move from here ...
1685 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
1686 here.
1687
884a757a
PC
16882003-06-30 Paolo Carlini <pcarlini@unitus.it>
1689
1690 * include/bits/stl_algobase.h: Fully qualify standard
1691 functions with std::, thus avoiding Koenig lookup.
1692
5892c641 16932003-06-30 Doug Gregor <dgregor@apple.com>
e6cc3a24 1694
5892c641 1695 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
e6cc3a24 1696 subscripting empty string.
5892c641 1697
7685a26d
PE
16982003-06-30 Phil Edwards <pme@gcc.gnu.org>
1699
1700 * testsuite/Makefile.am (check-am): Do not override.
1701 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
1702 * testsuite/Makefile.in: Regenerate.
1703
e6cc3a24
ZW
17042003-06-30 Doug Gregor <dgregor@apple.com>
1705
d147b75b
DG
1706 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
1707 Don't initialize an insert_iterator with a singular iterator.
1708
44f0760e 17092003-06-30 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 1710
44f0760e
BK
1711 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
1712 * aclocal.m4: Regenerate.
1713 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
1714 GLIBCPP_ENABLE_PCH, default to yes.
1715 * configure: Regenerate.
1716 * docs/html/configopts.html: Add --enable-pch.
e6cc3a24 1717
e37f7da7
PE
17182003-06-30 Phil Edwards <pme@gcc.gnu.org>
1719
1720 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
1721 (libstdc++-v3-init): Also set LD_RUN_PATH.
1722
cd16e04b
PC
17232003-06-30 Paolo Carlini <pcarlini@unitus.it>
1724
fbfcbadc
PC
1725 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
1726 from here to filebuf and stringbuf.
cd16e04b
PC
1727 (~basic_streambuf()): Don't set _M_mode.
1728 (basic_streambuf()): Don't set _M_mode.
1729 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
1730 (~basic_filebuf()): Clean up.
1731 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
1732 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
1733 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
1734 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
1735 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
1736 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
1737 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
1738
17392003-06-30 Paolo Carlini <pcarlini@unitus.it>
1740
1741 * include/std/std_fstream.h (_M_underflow): Remove.
1742 (uflow): Remove, inherited from streambuf.
1743 (underflow): Only declare.
e6cc3a24 1744 * include/bits/fstream.tcc (_M_underflow): Rename to
cd16e04b
PC
1745 underflow, to which is equivalent for __bump == false,
1746 simplify.
1747 * include/std/std_sstream.h (_M_underflow): Remove.
1748 (uflow): Remove, inherited from streambuf.
1749 (underflow): Only declare.
e6cc3a24 1750 * include/bits/sstream.tcc (_M_underflow): Rename to
cd16e04b
PC
1751 underflow, to which is equivalent for __bump == false,
1752 simplify.
1753
c868f37e
PC
17542003-06-29 Paolo Carlini <pcarlini@unitus.it>
1755
fbfcbadc
PC
1756 * include/bits/stl_algo.h: Fully qualify standard functions
1757 with std::, thus avoiding Koenig lookup.
c868f37e 1758
165f54e0
PC
17592003-06-29 Paolo Carlini <pcarlini@unitus.it>
1760
1761 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
1762 Improve type correctness-wise.
1763 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
1764 Likewise.
1765 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
1766 Likewise.
1767 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
1768 Likewise.
1769
90319d16
PC
17702003-06-29 Paolo Carlini <pcarlini@unitus.it>
1771
1772 * include/std/std_streambuf.h (uflow): According to
1773 27.5.2.4.3,p16, don't check gptr() < egptr().
1774
b417ae14
PC
17752003-06-28 Paolo Carlini <pcarlini@unitus.it>
1776
1777 PR libstdc++/9875
1778 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
1779 (seekpos): Likewise.
1780 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
1781 New test.
1782 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
1783 New test.
1784
f1a22109
BK
17852003-06-27 Benjamin Kosnik <bkoz@redhat.com>
1786
1787 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
1788 output name to libstdc++-v3-performance.sum.
1789 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
1790 * testsuite/Makefile.in: Regenerate.
e6cc3a24 1791
f1a22109
BK
17922003-06-27 Matthias Klose <doko@debian.org>
1793
1794 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
1795 output of abi-check in libstdc++-v3-abi.sum.
1796 * testsuite/Makefile.in: Regenerate.
1797
2e8a523f
KW
17982003-06-27 Krister Walfridsson <cato@df.lth.se>
1799
1800 * config/os/bsd/netbsd/ctype_noninline.h
1801 (_C_ctype_): Declare.
1802 (ctype<char>::classic_table): Return _C_ctype_ + 1.
1803 (ctype<char>::ctype): Use classic_table.
1804
3461133d
PC
18052003-06-27 Paolo Carlini <pcarlini@unitus.it>
1806 Nathan C. Myers <ncm-nospam@cantrip.org>
1807
1808 PR libstdc++/9178
1809 * include/bits/fstream.tcc (_M_underflow): Properly estimate
1810 the worst-case number of external bytes for a given get area.
1811 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
1812
18132003-06-27 Paolo Carlini <pcarlini@unitus.it>
1814 Petur Runolfsson <peturr02@ru.is>
1815
1816 PR libstdc++/11305
1817 * include/bits/fstream.tcc (overflow): Properly estimate the
1818 worst-case number of external bytes for a given put area
1819 (by using codecvt::max_length()).
1820 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
1821 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
1822 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
1823 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
1824
5648db54
NS
18252003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1826
1827 * config/linker-map.gnu: Remove ; after __numpunct_cache.
1828
215f9e28
BK
18292003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1830
1831 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
1832 to the imbued locale.
1833 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
1834 _M_getloc.
1835 (num_put::_M_convert_float): Use.
1836
18372003-06-26 Benjamin Kosnik <bkoz@redhat.com>
1838 Jerry Quinn <jlquinn@optonline.net>
1839
1840 * config/linker-map.gnu: Add __numpunct_cache.
1841 * config/locale/gnu/numeric_members.cc
1842 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
1843 all elements for "C" locale.
1844 (numpunct::~numpunct): Delete _M_data.
e6cc3a24 1845 * config/locale/generic/numeric_members.cc: Same.
215f9e28
BK
1846 * include/bits/basic_ios.tcc
1847 (basic_ios::init): Remove __locale_cache bits.
1848 (basic_ios::_M_cache_locale): Same.
e6cc3a24 1849 * include/bits/ios_base.h: Same. Tweaks.
215f9e28
BK
1850 * include/bits/locale_classes.h: Tweaks. Reorder classes.
1851 (__use_cache): Make friends with _Impl, locale.
1852 (_Impl::_M_caches): Add.
1853 (_Impl::_M_install_cache): Add.
1854 * include/bits/locale_facets.h (__numpunct_cache): New.
1855 (numpunct): Encapsulate data members in __numpunct_cache member,
1856 _M_data. Adjust virtuals.
e6cc3a24 1857 (numpunct::numpunct): New ctor for the same.
215f9e28 1858 (__locale_cache_base): Remove.
e6cc3a24 1859 (__locale_cache): Remove.
215f9e28
BK
1860 * include/bits/locale_facets.tcc (__use_cache): New function,
1861 specializations.
1862 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
1863 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
1864 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
1865 * src/locale-inst.cc: Same. Add __numpunct_cache.
1866 * src/locale.cc: Tweak inlines.
1867 (__use_cache): Define specializations.
1868 * src/localename.cc: Use global bits.
1869 (_Impl::~Impl): Deal with __numpunct_cache destruction.
1870 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
1871 (_Impl::_M_init_facet): Take into account __numpunct_cache.
1872 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
1873 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1874
8370378a 18752003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
e6cc3a24 1876 Paolo Carlini <pcarlini@unitus.it>
8370378a
NM
1877
1878 * testsuite/performance/filebuf_copy.cc: New, testing char
1879 by char file copy.
1880
2cfe4e68 18812003-06-26 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 1882 Nathan C. Myers <ncm-nospam@cantrip.org>
2cfe4e68
PC
1883
1884 * include/bits/fstream.tcc (_M_underflow): When the actual
1885 end of file is reached, set 'uncommitted' mode to allow a
1886 next write without an intervening seek (see C++98 27.8.1.1,2
1887 and C89 7.9.5.3).
1888 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
1889
29d9ed97
NM
18902003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
1891
1892 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1893 sputc): Move inline, from here...
1894 * include/std/std_streambuf.h: ... to here.
1895
1896 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
1897 sputbackc, sungetc, sputc): Use __builtin_expect.
1898
c1a62440
PE
18992003-06-24 Phil Edwards <pme@gcc.gnu.org>
1900
1901 * docs/doxygen/mainpage.html: Use a useful title.
1902
cdc1242a
BK
19032003-06-24 Benjamin Kosnik <bkoz@redhat.com>
1904
1905 * docs/html/documentation.html: Remove assignment info.
1906 * docs/html/17_intro/contribute.html: Edits.
1907 * docs/html/17_intro/libstdc++-assign.tx: Remove.
1908
1909 * docs/html/test.html: Update.
1910
1911 * README: Update.
e6cc3a24 1912
1b6f0a56 19132003-06-24 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 1914 Ulrich Drepper <drepper@redhat.com>
1b6f0a56
BK
1915
1916 * testsuite/testsuite_performance.h: Tweak mallinfo.
1917
71b46021 19182003-06-24 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 1919 Nathan C. Myers <ncm-nospam@cantrip.org>
71b46021
PC
1920
1921 * include/std/std_fstream.h (_M_filepos): Remove.
1922 (_M_reading, _M_writing): New, encode the various I/O modes:
1923 'read', 'write' and 'uncommitted'.
1924 (sync): If there is something to flush, do it, then go to
1925 'uncommitted' mode.
1926 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
1927 with three different cases: __off > 0 (upon underflow),
1928 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
1929 seekoff/pos).
1930 (_M_underflow): Don't call overflow, set _M_reading to true
1931 on success, tweak.
1932 (pbackfail): Set _M_reading to true on pback creation, tweak.
1933 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
1934 set _M_writing to true on success, tweak.
1935 (seekoff): Simplify, set _M_reading, _M_writing to false, call
1936 _M_set_buffer(-1) ('uncommitted').
1937 (open, close, setbuf): Set _M_reading, _M_writing to false and
1938 call _M_set_buffer(-1), tweak.
1939 (basic_filebuf): Don't set _M_buf_unified.
1940 (_M_destroy_internal_buffer): Don't call setg and setp.
1941 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
1942 _M_writing and _M_set_buffer(-1).
1943 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
1944 _M_out_lim, _M_buf_unified): Remove.
1945 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
e6cc3a24 1946 (setp): Don't set _M_out_lim.
71b46021
PC
1947 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
1948 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
1949 upon open the mode is 'uncommitted' and therefore the put area
1950 pointers are null.
1951 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
1952 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
1953 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
1954 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
1955 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
1956 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
1957 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1958 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
1959 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
1960 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
1961 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
1962 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
1963 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
1964 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
1965 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
1966 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
1967 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
1968 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
1969 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
1970 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
1971
1972 * include/bits/fstream.tcc (showmanyc): Use only the
1973 documented derivation interface to basic_streambuf (gptr(),
1974 setg(), etc.) to work right with user specializations.
1975 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
1976 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
1977 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
1978 Likewise.
1979 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
1980 xsgetn): Likewise.
1981
9eb6e1d3
LR
19822003-06-23 Loren J. Rittle <ljrittle@acm.org>
1983
1984 * configure.host (freebsd*): Set abi_baseline_pair.
1985 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
1986 (at or near first release) to 3.3.
1987 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
1988 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
1989 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
1990
3d57d7ba 1991 * include/ext/mt_allocator.h: Portability.
d1a2c4d6 1992 * testsuite/testsuite_performance.h: Likewise.
3d57d7ba 1993
c89c30dd
BK
19942003-06-23 Benjamin Kosnik <bkoz@redhat.com>
1995
1996 * docs/html/17_intro/libstdc++-assign.txt: Update address.
1997
1998 * testsuite/performance/ifstream_getline.cc: Fix.
e6cc3a24 1999
c89c30dd 20002003-06-23 Doug Gregor <dgregor@apple.com>
2b491e3a 2001
e6cc3a24
ZW
2002 * include/bits/boost_concept_check.h: Don't use _D or _R for type
2003 names.
2b491e3a 2004
1b170b55
PC
20052003-06-22 Paolo Carlini <pcarlini@unitus.it>
2006 Nathan C. Myers <ncm-nospam@cantrip.org>
2007
2008 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
2009 is now used only for filebuf, when _M_buf_unified is true.
2010 epgtr() plays the role of _M_out_lim but it's only updated
2011 upon overflow, underflow, uflow, seekoff/pos.
2012 * include/bits/sstream.tcc (_M_underflow): New, implements
2013 stringbuf::underflow and uflow.
2014 (seekoff, seekpos): Tweak, use _M_update_egptr.
2015 * include/std/std_sstream.h (str): Rewrote, deal correctly
2016 with the new logic, in particular, when pptr() > egptr().
2017 (_M_sync): When __testout && !__testin set all the get area
2018 pointers to the current string end.
2019 (_M_update_egptr): New, internal function updating egptr()
2020 to the actual string end.
2021 (_M_underflow): New, declare.
2022 (underflow): Dispatch to _M_underflow(false).
2023 (uflow): Dispatch to _M_underflow(true).
2024
2025 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
2026 seekpos): Use only the documented derivation interface to
2027 basic_streambuf (gptr(), setg(), etc.) to work right with
2028 user specializations.
2029 * include/std/std_sstream.h (str, _M_sync): Likewise.
2030
8dbe14be
DG
20312003-06-20 Doug Gregor <dgregor@apple.com>
2032
1b170b55
PC
2033 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
2034 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
2035 dereference end iterator.
2036 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
2037 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
2038 index equal to the length of a string.
2039 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
2040 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
2041 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
2042 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
2043 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
2044 * testsuite/23_containers/list_modifiers.cc: Don't dereference
2045 singular reverse iterator.
2046 * testsuite/23_containers/vector_bool.cc: Don't increment singular
2047 iterator.
2048 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
8dbe14be 2049
bdb0f0f5
DG
20502003-06-20 Doug Gregor <dgregor@apple.com>
2051
e6cc3a24 2052 * include/bits/basic_string.h (basic_string::replace): Dispatch
bdb0f0f5
DG
2053 _InputIterator version based on _Is_integer.
2054 * include/bits/basic_string.tcc (basic_string::replace):
2055 Renamed replace(iterator, iterator, size_type, _CharT) to
2056 _M_replace_aux.
2057 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
2058 Test basic_string::assign(_InputIterator, _InputIterator),
2059 which calls basic_string::replace(iterator, iterator,
2060 _Input_iterator, _InputIterator).
2061
f5a6463e
BK
20622003-06-20 Benjamin Kosnik <bkoz@redhat.com>
2063
2064 * testsuite/testsuite_performance.h (resource_counter): Don't use
2065 mallinfo at the moment.
2066
bbdfb3e8
MK
20672003-06-20 Matthias Klose <doko@debian.org>
2068
2069 * configure.host: Set try_cpu to target_cpu for existing
2070 baseline files.
2071
97460e9a
AJ
20722003-06-19 Andreas Jaeger <aj@suse.de>
2073
2074 * testsuite/Makefile.am (extract_symvers): Revert accidental
2075 change.
2076 * testsuite/Makefile.in: Regenerate.
2077
2078 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
2079 * configure: Regenerated.
2080
50af15ec
PC
20812003-06-19 Paolo Carlini <pcarlini@unitus.it>
2082
2083 * include/std/std_sstream.h (_M_sync): Make non virtual.
2084
ce4f8c6b
BK
20852003-06-18 Benjamin Kosnik <bkoz@redhat.com>
2086
2087 * testsuite/testsuite_performance.h (time_counter): New.
2088 (resource_counter): New.
2089 (report_performance): New.
2090 (start_counters): New.
2091 (stop_counters): New.
97460e9a 2092 (clear_counters): New.
ce4f8c6b
BK
2093 * testsuite/performance/allocator.cc: Instrument.
2094 * testsuite/performance/cout_insert_int.cc: Same.
2095 * testsuite/performance/complex_norm.cc: Same.
2096 * testsuite/performance/filebuf_sputc.cc: New.
2097 * testsuite/performance/fstream_seek_write.cc: Same.
2098 * testsuite/performance/ifstream_getline.cc: Same.
2099 * testsuite/performance/map_create_fill.cc: Same.
2100 * testsuite/performance/ofstream_insert_float.cc: Same.
2101 * testsuite/performance/ofstream_insert_int.cc: Same.
97460e9a 2102 * testsuite/performance/string_append.cc: Convert.
ce4f8c6b
BK
2103 * scripts/check_performance: New.
2104 * testsuite/Makefile.am (check-performance): New.
2105 (CLEANFILES): Add.
97460e9a 2106
b82a33d2 21072003-06-18 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 2108 Benjamin Kosnik <bkoz@redhat.com>
b82a33d2
PC
2109
2110 * include/std/std_sstream.h (setbuf): Check __n >= 0.
2111 * include/bits/fstream.tcc (setbuf): Tweak.
2112
4c526d09
PC
21132003-06-18 Paolo Carlini <pcarlini@unitus.it>
2114
2115 * include/bits/sstream.tcc (seekoff): We can't seek beyond
2116 _M_out_lim, therefore _M_move_out_cur boils down to simply
2117 updating _M_out_cur.
2118 (seekpos): Likewise, clean up.
2119
c1b74c21 21202003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
e6cc3a24 2121 Paolo Carlini <pcarlini@unitus.it>
c1b74c21
NM
2122
2123 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
2124 simply equivalent to the unbuffered case (0, 0) as far as
2125 _M_buf_size is concerned.
2126
a1af4623
AJ
21272003-06-18 Andreas Jaeger <aj@suse.de>
2128
2129 * testsuite/Makefile.am (new-abi-baseline): Create baseline
2130 directory.
2131 (baseline_file): Use baseline_dir.
2132 (baseline_dir): New.
2133 (mkinstalldirs): New.
2134
2135 * acinclude.m4: Rename baseline_file to baseline_dir, strip
2136 filename from baseline_dir.
2137
2138 * testsuite/Makefile.in: Regenerated.
2139 * Makefile.in: Regenerated.
2140 * aclocal.m4: Regenerated.
2141 * configure: Regenerated.
2142
2f934953
BK
21432003-06-17 Benjamin Kosnik <bkoz@redhat.com>
2144
2145 * configure.in: Missed check_survey bit.
2146 * configure: Regenerated.
2147
0676e930
BK
21482003-06-17 Benjamin Kosnik <bkoz@redhat.com>
2149
2150 * scripts: New.
2151 * config/abi/extract_symvers: Move to...
2152 * scripts/extract_symvers: ...here.
2153 * mkcheck.in: Move to..
2154 * scripts/check_survey.in: ...here.
2155 * testsuite_flags.in: Move to..
2156 * scripts/testsuite_flags.in: ...here.
2157 * configure.in: Change check and testsuite_flags locations.
2158 * configure: Regenerate.
2159 * testsuite/Makefile.am (current_symbols.txt): Change location.
2160 * testsuite/Makefile.in: Regenerate.
2161 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
2162 location of testsuite_flags.
2163 * Makefile.am (check-script): Move..
2164 (check-script-install): Move...
a1af4623 2165 * testsuite/Makefile.am: ... here.
0676e930 2166 * testsuite/Makefile.in: Regenerate.
a1af4623
AJ
2167 * Makefile.in: Regenerate.
2168
82620aaf
BK
21692003-06-17 Benjamin Kosnik <bkoz@redhat.com>
2170
2171 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
2172
c4c064e7
BK
21732003-06-16 Benjamin Kosnik <bkoz@redhat.com>
2174
2175 * Makefile.am (check-abi): Move...
2176 (new-abi-baseline): Move...
2177 * testsuite/Makefile.am: ...here.
2178 (new-abi-baseline): Conditionalize.
2179 (check-abi): Conditionalize.
2180 (check-abi-verbose): New.
2181 * Makefile.in: Regenerate.
a1af4623 2182 * testsuite/Makefile.in: Regenerate.
c4c064e7
BK
2183 * configure.in: Consolidate testsuite configure bits.
2184 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
2185 * configure: Regenerate.
a1af4623 2186 * aclocal.m4: Regenerate.
c4c064e7
BK
2187 * testsuite/abi_check.cc: Add --check-verbose.
2188 Only output detailed information if --check-verbose.
2189
e7bb3511 21902003-06-16 Andreas Jaeger <aj@suse.de>
a1af4623 2191
e6cc3a24 2192 * testsuite/abi_check.cc: Create summary report.
a1af4623 2193
8363b773
PC
21942003-06-16 Paolo Carlini <pcarlini@unitus.it>
2195
2196 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
2197 for systems with BUFSIZ != 8192.
2198 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
2199 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
2200 Minor tweaks.
2201
5ab481e0
BK
22022003-06-16 Andreas Jaeger <aj@suse.de>
2203
2204 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
2205 check-abi multilib aware.
2206 * aclocal.m4: Regenerate.
2207 * configure: Regenerate.
a1af4623 2208
5ab481e0 22092003-06-16 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 2210 Andreas Jaeger <aj@suse.de>
5ab481e0
BK
2211
2212 * configure.host: Set x86_64 abi_baseline pair correctly.
2213
0bad3b7c
PC
22142003-06-16 Paolo Carlini <pcarlini@unitus.it>
2215
2216 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
e6cc3a24 2217 fix for missing seeks between gets and puts into...
0bad3b7c
PC
2218 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
2219 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
2220 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
2221 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
2222 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
2223 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
a1af4623 2224
dc4add82
RH
22252003-06-15 Richard Henderson <rth@redhat.com>
2226
2227 * config/linker-map.gnu: Export virtual function thunks for
2228 64-bit systems too.
2229
ef16a298
BK
22302003-06-13 Benjamin Kosnik <bkoz@redhat.com>
2231
2232 * config/abi/i686-pc-linux-gnu: To..
2233 * config/abi/i486-linux-gnu: ...this.
2234 * config/abi/alphaev67-unknown-linux-gnu: To..
2235 * config/abi/alpha-linux-gnu: ...this.
2236 * config/abi/ia64-unknown-linux-gnu: To...
2237 * config/abi/ia64-linux-gnu: ...this.
2238 * config/abi/x86_64-unknown-linux-gnu: To...
2239 * config/abi/x86_64-linux-gnu: ...this.
2240 * config/abi/i386-unknown-freebsd4: To...
2241 * config/abi/i386-freebsd4: ...this.
5ab481e0
BK
2242 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
2243 CXXABI.
ef16a298
BK
2244 * configure.host: abi_baseline_triplet to abi_baseline_pair.
2245 Simplify cpu bits so that abi_baseline_pair can use the same
2246 cpu configuration.
2247 * acinclude.m4: Same.
2248 * aclocal.m4: Regenerate.
2249 * configure.in: Can't get enable_abi_check to yes unless native.
2250 * configure: Regenerate.
2251
ed242935
PC
22522003-06-13 Paolo Carlini <pcarlini@unitus.it>
2253
2254 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
2255 fix for missing seeks between gets and puts into...
2256 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
2257 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
2258 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
2259 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
2260 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
2261 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
2262 for missing seeks between gets and puts.
2263 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
2264 * testsuite/data/seekoff-1.tst: New.
2265 * testsuite/data/seekoff-2.tst: New.
2266 * testsuite/data/seekpos-1.tst: New.
2267 * testsuite/data/seekpos-2.tst: New.
2268
ca566e4c
NM
22692003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
2270
2271 Avoid multi-processor bus contention on increment/decrement-and-
a1af4623 2272 test of the reference count in the empty-string object, by comparing
e6cc3a24
ZW
2273 addresses first, and never touching the reference count of the empty-
2274 string object.
ca566e4c
NM
2275 * include/bits/basic_string.h:
2276 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
2277 members.
a1af4623 2278 (_Rep::_S_empty_rep()): New accessor.
ca566e4c
NM
2279 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
2280 a base class _Rep_base.
2281 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
2282 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
2283 since no longer must increment its refcount.
2284 * include/bits/basic_string.tcc:
a1af4623 2285 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
e6cc3a24
ZW
2286 return immediately. The former might be unnecessary. The latter
2287 prevents begin() and end() from cloning it unnecessarily.
ca566e4c
NM
2288 (_S_construct(_InIterator, _InIterator, const _Alloc&,
2289 input_iterator_tag), _S_construct(_InIterator, _InIterator,
2290 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
2291 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
2292 (_M_mutate): Check for the empty string and treat it as shared.
e6cc3a24
ZW
2293 This is necessary here because _M_mutate is sometimes called with
2294 all-zero arguments; in all other uses of _M_is_shared, the test comes
2295 out right anyhow.
a1af4623 2296
c37514ff
BK
22972003-06-12 Benjamin Kosnik <bkoz@redhat.com>
2298
2299 * src/allocator-inst.cc: Explicitly instantiate.
2300 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
2301 Tweaks.
2302 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
a1af4623 2303
58ac1d7f
BK
23042003-06-11 Benjamin Kosnik <bkoz@redhat.com>
2305
2306 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
2307 * aclocal.m4: Regenerate.
2308 * Makefile.am (SUBDIRS): Remove libio.
2309 * Makefile.in: Regenerate.
2310 * configure.in: Same.
2311 * configure: Regenerate.
2312 * config/io/basic_file_libio.cc: Remove.
a1af4623 2313 * config/io/basic_file_libio.h: Remove.
58ac1d7f 2314 * config/io/c_io_libio_codecvt.c: Remove.
a1af4623 2315 * config/io/c_io_libio.h: Remove.
58ac1d7f
BK
2316 * libio/*: Remove.
2317 * src/Makefile.am: Same.
2318 * src/Makefile.in: Regenerate.
a1af4623 2319 * docs/html/configopts.html: Edits.
58ac1d7f 2320 * docs/html/explanations.html: Edits.
a1af4623 2321
1ff9402d
BK
23222003-06-11 Benjamin Kosnik <bkoz@redhat.com>
2323
2324 * include/bits/stl_alloc.h (__debug_alloc): Move out.
2325 (__malloc_alloc): Same.
2326 (__pool_alloc): Same.
2327 (__new_alloc): Same.
2328 Rename to..
2329 * include/bits/allocator.h: ...this.
2330 * include/bits/stl_deque.h: Modify comment.
2331 * include/bits/stl_tree.h: Modify include.
2332 * include/std/std_memory.h: Same.
2333 * include/ext/rope: Same.
a1af4623 2334 * include/ext/slist: Same.
1ff9402d
BK
2335 * include/std/std_vector.h: Same.
2336 * include/std/std_stack.h: Same.
2337 * include/std/std_queue.h: Same.
2338 * include/std/std_list.h: Same.
2339 * include/std/std_deque.h: Same.
2340 * include/backward/alloc.h: Same.
2341 * include/ext/debug_allocator.h: New.
a1af4623
AJ
2342 * include/ext/malloc_allocator.h: New.
2343 * include/ext/pool_allocator.h: New.
1ff9402d
BK
2344 * include/ext/new_allocator.h: New.
2345 * include/bits/pthread_allocimpl.h: Remove.
a1af4623 2346 * include/bits/stl_pthread_alloc.h: Remove.
1ff9402d
BK
2347 * include/Makefile.am (ext_headers): Add.
2348 * include/Makefile.in: Regenerate.
2349 * src/stl-inst.cc: Use __gnu_cxx namespace.
2350 * src/stl-inst.cc: Move to...
2351 * src/allocator-inst.cc: Here.
2352 * src/Makefile.am (sources): Update.
2353 * src/Makefile.in: Regenerate.
2354 * config/linker-map.gnu: Remove __pool_alloc bits.
2355 * testsuite/ext/headers.cc: Add.
2356 * testsuite/ext/allocators.cc: Fixup.
a1af4623 2357
1ff9402d 23582003-06-11 Stefan Olsson <stefan@snon.net>
e6cc3a24 2359