]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/ChangeLog
locale_facets.h: Document public classes and functions.
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
9a01c9b0
JQ
12003-01-06 Jerry Quinn <jlquinn@optonline.net>
2
3 * include/bits/locale_facets.h: Document public classes and
4 functions.
5 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
6 Add comment.
7
b80115c4
PC
82004-01-06 Paolo Carlini <pcarlini@suse.de>
9
10 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
11 Remove redundant #includes.
12 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
13 Likewise.
14 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
15 Likewise.
16 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
17 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
18 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
19 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
20 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
21 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
22 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
23 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
24 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
25 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
26 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
27 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
28 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
29 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
30 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
31 Likewise.
32 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
33 Likewise.
34 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
35 Likewise.
36 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
37 Likewise.
38 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
39 Likewise.
40 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
41 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
42 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
43
22ed0590 442004-01-04 Paolo Carlini <pcarlini@suse.de>
223b5084
PC
45
46 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
47 Remove redundant #includes.
48 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
49 Likewise.
50 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
51 Likewise.
52 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
53 Likewise.
54 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
55 Likewise.
56 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
57 Likewise.
58 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
59 Likewise.
60 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
61 Likewise.
62 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
63 Likewise.
64 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
65 Likewise.
66 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
67 Likewise.
68 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
69 Likewise.
70 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
71 Likewise.
72
4f8163b1
MM
732004-01-04 Mark Mitchell <mark@codesourcery.com>
74
75 PR c++/12226
76 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
77 constructor.
78 * testsuite/27_io/basic_fstream/4.cc: Likewise.
79 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
80 * testsuite/27_io/basic_ios/4.cc: Likewise.
81 * testsuite/27_io/basic_iostream/4.cc: Likewise.
82 * testsuite/27_io/basic_istream/4.cc: Likewise.
83 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
84 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
85 * testsuite/27_io/basic_ostream/4.cc: Likewise.
86 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
87 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
88 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
89
17fa5560
PC
902004-01-04 Paolo Carlini <pcarlini@suse.de>
91
92 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
93 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
94 always use double underscored names.
95 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
96 Likewise.
97 * include/bits/locale_facets.h (struct __numpunct_cache):
98 Dimension _M_atoms_out and _M_atoms_in one position smaller.
99 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
100 and _M_atoms_in.
101
4f0c9c8a
PC
1022003-12-31 Paolo Carlini <pcarlini@suse.de>
103
104 * include/bits/locale_facets.tcc (num_get::_M_extract_int,
105 num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
106 _first_ look for thousands_sep, then for decimal_point and
107 finally for digits.
108 (num_get::_M_extract_float): After the decimal_point or
109 'e'/'E', decimal_point and thousands_sep just break out the
110 parsing loop.
111 * testsuite/22_locale/num_get/get/char/11.cc: Add tests.
112 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
113
a27cf81c
PC
1142003-12-30 Paolo Carlini <pcarlini@suse.de>
115
116 PR libstdc++/13369
117 * include/bits/locale_facets.tcc (__verify_grouping):
118 Fix to deal properly with __grouping_tmp.size() >
119 __grouping.size().
120 * testsuite/22_locale/num_get/get/char/13.cc: New.
121 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Ditto.
122
a043b1f5
JQ
1232003-12-29 Jerry Quinn <jlquinn@optonline.net>
124
125 * include/bits/locale_facets.h (ctype.narrow,widen): Add cast.
126
9d47bc51
PC
1272003-12-29 Paolo Carlini <pcarlini@suse.de>
128
129 * acinclude.m4 (GLIBCXX_CHECK_LFS): Add -fno-exceptions
130 to CXXFLAGS.
131 * aclocal.m4: Regenerate.
132 * configure: Likewise.
133
517da0ce
MM
1342003-12-29 Mark Mitchell <mark@codesourcery.com>
135
136 * acconfig.h: Add _GLIBCXX_USE_C99_MATH.
137 * acinclude.m4 (GLIBCXX_ENABLE_C99): Define GLIBCXX_USE_C99_MATH.
138 * configure.ac: Define HAVE_S_ISREG and HAVE_S_IFREG when
139 targeting newlib.
140 * aclocal.m4: Regenerated.
141 * config.h.in: Likewise.
142 * configure: Likewise.
143 * Makefile.in: Likewise.
144 * include/Makefile.in: Likewise.
145 * libmath/Makefile.in: Likewise.
146 * libsupc++/Makefile.in: Likewise.
147 * testsuite/Makefile.in: Likewise.
148 * src/Makefile.in: Likewise.
149 * po/Makefile.in: Likewise.
150 * include/c_std/std_cmath.h (_GLIBCXX_USE_C99): Replace with ...
151 (_GLIBCXX_USE_C99_MATH): ... this.
152
153 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL for
154 arm-none-elf.
155 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Likewise.
156 * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Likewise.
157 * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Likewise.
158 * testsuite/27_io/basic_istream/readsome/char/6476-2.cc: Likewise.
159 * testsuite/27_io/objects/char/9.cc: Likewise.
160 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Likewise.
161
b8da67fa
PC
1622003-12-28 Paolo Carlini <pcarlini@suse.de>
163
164 * include/ext/pool_allocator.h (class __pool_alloc): Use
165 operator new and operator delete.
166
a51c4097
AP
1672003-12-24 Andrew Pinski <pinskia@physics.uc.edu>
168
be886286
AP
169 * config/cpu/i386/atomicity.h (__exchange_and_add): Fix output
170 constraint.
171
a51c4097 172 PR libstdc++/13480
be886286 173 * config/cpu/i386/atomicity.h: Split up read-write memory operand.
a51c4097 174
d38d4e5d
BK
1752003-12-23 Benjamin Kosnik <bkoz@redhat.com>
176
177 * include/ext/new_allocator.h (new_allocator): Proper allocator class.
178 (__new_alloc): Delete.
179 * include/ext/malloc_allocator.h (malloc_allocator): Same.
180 (__malloc_alloc): Delete.
181 * include/ext/mt_allocator.h: Same, but weakly.
182 * include/ext/debug_allocator.h: Convert to the new style.
183 * include/ext/pool_allocator.h: Use global new and delete directly.
184 * include/backward/alloc.h: Don't inject malloc_allocator, or
185 debug_allocator.
186 * testsuite/ext/allocators.cc: Minimal fixups for usage of new
187 classes. Comment out tests with __pool_alloc for now.
188 * testsuite/performance/allocator.cc: Same.
189
34c87829
MA
1902003-12-22 Matt Austern <austern@apple.com>
191
192 * include/bits/stl_bvector.h (_Bvector_alloc_base): Eliminate.
193 (_Bvector_base): Inherit directly from word allocator.
194 * include/bits/stl_tree.h (_Rb_tree_alloc_base): Eliminate.
195 (_Rb_tree_base): Eliminate.
196 (_Rb_tree): Inherit directly from node allocator.
197 * include/ext/slist (_Alist_alloc_base): Eliminate.
198 (_Slist_base): Inherit direcly from node allocator.
199
70a84160
BK
2002003-12-22 Benjamin Kosnik <bkoz@redhat.com>
201
941fe801
BK
202 * testsuite/18_support/numeric_limits.cc: Add _GLIBCXX_ASSERT to
203 dg-options in testcases that use VERIFY.
204 * testsuite/23_containers/vector/invalidation/1.cc: Same.
205 * testsuite/23_containers/vector/invalidation/2.cc: Same.
206 * testsuite/23_containers/vector/invalidation/3.cc: Same.
207 * testsuite/23_containers/vector/invalidation/4.cc: Same.
208 * testsuite/23_containers/vector/resize/1.cc: Same.
209 * testsuite/26_numerics/complex_value.cc: Same.
210 * testsuite/27_io/ios_base/storage/1.cc: Same.
211 * testsuite/27_io/ios_base/storage/2.cc: Same.
212 * testsuite/27_io/ios_base/storage/3.cc: Same.
213 * testsuite/27_io/manipulators/standard/char/2.cc: Same.
214 * testsuite/backward/11460.cc: Same.
215 * testsuite/backward/strstream_members.cc: Same.
216
217 * include/ext/hash_set (class hash_multiset): Fix typo.
218
2192003-12-22 Benjamin Kosnik <bkoz@redhat.com>
220
70a84160
BK
221 * testsuite/27_io/objects/char/5.cc: Don't use stdc++.h.gch.
222 * testsuite/27_io/objects/wchar_t/5.cc: Same.
223 * docs/html/test.html: Add docs for constructing test files that
224 don't use stdc++.h.gch.
225 * scripts/testsuite_flags.in (PCHFLAGS): Move to --cxxpchflags.
226 * testsuite/libstdc++-dg/normal.exp: Compute DEFAULT_CXXFLAGS
227 differently.
228
229 * include/bits/ios_base.h (ios_base::Init::_S_initialized): Remove.
230 * src/ios_init.cc: Same.
231 * config/linker-map.gnu: Same.
232 * testsuite/27_io/ios_base/cons/copy_neg.cc: Adjust line numbers.
233 * testsuite/27_io/ios_base/cons/assign_neg.cc: Same.
234
67e053df
AP
2352003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
236
237 PR libstdc++/13462
238 * include/bits/stl_multiset.h (__gnu_norm::multiset): Define pointer
239 as allocator's pointer, likewise for reference, const_pointer, and
240 const_reference.
241 * include/bits/stl_set.h (__gnu_norm::set): Likewise.
242 * include/ext/hash_set (__gnu_ext::hash_set): Likewise.
243 (__gnu_ext::hash_multiset): Likewise.
244
a827daa0
PC
2452003-12-22 Paolo Carlini <pcarlini@suse.de>
246
247 * include/bits/locale_facets.tcc (num_get::_M_extract_int,
248 num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
249 first look for decimal_point and thousands_sep, when parsing
250 sign, leading zeros (and 0, Ox, 0X for integer types) too.
251 * testsuite/22_locale/num_get/get/char/12.cc: New.
252 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
253
254 * testsuite/22_locale/num_get/get/char/11.cc: Add a comment.
255 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
256
c703c390
JM
2572003-12-20 Jason Merrill <jason@redhat.com>
258
259 * config/cpu/powerpc/atomicity.h: Fix oversight in previous
260 change.
261
3101fa3c
JQ
2622003-12-20 Jerry Quinn <jlquinn@optonline.net>
263
264 * docs/doxygen/TODO: Update.
265 * include/bits/locale_classes.h (locale, facet, id): Document.
266 * include/bits/locale_facets.tcc (has_facet, use_facet): Document.
267
46eb4b39
JM
2682003-12-19 Jason Merrill <jason@redhat.com>
269
270 * config/cpu/cris/atomicity.h: Remove memory clobbers.
271 * config/cpu/mips/atomicity.h: Likewise.
272 * config/cpu/i486/atomicity.h: Remove memory clobbers.
273 Split up read-write memory operand.
274 * config/cpu/m68k/atomicity.h: Likewise.
275 * config/cpu/powerpc/atomicity.h: Make memory I/O explicit.
276 * config/cpu/s390/atomicity.h: Likewise.
277 * config/cpu/sparc/atomicity.h: Likewise.
278
6fe68b37
CW
2792003-12-20 Carlo Wood <carlo@alinoe.com>
280
281 * bits/demangle.h
282 namespace __gnu_cxx::demangler
283 (session<Allocator>::decode_encoding): Put the postfix
284 of the return type of (member) functions after the function
285 instead of after the return type.
286
2dbd0234
JQ
2872003-12-19 Jerry Quinn <jlquinn@optonline.net>
288
289 * include/bits/locale_facet.h
290 (__ctype_abstract_base,ctype<charT>,ctype<char>,ctype<wchar_t>):
291 Document.
292
cc16f8b9
PC
2932003-12-19 Paolo Carlini <pcarlini@suse.de>
294
295 * include/bits/locale_facets.tcc (num_get::_M_extract_int,
296 num_get::_M_extract_float): According to 22.2.2.1.2, p8-9,
297 first look for decimal_point and thousands_sep.
298 * testsuite/22_locale/num_get/get/char/11.cc: New.
299 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
300
1b451306
PC
3012003-12-19 Paolo Carlini <pcarlini@suse.de>
302
303 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
304 When __found_sci becomes true stop eating thousands separators
305 and the decimal radix separator.
306 * testsuite/22_locale/num_get/get/char/9.cc: New.
307 * testsuite/22_locale/num_get/get/wchar_t/9.cc: Likewise.
308
309 * config/locale/generic/c_locale.cc (__convert_to_v): Don't
310 check that *__sanity == '\0': parsing may stop earlier, still
311 be successful.
312 * config/locale/gnu/c_locale.cc: Likewise.
313 * testsuite/22_locale/num_get/get/char/10.cc: New.
314 * testsuite/22_locale/num_get/get/wchar_t/10.cc: Likewise.
315 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
316 Tweak in one place accordingly.
317
318 * testsuite/22_locale/money_get/get/char/1.cc: Fix typo.
319 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
320
4d54539c
BK
3212003-12-18 Benjamin Kosnik <bkoz@redhat.com>
322
323 * include/bits/stl_list.h: Formatting tweaks.
324 * include/bits/list.tcc: Same.
325
8a1d8dd9
MA
3262003-12-18 Matt Austern <austern@apple.com>
327
328 * include/bits/demangle.h: Fix allocator type correctness,
329 i.e. make sure that when we instantiate a container with a value
330 type and an allocator, the allocator's value type matches the
331 container's.
332 * include/bits/stl_deque.h (_Deque_alloc_base): Eliminate.
333 (_Deque_base): inherit directly from the deque's allocator. Use
334 rebinding instead of _Alloc_traits. Pick up data members from
335 _Deque_alloc_base.
336 * include/bits/stl_list.h (_List_alloc_base): Eliminate.
337 (_List_base): Inherit directly from the list's allocator. Use
338 rebinding instead of _Alloc_traits. Pick up data members from
339 _List_alloc_base.
340 * include/bits/stl_vector.h (_Vector_alloc_base): Eliminate
341 (_Vector_base): Inherit directly from the vector's allocator. Use
342 rebinding instead of _Alloc_traits. Pick up data members from
343 _Vector_alloc_base.
344 * include/ext/hashtable.h: Fix allocator type correctness (the
345 vector of buckets must be passed an allocator for objects of
346 type _Node*). Use rebinding instead of _Alloc_traits.
347
7e08b3b8
PC
3482003-12-17 Paolo Carlini <pcarlini@suse.de>
349
350 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
351 Use narrow to get from __format[__i] a char __c representing a
352 formatting code, don't use it to compare *__beg to __format[__i].
353 * testsuite/22_locale/time_get/get_date/wchar_t/4.cc: New.
354
cbf22cc5
PC
3552003-12-17 Paolo Carlini <pcarlini@suse.de>
356
357 * testsuite/performance/container_benchmark.cc: Tweak outputs.
358
359 * testsuite/performance/list_create_fill_sort.cc: Shrink a
360 bit some outputs.
361
362 * testsuite/testsuite_performance.h: Widen a few output fields.
363
364 * testsuite/performance/ifstream_extract_int.cc: New.
365
2d52e9e3
PE
3662003-12-16 Phil Edwards <phil@codesourcery.com>
367
368 * configure.ac (AM_INIT_AUTOMAKE): Don't warn about GNU Make.
369 * configure: Regenerated.
370 * Makefile.am (check-%): New catch-all forwarding target.
371 * Makefile.in: Regenerated.
372
93cbdb1a
PC
3732003-12-16 Paolo Carlini <pcarlini@suse.de>
374
375 * testsuite/performance/container_benchmark.cc: New, a
376 benchmark developed by Bjarne Stroustrup and Alexander
377 Stepanov and made available with no restrictions.
378
379 * testsuite/testsuite_performance.h (report_header): New,
380 useful to produce header lines in the reports.
381
d159598d
JW
3822003-12-16 Jonathan Wakely <redi@gcc.gnu.org>
383
384 * docs/html/21_strings/howto.html: Document shrink-to-fit reserve().
385 * docs/html/faq/index.html: Reducing vector's capacity() to size().
386 * docs/html/documentation.html, docs/html/faq/index.txt: Regenerate.
387
b1660ae9
PC
3882003-12-16 Paolo Carlini <pcarlini@suse.de>
389
390 * testsuite/performance/narrow_widen_char.cc: Tweak the
391 number of iterations for each test.
392 * testsuite/performance/narrow_widen_wchar_t.cc: Add a
393 missing clear_counters.
394
9a1349b9
PC
3952003-12-16 Paolo Carlini <pcarlini@suse.de>
396
397 PR libstdc++/11723
398 * include/bits/locale_facets.h: Add _M_bit and _M_wmask,
399 used to speed up the computation of ctype::do_is.
400 * config/locale/generic/ctype_members.cc
401 (_M_initialize_ctype): Fill _M_bit and _M_wmask.
402 (ctype::do_is): Use _M_bit and _M_wmask.
403 * config/locale/gnu/ctype_members.cc: Likewise.
404 * testsuite/performance/is_wchar_t.cc: New.
405
406 * testsuite/performance/narrow_widen_wchar_t.cc: Tweak
407 string literal (incorrect citation ;)
408
409 * include/bits/locale_facets.h: Minor tweaks, const
410 correctness, unsigned -> size_t.
411
84cea626
JQ
4122003-12-16 Jerry Quinn <jlquinn@optonline.net>
413
414 * include/bits/locale_facets.h (widen, narrow): Uncomment the
415 intended code.
416
3fc63c15
JQ
4172003-12-15 Jerry Quinn <jlquinn@optonline.net>
418
419 * config/os/aix/ctype_noninline.h,
420 config/os/bsd/freebsd/ctype_noninline.h,
421 config/os/bsd/netbsd/ctype_noninline.h,
422 config/os/djgpp/ctype_noninline.h,
423 config/os/generic/ctype_noninline.h,
424 config/os/gnu-linux/ctype_noninline.h,
425 config/os/hpux/ctype_noninline.h,
426 config/os/irix/irix5.2/ctype_noninline.h,
427 config/os/irix/irix6.5/ctype_noninline.h,
428 config/os/mingw32/ctype_noninline.h,
429 config/os/newlib/ctype_noninline.h,
430 config/os/qnx/qnx6.1/ctype_noninline.h,
431 config/os/solaris/solaris2.5/ctype_noninline.h,
432 config/os/solaris/solaris2.6/ctype_noninline.h,
433 config/os/solaris/solaris2.7/ctype_noninline.h,
434 config/os/vxworks/ctype_noninline.h,
435 config/os/windiss/ctype_noninline.h (ctype): Initialize
436 _M_narrow, _M_widen.
437 * include/bits/locale_facets.h (_M_widen, _M_widen_ok,
438 _M_narrow, _M_narrow_ok): New.
439 (widen, narrow): Use tables to bypass virtual functions.
440 (_M_widen_init, _M_narrow_init): New.
441
91daef58
CW
4422003-12-15 Carlo Wood <carlo@alinoe.com>
443
444 * include/bits/ios_base.h (Init::_S_initialized): Change into
445 declaration.
446 * src/ios_init.cc (Init::_S_initialized): Add definition.
447
3fe13738
BK
4482003-12-15 Benjamin Kosnik <bkoz@redhat.com>
449
450 PR libstdc++/12658
451 * include/Makefile.am (bits_headers): Add concurrence.h.
452 * include/Makefile.in: Regenerated.
453 * include/bits/concurrence.h: New.
454 * src/locale_init.cc: Use it.
455 (locale::locale): Lock critical regions.
456 (locale::global): Same.
457
1313d87f
BK
4582003-12-15 Benjamin Kosnik <bkoz@redhat.com>
459
460 * include/bits/basic_string.h: Change _*_references to _*_refcount.
461 * include/bits/locale_classes.h: Same.
462 * src/locale.cc: Same.
463 * src/locale_name.cc: Same.
464 * src/locale_init.cc: Same.
465
fa972243
BK
4662003-12-15 Benjamin Kosnik <bkoz@redhat.com>
467
468 PR libstdc++/12855
469 * include/bits/ios_base.h (Init::_S_ios_base_init): Change to
470 _S_refcount, make atomic.
471 * src/ios.cc: Adjust definition.
472 * src/ios_init.cc (ios_base::Init::Init): Use __exchange_and_add,
473 and __atomic_add.
474 (ios_base::Init::~Init): Same.
475 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
476 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
477
ca13fb7f
PC
4782003-12-15 Paolo Carlini <pcarlini@suse.de>
479
480 * include/bits/locale_facets.tcc (num_get::do_get(bool&)):
481 Fail as soon as the begins of both truename and falsename
482 stop to match; always leave __beg one position beyond the
483 last char successfully matched.
484 * testsuite/22_locale/num_get/get/char/8.cc: New.
485 * testsuite/22_locale/num_get/get/wchar_t/8.cc: Likewise.
486
4872003-12-15 Paolo Carlini <pcarlini@suse.de>
488
489 * include/bits/locale_facets.h (_M_widen): Reserve space
490 for all the possible widened chars.
491 * config/locale/generic/ctype_members.cc (_M_initialize_ctype):
492 Compute at construction time all the possible widened chars.
493 (do_widen): Tweak, simplify.
494 * config/locale/gnu/ctype_members.cc: Likewise.
495 * testsuite/performance/narrow_widen_wchar_t.cc: Add tests
496 for the array versions.
497
e3c0c098
PC
4982003-12-12 Paolo Carlini <pcarlini@suse.de>
499 Benjamin Kosnik <bkoz@redhat.com>
500
501 PR libstdc++/13341
502 * include/bits/locale_facets.h (ctype<wchar_t>): Declare
503 _M_initialize_ctype() and _M_narrow_ok, _M_narrow and _M_widen.
504 * src/ctype.cc (ctype<wchar_t>::ctype(size_t),
505 ctype<wchar_t>::ctype(__c_locale, size_t)): Use
506 _M_initialize_ctype to fill _M_narrow and _M_widen.
507 (ctype_byname<wchar_t>::ctype_byname(const char*, size_t)):
508 Likewise.
509 * config/locale/generic/ctype_members.cc (do_narrow, do_widen)
510 Use _M_narrow and _M_widen when possible, instead of calling
511 wctob and btowc, respectively.
512 (_M_initialize_ctype): Define, it fills at construction time
513 _M_narrow and _M_widen.
514 * config/locale/gnu/ctype_members.cc: Likewise.
515 * testsuite/performance/narrow_widen_wchar_t.cc: New.
516
a7bc3cdc
JW
5172003-12-12 Jonathan Wakely <redi@gcc.gnu.org>
518
519 * docs/html/faq/index.txt: Regenerate after adding <link> tags.
520
cbc67955
NF
5212003-12-11 Neil Ferguson <nferguso@eso.org>
522 Paolo Carlini <pcarlini@suse.de>
523
524 * include/bits/basic_string.tcc (reserve): Allow shrink-to-fit.
525 * testsuite/21_strings/basic_string/capacity/1.cc: Tweak.
526 * testsuite/21_strings/basic_string/capacity/char/1.cc: Ditto.
527 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Ditto.
528
645112dd
BK
5292003-12-10 Benjamin Kosnik <bkoz@redhat.com>
530
531 PR libstdc++/6243
532 * testsuite/lib/libstdc++.exp (v3-init): Add
533 original_ld_library_path, calculate ld_library path, set
534 LD_LIBRARY_PATH to both. Based on libjava.exp.
535
9f503dd3
BK
5362003-12-10 Benjamin Kosnik <bkoz@redhat.com>
537 Alexandre Oliva <aoliva@redhat.com>
538
539 PR libstdc++/11612
540 * testsuite/Makefile.am (GLIBCXX_DIR): New.
541 (GLIBGCC_DIR): New.
542 (CXXLINK): Use both with -R so libtool links the correct libs.
543
3090572c
PC
5442003-12-10 Paolo Carlini <pcarlini@suse.de>
545
546 PR libstdc++/13217
547 * include/bits/fstream.tcc (underflow): Deal gracefully with
548 read errors: throw ios_base::failure.
549
35d6801e
BK
5502003-12-10 Benjamin Kosnik <bkoz@redhat.com>
551
552 PR libstdc++/10063
553 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Sync.
554 * testsuite/ext/stdio_filebuf/char/10063-1.cc: New.
555 * testsuite/ext/stdio_filebuf/char/10063-2.cc: New.
556
e8c5fc66
PC
5572003-12-10 Paolo Carlini <pcarlini@suse.de>
558
559 * include/bits/locale_facets.tcc (num_put::do_put(void*)):
560 Remove the try/catch, not necessary.
561
9877afe8
PC
5622003-12-10 Paolo Carlini <pcarlini@suse.de>
563
564 * testsuite/22_locale/locale/cons/12438.cc: Tweak memory
565 limit and iterations to avoid spurious failures on some
566 64 bit machines.
567
5ec3f566
BK
5682003-12-09 Benjamin Kosnik <bkoz@redhat.com>
569
570 * config/linker-map.gnu: Remove private ios_base members from
571 export list.
572
573 * config/cpu/alpha/atomicity.h: Consistently format.
574 * config/cpu/cris/atomicity.h: Same.
575 * config/cpu/generic/atomicity.h: Same.
576 * config/cpu/hppa/atomicity.h: Same.
577 * config/cpu/i386/atomicity.h: Same.
578 * config/cpu/i486/atomicity.h: Same.
579 * config/cpu/ia64/atomicity.h: Same.
580 * config/cpu/m68k/atomicity.h: Same.
581 * config/cpu/mips/atomicity.h: Same.
582 * config/cpu/powerpc/atomicity.h: Same.
583 * config/cpu/s390/atomicity.h: Same.
584 * config/cpu/sparc/atomicity.h: Same.
585
86025553
BK
5862003-12-09 Benjamin Kosnik <bkoz@redhat.com>
587
588 PR libstdc++/13296
589 * acinclude.m4 (GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS): Remove.
590 * aclocal.m4: Regenerate.
591 * configure.ac: Remove call to GLIBCXX_ENABLE_LIBUNWIND_EXCEPTIONS.
592 * conigure: Regenerate.
593 * src/Makefile.am (libstdc___la_LDFLAGS): Remove LIBUNWIND_FLAGS.
594 * src/Makefile.in: Regenerate.
595 * docs/html/17_intro/configury.html: Modify.
596
7c1ca569
PC
5972003-12-09 Paolo Carlini <pcaelini@suse.de>
598
599 * include/bits/demangle.h (struct implementation_details):
600 Keep in comments the names of the unused parameters.
601
015fa971
PC
6022003-12-09 Paolo Carlini <pcaelini@suse.de>
603
604 * include/bits/demangle.h (struct implementation_details):
605 Fix unused parameters warning.
606
1f3adac2
PC
6072003-12-09 Paolo Carlini <pcarlini@suse.de>
608
609 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
610 Slightly streamline the code dealing with overflows and the
611 parsing of the sign.
612
fa30fe72
BI
6132003-12-09 Bernardo Innocenti <bernie@develer.com>
614
615 * include/ext/algorithm, include/ext/debug_allocator.h,
616 include/ext/enc_filebuf.h, include/ext/functional,
617 include/ext/hash_fun.h, include/ext/hash_map, include/ext/hash_set,
618 include/ext/hashtable.h, include/ext/iterator,
619 include/ext/malloc_allocator.h, include/ext/memory,
620 include/ext/mt_allocator.h, include/ext/numeric,
621 include/ext/pod_char_traits.h, include/ext/pool_allocator.h,
622 include/ext/rb_tree, include/ext/rope, include/ext/ropeimpl.h,
623 include/ext/slist, include/ext/stdio_filebuf.h,
624 include/ext/stdio_sync_filebuf.h: Remove trailing whitespace.
625
526da49c
BI
6262003-12-09 Bernardo Innocenti <bernie@develer.com>
627
628 * include/debug/bitset, include/debug/debug.h, include/debug/deque,
629 include/debug/formatter.h, include/debug/hash_map.h,
630 include/debug/hash_multimap.h, include/debug/hash_multiset.h,
631 include/debug/hash_set, include/debug/hash_set.h, include/debug/list,
632 include/debug/map.h, include/debug/multimap.h,
633 include/debug/multiset.h, include/debug/safe_base.h,
634 include/debug/safe_iterator.h, include/debug/safe_iterator.tcc,
635 include/debug/safe_sequence.h, include/debug/set.h,
636 include/debug/string, include/debug/vector: Remove trailing whitespace.
637
23131008
BI
6382003-12-09 Bernardo Innocenti <bernie@develer.com>
639
640 * include/c_compatibility/iso646.h, include/c_compatibility/limits.h,
641 include/c_compatibility/locale.h, include/c_compatibility/stdio.h,
642 include/c_compatibility/string.h, include/c_compatibility/time.h,
643 include/c_compatibility/wchar.h, include/c_compatibility/wctype.h:
644 Remove trailing whitespace.
645
7dd8177f
BI
6462003-12-09 Bernardo Innocenti <bernie@develer.com>
647
648 * include/c_std/cmath.tcc, include/c_std/std_cassert.h,
649 include/c_std/std_cctype.h, include/c_std/std_cmath.h,
650 include/c_std/std_cstddef.h, include/c_std/std_cstdio.h,
651 include/c_std/std_cstdlib.h, include/c_std/std_cstring.h,
652 include/c_std/std_cwchar.h, include/c_std/std_cwctype.h:
653 Remove trailing whitespace.
654
7b74e24e
BI
6552003-12-09 Bernardo Innocenti <bernie@develer.com>
656
657 * include/c/std_cctype.h, include/c/std_cmath.h,
658 include/c/std_cstdlib.h include/c/std_cwchar.h,
659 include/c/std_cwctype.h: Remove trailing whitespace.
660
e64738b3
BI
6612003-12-09 Bernardo Innocenti <bernie@develer.com>
662
663 * include/backward/algo.h, include/backward/algobase.h,
664 include/backward/alloc.h, include/backward/complex.h,
665 include/backward/defalloc.h, include/backward/function.h,
666 include/backward/iterator.h, include/backward/new.h,
667 include/backward/ostream.h, include/backward/queue.h,
668 include/backward/rope.h, include/backward/stream.h,
669 include/backward/streambuf.h, include/backward/strstream,
670 include/backward/tempbuf.h, include/backward/tree.h,
671 include/backward/vector.h: Remove trailing whitespace.
672
0fa96a60
PC
6732003-12-08 Paolo Carlini <pcarlini@suse.de>
674
675 * config/locale/generic/c_locale.cc (__convert_to_v(long&),
676 __convert_to_v(unsigned long&), __convert_to_v(long long&),
677 __convert_to_v(unsigned long long&): Remove.
678 (__convert_to_v(float&), __convert_to_v(double&),
679 __convert_to_v(long double&)): Remove last unused parameter.
680 * config/locale/gnu/c_locale.cc: Likewise.
681 * include/bits/locale_facets.h: Likewise.
682 (num_get::_M_extract_int): Update declaration.
683 (class __num_base): Tweak _S_ie and _S_iE according to the
684 _S_atoms_in changes.
685 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
686 Provide directly the final _ValueT, not a string: accumulate
687 the result checking for overflow at each digit.
688 (num_get::do_get(bool&), num_get::do_get(long&),
689 num_get::do_get(unsigned short&), num_get::do_get(unsigned int&),
690 num_get::do_get(unsigned long&), num_get::do_get(long long&),
691 num_get::do_get(unsigned long long&), num_get::do_get(void*&)):
692 Use the new _M_extract_int, simplify.
693 * src/locale-inst.cc (num_get::_M_extract_int(long&),
694 num_get::_M_extract_int(unsigned short&),
695 num_get::_M_extract_int(unsigned int&),
696 num_get::_M_extract_int(unsigned long&),
697 num_get::_M_extract_int(long long&),
698 num_get::_M_extract_int(unsigned long long&): Instantiate.
699 * src/locale_facets.cc (__num_base::_S_atoms_in): Reorder
700 the chars in the natural order: abcdefABCDEF.
701
09755a85
DM
7022003-12-08 David S. Miller <davem@redhat.com>
703
704 PR libstdc++/12496
705 * config/cpu/sparc/atomicity.h (__exchange_and_add, __atomic_add):
706 Extend increment to _Atomic_word before giving to assembler.
707
57616df1
BK
7082003-12-06 Benjamin Kosnik <bkoz@redhat.com>
709
710 * testsuite/ext/enc_filebuf/char/13189.cc: Guard for __enc_traits.
711 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
712
e80213d2
BK
7132003-12-06 Benjamin Kosnik <bkoz@redhat.com>
714
715 PR libstdc++/11691
716 * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf):
717 Remove __del argument to file descriptor constructor.
718 * config/io/basic_file_stdio.h (__basic_file::sys_open): Remove
719 bool argument.
720 * config/io/basic_file_stdio.cc: Same.
721
42134429
BK
7222003-12-05 Benjamin Kosnik <bkoz@redhat.com>
723
724 PR libstdc++/13189
725 * include/ext/enc_filebuf.h: Fix.
726 * include/bits/fstream.tcc: Tweak formatting.
727 * include/bits/postypes.h: Same.
728 * include/bits/sstream.tcc: Same.
729 * include/bits/streambuf.tcc: Same.
730 * testsuite/ext/stdio_filebuf.cc: Split.
731 * testsuite/ext/stdio_filebuf_2.cc: Split.
732 * testsuite/ext/stdio_sync_filebuf_char.cc: Split.
733 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc: Split.
734 * testsuite/ext/enc_filebuf/char/13189.cc: New.
735 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: New.
736 * testsuite/ext/stdio_filebuf/char/1.cc: New.
737 * testsuite/ext/stdio_filebuf/char/2.cc: New.
738 * testsuite/ext/stdio_sync_filebuf/char/1.cc: New.
739 * testsuite/ext/stdio_sync_filebuf/char/12048-1.cc: New.
740 * testsuite/ext/stdio_sync_filebuf/char/12048-2.cc: New.
741 * testsuite/ext/stdio_sync_filebuf/char/12048-3.cc: New.
742 * testsuite/ext/stdio_sync_filebuf/char/12048-4.cc: New.
743 * testsuite/ext/stdio_sync_filebuf/wchar_t/1.cc: New.
744 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-1.cc: New.
745 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-2.cc: New.
746 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-3.cc: New.
747 * testsuite/ext/stdio_sync_filebuf/wchar_t/12948-4.cc: New.
748
69f73bd3
CW
7492003-12-05 Carlo Wood <carlo@alinoe.com>
750
751 PR libstdc++/13045
752 * bits/demangle.h
753 namespace __gnu_cxx::demangler
754 (enum substitution_nt): Removed trailing comma.
755 (implementation_details): Added.
756 (session<Allocator>::M_implementation_details): Added.
757 (session<Allocator>::session): Pass implementation_details.
758 (session<Allocator>::decode_encoding): Same.
759 (session<Allocator>::decode_real): Added.
760 (_GLIBCXX_DEMANGLER_STYLE_VOID _GLIBCXX_DEMANGLER_STYLE_LITERAL
761 _GLIBCXX_DEMANGLER_STYLE_LITERAL_INT
762 _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
763 _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Replaced with
764 implementation_details equivalent.
765 (session<Allocator>::decode_expression):
766 Use M_implementation_details instead of macros. Add extra parentheses
767 around 'larger than' operator in expressions in template arguments.
768 (session<Allocator>::decode_bare_function_type): Idem.
769 (session<Allocator>::decode_literal):
770 Idem, and call decode_real for floating literals.
771 (session<Allocator>::decode_type_with_postfix): Put the postfix
772 of the return type of (member) functions after the function
773 instead of after the return type. Also, put a space after the
774 prefix of qualified function pointers: "int (* const<space>".
775 * src/demangle.cc: include most dependent header file first.
776 * testsuite/demangle/regression/cw-16.cc: Updated two
777 and added three tests.
778
82fa4538
BK
7792003-12-04 Benjamin Kosnik <bkoz@redhat.com>
780
781 PR libstdc++/13284
782 * include/bits/stl_algo.h (__random_number): Remove.
783 (random_shuffle): Use rand, as permitted by DR 395.
784 * include/ext/algorithm: Same.
785 * linkage.m4 (GLIBCXX_CHECK_STDLIB_SUPPORT): Remove lrand48.
786 * acconfig.h: Same.
787 * crossconfig.m4: Remove HAVE_DRAND48, HAVE_LRAND48.
788 * config.h.in: Regenerated.
789 * configure: Same.
790 * aclocal.m4: Same.
791
7f1156ed
PC
7922003-12-04 Paolo Carlini <pcarlini@suse.de>
793
794 PR libstdc++/12653
795 * include/std/std_bitset.h (operator>>): Implement resolution
796 of DR 303 [WP]: use widen('0') and widen('1').
797 * docs/html/ext/howto.html: Add an entry for DR 303.
798
799 * include/std/std_bitset.h (operator>>): Implement the common
800 requirements of formatted input functions (27.6.1.2.1).
801
802 * include/std/std_bitset.h (operator>>): Set the failbit when
803 nothing was extracted and _Nb != 0.
804 * testsuite/23_containers/bitset/input/1.cc: New.
805
3259561c
PC
8062003-12-03 Paolo Carlini <pcarlini@suse.de>
807
808 PR libstdc++/12791
809 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
810 Rewrite, stop the parsing as soon as a digit cannot possibly
811 lead to a final number within the bounds; otherwise, simplify,
812 avoiding __ctype.is() and atoi().
813 * testsuite/22_locale/time_get/get_date/char/12791.cc: New.
814 * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: New.
815
816 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
817 Minor tweak: a 4-digit integer cannot be bigger than 9999.
818
819 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Use
820 type-correct wchar_t string literals.
821 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
822 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
823 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
824 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
825
17e15f7f
PC
8262003-12-02 Paolo Carlini <pcarlini@suse.de>
827
828 * include/bits/locale_facets.tcc (time_get::do_get_year):
829 Avoid using a basic_string and calling a full blown strtol
830 (via __convert_to_v) for simple 2 or 4 digits, base 10,
831 positive integers; simplify.
832
142b798b
PC
8332003-12-02 Paolo Carlini <pcarlini@suse.de>
834
835 * config/locale/gnu/monetary_members.cc
836 (money_base::_S_construct_pattern): For case 3: and 4:
837 exchanging 'if (__precedes)' and 'if (__space)' allows
838 to factor out a few more assignments.
839
6b98580b
BK
8402003-12-01 Benjamin Kosnik <bkoz@redhat.com>
841
842 * include/bits/basic_ios.h (basic_ios::setstate): Revert.
843 * include/bits/istream.tcc: Only call setstate if __err != goodbit.
844 * include/bits/ostream.tcc: Same.
845 * testsuite/27_io/basic_ios/exceptions/char/2.cc: New.
846
847 * testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
848 internal buffer non-static.
849
d78e147a
BK
8502003-12-01 Benjamin Kosnik <bkoz@redhat.com>
851
852 * docs/html/17_intro/C++STYLE: Add exception bits.
853 * include/bits/fstream.tcc: Add location info to exception strings.
854
855 * include/bits/stl_construct.h: Formatting tweaks.
856
9dbaa948
PC
8572003-12-01 Paolo Carlini <pcarlini@suse.de>
858
859 PR libstdc++/10378
860 * include/bits/allocator.h (allocator::construct): Implement
861 resolution of DR 402 [Ready] (in Revision 28).
862 * include/bits/allocator_traits.h (__allocator::construct):
863 Likewise.
864 * include/bits/stl_construct.h (_Construct): Likewise.
865 * testsuite/20_util/allocator_members.cc: Move to...
866 * testsuite/20_util/allocator/1.cc: ... here.
867 * testsuite/20_util/allocator/10378.cc: New.
868 * docs/html/ext/howto.html: Add an entry for DR 402.
869
1644f06d
PC
8702003-11-30 Paolo Carlini <pcarlini@suse.de>
871
872 * config/locale/gnu/codecvt_members.cc (codecvt::do_in,
873 codecvt::do_length): More minor tweaks.
874
11816ba2
PC
8752003-11-30 Paolo Carlini <pcarlini@suse.de>
876
877 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
878 Minor stylistic tweak.
879
6c39c207
PC
8802003-11-30 Paolo Carlini <pcarlini@suse.de>
881
882 * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
883 Minor tweaks, consistent with the style used in other facets.
884
4da2b960
PC
8852003-11-29 Paolo Carlini <pcarlini@suse.de>
886
887 * include/bits/fstream.tcc (underflow): Minor tweaks in
888 preparation for libstdc++/13217.
889
2d25605a
PC
8902003-11-29 Paolo Carlini <pcarlini@suse.de>
891
892 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc:
893 Tweak for a few small problems (fix timings, use VERIFY..)
894
05a47a47
PC
8952003-11-28 Paolo Carlini <pcarlini@suse.de>
896
897 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: Remove.
898 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13171-3.cc: New,
899 the original third testcase for libstdc++/13171 belong here.
900
ac912ba1
PC
9012003-11-28 Paolo Carlini <pcarlini@suse.de>
902
903 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc:
904 Remove extraneous wchar_t lines.
905
5536b61c
PC
9062003-11-27 Paolo Carlini <pcarlini@suse.de>
907
908 PR libstdc++/11544
909 PR libstdc++/11603
3090572c 910 * include/bits/fstream.tcc (underflow): Throw ios_base::failure
5536b61c
PC
911 upon incomplete or invalid byte sequences in the file.
912 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-1.cc: New.
913 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc: New.
914 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: New.
915
fb8d4638
PC
9162003-11-27 Paolo Carlini <pcarlini@suse.de>
917
918 * include/std/std_streambuf.h (__copy_streambufs): Remove
919 the first, unused, basic_ios<> parameter.
920 * src/streambuf-inst.cc: Likewise.
921 * include/bits/streambuf.tcc: Likewise.
922 * include/bits/istream.tcc (operator>>(__streambuf_type*)):
923 Tweak accordingly the call.
924 * include/bits/ostream.tcc (operator<<(__streambuf_type*)):
925 Likewise.
926
927 * include/bits/streambuf.tcc (__copy_streambufs): Remove
928 redundant try/catch.
929
12841eb3
BK
9302003-11-26 Benjamin Kosnik <bkoz@redhat.com>
931
932 PR libstdc++/9371
933 PR libstdc++/9546
934 PR libstdc++/10093
935 PR libstdc++/10095
936 * include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
937 (basic_ios::_M_setstate): Consolidate common error handling code.
938 * include/bits/basic_ios.tcc: Tweak.
939 * include/bits/fstream.tcc: Tweak.
940 * include/bits/istream.tcc: Use _M_setstate for common exception
941 handling. Move setstate calls after catch.
942 (basic_istream::tellg): Check for exceptions thrown by streambuf
943 virtual functions.
944 (basic_istream::seekg): Same.
945 * include/bits/ostream.tcc: Same, but for ostream.
946 (basic_ostream::flush): Check for exceptions thrown by streambuf
947 virtual functions.
948 (basic_istream::tellp): Same.
949 (basic_istream::seekp): Same.
950 * include/bits/locale_facets.tcc: Tweak.
951 * include/bits/streambuf.tcc: Tweak.
952 (__copy_streambufs): Propagate exceptions.
953 * testsuite/testsuite_io.h (fail_streambuf): New.
954 (fail_num_get): New.
955 (fail_num_put): New.
956 (facet_error): New.
957 (underflow_error): New.
958 (overflow_error): New.
959 (positioning_error): New.
960 * testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
961 * testsuite/27_io/basic_istream/extractors_arithmetic/char/
962 exceptions_badbit_throw.cc, exceptions_failbit.cc,
963 exceptions_failbit_throw.cc: New.
964 * testsuite/27_io/basic_istream/extractors_other/char/
965 error_failbit.cc, exceptions_badbit_throw.cc,
966 exceptions_failbit_throw.cc, exceptions_null.cc: New.
967 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
968 New.
969 * testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
970 New.
971 * testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
972 New.
973 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
974 exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
975 * testsuite/27_io/basic_ostream/inserters_other/char/
976 error_failbit.cc, exceptions_badbit_throw.cc,
977 exceptions_failbit_throw.cc, exceptions_null.cc: New.
978 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
979 New.
980 * testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc:
981 New.
982
48f499cf
BK
9832003-11-26 Benjamin Kosnik <bkoz@redhat.com>
984
985 PR libstdc++/12297
986 * include/bits/istream.tcc
987 (basic_istream::sentry::sentry): Set failbit and eofbit when eof.
988 * testsuite/27_io/basic_istream/sentry/char/12297.cc: New.
989
c03d83d4
PC
9902003-11-26 Paolo Carlini <pcarlini@suse.de>
991 Petur Runolfsson <peturr02@ru.is>
992
993 PR libstdc++/13171
994 * include/bits/fstream.tcc (imbue): Relax the conditions under
995 which the function succeeds: allow for two consecutive calls with
996 the same name; state dependent encodings are ok even after open
997 if at the beginning of the file; don't check seekoff return value
998 (pipes, cin, cout, etc...)
999 * testsuite/27_io/basic_filebuf/imbue/char/13171-1.cc: New.
1000 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: New.
1001 * testsuite/27_io/basic_filebuf/imbue/char/13171-3.cc: New.
1002 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: New.
1003 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak comment.
1004 * testsuite/27_io/basic_filebuf/imbue/char/3.cc: Likewise.
1005 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Tweak comment.
1006 * testsuite/27_io/basic_filebuf/imbue/wchar_t/3.cc: Likewise.
1007
1008 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: More
1009 correctly use the UTF-8 locale appearing in the PR.
1010
7fb1d711
PC
10112003-11-26 Paolo Carlini <pcarlini@suse.de>
1012
1013 * include/bits/locale_facets.h
1014 (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
1015 _M_truename and _M_falsename: the constructor always does
1016 it immediately before the _M_cache call.
1017
5af91f06
PC
10182003-11-25 Paolo Carlini <pcarlini@suse.de>
1019
1020 * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
1021 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
1022 former is very fast, but stops if encounters a NUL.
1023 (codecvt::do_out): Tweaks.
1024 (codecvt::do_in): Tweaks, improve the code dealing with errors.
1025 * testsuite/performance/wchar_t_length.cc: New.
1026
3c8797ae
PC
10272003-11-24 Paolo Carlini <pcarlini@suse.de>
1028
1029 * config/locale/gnu/codecvt_members.cc (codecvt::do_in):
1030 Rewrite, using both mbsnrtowcs and mbrtowc in a loop: the
1031 former is very fast, but stops if encounters a NUL.
1032 (codecvt::do_out): Tweak.
1033 * testsuite/performance/wchar_t_in.cc: New.
1034
10352003-11-24 Paolo Carlini <pcarlini@suse.de>
1036
1037 * include/bits/locale_facets.h
1038 (__numpunct_cache<>::_M_cache): Set _M_allocated at the beginning
1039 in order to avoid memory leaks; simplify a bit.
1040
e0ec69c9
BK
10412003-11-24 Benjamin Kosnik <bkoz@redhat.com>
1042
1043 * include/bits/streambuf_iterator.h (ostreambuf_iterator): Remove
1044 non-standard throw specs.
1045 * testsuite/24_iterators/istreambuf_iterator.cc: Split into...
1046 * testsuite/24_iterators/istreambuf_iterator/1.cc
1047 * testsuite/24_iterators/istreambuf_iterator/2.cc
1048 * testsuite/24_iterators/istreambuf_iterator/2627.cc
1049 * testsuite/24_iterators/ostreambuf_iterator.cc: Split into...
1050 * testsuite/24_iterators/ostreambuf_iterator/1.cc
1051 * testsuite/24_iterators/ostreambuf_iterator/2.cc
1052
1053 * testsuite/24_iterators/reverse_iterator/1.cc: Just compile,
1054 don't link.
1055
1056 * include/bits/allocator.h: Formatting tweak.
1057
ce492af3
PC
10582003-11-24 Paolo Carlini <pcarlini@suse.de>
1059
1060 * src/locale_init.cc: Cosmetic reformatting.
1061
bf058d22
PC
10622003-11-23 Paolo Carlini <pcarlini@suse.de>
1063
1064 * include/bits/locale_facets.tcc (__add_grouping):
1065 Cosmetic reformatting.
1066
89a2fb90
PC
10672003-11-23 Paolo Carlini <pcarlini@suse.de>
1068
1069 * include/bits/locale_facets.tcc (_M_extract_float,
1070 _M_extract_int): Remove a wrong comment and simplify
1071 the corresponding code using char_traits::find().
1072
cc0c2f79
PC
10732003-11-22 Paolo Carlini <pcarlini@suse.de>
1074
1075 * config/locale/gnu/monetary_members.cc
1076 (money_base::_S_construct_pattern): Factor out two assignments.
1077
a3b1b804
PC
10782003-11-22 Paolo Carlini <pcarlini@suse.de>
1079
1080 * include/bits/istream.tcc (getline(basic_string<>&)):
1081 Fix error in comment of the previous commit.
1082
1a311979
PC
10832003-11-22 Paolo Carlini <pcarlini@suse.de>
1084
1085 PR libstdc++/12593
1086 * include/bits/istream.tcc (operator>>(basic_string<>&),
1087 getline(basic_string<>&)): Implement resolution of DR 91 [WP];
1088 fix some minor issues with the exit conditions.
1089 * docs/html/ext/howto.html: Add an entry for DR 91.
1090
f7ba331c
PC
10912003-11-21 Paolo Carlini <pcarlini@suse.de>
1092
1093 * config/locale/gnu/monetary_members.cc
1094 (money_base::_S_construct_pattern): Factor out an assignment.
1095
5c89246d
PC
10962003-11-21 Paolo Carlini <pcarlini@suse.de>
1097
1098 PR libstdc++/12882 (partial)
1099 * acinclude.m4 (GLIBCXX_CHECK_LFS): Check fseeko64
1100 and ftello64 too.
1101 * include/ext/stdio_sync_filebuf.h (seekoff): Use fseeko64
1102 and ftello64 if available.
1103 * aclocal.m4: Regenerate.
1104 * configure: Ditto.
1105
9dc420e6
BK
11062003-11-20 Benjamin Kosnik <bkoz@redhat.com>
1107
1108 * include/debug/formatter.h: Use _Tp as template argument.
1109 * src/debug.cc: Same, instantiate std::size_t.
1110
4be58168
BK
11112003-11-20 Benjamin Kosnik <bkoz@redhat.com>
1112
1113 PR libstdc++/13109
1114 * include/debug/formatter.h (_Error_formatter::_M_format_word): New.
1115 * src/debug.cc (__gnu_debug): Format.
1116 (_Error_formatter::_M_format_word): Define, use, instantiate.
1117
0fd18701
PC
11182003-11-20 Paolo Carlini <pcarlini@suse.de>
1119
1120 PR libstdc++/11602
1121 * config/locale/gnu/codecvt_members.cc (codecvt::do_out):
1122 Rewrite, using both wcsnrtombs and wcrtomb in a loop: the
1123 former is very fast, but stops if encounters a NUL.
1124 * testsuite/performance/wchar_t_out.cc: New, from the PR.
1125
1f33554a
PC
11262003-11-19 Paolo Carlini <pcarlini@suse.de>
1127
1128 * config/locale/gnu/codecvt_members.cc (do_out): If
1129 we can upper bound the total number of external chars
1130 to something smaller than __to_end - __to, avoid the
1131 temporary buffer, the memcopy and simplify the loop.
1132 * config/locale/generic/codecvt_members.cc (do_out):
1133 Likewise.
1134
90635952
AT
11352003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
1136
1137 * testsuite/lib/libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin.
1138 * testsuite/libstdc++-dg/normal.exp: Add -multiply_defined suppress
1139 flag.
1140
bc225f98
JW
11412003-11-18 Jonathan Wakely <redi@gcc.gnu.org>
1142
1143 * docs/html/configopts.html, docs/html/debug.html,
1144 docs/html/documentation.html, docs/html/explanations.html,
1145 docs/html/install.html, docs/html/17_intro/contribute.html,
1146 docs/html/17_intro/howto.html, docs/html/17_intro/license.html,
1147 docs/html/18_support/howto.html, docs/html/19_diagnostics/howto.html,
1148 docs/html/20_util/howto.html, docs/html/21_strings/howto.html,
1149 docs/html/22_locale/codecvt.html, docs/html/22_locale/ctype.html,
1150 docs/html/22_locale/howto.html, docs/html/22_locale/locale.html,
1151 docs/html/22_locale/messages.html, docs/html/23_containers/howto.html,
1152 docs/html/24_iterators/howto.html, docs/html/25_algorithms/howto.html,
1153 docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
1154 docs/html/ext/howto.html, docs/html/ext/sgiexts.html: Add <link> tags.
1155
29342463
PC
11562003-11-18 Paolo Carlini <pcarlini@suse.de>
1157
1158 PR libstdc++/12868
1159 * include/bits/fstream.tcc (imbue): For encodings != -1 it's
1160 always ok to imbue a new locale, provided seekoff(0, cur, ...)
1161 doesn't fail, of course.
1162 (underflow): In order for the above to work, deal gracefully
1163 with _M_codecvt->in returning codecvt_base::error while
1164 (__ilen = __iend - this->eback()) > 0: it just means __ilen
1165 correctly converted internal characters before an error.
1166 * testsuite/27_io/basic_filebuf/imbue/wchar_t/12868.cc: New.
1167
c2466393
PC
11682003-11-17 Paolo Carlini <pcarlini@suse.de>
1169
1170 * include/bits/locale_facets.tcc: Fix typo in comment.
1171
6a7ee0d6
PC
11722003-11-17 Paolo Carlini <pcarlini@suse.de>
1173
1174 * testsuite/22_locale/num_put/put/char/8.cc: New test,
1175 summarizing the discussion ensuing libstdc++/12988.
1176 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.
1177
781a5298
PC
11782003-11-15 Paolo Carlini <pcarlini@suse.de>
1179
1180 * include/std/std_fstream.h: Tweak a comment.
1181
c85dfef7
RS
11822003-11-15 Roger Sayle <roger@eyesopen.com>
1183
1184 * include/c_std/std_cmath.h: Don't import C99's float transcendentals
1185 into the __gnu_cxx::__c99_binding namespace.
1186 (acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
1187 ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
1188 GCC's math builtins, i.e. __builtin_foo.
1189 * libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
1190 ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
1191 ldexpf, ldexpl, modff, modfl): Provide stub implementations.
1192
38455b2b
PC
11932003-11-14 Paolo Carlini <pcarlini@suse.de>
1194
1195 * testsuite/22_locale/locale/cons/12352.cc: Use
1196 __gnu_test::try_named_locale.
1197
c60cfc76
PC
11982003-11-14 Paolo Carlini <pcarlini@suse.de>
1199
1200 * docs/html/ext/howto.html: Add entries for DR 63, 75
1201 and 305; tweak entries for DR 60 and 328.
1202
1b80d64a
DG
12032003-11-13 Douglas Gregor <gregod@cs.rpi.edu>
1204
1205 * docs/html/debug.html: Users are allowed to specialize in
1206 namespace __gnu_debug, unlike in the Apple version of the debug
1207 mode. Clear up a confusing double-negative. Note that
1208 std::basic_string does provide extra debugging capabilities, but
1209 not safe iterators.
1210 * include/bits/basic_string.tcc: Make sure there's never an
1211 ambiguity when calling __is_null_pointer.
1212 * include/debug/deque: (deque::erase) Properly handle invalidation
1213 when erasing at the end of the deque.
1214 * include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
1215 (vector::clear): Set the guaranteed capacity to 0.
1216 * testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
1217 iterator invalidation when erasing at the end of the deque.
1218
a2dcfada
PC
12192003-11-13 Paolo Carlini <pcarlini@suse.de>
1220 Petur Runolfsson <peturr02@ru.is>
1221
1222 PR libstdc++/13007
1223 * include/bits/fstream.tcc (imbue): Don't touch the stored
1224 locale.
1225 * include/std/std_streambuf.h (imbue): According to the
1226 standard, base class version does nothing.
1227 (pubimbue): Store the locale.
1228 * testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
1229 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
1230 * testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
1231 * testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
1232 * testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
1233 * testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
1234 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
1235 * testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.
1236
5681c890
PR
12372003-11-13 Petur Runolfsson <peturr02@ru.is>
1238
1239 PR libstdc++/12594
1240 * include/bits/ostream.tcc
1241 (basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
1242 basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
1243 basic_ostream::operator<<(ios_base& (*)(ios_base&))):
1244 Implement the resolution of DR 60 (TC): These are not formatted
1245 output functions so don't construct sentry objects and don't
1246 catch exceptions.
1247 (basic_ostream::put, basic_ostream::write): Implement the
1248 resolution of DR 63 (TC) by catching exceptions and setting
1249 badbit.
1250 (basic_ostream::flush): Implement the resolution of DR 60 (TC):
1251 This is not an unformatted output function so don't construct
1252 a sentry object.
1253 * testsuite/testsuite_io.h (sync_streambuf): Define.
1254 * testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
1255 * testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
1256 * testsuite/27_io/basic_ostream/put/char/1.cc: New test.
1257 * testsuite/27_io/basic_ostream/write/char/1.cc: New test.
1258
f144e859
PC
12592003-11-13 Paolo Carlini <pcarlini@suse.de>
1260
1261 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
1262 Fix, closely following the testcase included in the PR.
1263 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
1264 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
1265 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.
1266
a198480e
JW
12672003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
1268
1269 * docs/html/17_intro/configury.html: XHTML tweak.
1270
684edd67
JW
12712003-11-13 Jonathan Wakely <redi@gcc.gnu.org>
1272
1273 * docs/html/debug_mode.html: XHTML fixes.
1274
89341602
BK
12752003-11-12 Benjamin Kosnik <bkoz@redhat.com>
1276
1277 * docs/html/debug_mode.html: Update.
1278 * docs/html/17_intro/TODO: Update.
1279
f9d52373
BK
12802003-11-12 Benjamin Kosnik <bkoz@redhat.com>
1281
1282 * include/bits/c++config: Move using directive...
1283 * include/debug/formatter.h: ...here.
1284
22e5c8fa
CW
12852003-11-12 Carlo Wood <carlo@alinoe.com>
1286
1287 PR libstdc++/12947
1288 * bits/demangle.h
1289 (_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
1290 (_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
1291 (session<Allocator>::next_peek() const): Added.
1292 (decode_non_negative_decimal_integer(string_type&)):
1293 Renamed from decode_decimal_integer(string_type&).
1294 (session<Allocator>::decode_nested_name):
1295 Decode <template_param> as well.
1296 (session<Allocator>::add_substitution):
1297 Handle <template-param> for <nested-name>'s.
1298 (enum xary_nt): Added.
1299 (struct entry_st): Added member `xary_nt type' instead of `bool unary'.
1300 (symbol_name_table_c): Updated for `entry_st::type' and additional
1301 operators (unary `operator+' and `sizeof(type)').
1302 (offset_table_c): Updated for new operators (causing a new hash map).
1303 (decode_operator_name): Match the updated hash map.
1304 (session<Allocator>::decode_expression):
1305 Support for `sizeof ([typename] type)' (st),
1306 dependent names (sr) and casting operator (cv). Handle
1307 `entry_st::type'. Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
1308 and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
1309 (session<Allocator>::decode_type_with_postfix):
1310 Support `extern "C"' function types (FY).
1311 * testsuite/demangle/regression/cw-16.cc: Added tests for the
1312 added functionality.
1313 * testsuite/demangle/regression/3111-2.cc: sizeof now has a space
1314 appended.
1315
dfad48c6
PC
13162003-11-11 Paolo Carlini <pcarlini@suse.de>
1317
1318 PR libstdc++/12875
1319 * include/bits/fstream.tcc (setbuf): Don't do anything
1320 after open(), in particular don't discard data.
1321 (_M_allocate_internal_buffer): Tweak to not allocate memory
1322 in case the buffer is provided by the user via setbuf.
1323 * include/ext/stdio_filebuf.h: Tweak comment.
1324 * testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
1325 * testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
1326 * testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
1327 setbuf does nothing after open().
1328 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
1329
285b36d6
BK
13302003-11-11 Doug Gregor <gregod@cs.rpi.edu>
1331
1332 * docs/html/debug.html: Document libstdc++ debug mode.
1333 * docs/html/debug_mode.html: Document libstdc++ debug mode design.
1334 * docs/html/test.html: Document how to test under debug mode.
1335 * docs/html/17_intro/howto.html: Document debug-mode macros.
1336 * include/Makefile.am: Install debug-mode headers.
1337 * src/Makefile.am: Include debug.cc.
1338 * include/bits/basic_string.tcc:
1339 (basic_string::_S_construct): Fix NULL pointer check.
1340 (__is_null_pointer): New.
1341 Add precondition annotations.
1342 * include/bits/stream_iterator.h (istream_iterator,
1343 ostream_iterator): Added precondition annotations.
1344 * include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
1345 * include/bits/stl_queue.h (queue, priority_queue): Ditto.
1346 * include/bits/stl_stack.h (stack): Ditto.
1347 * include/bits/basic_string.h (basic_string): Ditto.
1348 * include/bits/basic_string.tcc (basic_string): Ditto.
1349 * include/std/std_memory.h (auto_ptr): Ditto.
1350 * include/std/std_valarray.h (valarray): Ditto.
1351 * include/bits/stl_algo.h: Added algorithm precondition
1352 annotations.
1353 * include/bits/stl_algobase.h: Added algorithm precondition
1354 annotations.
1355 * include/bits/stl_numeric.h: Ditto.
1356 * include/ext/algorithm: Added algorithm precondition
1357 annotations.
1358 (__is_heap): Moved away from here.
1359 * include/bits/stl_heap.h: Added algorithm precondition
1360 annotations.
1361 (__is_heap): Moved to the top of this file.
1362 (__is_heap): Added iterator range overloads.
1363 * testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
1364 with changes in std_memory.h.
1365 * testsuite/23_containers/list/operators/4.cc: Don't verify
1366 performance guarantees when in debug mode.
1367 * testsuite/23_containers/bitset/invalidation/1.cc: New.
1368 * testsuite/23_containers/deque/invalidation/1.cc: New.
1369 * testsuite/23_containers/deque/invalidation/2.cc: New.
1370 * testsuite/23_containers/deque/invalidation/3.cc: New.
1371 * testsuite/23_containers/deque/invalidation/4.cc: New.
1372 * testsuite/23_containers/list/invalidation/1.cc: New.
1373 * testsuite/23_containers/list/invalidation/2.cc: New.
1374 * testsuite/23_containers/list/invalidation/3.cc: New.
1375 * testsuite/23_containers/list/invalidation/4.cc: New.
1376 * testsuite/23_containers/map/invalidation/1.cc: New.
1377 * testsuite/23_containers/map/invalidation/2.cc: New.
1378 * testsuite/23_containers/multimap/invalidation/1.cc: New.
1379 * testsuite/23_containers/multimap/invalidation/2.cc: New.
1380 * testsuite/23_containers/multiset/invalidation/1.cc: New.
1381 * testsuite/23_containers/multiset/invalidation/2.cc: New.
1382 * testsuite/23_containers/set/invalidation/1.cc: New.
1383 * testsuite/23_containers/set/invalidation/2.cc: New.
1384 * testsuite/23_containers/vector/invalidation/1.cc: New.
1385 * testsuite/23_containers/vector/invalidation/2.cc: New.
1386 * testsuite/23_containers/vector/invalidation/3.cc: New.
1387 * testsuite/23_containers/vector/invalidation/4.cc: New.
1388 * testsuite/25_algorithms/heap.cc: Don't verify
1389 performance guarantees when in debug mode.
1390 * include/debug/bitset: New.
1391 * include/debug/debug.h: New.
1392 * include/debug/deque: New.
1393 * include/debug/formatter.h: New.
1394 * include/debug/hash_map: New.
1395 * include/debug/hash_map.h: New.
1396 * include/debug/hash_multimap.h: New.
1397 * include/debug/hash_set: New.
1398 * include/debug/hash_set.h: New.
1399 * include/debug/hash_multiset.h: New.
1400 * include/debug/list: New.
1401 * include/debug/map: New.
1402 * include/debug/map.h: New.
1403 * include/debug/multimap.h: New.
1404 * include/debug/multiset.h: New.
1405 * include/debug/safe_base.h: New.
1406 * include/debug/safe_iterator.h: New.
1407 * include/debug/safe_iterator.tcc: New.
1408 * include/debug/safe_sequence.h: New.
1409 * include/debug/set: New.
1410 * include/debug/set.h: New.
1411 * include/debug/string: New.
1412 * include/debug/vector: New.
1413 * src/debug.cc: New.
1414 * config/linker-map.gnu: Add debug mode symbols.
1415
14162003-11-11 Benjamin Kosnik <bkoz@redhat.com>
1417
1418 * src/string-inst.cc: Tweak namespaces.
1419 * src/misc-inst.cc: Same.
1420 * docs/html/debug.html: Edits.
1421 * config/link-map.gnu: Remove cruft.
1422
1423 * include/bits/c++config: Add in namespace associations.
1424 * include/std/std_bitset.h: Adjust namespace to __gnu_norm,
1425 comment tweaks.
1426 * include/bits/deque.tcc: Same.
1427 * include/bits/list.tcc: Same.
1428 * include/bits/stl_bvector.h: Same.
1429 * include/bits/stl_deque.h: Same.
1430 * include/bits/stl_list.h: Same.
1431 * include/bits/stl_map.h: Same.
1432 * include/bits/stl_multimap.h: Same.
1433 * include/bits/stl_multiset.h: Same.
1434 * include/bits/stl_set.h: Same.
1435 * include/bits/stl_vector.h: Same.
1436 * include/bits/vector.tcc: Same.
1437
1438 * include/std/std_algorithm.h: Remove markup comments.
1439 * include/std/std_functional.h: Same.
1440 * include/std/std_iterator.h: Same.
1441 * include/std/std_numeric.h: Same.
1442 * include/std/std_utility.h: Same.
1443 * include/bits/stl_queue.h: Formatting tweaks.
1444 * include/bits/stl_stack.h: Same.
1445 * include/std/std_deque.h: Include debugging version in debug mode.
1446 * include/std/std_list.h: Same.
1447 * include/std/std_map.h: Same.
1448 * include/std/std_set.h: Same.
1449 * include/std/std_vector.h: Same.
1450 * include/std/std_queue.h: Use deque, vector.
1451 * include/std/std_stack.h: Same.
1452
f6a7db9e
PC
14532003-11-09 Paolo Carlini <pcarlini@suse.de>
1454
1455 * include/bits/locale_facets.tcc (_M_insert_int,
1456 _M_insert_float): Move a couple of vars inside an if block.
1457
7c752655
PC
14582003-11-09 Paolo Carlini <pcarlini@suse.de>
1459
1460 PR libstdc++/12971
1461 * include/bits/locale_facets.tcc
1462 (money_put::do_put(..., long double)): Fix conversion
1463 specification as per DR 328 [WP].
1464 * testsuite/22_locale/money_put/put/char/12971.cc: Add.
1465 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Ditto.
1466 * docs/html/ext/howto.html: Add entry for DR 328.
1467
41d3a0c3
PC
14682003-11-08 Paolo Carlini <pcarlini@suse.de>
1469
1470 PR libstdc++/12967
1471 * include/bits/list.tcc (merge): Implement resolution of
1472 DR 300 [WP].
1473 * docs/html/ext/howto.html: Add entry for DR 300; tweak entry
1474 for DR 231.
1475
1476 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
1477 Import R27.
1478
3ab3dca6
JW
14792003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
1480
1481 * libsupc++/vec.cc: Conform to C++STYLE.
1482
2d369f35
CW
14832003-11-07 Carlo Wood <carlo@alinoe.com>
1484
1485 PR libstdc++/12736
1486 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added.
1487 (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated
1488 K, V, r and A qualifiers before processing them as a group.
1489 * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers.
1490 * testsuite/demangle/regression/cw-16.cc: New.
1491
b938ad89
RM
14922003-11-07 Robert Millan <robertmh@gnu.org>
1493
f6a7db9e
PC
1494 * configure.host: Add kfreebsd*-gnu and knetbsd*-gnu.
1495 * crossconfig.m4: Likewise.
1496 * configure: Regenerate.
b938ad89 1497
eb622d37
CW
14982003-11-07 Carlo Wood <carlo@alinoe.com>
1499
f6a7db9e
PC
1500 * include/bits/demangle.h
1501 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1502 string_type&, bool member_function_pointer_qualifiers):
1503 Always separate the '[' of an array type with a space from
1504 what is left of it, except when that is the closing bracket
1505 of another array dimension.
eb622d37 1506
2215f732
CW
15072003-11-07 Carlo Wood <carlo@alinoe.com>
1508
f6a7db9e 1509 * include/bits/demangle.h
2215f732
CW
1510 (qualifier_list<Allocator>::decode_qualifiers(string_type&,
1511 string_type&, bool) const): Made const.
1512 (qualifier_list<Allocator>::M_printing_suppressed): Added mutable.
1513 (_GLIBCXX_DEMANGLER_DOUT_ENTERING3, _GLIBCXX_DEMANGLER_RETURN3,
1514 std::ostream& operator<<(std::ostream&, qualifier const&),
1515 std::ostream& operator<<(std::ostream&, qualifier_list const&),
1516 qualifier_list<Allocator>::decode_qualifiers(string_type&,
1517 string_type&, bool) const,
1518 session<Allocator>::decode_type_with_postfix(string_type&,
1519 string_type&, qualifier_list<Allocator>*))
1520 Added and/or changed debug-only hooks and code.
1521
d30b600a
JO
15222003-11-04 Jeffrey D. Oldham <oldham@codesourcery.com>
1523
1524 * libsupc++/vec.cc (__cxa_vec_delete2): If given a NULL pointer,
1525 immediately return. This reflects a C++ ABI change 2003 Nov 03.
1526 (__cxa_vec_delete3): Likewise.
1527
5e93f39f
PR
15282003-11-03 Petur Runolfsson <peturr02@ru.is>
1529
1530 PR libstdc++/12790
1531 * include/bits/fstream.tcc: Delete _M_last_overflowed.
1532 (basic_filebuf::basic_filebuf): Initialize _M_state_last.
1533 (basic_filebuf::open, basic_filebuf::close): Assign
1534 _M_state_beg to _M_state_cur and _M_state_last.
1535 (basic_filebuf::close): Call _M_terminate_output to handle
1536 unshift and flushing.
1537 (basic_filebuf::underflow): Assign _M_state_last, throw
1538 exception instead of calling abort when codecvt::max_length()
1539 is bad.
1540 (basic_filebuf::seekoff): Use _M_state_last when calling
1541 codecvt::length(), pass correct state to _M_seek.
1542 (basic_filebuf::seekpos): Pass __pos.state() to _M_seek.
1543 (basic_filebuf::_M_seek): Add __state_type parameter,
1544 set _M_state_cur correctly, store the resulting state in
1545 the return value and use _M_terminate_output to handle
1546 flushing and unshift.
1547 (basic_filebuf::_M_terminate_output): Flush contents of
1548 output buffer, if any, then call codecvt::unshift as
1549 needed and output the result.
1550 (basic_filebuf::sync): Move here, don't modify _M_writing
1551 or _M_reading.
1552
1553 * include/std/std_fstream.h
1554 (basic_filebuf::_M_state_last): Declare it.
1555 (basic_filebuf::_M_last_overflowed): Delete.
1556 (basic_filebuf::_M_seek): Add __state_type parameter.
1557 (basic_filebuf::sync): Declare only.
1558 (basic_filebuf::_M_output_unshift): Delete.
1559 (basic_filebuf::_M_terminate_output): Declare it.
1560
1561 * testsuite/testsuite_character.h:
1562 Define character class and state class plus char_traits and
1563 codecvt specializations for same for testing support for
1564 stateful encodings.
1565
1566 * testsuite/27_io/basic_filebuf/close/12790-1.cc,
1567 * testsuite/27_io/basic_filebuf/close/char/12790-1.cc,
1568 * testsuite/27_io/basic_filebuf/close/char/12790-2.cc,
1569 * testsuite/27_io/basic_filebuf/close/char/12790-3.cc,
1570 * testsuite/27_io/basic_filebuf/close/char/12790-4.cc,
1571 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-1.cc,
1572 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-2.cc,
1573 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-3.cc,
1574 * testsuite/27_io/basic_filebuf/close/wchar_t/12790-4.cc,
1575 * testsuite/27_io/basic_filebuf/open/12790-1.cc,
1576 * testsuite/27_io/basic_filebuf/seekoff/12790-1.cc,
1577 * testsuite/27_io/basic_filebuf/seekoff/12790-2.cc,
1578 * testsuite/27_io/basic_filebuf/seekoff/12790-3.cc,
1579 * testsuite/27_io/basic_filebuf/seekoff/12790-4.cc,
1580 * testsuite/27_io/basic_filebuf/seekoff/char/12790-1.cc,
1581 * testsuite/27_io/basic_filebuf/seekoff/char/12790-2.cc,
1582 * testsuite/27_io/basic_filebuf/seekoff/char/12790-3.cc,
1583 * testsuite/27_io/basic_filebuf/seekoff/char/12790-4.cc,
1584 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-1.cc,
1585 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-2.cc,
1586 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-3.cc,
1587 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/12790-4.cc,
1588 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc,
1589 * testsuite/27_io/basic_filebuf/seekpos/12790-1.cc,
1590 * testsuite/27_io/basic_filebuf/seekpos/12790-2.cc,
1591 * testsuite/27_io/basic_filebuf/seekpos/12790-3.cc,
1592 * testsuite/27_io/basic_filebuf/seekpos/char/12790-1.cc,
1593 * testsuite/27_io/basic_filebuf/seekpos/char/12790-2.cc,
1594 * testsuite/27_io/basic_filebuf/seekpos/char/12790-3.cc,
1595 * testsuite/27_io/basic_filebuf/seekpos/char/12790-4.cc,
1596 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc,
1597 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-1.cc,
1598 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-2.cc,
1599 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-3.cc,
1600 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/12790-4.cc,
1601 * testsuite/27_io/basic_filebuf/sync/char/1.cc,
1602 * testsuite/27_io/basic_filebuf/sync/wchar_t/1.cc:
1603 New tests.
1604
1605 * testsuite/27_io/basic_filebuf/3.cc,
1606 * testsuite/27_io/basic_filebuf/seekoff/10132-2.cc,
1607 * testsuite/27_io/basic_filebuf/seekpos/10132-3.cc,
1608 * testsuite/27_io/basic_fstream/3.cc,
1609 * testsuite/27_io/basic_ifstream/3.cc,
1610 * testsuite/27_io/basic_ofstream/3.cc:
1611 Use streamoff as off_type and fpos<state_type> as pos_type.
1612
1613 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc,
1614 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc:
1615 Check that sync does *not* set _M_writing to false.
1616
1b9e6d64
AG
16172003-11-03 Anthony Green <green@redhat.com>
1618
1619 * libmath/stubs.c (sqrtf, sqrtl): Reorder so they appear before
1620 they're used.
1621
e0f05105
BK
16222003-11-03 Benjamin Kosnik <bkoz@redhat.com>
1623
1624 * include/bits/locale_facets.h (time_get::_M_extract_name): Add
1625 ctype argument.
1626 * include/bits/locale_facets.tcc: Same, use it to allow
1627 capitalized names.
1628
1629 * include/bits/fstream.tcc: Spacing tweak.
1630 * include/bits/istream.tcc: Same.
1631 * include/bits/ostream.tcc: Same.
1632
08b9183d
PC
16332003-10-30 Paolo Carlini <pcarlini@suse.de>
1634
1635 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
1636 __mod is only assigned, never used its value, remove it.
1637
f1e7988a
PC
16382003-10-29 Paolo Carlini <pcarlini@suse.de>
1639
1640 * include/bits/locale_facets.tcc (time_get::do_get_year):
1641 Absolutely avoid dereferencing end iterators.
1642 (time_put::put): Minor clean up.
1643
1644 * include/bits/locale_facets.tcc: Cosmetic reformattings.
1645
58c9703f
PC
16462003-10-29 Paolo Carlini <pcarlini@suse.de>
1647
1648 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1649 Revert the last commit, is not correct, sorry.
1650
4f363232
PC
16512003-10-29 Paolo Carlini <pcarlini@suse.de>
1652
1653 * config/locale/generic/c_locale.cc: Add back <cmath> and
1654 <cstdlib>.
1655
1656 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1657 Clean up.
1658
6bf0b59c
PC
16592003-10-29 Paolo Carlini <pcarlini@suse.de>
1660
1661 * include/bits/locale_facets.tcc (time_put::put): Absolutely
1662 avoid dereferencing end iterators; clean up.
1663
1664 * include/bits/locale_facets.tcc (num_get::_M_extract_float,
1665 num_get::_M_extract_int): Minor tweak.
1666
c9cca2c2
PC
16672003-10-29 Paolo Carlini <pcarlini@suse.de>
1668
1669 * include/bits/locale_facets.tcc: Remove some unnecessary
1670 includes.
1671 * config/locale/generic/c_locale.cc: Include <cerrno> here.
1672 * config/locale/gnu/c_locale.cc: Likewise.
1673
157f3283
PC
16742003-10-28 Paolo Carlini <pcarlini@suse.de>
1675
1676 * include/bits/locale_facets.tcc
1677 (money_get<>::do_get(..., string_type&)): Absolutely avoid
1678 dereferencing end iterators; general clean up.
1679
cc27f5a2
PC
16802003-10-28 Paolo Carlini <pcarlini@suse.de>
1681
1682 * include/bits/locale_facets.tcc (time_get::_M_extract_num):
1683 Absolutely avoid dereferencing end iterators.
1684 (time_get::_M_extract_name): Likewise.
1685
1686 * include/bits/locale_facets.tcc
1687 (time_get::_M_extract_via_format, case 'e'): Don't try to
1688 be smart wrt returning the right __beg in case of parse
1689 error, time_get::_M_extract_num must be fixed instead.
1690
0c6b814a
PC
16912003-10-27 Paolo Carlini <pcarlini@suse.de>
1692
1693 PR libstdc++/12778
1694 * acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
1695 * aclocal.m4: Regenerate.
1696 * configure: Regenerate.
1697
0f09879b
BK
16982003-10-27 Benjamin Kosnik <bkoz@redhat.com>
1699
1700 * docs/html/17_intro/TODO: Add links.
1701 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1702 Uncomment.
1703
f20d2b78
PC
17042003-10-27 Paolo Carlini <pcarlini@suse.de>
1705
1706 PR libstdc++/12750
1707 * include/bits/locale_facets.tcc
1708 (time_get::_M_extract_via_format): Deal with code 'e'.
1709 * testsuite/22_locale/time_get/get_date/char/12750.cc: New.
1710 * testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.
1711
1712 * include/bits/locale_facets.tcc
1713 (time_get::_M_extract_via_format): Tweak to absolutely avoid
1714 dereferencing end iterators.
1715
1716 * include/bits/locale_facets.h (__verify_grouping):
1717 Const-ify second parameter.
1718 * include/bits/locale_facets.tcc (__verify_grouping): Ditto.
1719 * src/locale-inst.cc (__verify_grouping): Ditto.
1720
17212003-10-27 Paolo Carlini <pcarlini@suse.de>
1722
1723 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
1724 Various things: 1- Avoid absolutely end iterator dereferences;
1725 2- Improve performance-wise the code skipping leading zeros;
1726 3- Fix two bugs wrt early bail out in case of parsing errors
1727 (see testcases); 4- General clean up.
1728 (num_get::_M_extract_int): Likewise, except 3-. Additionally,
1729 use __builtin_expect to favor base 10 inputs.
1730 * testsuite/22_locale/num_get/get/char/7.cc: New.
1731 * testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.
1732
f883c8dc
PC
17332003-10-26 Paolo Carlini <pcarlini@suse.de>
1734
1735 * testsuite/22_locale/money_put/put/char/1.cc: Clean up.
1736 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.
1737
999bf60f
PC
17382003-10-25 Paolo Carlini <pcarlini@suse.de>
1739
1740 * include/bits/locale_facets.tcc (num_get::_M_extract_int):
1741 __pos in only incremented, never used its value, remove it.
1742
b2398b49
RM
17432003-10-24 Robert Millan <robertmh@gnu.org>
1744
1745 * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
1746 and knetbsd*-gnu.
1747 * aclocal.m4: Regenerated.
1748 * configure: Regenerated.
1749
761faeec
PC
17502003-10-24 Paolo Carlini <pcarlini@suse.de>
1751
1752 * include/bits/locale_facets.tcc (money_get::do_get(...,
1753 long double&): Properly size the temporary buffer.
1754 * testsuite/22_locale/money_get/get/char/11.cc: New.
1755 * testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.
1756
1757 * include/bits/locale_facets.tcc (num_put::_M_group_int,
1758 num_put::_M_group_float, money_put::do_put(..., const
1759 string_type&), collate::do_compare, collate::do_transform):
1760 Prefer basic_string::data() to c_str() when the '\0'
1761 terminator is not really needed.
1762
eebf21ef
PC
17632003-10-24 Paolo Carlini <pcarlini@suse.de>
1764
1765 * include/bits/locale_facets.tcc (__verify_grouping):
1766 Prefer '=' to an unnecessary '&='.
1767
ebaeca8b
PC
17682003-10-24 Paolo Carlini <pcarlini@suse.de>
1769
1770 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1771 Tweak my fix for libstdc++/12657.
1772
bf22935f
PC
17732003-10-24 Paolo Carlini <pcarlini@suse.de>
1774
1775 * include/bits/locale_facets.tcc (money_get::do_get(...,
1776 string_type&): Minor tweak to the previous commit.
1777
14628700
PC
17782003-10-24 Paolo Carlini <pcarlini@suse.de>
1779
1780 * include/bits/locale_facets.tcc (money_get::do_get(...,
1781 string_type&): Disregard the previous commit: doesn't hurt but
1782 doesn't accomplish anything useful either. This is the right
1783 one, speeding up greatly the function in case of early fail.
1784
cdd5cf72
PC
17852003-10-24 Paolo Carlini <pcarlini@suse.de>
1786
1787 * include/bits/locale_facets.tcc (money_get::do_get(...,
1788 string_type&): Move an if block, thus minimizing the amount
1789 of code processed anyway when __tmp_units.size() == 0.
1790
c21dbe85
PC
17912003-10-24 Paolo Carlini <pcarlini@suse.de>
1792
1793 * include/bits/locale_facets.tcc
1794 (time_get<>::_M_extract_via_format): Deal with case 'C' too,
1795 equivalent to 'y'.
1796
d2c354f3
BK
17972003-10-23 Benjamin Kosnik <bkoz@redhat.com>
1798
1799 * docs/html/documentation.html: Add a pointer to the doxygen style
1800 guide.
1801 * docs/html/17_intro/TODO: Update.
1802 * docs/html/test.html: Add instructions for running a subset of
1803 tests, update.
1804
60aa9fc3
PC
18052003-10-23 Paolo Carlini <pcarlini@suse.de>
1806
1807 * include/bits/locale_facets.tcc (money_get<>::do_get(...,
1808 string_type&)): Use find_first_not_of to strip leading
1809 zeros; if __tmp_units == "0" never prefix it with '-';
1810 always fail if __tmp_units is empty.
1811 * testsuite/22_locale/money_get/get/char/10.cc: New.
1812 * testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.
1813
861f9573
PE
18142003-10-23 Phil Edwards <phil@codesourcery.com>
1815
1816 * config/os/vxworks/ctype_noninline.h: Adjust ctor to match
1817 2003-10-21 change.
1818
3c21d6e0
PC
18192003-10-22 Paolo Carlini <pcarlini@suse.de>
1820
1821 * include/bits/locale_facets.tcc (__int_to_char): Remove
1822 the const int parameter.
1823 (_M_insert_int): Update caller.
1824 * src/locale-inst.cc (__int_to_char): Update instantiations.
1825
bf5fe473
BK
18262003-10-22 Benjamin Kosnik <bkoz@redhat.com>
1827
1828 * include/bits/locale_facets.h: Correct byname facets for "C"
1829 locale.
1830 * config/locale/generic/ctype_members.cc: Same.
1831 * config/locale/generic/messages_members.h: Same.
1832 * config/locale/gnu/ctype_members.cc: Same.
1833 * config/locale/gnu/messages_members.h: Same.
1834 * include/bits/codecvt.h: Same.
1835 * src/ctype.cc: Same.
1836 * testsuite/22_locale/codecvt_byname/1.cc: New.
1837 * testsuite/22_locale/collate/1.cc: Edit.
1838 * testsuite/22_locale/collate_byname/1.cc: Derivation tests, move to...
1839 * testsuite/22_locale/collate_byname/named_equivalence.cc: ...here.
1840 * testsuite/22_locale/ctype/1.cc: Derivation tests.
1841 * testsuite/22_locale/ctype/11844.cc: Move...
1842 * testsuite/22_locale/ctype_base/11844.cc: ...here.
1843 * testsuite/22_locale/ctype_base/1.cc: Move mask bits here.
1844 * testsuite/22_locale/ctype_byname/1.cc: Name.
1845 * testsuite/22_locale/messages_byname/1.cc: New.
1846 * testsuite/22_locale/messages_byname/named_equivalence.cc: New.
1847 * testsuite/22_locale/moneypunct_byname/1.cc: Derivation test.
1848 * testsuite/22_locale/moneypunct_byname/named_equivalence.cc: New.
1849 * testsuite/22_locale/numpunct/1.cc: Edit.
1850 * testsuite/22_locale/numpunct_byname/2.cc: Move...
1851 * testsuite/22_locale/numpunct/members/char/3.cc: ...here.
1852 * testsuite/22_locale/numpunct_byname/1.cc: Derivation tests.
1853 * testsuite/22_locale/numpunct_byname/named_equivalence.cc: New.
1854
3d05b345
PC
18552003-10-22 Paolo Carlini <pcarlini@suse.de>
1856
1857 PR libstdc++/8610
1858 * acinclude.m4 (GLIBCXX_CHECK_INT64_T): New macro,
1859 checking for the availability of int64_t.
1860 (GLIBCXX_CHECK_LFS): New macro, checking for LFS support.
1861 * configure.ac: Call here.
1862 * acconfig.h: Add undef for the corresponding symbols.
1863 * config/io/basic_file_stdio.cc (__basic_file<char>::open):
1864 Depending on _GLIBCXX_USE_LFS, call fopen64 or fopen.
1865 (__basic_file<char>::seekoff): Likewise, call lseek64 when
1866 available, otherwise lseek, checking the __off parameter.
1867 * include/bits/postypes.h: Typedef __streamoff_base_type
1868 to int64_t if available, otherwise long long.
1869 * aclocal.m4: Regenerate.
1870 * config.h.in: Likewise.
1871 * configure: Likewise.
1872
1873 * acinclude.m4 (GLIBCXX_CHECK_POLL, GLIBCXX_CHECK_WRITEV):
1874 Use AC_TRY_LINK instead of AC_TRY_COMPILE.
1875
57d01e69
PC
18762003-10-22 Paolo Carlini <pcarlini@suse.de>
1877
1878 PR libstdc++/12657
1879 * include/bits/basic_ios.tcc (copyfmt(const basic_ios&)):
1880 Implement resolution of DR 292 (WP).
1881 * docs/html/ext/howto.html: Add entry for DR 292.
1882
6b5a2662
BK
18832003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1884
1885 * include/ext/mt_allocator.h: Change include to gthr.h.
1886 * include/ext/rope: Same. Add _Refcount_base definitions.
1887 * include/ext/pool_allocator.h: Adjust namespaces.
1888 * include/bits/stl_threads.h (_Refcount_base): Move.
1889 Put remaining into namespace __gnu_cxx.
1890
82c2e3d4
BK
18912003-10-21 Benjamin Kosnik <bkoz@redhat.com>
1892
1893 PR libstdc++/9858
1894 * include/bits/locale_facets.h (ctype<char>): Remove
1895 __ctype_abstract_base.
1896 (ctype<char>::do_is): Remove.
1897 (ctype<char>::do_scan_is): Remove.
1898 * src/ctype.cc: Same. Inline the rest.
1899 * testsuite/22_locale/ctype/is/char/9858.cc: New.
1900 * config/os/aix/ctype_noninline.h: Adjust ctor.
1901 * config/os/bsd/freebsd/ctype_noninline.h: Same.
1902 * config/os/bsd/netbsd/ctype_noninline.h: Same.
1903 * config/os/djgpp/ctype_noninline.h: Same.
1904 * config/os/generic/ctype_noninline.h: Same.
1905 * config/os/gnu-linux/ctype_noninline.h: Same.
1906 * config/os/hpux/ctype_noninline.h: Same.
1907 * config/os/irix/irix5.2/ctype_noninline.h: Same.
1908 * config/os/irix/irix6.5/ctype_noninline.h: Same.
1909 * config/os/mingw32/ctype_noninline.h: Same.
1910 * config/os/newlib/ctype_noninline.h: Same.
1911 * config/os/qnx/qnx6.1/ctype_noninline.h: Same.
1912 * config/os/solaris/solaris2.5/ctype_noninline.h: Same.
1913 * config/os/solaris/solaris2.6/ctype_noninline.h: Same.
1914 * config/os/solaris/solaris2.7/ctype_noninline.h: Same.
1915 * config/os/windiss/ctype_noninline.h: Same.
1916
d23ad8c8
PC
19172003-10-21 Paolo Carlini <pcarlini@suse.de>
1918
1919 * src/locale.cc: Tweak a comment.
1920 * src/localename.cc: Move a comment.
1921
9540958e
BK
19222003-10-20 Benjamin Kosnik <bkoz@redhat.com>
1923
1924 PR libstdc++/10081
1925 * testsuite_hooks.h: Add pod_type, ctype and numpunct specializations.
1926 * testsuite_hooks.cc: Same.
1927 * 22_locale/numpunct/members/pod/1.cc: Edit.
1928 * 22_locale/numpunct/members/pod/2.cc: Same.
1929 * 27_io/basic_istream/sentry/char/3983-fstream.cc: Move ...
1930 * 27_io/basic_istream/sentry/char/3983-sstream.cc: Move ...
1931 * 27_io/basic_istream/extractors_arithmetic/pod/3983-1.cc: Here.
1932 * 27_io/basic_istream/extractors_character/pod/3983-2.cc: Here.
1933 * 27_io/basic_istream/extractors_other/pod/3983-3.cc: Here.
1934 * 27_io/basic_ostream/sentry/char/3983-fstream.cc: Remove.
1935 * 27_io/basic_ostream/sentry/char/3983-sstream.cc: Remove.
1936 * 27_io/basic_istream/sentry/pod/1.cc: New.
1937 * 27_io/basic_ostream/sentry/pod/1.cc: New.
1938 * 21_strings/basic_string/inserters_extractors/pod/10081-in.cc: New.
1939 * 21_strings/basic_string/inserters_extractors/pod/10081-out.cc: New.
1940
27d54b2a
RO
19412003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1942
1943 * config/cpu/mips/atomicity.h (__atomic_add): Use _ABIO32 instead
1944 of external _MIPS_SIM_ABI32.
1945
65fc9769
PE
19462003-10-20 Phil Edwards <phil@codesourcery.com>
1947
1948 * configure.ac: Fix comment typo.
1949 * configure.host: Add vxworks to host_os switch.
1950 * crossconfig.m4: Remove old commented os_include_dir variables
1951 left over from autotools transition.
1952 (*-vxworks): New stanza.
1953 (*-windiss): Add missing symbols.
1954 * configure: Regenerate.
1955 * config/os/vxworks/ctype_base.h, config/os/vxworks/ctype_inline.h,
1956 config/os/vxworks/ctype_noninline.h, config/os/vxworks/os_defines.h:
1957 New files.
1958 * config/os/windiss/os_defines.h: Define __C9X__.
1959
47395a24
DE
19602003-10-19 David Edelsohn <edelsohn@gnu.org>
1961
1962 PR other/12506
1963 * configure.host (aix4,aix*): Define os_include_dir to os/generic.
1964
8f4c7b67
AT
19652003-10-18 Andreas Tobler <a.tobler@schweiz.ch>
1966
1967 * src/locale.cc (locale::_S_initialize): Re-apply workaround a
1968 confusion of the use of the gthr API when __gthread_active_p()
1969 returns true.
1970
c755e77d
BK
19712003-10-17 Benjamin Kosnik <bkoz@redhat.com>
1972
1973 * src/Makefile.am: Add new files.
1974 * src/Makefile.in: Regenerate.
1975 * src/globals.cc: Split into..
1976 * src/globals_io.cc: New.
1977 * src/globals_locale.cc: New.
1978 * src/ios.cc: Split into...
1979 * src/ios_init.cc: New.
1980 * src/ios_locale.cc: New.
1981 * src/locale-inst.cc: Split into..
1982 * src/wlocale-inst.cc: New.
1983 * src/locale-misc-inst.cc: New.
1984 * src/locale.cc, src/localename: Split into...
1985 * src/locale_facets.cc: New.
1986 * src/locale_init.cc: New.
1987 * src/wstring-inst.cc: Add copyright info.
1988
4c4809c1
BK
19892003-10-16 Petur Runolfsson <peturr02@ru.is>
1990
4c4809c1
BK
1991 PR libstdc++/11450
1992 PR libstdc++/11543
1993 PR libstdc++/12065
1994 * config/io/basic_file_stdio.cc (__basic_file::seekoff):
1995 Change return value from streampos to streamoff.
1996 (__basic_file::seekpos): Delete.
1997 * config/io/basic_file_stdio.h: Same.
1998 * config/io/c_io_stdio.h: Remove streamoff and wstreamsize typedefs.
1999 * include/Makefile.am (bits_headers): Add bits/postypes.h.
2000 * include/bits/char_traits.h: Include bits/postypes.h instead of
2001 bits/fpos.h.
2002 * include/bits/fstream.tcc (basic_filebuf::open,
2003 basic_filebuf::pbackfail): Don't use < or >= to compare pos_type
2004 values, use == and != instead.
2005 (basic_filebuf::_M_seek): Use explicit conversion from streamoff
2006 to pos_type.
2007 (basic_filebuf::imbue): Don't use ! on pos_type values, use
2008 == instead. Don't use __check_facet(_M_codecvt) unless is_open().
2009 * include/bits/postypes.h: New file.
2010 Add __streamoff_base_type typedef, streamsize.
2011 (streamoff, streampos, wstreampos): Define typedefs, with
2012 streamoff defined as...
2013 (streamoff): New class. Document implementation defined
2014 aspects.
2015 (fpos): New implementation. Document implementation defined
2016 aspects.
2017 * include/bits/sstream.tcc (basic_stringbuf::seekpos): Use
2018 explicit conversion from pos_type to off_type.
2019 * include/std/std_iosfwd.h: Include bits/postypes.h instead
2020 of bits/fpos.h.
2021 * testsuite/27_io/basic_filebuf/seekoff/char/11543.cc: New test.
2022 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/11543.cc: New test.
2023 * testsuite/27_io/fpos/11450.cc: New test.
2024 * testsuite/27_io/fpos/mbstate_t/12065.cc: New test.
2025 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: New test.
2026 * testsuite/27_io/types/3.cc: New test.
2027
20282003-10-16 Benjamin Kosnik <bkoz@redhat.com>
f883c8dc
PC
2029
2030 * configure.host: Remove fpos_include_dir.
2031 * configure.ac: Remove FPOS_INC_SRCDIR.
2032 * configure: Regenerate.
2033 * acinclude.m4 (GLIBCXX_ENABLE_CSTDIO): Remove FPOS_H.
2034 * aclocal.m4: Regenerate.
2035 * include/Makefile.am (host_headers): Remove fpos.h.
2036 (bits_headers): Add postypes.h.
2037 * include/Makefile.in: Regenerate.
2038 * config/os/gnu-linux/fposh: Remove.
2039 * config/os/generic/fpos.h: Remove.
2040
2041 * testsuite/27_io/basic_filebuf/seekoff/char/1-in.cc: Fixup.
2042 * testsuite/27_io/basic_filebuf/seekoff/char/1-io.cc: Same.
2043 * testsuite/27_io/basic_filebuf/seekoff/char/1-out.cc: Same.
2044 * testsuite/27_io/basic_filebuf/seekoff/char/2-in.cc: Same.
2045 * testsuite/27_io/basic_filebuf/seekoff/char/2-io.cc: Same.
2046 * testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc: Same.
2047 * testsuite/27_io/basic_filebuf/seekpos/char/1-in.cc: Same.
2048 * testsuite/27_io/basic_filebuf/seekpos/char/1-io.cc: Same.
2049 * testsuite/27_io/basic_filebuf/seekpos/char/1-out.cc: Same.
2050 * testsuite/27_io/basic_filebuf/seekpos/char/2-in.cc: Same.
2051 * testsuite/27_io/basic_filebuf/seekpos/char/2-io.cc: Same.
2052 * testsuite/27_io/basic_filebuf/seekpos/char/2-out.cc: Same.
2053 * testsuite/27_io/basic_istream/seekg/char/2.cc: Same.
2054 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Same.
2055 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Same.
2056 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
2057 * testsuite/27_io/objects/char/10.cc: Same.
4c4809c1 2058
0392ff98
PC
20592003-10-16 Paolo Carlini <pcarlini@suse.de>
2060
2061 * src/locale.cc (locale::locale(const char*)): ... one
2062 more comparison missed in the previous commit.
2063
d2f663d1
BK
20642003-10-16 Benjamin Kosnik <bkoz@redhat.com>
2065
5d78fe72
BK
2066 * acconfig.h: Add HAVE_DRAND48.
2067 * crossconfig.m4: Remove ISATTY.
d2f663d1
BK
2068 * aclocal.m4: Regenerated.
2069 * config.h.in: Regenerated.
5d78fe72 2070 * configure: Regenerated.
d2f663d1 2071
068c84e3
BI
20722003-10-16 Bernardo Innocenti <bernie@develer.com>
2073
2074 * config/cpu/m68k/atomicity.h (__exchange_and_add): Use TAS on
2075 __mcf5400__. Don't rely on __mc68000__ to detect a bare 68000.
2076 Document SMP safeness of asm macros.
2077
eaed902b
PC
20782003-10-16 Paolo Carlini <pcarlini@suse.de>
2079
2080 * src/locale.cc (locale::locale(const char*)): Tweak
2081 a couple of comparisons to use basic_string operators.
2082
f991b1d8
PC
20832003-10-16 Paolo Carlini <pcarlini@suse.de>
2084
2085 PR libstdc++/12540
2086 * config/locale/gnu/monetary_members.cc
2087 (moneypunct<wchar_t, true/false>::_M_initialize_moneypunct):
2088 Don't leak memory if new throws.
2089 * src/locale.cc (locale::locale(const char*)): In order not
2090 to leak memory in case new throws, use a basic_string type
2091 for __res too and avoid strdup.
2092
84e72d83
JB
20932003-10-14 Jeff Bailey <jbailey@nisa.net>
2094
2095 PR libstdc++/12562
2096 * crossconfig.m4: Share the config between *-linux* and *-gnu*.
2097 * configure: Regenerate.
2098
be3faf89
CW
20992003-10-14 Carlo Wood <carlo@alinoe.com>
2100
2101 PR libstdc++/12600
2102 * include/bits/demangle.h (session<Allocator>::
2103 decode_unqualified_name(string_type& output)): Fail on a
2104 <operator-name> when decoding <template-argument>.
2105 * testsuite/demangle/regression/cw-15.cc: New.
2106
1638f5c9
PC
21072003-10-14 Paolo Carlini <pcarlini@unitus.it>
2108
2109 PR libstdc++/11480
2110 * include/bits/stl_algo.h (unique): Fix.
2111 * testsuite/25_algorithms/unique.cc: Move to unique/1.cc.
2112 * testsuite/25_algorithms/unique/11480.cc: New, from the PR.
2113 * testsuite/25_algorithms/unique/2.cc: New.
2114
42db0f21
PC
21152003-10-14 Paolo Carlini <pcarlini@unitus.it>
2116
2117 * src/localename.cc (_M_replace_categories, M_replace_facet):
2118 Const-ify a couple of variables.
2119
9dccaa6b
PR
21202003-10-14 Petur Runolfsson <peturr02@ru.is>
2121 Andreas Tobler <a.tobler@schweiz.ch>
2122
2123 * src/locale.cc (locale::_S_initialize): Workaround a confusion
2124 of the use of the gthr API when __gthread_active_p() returns true.
2125
a62e7311
PR
21262003-10-12 Petur Runolfsson <peturr02@ru.is>
2127 Paolo Carlini <pcarlini@unitus.it>
2128
2129 PR libstdc++/11460
2130 * src/strstream.cc (pbackfail): Fix to use to_int_type.
2131 * testsuite/backward/11460.cc: New, from the PR.
2132
f5677b15
PC
21332003-10-12 Paolo Carlini <pcarlini@unitus.it>
2134
2135 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2136 Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment.
2137 * include/bits/basic_string.tcc: Likewise.
2138 * include/bits/ios_base.h: Likewise.
2139 * include/bits/istream.tcc: Likewise.
2140 * include/bits/locale_facets.tcc: Likewise.
2141 * include/bits/ostream.tcc: Likewise.
2142 * include/bits/stl_function.h: Likewise.
2143 * include/bits/stl_multiset.h: Likewise.
2144 * include/bits/stl_pair.h: Likewise.
2145 * include/bits/stl_set.h: Likewise.
2146 * include/bits/streambuf_iterator.h
2147 * include/std/std_iosfwd.h: Likewise.
2148 * include/std/std_istream.h: Likewise.
2149 * include/std/std_sstream.h: Likewise.
2150 * include/std/std_streambuf.h: Likewise.
2151 * src/ios.cc: Likewise.
2152 * include/bits/c++config:
2153 Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1.
2154 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a
2155 dg-error directive due to removal of a blank line.
2156 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
2157
c411fdae
AT
21582003-10-12 Andreas Tobler <a.tobler@schweiz.ch>
2159 Paolo Carlini <pcarlini@unitus.it>
2160
2161 PR libstdc++/11844/11740 (cont)
2162 * config/os/generic/ctype_inline.h (ctype<char>::is):
2163 Generically, use a bitmasksize of 15 (instead of 10);
2164 Fix the logic to actually return (M & m) != 0 as per
2165 22.2.1.1.2.
2166
796d7a86
BI
21672003-10-11 Bernardo Innocenti <bernie@develer.com>
2168
2169 * crossconfig.m4 (*-uclinux*): New target.
2170 * configure: Regenerate.
2171
6b61bca4
PC
21722003-10-10 Paolo Carlini <pcarlini@unitus.it>
2173
2174 * include/bits/ostream.tcc (operator<<(basic_ostream&, _CharT))
2175 Avoid unnecessarily calling __builtin_alloca and dealing
2176 explicitly with width() smaller than zero.
2177 (operator<<(basic_ostream&, char), operator<<(basic_ostream&,
2178 const _CharT*), operator<<(basic_ostream<_CharT, _Traits>&,
2179 const char*), operator<<(basic_ostream<char, _Traits>&,
2180 const char*), operator<<(basic_ostream, const basic_string&)):
2181 Likewise.
2182
5aaa2108
BK
21832003-10-09 Benjamin Kosnik <bkoz@redhat.com>
2184
2185 * config/linker-map.gnu: Make more *_type_info bits visible.
2186 Move new/delete bits back into GLIBCXX space.
2187
2188 * include/bits/locale_classes.h: Move _M_id out of line, so that
2189 locale::id::_S_highwater can be removed from the export list.
2190 * src/locale.cc (locale::id::_M_id): Define.
2191
64833be0
AT
21922003-10-09 Andreas Tobler <a.tobler@schweiz.ch>
2193
2194 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_64 for
2195 SPARC64.
2196
2f800bcc
PC
21972003-10-09 Paolo Carlini <pcarlini@unitus.it>
2198
2199 PR libstdc++/11844
2200 * config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
2201 to conform to the requirements of 22.2.1.
2202 * config/os/bsd/freebsd/ctype_base.h: Likewise.
2203 * config/os/djgpp/ctype_base.h: Likewise.
2204 * config/os/generic/ctype_base.h: Likewise.
2205 * config/os/gnu-linux/ctype_base.h: Likewise.
2206 * config/os/hpux/ctype_base.h: Likewise.
2207 * config/os/irix/irix6.5/ctype_base.h: Likewise.
2208 * config/os/solaris/solaris2.6/ctype_base.h: Likewise.
2209 * config/os/solaris/solaris2.7/ctype_base.h: Likewise.
2210 * testsuite/22_locale/ctype/11844.cc: New.
2211
2212 * config/locale/generic/ctype_members.cc (do_is):
2213 Generically, use a bitmasksize of 15 (instead of 10), since
2214 we don't know the numerical encoding of the various categories
2215 in the underlying /usr/include/ctype.h.
2216
93d04686
BK
22172003-10-09 Benjamin Kosnik <bkoz@redhat.com>
2218
2219 * src/string-inst.cc: Prune.
2220 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2221 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2222
22232003-10-09 Petur Runolfsson <peturr02@ru.is>
2224
2225 * src/io-inst.cc: Don't include iostream.
2226 * include/bits/ios_base.h (ios_base::failure): Use string.
2227 * src/Makefile.am: Add ios_failure.cc.
2228 * src/Makefile.in: Regenerate.
2229 * src/ios.cc: Move ios_base::failure definitions to...
2230 * src/ios_failure.cc: ...here. New.
2231
1a139c59
PR
22322003-10-09 Petur Runolfsson <peturr02@ru.is>
2233
2234 PR libstdc++/9874
2235 * include/bits/fstream.tcc (basic_filebuf::seekoff):
2236 Move code needed for both seekoff and seekpos...
2237 (basic_filebuf::_M_seek): ...here. New function.
2238 (basic_filebuf::seekpos): Don't call seekoff, call _M_seek.
2239 * include/std/std_fstream.h (basic_filebuf::_M_seek): Declare it.
2240 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: New test.
2241
2242 * testsuite/22_locale/locale/cons/12438.cc: Increase memory limit.
2243
a761195b
PC
22442003-10-08 Paolo Carlini <pcarlini@unitus.it>
2245
2246 * include/bits/locale_facets.tcc: More minor cosmetic
2247 changes and const-ifications of some variables.
2248
905df1fb
PC
22492003-10-07 Paolo Carlini <pcarlini@unitus.it>
2250
2251 * include/bits/locale_facets.tcc: Minor cosmetic changes
2252 and const-ifications of some variables.
2253
2254 * include/bits/locale_facets.tcc
2255 (money_get::do_get(..., string_type&)): Simplify an if-else.
2256
ba9b12d1
PC
22572003-10-06 Paolo Carlini <pcarlini@unitus.it>
2258
2259 PR libstdc++/11740
2260 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
2261 Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
2262 * config/locale/generic/ctype_members.cc: Same.
2263 * testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.
2264
e4f7d0a1
PC
22652003-10-06 Paolo Carlini <pcarlini@unitus.it>
2266
2267 * include/bits/locale_facets.tcc (__pad<>::_S_pad):
2268 Improve performance-wise: avoid one traits::copy, avoid
2269 the __builtin_alloca, streamline.
2270
5b577977
PC
22712003-10-05 Paolo Carlini <pcarlini@unitus.it>
2272
2273 * include/bits/locale_facets.tcc
2274 (num_put::do_put(..., bool)): Prefer ?: to if-else.
2275 (time_get::_M_extract_name): Qualify min with std::.
2276 (__pad<>::_S_pad): Constify two variables; simplify an
2277 if-else statement factoring out some code.
2278
2279 * include/bits/locale_facets.tcc: Minor cosmetic changes.
2280
dff186db
PC
22812003-10-04 Paolo Carlini <pcarlini@unitus.it>
2282
2283 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
2284 Constify a couple of variables.
2285 (num_get::do_get(..., bool&)): Constify __c; prefer *__beg,
2286 ++__beg to *__beg++.
2287
2811b823
PC
22882003-10-04 Paolo Carlini <pcarlini@unitus.it>
2289 Petur Runolfsson <peturr02@ru.is>
2290
2291 * include/ext/stdio_sync_filebuf.h: Don't include the whole
2292 <fstream>, only <streambuf> and <cstdio>.
2293
184b434c
PC
22942003-10-04 Paolo Carlini <pcarlini@unitus.it>
2295
2296 PR libstdc++/12206
2297 * include/bits/fstream.tcc (imbue): In case a codecvt facet
2298 is not available, set _M_codecvt = 0.
2299 * testsuite/27_io/basic_filebuf/imbue/12206.cc: New.
2300
cafc7337
HB
23012003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de>
2302
2303 PR libstdc++/12451
2304 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info.
2305
bb1b12ec
BK
23062003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2307
2308 * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add.
2309 * src/locale.cc: Define.
2310 * src/localename.cc: Use it.
2311 * config/locale/generic/time_members.h: Same.
2312 * config/locale/gnu/messages_members.h: Same.
2313 * config/locale/gnu/time_members.h: Same.
2314
8dcaff28
PC
23152003-10-02 Paolo Carlini <pcarlini@unitus.it>
2316
2317 PR libstdc++/12232
2318 * include/bits/fstream.tcc (seekoff): Ignore the openmode
2319 argument; simplify.
2320 * config/io/basic_file_stdio.h (__basic_file<char>::seekoff,
2321 seekpos): Remove the openmode argument.
2322 * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff,
2323 seekpos): Remove redundant placeholder for the openmode argument.
2324 * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New.
2325 * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak.
2326 * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise.
2327 * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise.
2328 * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise.
2329
5c109a17
BK
23302003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2331
2332 * src/locale.cc (locale::_S_initialize): Use __gthread_active_p.
2333 (locale::facet::_S_get_c_locale): Same.
2334
8ae81136
BK
23352003-10-02 Benjamin Kosnik <bkoz@redhat.com>
2336
2337 * config/linker-map.gnu: Export _S_get_c_locale instead of
2338 _S_c_locale object.
2339
23402003-10-02 Petur Runolfsson <peturr02@ru.is>
2341
2342 * config/locale/generic/c_locale.cc
2343 (category_names, locale::_S_categories): Const qualify.
2344 * config/locale/gnu/c_locale.cc: Same.
2345 * config/locale/generic/time_members.h (__timepunct::__timepunct):
2346 Copy string contents before assigning to _M_name_timepunct,
2347 qualify strcpy and strlen with std::.
2348 * config/locale/gnu/time_members.h: Same.
2349 * config/locale/gnu/messages_members.h (messages::messages):
2350 Copy string contents before assigning to _M_name_messages,
2351 qualify strcpy and strlen with std::.
2352 * config/os/gnu-linux/ctype_noninline.h
2353 (ctype<char>::classic_table()): Don't call locale::classic().
2354 * include/bits/locale_classes.h
2355 (locale::_S_categories): Const qualify.
2356 (locale::_S_once, locale::_S_initialize_once,
2357 locale::facet::_S_once, locale::facet::_S_initialize_once,
2358 locale::facet::_S_get_c_locale): Declare.
2359 (locale::_S_initialize): Don't define.
2360 (locale::facet::_S_c_locale): Make private.
2361 (locale::facet::_S_c_name): Same, const qualify.
2362 (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused
2363 parameters, add throw() specifier.
2364 * include/bits/locale_facets.h (__timepunct::_M_name_timepunct,
2365 messages::_M_name_messages): Const qualify.
2366 * src/locale.cc
2367 (locale::_S_once, locale::facet::_S_once): Define.
2368 (locale::classic): Move initialization code...
2369 (locale::_S_initialize_once): ...here.
2370 (locale::_S_initialize): Call _S_initialize_once through
2371 __gthread_once.
2372 (locale::facet::_S_initialize_once): Initialize _S_c_locale.
2373 (locale::facet::_S_get_c_locale): Call _S_initialize_once through
2374 __gthread_once before returning _S_c_locale.
2375 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)):
2376 Drop unused parameters, add throw() specifier, don't initialize
2377 locale::facet::_S_c_locale and _S_c_name.
2378
2379 * config/locale/generic/messages_members.h:
2380 Replace _S_c_locale with _S_get_c_locale().
2381 * config/locale/gnu/c_locale.cc: Same.
2382 * config/locale/gnu/messages_members.h: Same.
2383 * config/locale/gnu/numeric_members.cc: Same.
2384 * config/locale/gnu/time_members.cc: Same.
2385 * config/os/gnu-linux/ctype_noninline.h: Same.
2386 * include/bits/locale_facets.h: Same.
2387 * include/bits/locale_facets.tcc: Same.
2388 * src/codecvt.cc: Same.
2389 * src/ctype.cc: Same.
2390
4a035cf7
CW
23912003-10-02 Carlo Wood <carlo@alinoe.com>
2392
2393 * include/bits/demangle.h (demangle<Allocator>::symbol(char const*)):
2394 Decode symbols that start with _GLOBAL_[ID]_ differently: the
2395 trailing part ends with a terminating zero and is not necessarily an
2396 encoding.
2397 * src/demangle.cc (): Same.
2398 * testsuite/demangle/regression/cw-13.cc: Adjust for new output.
2399
86b4ab73
PC
24002003-10-02 Paolo Carlini <pcarlini@unitus.it>
2401
2402 * testsuite/22_locale/locale/cons/12438.cc: Use
2403 __gnu_test::try_named_locale("").
2404
222a5b1d
RO
24052003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2406
2407 * linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0): Define.
2408 (GLIBCXX_CHECK_STDLIB_SUPPORT): Use it to test for lrand48
2409 instead of drand48.
2410 * acconfig.h (HAVE_DRAND48): Renamed to HAVE_LRAND48.
2411 * crossconfig.m4 (*-freebsd*): Define HAVE_LRAND48 instead of
2412 HAVE_DRAND48.
2413 * config.h.in, configure: Regenerate.
2414 * include/bits/stl_algo.h: Use _GLIBCXX_HAVE_LRAND48 to guard
2415 lrand48 use.
2416
e39dd1ce
NM
24172003-10-01 Nathan Myers <ncm@cantrip.org>
2418
2419 * include/bits/locale_facets.tcc (time_put::put): Avoid
2420 expensive *__s++, in favor of *__s, ++__s.
2421
530ce551
PC
24222003-10-01 Paolo Carlini <pcarlini@unitus.it>
2423
2424 * include/bits/locale_facets.tcc (time_put::put): Minor
2425 tweak to the previous commit.
2426
52a16d08
PC
24272003-10-01 Paolo Carlini <pcarlini@unitus.it>
2428
2429 PR libstdc++/12439
2430 * include/bits/locale_facets.tcc (time_put::put): Deal
2431 with the three issues pointed out by the PR.
2432 * testsuite/22_locale/time_put/put/char/12439_1.cc: New.
2433 * testsuite/22_locale/time_put/put/char/12439_3.cc: New.
2434 * testsuite/22_locale/time_put/put/wchar_t/12439_1.cc: New.
2435 * testsuite/22_locale/time_put/put/wchar_t/12439_2.cc: New.
2436 * testsuite/22_locale/time_put/put/wchar_t/12439_3.cc: New.
2437
ae7c3ba5
PC
24382003-09-30 Paolo Carlini <pcarlini@unitus.it>
2439
2440 * include/bits/stl_algo.h: Minor cosmetic reformattings.
2441
cbc6c296
PC
24422003-09-30 Paolo Carlini <pcarlini@unitus.it>
2443
2444 * include/bits/stl_algo.h (search_n): Tweak, to spare the
2445 first --__n.
2446
2ea247d3
PC
24472003-09-30 Paolo Carlini <pcarlini@unitus.it>
2448
2449 * testsuite/22_locale/locale/cons/12352.cc: Explicitly
2450 qualify exception name.
2451
155f6fbb
PC
24522003-09-30 Paolo Carlini <pcarlini@unitus.it>
2453
2454 PR libstdc++/12438
2455 * include/bits/locale_facets.tcc (locale::combine): Don't
2456 leak memory if _M_replace_facet throws.
2457 * testsuite/22_locale/locale/cons/12438.cc: New, from the PR.
2458
2459 * include/bits/locale_classes.h (locale::locale(const locale&,
2460 _Facet*)): Tweak, use consistently _M_remove_reference.
2461
70863cbd
PC
24622003-09-30 Paolo Carlini <pcarlini@unitus.it>
2463
2464 PR libstdc++/12352 (cont)
2465 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t)):
2466 Don't leak __cloc; don't leak if any of the _M_init_facet(...)
2467 calls fail.
2468 (locale::_Impl::_Impl(const _Impl&, size_t)): Tweak.
2469 (locale::_Impl::~_Impl): Don't do anything if !_M_facets,
2470 !_M_caches, !_M_names.
2471
51ac684e
RO
24722003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2473
2474 * configure.host: Handle Solaris 2.5 micro releases explicitly.
2475 Remove wildcards from Solaris 2.6, 7-9: there were no
2476 micro releases.
2477 Treat Solaris 10 and up like 7-9.
2478
6821a40b
PC
24792003-09-29 Paolo Carlini <pcarlini@unitus.it>
2480
2481 * include/bits/stl_algo.h (search_n): Improve the previous
2482 fix as suggested by Martin.
2483
e5012ba5
PC
24842003-09-29 Paolo Carlini <pcarlini@unitus.it>
2485
2486 PR libstdc++/12296
2487 * include/bits/istream.tcc (peek): Set eofbit if sgetc
2488 returns eof.
2489 * testsuite/27_io/basic_istream/peek/char/12296.cc:
2490 New, from the PR.
2491
24922003-09-29 Nathan Myers <ncm@cantrip.org>
2493 Paolo Carlini <pcarlini@unitus.it>
2494
2495 PR libstdc++/11400
2496 * include/bits/stl_algo.h (search_n):
2497 Use iterator_traits<>::difference_type for __n.
2498 * testsuite/25_algorithms/search_n/11400.cc: New, from the PR.
2499
6cd6aed7
PC
25002003-09-29 Paolo Carlini <pcarlini@unitus.it>
2501
2502 * testsuite/22_locale/locale/cons/12352.cc:
2503 Use __attribute__((unused)) for test.
2504
33b16690
UW
25052003-09-26 Ulrich Weigand <uweigand@de.ibm.com>
2506
2507 * testsuite/22_locale/time_put/put/char/2.cc (test_02): Allow either
2508 "Son" or "So" as abbreviated name for Sunday in de_DE locale.
2509 * testsuite/22_locale/time_put/put/wchar_t/2.cc (test_02): Likewise.
2510
2d07c3f5
BS
25112003-09-26 Brad Spencer <spencer@infointeractive.com>
2512
2513 * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc:
2514 Explicitly qualify exceptions.
2515 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same.
2516 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
2517 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
2518 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
2519
91675f9d
PC
25202003-09-25 Paolo Carlini <pcarlini@unitus.it>
2521
2522 PR libstdc++/12352
2523 * src/localename.cc (locale::_Impl::_Impl(const _Impl&,
2524 size_t)): Don't leak if memory allocations for _M_facets,
2525 _M_caches, and _M_names fail.
2526 (locale::_Impl::_Impl(const char*, size_t)): Ditto.
2527 (locale::_Impl::_M_replace_categories(const _Impl*,
2528 category)): Ditto.
2529 (locale::_Impl::_M_install_facet(const locale::id*,
2530 const facet*)): Ditto.
2531 * include/bits/locale_classes.h (locale::locale(const locale&,
2532 _Facet*)): Don't leak memory.
2533 * testsuite/22_locale/locale/cons/12352.cc: New, from the PR.
2534
2535 * src/localename.cc (locale::_Impl::_Impl(facet**, size_t,
2536 bool)): Qualify with std:: strcpy, tweak.
2537 * include/bits/locale_classes.h
2538 (locale::_Impl::_M_check_same_name): Qualify strcmp.
2539
2b1be54b
BS
25402003-09-25 Brad Spencer <spencer@infointeractive.com>
2541
2542 PR libstdc++/6072
775ee48e
BK
2543 * acinclude.m4: Split out checks for vfwscanf, vswscanf, vwscanf,
2544 wcstof, iswblank.
2b1be54b
BS
2545 * aclocal.m4: Regenerate.
2546 * config.h.in: Regenerate.
2547 * configure: Regenerate.
2548 * crossconfig.m4: Add in wchar_t bits for solaris crosses.
2549 * config/io/basic_file_stdio.cc: Guard unistd.h.
2550 * include/c_compatibility/wchar.h: Guard extra wchar_t functionality.
2551 * include/c_std/std_cwchar.h: Same.
2552 * include/c_std/std_cwctype.h: Same.
2553
465ad0c7
BK
25542003-09-25 Benjamin Kosnik <bkoz@redhat.com>
2555
775ee48e 2556 PR libstdc++/11065
465ad0c7
BK
2557 * config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is): Fix.
2558 * config/locale/generic/ctype_members.cc: Same.
2559 * testsuite/22_locale/ctype/is/char/1.cc: Initialize mask.
2560 * testsuite/22_locale/ctype/is/wchar_t/1.cc: Same.
2561
2562 * config/os/generic/ctype_inline.h: Update.
2563
7b865c36
UW
25642003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2565
2566 * src/Makefile.am (version_dep): New variable.
2567 (libstdc___la_DEPENDENCIES): Use it to add dependency on
2568 libstdc++-symbol.ver only when using symbol versioning.
2569 * src/Makefile.in: Regenerate.
2570
11f10e6b
BK
25712003-09-23 Benjamin Kosnik <bkoz@redhat.com>
2572
2573 * include/bits/locale_facets.tcc: Tweak to avoid warnings.
2574 * testsuite/testsuite_hooks.h: Same.
2575 * testsuite/*/*.cc: Same.
2576
89ec0c4b
PR
25772003-09-22 Petur Runolfsson <peturr02@ru.is>
2578
2579 * include/bits/istream.tcc (basic_istream::read,
2580 basic_istream::readsome, basic_istream::putback,
2581 basic_istream::unget, operator>>(basic_istream, CharT)):
2582 Avoid redundant setstate(failbit) calls when sentry::operator bool()
2583 returns false.
2584
dc25fbc7
CW
25852003-09-22 Carlo Wood <carlo@alinoe.com>
2586
2587 PR libstdc++/12365
2588 * include/bits/demangle.h (qualifier(int, cv_qualifier_nt,
2589 char const*, int, int)): Remove unused identifier
2590 cv_qualifier for overloaded constructor.
2591
b2bc3339
BK
25922003-09-18 Benjamin Kosnik <bkoz@redhat.com>
2593
2594 PR libstdc++/11504
2595 * acinclude.m4 (GLIBCXX_EXPORT_FLAGS): Add -Wcast-qual to
2596 WARN_FLAGS, remove -Wno-format.
2597 * aclocal.m4: Regenerate.
2598 * configure: Regenerate.
2599
0b5ce4f1
PR
26002003-09-18 Petur Runolfsson <peturr02@ru.is>
2601
2602 * config/io/basic_file_stdio.cc (sys_getc, sys_ungetc): Delete.
2603 * config/io/basic_file_stdio.h: Same.
2604 * include/std/std_fstream.h (__ctype_type): Delete.
2605 * include/std/std_streambuf.h (__ctype_type, __state_type): Delete.
2606
43892f8c
BK
26072003-09-17 Benjamin Kosnik <bkoz@redhat.com>
2608
2609 PR libstdc++/12239
2610 * configure.host (abi_baseline_pair): Error out on solaris2
2611 configurations without a minor version number.
2612
4bc8ae23
PE
26132003-09-13 Phil Edwards <phil@codesourcery.com>
2614
2615 * docs/doxygen/run_doxygen: Clear GENERATE_TAGFILE entirely
2616 if man pages are on.
2617 * docs/doxygen/user.cfg.in: And here.
2618
dbc66058
DJ
26192003-09-10 Daniel Jacobowitz <drow@mvista.com>
2620 Andreas Jaeger <aj@suse.de>
2621
2622 PR libstdc++/12189
2623 * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't build
2624 abi_check if cross compiling.
2625 * aclocal.m4: Regenerated.
2626 * configure: Regenerated.
2627
520abf69
JO
26282003-09-10 Jeffrey D. Oldham <oldham@codesourcery.com>
2629
2630 * libsupc++/vec.cc (__cxa_vec_new2): If the allocator returns
2631 NULL, return NULL. This reflects a C++ ABI change 2003 Sep 05.
2632 (__cxa_vec_new3): Likewise.
2633
8c8dec01
PR
26342003-09-10 Petur Runolfsson <peturr02@ru.is>
2635
2636 * include/bits/fstream.tcc (basic_filebuf::seekoff):
2637 Use codecvt::length to handle variable-width stateless encodings
2638 correctly.
2639 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/1.cc: New test.
2640 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/2.cc: New test.
2641
80e46d77
AM
26422003-09-10 Alan Modra <amodra@bigpond.net.au>
2643
2644 * config/io/basic_file_stdio.cc (_M_open_mode): Assign __p_mode
2645 rather than or'ing.
2646
e517f636
AM
26472003-09-09 Alan Modra <amodra@bigpond.net.au>
2648
2649 * configure: Regenerate.
2650
263594d2
DE
26512003-09-09 David Edelsohn <edelsohn@gnu.org>
2652
2653 * src/ios.cc (ios_base::Init::Init): Remove unnecessary
2654 qualifier from _S_synced_with_stdio.
2655
26562003-09-09 Bernardo Innocenti <bernie@develer.com>
e7f115de
BI
2657
2658 * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
2659
f1813b69
PR
26602003-09-04 Petur Runolfsson <peturr02@ru.is>
2661
2662 PR libstdc++/9028
2663 * include/bits/fstream.tcc
2664 (basic_filebuf::_M_destroy_internal_buffer): Destroy _M_ext_buf.
2665 (basic_filebuf::basic_filebuf): Initialize _M_ext_buf,
2666 _M_ext_buf_size, _M_ext_next and _M_ext_end.
2667 (basic_filebuf::underflow): Handle variable-width stateless
2668 encodings (codecvt::encoding() == 0), including UTF-8.
2669 * include/std/std_fstream.h (basic_filebuf):
2670 Declare _M_ext_buf, _M_ext_buf_size, _M_ext_next, _M_ext_end.
2671 * testsuite/27_io/basic_filebuf/underflow/wchar_t/1.cc: New test.
2672 * testsuite/27_io/basic_filebuf/underflow/wchar_t/2.cc: New test.
2673 * testsuite/27_io/basic_filebuf/underflow/wchar_t/3.cc: New test.
2674 * testsuite/27_io/basic_filebuf/underflow/wchar_t/4.cc: New test.
2675 * testsuite/27_io/basic_filebuf/underflow/wchar_t/5.cc: New test.
2676 * testsuite/27_io/objects/wchar_t/12.cc: New test.
2677 * testsuite/27_io/objects/wchar_t/13.cc: New test.
2678
7976070c
JW
26792003-09-04 Jonathan Wakely <redi@gcc.gnu.org>
2680
2681 * docs/html/faq/index.html: Note that a namespace alias can't be
2682 used when specialising templates in extension namespace.
2683 * docs/html/faq/index.txt: Regenerate.
2684
149639d4
PR
26852003-09-03 Petur Runolfsson <peturr02@ru.is>
2686
2687 PR libstdc++/12048
2688 * include/ext/stdio_sync_filebuf.h
2689 (stdio_sync_filebuf::_M_unget_buf): Declare it.
2690 (stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
2691 (stdio_sync_filebuf::uflow): Store the returned character in
2692 _M_unget_buf.
2693 (stdio_sync_filebuf::pbackfail): If argument is eof(), pass
2694 _M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
2695 (stdio_sync_filebuf<char>::xsgetn): Store last read character in
2696 _M_unget_buf, if any, else eof().
2697 (stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
2698 _M_unget_buf, if any, else eof().
2699 * testsuite/27_io/objects/char/12048.cc: Rename to...
2700 * testsuite/27_io/objects/char/12048-1.cc: ...this.
2701 * testsuite/27_io/objects/char/12048-2.cc: New test.
2702 * testsuite/27_io/objects/char/12048-3.cc: New test.
2703 * testsuite/27_io/objects/char/12048-4.cc: New test.
2704 * testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
2705 * testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
2706 * testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
2707 * testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
2708 * testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
2709 * testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
2710 * testsuite/ext/stdio_sync_filebuf_char.cc
2711 (test02, test03, test04, test05): New tests.
2712 * testsuite/ext/stdio_sync_filebuf_wchar_t.cc
2713 (test02, test03, test04, test05): New tests.
2714
27152003-09-03 Petur Runolfsson <peturr02@ru.is>
2716
2717 * docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
2718 stringbuf or strstreambuf. Fix typos.
2719
3660e02f
PE
27202003-09-02 Phil Edwards <phil@codesourcery.com>
2721
2722 * acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
2723 appropriately.
2724 * config.h.in: Add _GLIBCXX_HOSTED.
2725 * libsupc++/eh_term_handler.cc: Test it here; initialize
2726 __terminate_handler to std::abort if freestanding.
2727 * aclocal.m4, configure: Regenerated.
2728 * docs/html/configopts.html: Document --disable-hosted-libstdcxx.
2729
a3aff86a
NM
27302003-08-29 Nathan Myers <ncm@cantrip.org>
2731
2732 PR libstdc++/11990
2733 * include/bits/locale_facets.tcc (__pad): delete dead code.
2734
f5cf58dd
AM
27352003-08-28 Alan Modra <amodra@bigpond.net.au>
2736
2737 * configure.ac: Test $with_cross_host against $build_alias, not $build.
2738 * configure: Regenerate.
2739
3bedd161
PR
27402003-08-27 Petur Runolfsson <peturr02@ru.is>
2741
2742 * testsuite/27_io/objects/wchar_t/10.cc: Move wcout stuff...
2743 * testsuite/27_io/objects/wchar_t/11.cc: ...here. New file.
2744
ca618b60
PE
27452003-08-27 Phil Edwards <pme@gcc.gnu.org>
2746
2747 * Makefile.am: Remove trailing whitespace. Remove needless
2748 "foo = @foo@" assignments. Replace direct uses of @foo@ with $(foo).
2749 * include/Makefile.am: Likewise.
2750 * libmath/Makefile.am: Likewise.
2751 * libsupc++/Makefile.am: Likewise.
2752 * po/Makefile.am: Likewise.
2753 * src/Makefile.am: Likewise.
2754 * testsuite/Makefile.am: Likewise.
2755
2756 * Makefile.in, include/Makefile.in, libmath/Makefile.in,
2757 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2758 testsuite/Makefile.in: Regenerated.
2759
37e0ff11
PE
27602003-08-27 Phil Edwards <pme@gcc.gnu.org>
2761
2762 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Change quoting of
2763 includedir.
2764 * aclocal.m4, configure: Regenerate.
2765
72730fdb
DJ
27662003-08-27 Daniel Jacobowitz <drow@mvista.com>
2767
2768 * acinclude.m4: Include no-executables.m4.
2769 * configure.ac: Uncomment GCC_NO_EXECUTABLES.
2770 * aclocal.m4: Regenerated.
2771 * configure: Regenerated.
2772
ec0d7421
DJ
27732003-08-27 Daniel Jacobowitz <drow@mvista.com>
2774
2775 * acinclude.m4: Don't call AC_ISC_POSIX.
2776 * aclocal.m4: Regenerated.
2777 * configure: Regenerated.
2778
92eabea2
PE
27792003-08-27 Phil Edwards <pme@gcc.gnu.org>
2780
2781 * acinclude.m4 (GLIBCXX_CONDITIONAL): New macro. Wrap
2782 AM_CONDITIONAL. Replace all calls to AM_CONDITIONAL with this one.
2783 (GLIBCXX_ENABLE_HOSTED): New macro, sets new variable is_hosted,
2784 used elsewhere in this file.
2785 (GLIBCXX_EVALUATE_CONDITIONALS): New macro...
2786 * configure.ac: ...called here to expand all conditionals.
2787 * Makefile.am: Conditionalize SUBDIRS on GLIBCXX_HOSTED.
2788 * include/Makefile.am: Remove redundant gxx_include_dir assignment.
2789 (install-freestanding-headers): New target, a subset of
2790 install-headers. Conditionalize install-data-local on GLIBCXX_HOSTED.
2791
2792 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2793 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2794 src/Makefile.in, testsuite/Makefile.in: Regenerated.
2795
a43d13fb
PE
27962003-08-26 Phil Edwards <pme@gcc.gnu.org>
2797
2798 * docs/doxygen/run_doxygen: Shell fixes. Remove hardcoded local
2799 pathnames from generated tag file.
2800
82ba99d5
PE
28012003-08-26 Phil Edwards <pme@gcc.gnu.org>
2802
2803 * Makefile.am: Add comment.
2804 * acinclude.m4 (GLIBCXX_CONFIGURE): Set new glibcxx_SUBDIRS and
2805 SUBDIRS variables.
2806 * configure.ac: Use them both here, instead of hardcoded lists.
2807
2808 * fragment.am: Add STAMP varaible.
2809 * include/Makefile.am: Cosmetic whitespace cleanup. Use $(LN_S)
2810 instead of @LN_S@.
2811 (stamp-*): Move file creation rule outside of 'if' branches to
2812 ensure the stamp-* files are actually updated. Use $(STAMP).
2813 * src/Makefile.am: Remove now-nonexistant variable.
2814 * libsupc++/Makefile.am: Likewise. Snap the assignment chain
2815 for -prefer-pic.
2816 * po/Makefile.am: Include same fragment as all the others.
2817
2818 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2819 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in: Regenerated.
2820
73780bfe
LR
28212003-08-26 Loren J. Rittle <ljrittle@acm.org>
2822
2823 * testsuite/data/cin_unget-1.txt: New.
2824 * testsuite/27_io/objects/char/12048.cc: New.
2825
7e2055ec
ZW
28262003-08-25 Zack Weinberg <zack@codesourcery.com>
2827
2828 * config/os/hpux/os_defines.h: Unconditionally define
2829 _GLIBCXX_GTHREAD_USE_WEAK to 0.
2830
a6f3e253
GK
28312003-08-19 Geoffrey Keating <geoffk@apple.com>
2832
2833 * crossconfig.m4 (*-darwin*): Add a large and boring stanza for
2834 crosses to Darwin targets.
2835 * configure: Regenerate.
2836
1b391ba9
PR
28372003-08-19 Petur Runolfsson <peturr02@ru.is>
2838
7e2055ec
ZW
2839 * include/ext/ropeimpl.h: #include <ostream> instead of <iostream>
2840
77e862fa
PE
28412003-08-17 Phil Edwards <pme@gcc.gnu.org>
2842
2843 * configure.ac: GCC_NO_EXECUTABLES was supposed to be commented
2844 in the patch from 3 minutes ago. Boy, is my face red.
2845 * configure: At least I remembered to regenerate this.
2846
0df3f383
PE
28472003-08-17 Phil Edwards <pme@gcc.gnu.org>
2848
2849 * acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
2850 and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
2851 things from the top level.
2852 * configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
2853 Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
2854 (currently unused). Strip the fake-VPATH shell fragment from
2855 automake-generated rules, if present.
2856 * linkage.m4: Add comment.
2857
2858 * fragment.am: New file, containing factored-out common settings.
2859 (AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
2860 * Makefile.am: Include fragment.am. Remove common variables.
2861 * include/Makefile.am: Likewise.
2862 * libmath/Makefile.am: Likewise.
2863 * libsupc++/Makefile.am: Likewise.
2864 * po/Makefile.am: Likewise. Print rules during check.
2865 * src/Makefile.am: Likewise.
2866 * testsuite/Makefile.am: Likewise.
2867
2868 * aclocal.m4, configure, Makefile.in, include/Makefile.in,
2869 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
2870 src/Makefile.in, testsuite/Makefile.in: Regenerate.
2871
e885821f
JL
28722003-08-11 John Levon <levon@movementarian.org>
2873
2874 * docs/html/ext/howto/guide.html (GLIBCXX_FORCE_NEW): Update
2875 remaining places for the name change from GLIBCPP_FORCE_NEW
2876 to GLIBCXX_FORCE_NEW
2877
2803847d
BK
28782003-08-11 Benjamin Kosnik <bkoz@redhat.com>
2879
2880 * include/bits/basic_ios.h: Remove *_iter typedefs, change num*
7e2055ec 2881 typedefs to num_*.
2803847d
BK
2882 * include/bits/basic_ios.tcc: Same.
2883 * include/bits/istream.tcc: Same.
2884 * include/bits/locale_facets.h: Same.
2885 * include/bits/ostream.tcc: Same.
2886 * include/std/std_istream.h: Same.
2887 * include/std/std_ostream.h: Same.
2888 * testsuite/26_numerics/complex_inserters_extractors.cc: Fix.
2889
2890 * include/ext/rope: Remove build warning.
7e2055ec 2891
51c1f3c9
AJ
28922003-08-11 Andreas Jaeger <aj@suse.de>
2893
2894 * include/Makefile.am (stamp-c_base): Add dependency on stamp-bits
2895 to make SMP-safe.
2896 * include/Makefile.in: Regenerated.
2897
f6dda651
PE
28982003-08-11 Phil Edwards <pme@gcc.gnu.org>
2899
2900 * acinclude.m4 (GLIBCXX_CONFIGURE): Unprecious CC and CFLAGS
2901 when calling AC_PROG_CC.
2902 * aclocal.m4, configure: Regenerate.
2903
fbe057bb
PE
29042003-08-11 Phil Edwards <pme@gcc.gnu.org>
2905
2906 * acinclude.m4: Properly quote variable which will be expanded
2907 inside makefiles. Use CXX instead of CC to extract compiler info.
2908 * configure.ac (AC_INIT): Use the new 4-arg form to finally get the
2909 correct form in PACKAGE.
2910 * aclocal.m4, configure: Regenerate.
2911
258e7dbc
BK
29122003-08-08 Benjamin Kosnik <bkoz@redhat.com>
2913
2914 * testsuite/Makefile.am (check-abi): Change libstdc++-v3 to libstdc++.
2915 (check-abi-verbose): Same.
2916 * testsuite/testsuite_performance.h (report_performance): Same.
7e2055ec 2917
3e083bea
LR
29182003-08-08 Loren J. Rittle <ljrittle@acm.org>
2919
2920 * testsuite/testsuite_performance.h (__FreeBSD__): Add fake mallinfo.
2921
5a9ed693
DG
29222003-08-07 Doug Gregor <dgregor@apple.com>
2923
7e2055ec
ZW
2924 * include/bits/char_traits.h (char_traits::not_eof): Match operand
2925 types in ? :.
5a9ed693 2926
4e9ebd4b
BI
29272003-08-07 Bernardo Innocenti <bernie@develer.com>
2928
2929 PR libstdc++/11784
2930 * libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
2931 Replace variants with new BSET-based version.
7e2055ec 2932
a9ebaa2b
CW
29332003-08-07 Carlo Wood <carlo@alinoe.com>
2934
0df3f383 2935 * include/bits/demangle.h: Do not use cctype functions that depend
a9ebaa2b 2936 on locale.
7e2055ec 2937
8b171e55
PE
29382003-08-05 Phil Edwards <pme@gcc.gnu.org>
2939
2940 * configure.in: Rename...
2941 * configure.ac: ...to this.
2942 * docs/html/17_intro/porting.texi: Update name.
2943
2944 * docs/html/17_intro/porting.html: Regenerate.
2945 * config.h.in, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2946 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2947 testsuite/Makefile.in: Regenerate (picks up new dependancy).
2948
1260d70f
PE
29492003-08-05 Phil Edwards <pme@gcc.gnu.org>
2950
2951 * acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Put down the crack
2952 pipe, open the window to let out the fumes, redo the option-handling
2953 logic to properly execute the detection test.
2954 * aclocal.m4, configure: Regenerate.
2955
ff66d28f
PE
29562003-08-04 Phil Edwards <pme@gcc.gnu.org>
2957
2958 Convert to new autotools.
2959 * acconfig.h: Update with correct names.
2960 * configure.host (ATOMICITYH): Rename to atomicity_include_dir.
2961 (qnx6.[12]*): 'q' comes before 's', not after 'w'.
2962 * configure.in: Update. Split hardcoded cross-configury settings
2963 out to...
2964 * crossconfig.m4: ...here. New file. Contents untouched.
2965 * acinclude.m4: Reorganize and rewrite as needed. Split large
2966 chunks out to...
2967 * linkage.m4: ...here. New file. Math and stdlib linkage tests.
2968 Contents untouched.
2969 * scripts/testsuite_flags.in: Update.
2970
2971 * Makefile.am: Remove unneeded AUTOMAKE_OPTIONS settings and other
2972 variables (already generated by automake).
2973 * include/Makefile.am: Ditto.
2974 * libmath/Makefile.am: Ditto.
2975 * libsupc++/Makefile.am: Ditto.
2976 * po/Makefile.am: Ditto.
2977 * src/Makefile.am: Ditto.
2978
2979 * aclocal.m4: Regenerate using new versions.
2980 * config.h.in: Ditto.
2981 * configure: Ditto.
2982 * Makefile.in: Ditto.
2983 * include/Makefile.in: Ditto.
2984 * libmath/Makefile.in: Ditto.
2985 * libsupc++/Makefile.in: Ditto.
2986 * po/Makefile.in: Ditto.
2987 * src/Makefile.in: Ditto.
2988 * testsuite/Makefile.in: Ditto.
2989
5e7c251d
PE
29902003-08-04 Phil Edwards <pme@gcc.gnu.org>
2991
2992 * po/libstdc++.pot: Re-extract/regenerate.
2993
caf21254
PE
29942003-08-04 Phil Edwards <pme@gcc.gnu.org>
2995
2996 * testsuite/Makefile.am (DEJATOOL,EXPECT,RUNTEST,RUNTESTFLAGS):
2997 Remove unneeded variable assignments. Leave them for automake.
2998 * testsuite/lib/libstdc++-v3.exp: Rename...
2999 * testsuite/lib/libstdc++.exp: ...to this. Adjust function names
3000 accordingly.
3001 * testsuite/libstdc++-v3.dg/dg.exp: Rename...
3002 * testsuite/libstdc++-dg/normal.exp: ...to this. Adjust function
3003 names accordingly.
3004
f7ab5fa4
PE
30052003-08-04 Phil Edwards <pme@gcc.gnu.org>
3006
3007 * docs/doxygen/guide.html: run_doxygen uses bash.
3008 * docs/doxygen/mainpage.html: We'll be shipping tag files.
3009 * docs/doxygen/run_doxygen: Tweaks and improvements.
3010 * docs/doxygen/user.cfg.in: Set GENERATE_TAGFILE.
3011 * docs/html/install.html: Update autoconf/automake requirements.
3012 * docs/html/test.html: Add section describing DejaGNU support.
3013 * docs/html/17_intro/confdeps.dot: New file, generates...
3014 * docs/html/17_intro/confdeps.png: ...this new file.
3015 * docs/html/Makefile: Generated here.
3016 * docs/html/17_intro/configury.html: New file.
3017
b3f2a032
PE
30182003-07-31 Phil Edwards <pme@gcc.gnu.org>
3019
3020 * testsuite/lib/libstdc++-v3-dg.exp: Rename...
3021 * testsuite/lib/libstdc++-v3.exp: ...to this.
3022 * testsuite/libstdc++-v3.dg/dg.exp: No special case needed now.
3023
e64a227a
DG
30242003-07-31 Doug Gregor <dgregor@apple.com>
3025
3026 Add user specialization tests.
3027 * testsuite/23_containers/deque/1.cc: New.
3028 * testsuite/23_containers/list/1.cc: New.
3029 * testsuite/23_containers/map/1.cc: New.
3030 * testsuite/23_containers/multimap/1.cc: New.
3031 * testsuite/23_containers/multiset/1.cc: New.
3032 * testsuite/23_containers/set/1.cc: New.
3033 * testsuite/23_containers/vector/1.cc: New.
7e2055ec 3034
17472bb6
BK
30352003-07-31 Benjamin Kosnik <bkoz@redhat.com>
3036
3037 Reshuffle 23_containers testsuite.
7e2055ec 3038 * 23_containers/adaptors.cc, bitset_ctor.cc,bitset_members.cc,
17472bb6
BK
3039 bitset_shift.cc, deque_ctor.cc, deque_operators.cc,
3040 list_capacity.cc, list_ctor.cc, list_modifiers.cc, list_operators.cc,
3041 map_insert.cc, map_operators.cc, map_operators_neg.cc, multiset.cc,
3042 set_operators_neg.cc, vector_bool.cc, vector_capacity.cc,
3043 vector_ctor.cc, vector_element_access.cc, vector_modifiers.cc,
3044 vector_resize.cc: Split into...
3045 * 23_containers/bitset/cons/1.cc: New.
3046 * 23_containers/bitset/cons/6282.cc: New.
3047 * 23_containers/bitset/count/6124.cc: New.
3048 * 23_containers/bitset/operations/1.cc: New.
3049 * 23_containers/bitset/operations/2.cc: New.
3050 * 23_containers/bitset/test/1.cc: New.
3051 * 23_containers/bitset/to_ulong/1.cc: New.
3052 * 23_containers/deque/cons/1.cc: New.
3053 * 23_containers/deque/cons/2.cc: New.
3054 * 23_containers/deque/operators/1.cc: New.
3055 * 23_containers/list/capacity/1.cc: New.
3056 * 23_containers/list/cons/1.cc: New.
3057 * 23_containers/list/cons/2.cc: New.
3058 * 23_containers/list/cons/3.cc: New.
3059 * 23_containers/list/cons/4.cc: New.
3060 * 23_containers/list/cons/5.cc: New.
3061 * 23_containers/list/cons/6.cc: New.
3062 * 23_containers/list/cons/7.cc: New.
3063 * 23_containers/list/cons/8.cc: New.
3064 * 23_containers/list/cons/9.cc: New.
3065 * 23_containers/list/modifiers/1.cc: New.
3066 * 23_containers/list/modifiers/2.cc: New.
3067 * 23_containers/list/modifiers/3.cc: New.
3068 * 23_containers/list/operators/1.cc: New.
3069 * 23_containers/list/operators/2.cc: New.
3070 * 23_containers/list/operators/3.cc: New.
3071 * 23_containers/list/operators/4.cc: New.
3072 * 23_containers/map/insert/1.cc: New.
3073 * 23_containers/map/operators/1.cc: New.
3074 * 23_containers/map/operators/1_neg.cc: New.
3075 * 23_containers/multiset/insert/1.cc: New.
3076 * 23_containers/priority_queue/members/7161.cc: New.
3077 * 23_containers/queue/members/7157.cc: New.
3078 * 23_containers/set/operators/1_neg.cc: New.
3079 * 23_containers/stack/members/7158.cc: New.
3080 * 23_containers/vector/bool/1.cc: New.
3081 * 23_containers/vector/bool/6886.cc: New.
3082 * 23_containers/vector/capacity/1.cc: New.
3083 * 23_containers/vector/capacity/2.cc: New.
3084 * 23_containers/vector/capacity/8230.cc: New.
3085 * 23_containers/vector/cons/1.cc: New.
3086 * 23_containers/vector/cons/2.cc: New.
3087 * 23_containers/vector/cons/3.cc: New.
3088 * 23_containers/vector/cons/4.cc: New.
3089 * 23_containers/vector/cons/6513.cc: New.
3090 * 23_containers/vector/element_access/1.cc: New.
3091 * 23_containers/vector/modifiers/1.cc: New.
3092 * 23_containers/vector/modifiers/2.cc: New.
3093 * 23_containers/vector/resize/1.cc: New.
7e2055ec 3094
515aab7c
RO
30952003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3096
3097 * testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
3098 dg-options.
3099 * testsuite/thread/pthread2.cc: Likewise.
3100 * testsuite/thread/pthread3.cc: Likewise.
3101 * testsuite/thread/pthread4.cc: Likewise.
3102 * testsuite/thread/pthread5.cc: Likewise.
3103 * testsuite/thread/pthread6.cc: Likewise.
3104 * testsuite/thread/pthread7-rope.cc: Likewise.
3105
1051c718
PE
31062003-07-30 Phil Edwards <pme@gcc.gnu.org>
3107
3108 * include/bits/c++config: Partial reversion (comment placement) of
3109 previous patch.
3110
5f697f7a
BK
31112003-07-30 Benjamin Kosnik <bkoz@redhat.com>
3112
3113 * include/bits/c++config (_GLIBCXX_FULLY_COMPLIANT_HEADERS): Remove.
3114 (_GLIBCXX_NO_TEMPLATE_EXPORT): To _GLIBCXX_EXPORT_TEMPLATE.
3115 (_GLIBCXX_AT_AT): Remove.
3116 (__USE_MALLOC): Remove.
3117 * include/std/std_fstream.h: Modify.
3118 * include/bits/basic_ios.h: Same.
3119 * include/bits/valarray_array.h: Same.
3120 * include/c_std/std_cmath.h: Same.
3121 * include/c_std/cmath.tcc: Same.
3122 * include/std/std_vector.h: Same.
3123 * include/std/std_string.h: Same.
3124 * include/std/std_stack.h: Same.
3125 * include/std/std_queue.h: Same.
3126 * include/std/std_list.h: Same.
3127 * include/std/std_deque.h: Same.
3128 * include/std/std_streambuf.h: Same.
3129 * include/std/std_sstream.h: Same.
3130 * include/std/std_ostream.h: Same.
3131 * include/std/std_istream.h: Same.
3132 * include/bits/valarray_array.tcc: Same, format.
3133
3134 * include/c/std_cctype.h: Fix include guards.
3135 * include/c/std_cerrno.h: Same.
3136 * include/c/std_cfloat.h: Same.
3137 * include/c/std_climits.h: Same.
3138 * include/c/std_clocale.h: Same.
3139 * include/c/std_cmath.h: Same.
3140 * include/c/std_csetjmp.h: Same.
3141 * include/c/std_csignal.h: Same.
3142 * include/c/std_cstdarg.h: Same.
3143 * include/c/std_cstddef.h: Same.
3144 * include/c/std_cstdio.h: Same.
3145 * include/c/std_cstdlib.h: Same.
3146 * include/c/std_cstring.h: Same.
3147 * include/c/std_ctime.h: Same.
3148 * include/c/std_cwchar.h: Same.
3149 * include/c/std_cwctype.h: Same.
3150 * include/c_std/cmath.tcc: Same.
3151 * include/c_std/std_cmath.h: Same.
7e2055ec 3152
b4c70e89
GB
31532003-07-30 Gawain Bolton <gp.bolton@computer.org>
3154
7e2055ec 3155 PR libstdc++/11504.
b4c70e89
GB
3156 * include/bits/stl_tree.h: Replace C-style casts with C++-style
3157 casts. Changes to avoid casting away constness. Eliminate
3158 _Rb_tree_base_iterator class. Change _Rb_tree_iterator to use
3159 initialization lists. Move out implementation of __black_count()
3160 to...
7e2055ec
ZW
3161 * src/stl_tree.cc: ...here and rename _Rb_tree_black_count().
3162 Rename_Rb_tree_base_iterator::_M_increment() to
3163 _Rb_tree_increment and _Rb_tree_base_iterator::_M_decrement() to
3164 _Rb_tree_decrement.
3165 * config/linker-map.gnu: Add and change symbols here.
b4c70e89 3166
48b3222d
JW
31672003-07-30 Jonathan Wakely <redi@gcc.gnu.org>
3168
3169 * docs/html/22_locale/howto.html: Use locale::classic() instead
3170 of locale("C").
3171
cb584bcf
BK
31722003-07-28 Benjamin Kosnik <bkoz@redhat.com>
3173
3174 * testsuite/testsuite_hooks.h: Remove list include.
3175 (func_callback): Define as unique type, not std::list.
3176 Change DEBUG_ASSERT to _GLIBCXX_ASSERT.
3177 * testsuite/libstdc++-v3.dg/dg.exp: Same.
3178 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Same.
7e2055ec 3179 * testsuite/23_containers/bitset_ctor.cc:
cb584bcf
BK
3180 * testsuite/17_intro/header_ciso646.cc: Remove DEBUG_ASSERT.
3181 * testsuite/18_support/numeric_limits.cc: Same.
3182 * testsuite/21_strings/basic_string/append/char/1.cc: Same.
3183 * testsuite/21_strings/basic_string/append/wchar_t/1.cc: Same.
3184 * testsuite/21_strings/basic_string/compare/char/1.cc: Same.
3185 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Same.
3186 * testsuite/21_strings/basic_string/element_access/char/1.cc: Same.
3187 * testsuite/21_strings/basic_string/element_access/char/2.cc: Same.
3188 * testsuite/21_strings/basic_string/element_access/char/3.cc: Same.
3189 * testsuite/21_strings/basic_string/element_access/wchar_t/1.cc: Same.
3190 * testsuite/21_strings/basic_string/element_access/wchar_t/2.cc: Same.
3191 * testsuite/21_strings/basic_string/element_access/wchar_t/3.cc: Same.
3192 * testsuite/21_strings/basic_string/find/char/1.cc: Same.
3193 * testsuite/21_strings/basic_string/find/char/2.cc: Same.
3194 * testsuite/21_strings/basic_string/find/char/3.cc: Same.
3195 * testsuite/21_strings/basic_string/find/wchar_t/1.cc: Same.
3196 * testsuite/21_strings/basic_string/find/wchar_t/2.cc: Same.
3197 * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Same.
3198 * testsuite/21_strings/basic_string/insert/char/1.cc: Same.
3199 * testsuite/21_strings/basic_string/insert/char/2.cc: Same.
3200 * testsuite/21_strings/basic_string/insert/wchar_t/1.cc: Same.
3201 * testsuite/21_strings/basic_string/insert/wchar_t/2.cc: Same.
7e2055ec
ZW
3202 * testsuite/21_strings/basic_string/inserters_extractors/char/1.cc:
3203 * testsuite/21_strings/basic_string/inserters_extractors/char/4.cc:
3204 * testsuite/21_strings/basic_string/inserters_extractors/char/5.cc:
3205 * testsuite/21_strings/basic_string/inserters_extractors/char/6.cc:
3206 * testsuite/21_strings/basic_string/inserters_extractors/char/7.cc:
3207 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/1.cc:
3208 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/4.cc:
3209 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/5.cc:
3210 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/6.cc:
3211 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/7.cc:
cb584bcf
BK
3212 * testsuite/21_strings/basic_string/operators/char/1.cc: Same.
3213 * testsuite/21_strings/basic_string/operators/char/2.cc: Same.
3214 * testsuite/21_strings/basic_string/operators/wchar_t/1.cc: Same.
3215 * testsuite/21_strings/basic_string/operators/wchar_t/2.cc: Same.
3216 * testsuite/21_strings/basic_string/replace/char/1.cc: Same.
3217 * testsuite/21_strings/basic_string/replace/wchar_t/1.cc: Same.
3218 * testsuite/21_strings/basic_string/rfind/char/1.cc: Same.
3219 * testsuite/21_strings/basic_string/rfind/char/2.cc: Same.
3220 * testsuite/21_strings/basic_string/rfind/char/3.cc: Same.
3221 * testsuite/21_strings/basic_string/rfind/wchar_t/1.cc: Same.
3222 * testsuite/21_strings/basic_string/rfind/wchar_t/2.cc: Same.
3223 * testsuite/21_strings/basic_string/rfind/wchar_t/3.cc: Same.
3224 * testsuite/21_strings/basic_string/substr/char/1.cc: Same.
3225 * testsuite/21_strings/basic_string/substr/wchar_t/1.cc: Same.
3226 * testsuite/23_containers/bitset_ctor.cc: Same.
3227 * testsuite/23_containers/bitset_shift.cc: Same.
3228 * testsuite/23_containers/vector_ctor.cc: Same.
3229 * testsuite/23_containers/vector_element_access.cc: Same.
3230 * testsuite/24_iterators/istreambuf_iterator.cc: Same.
3231 * testsuite/24_iterators/iterator.cc: Same.
3232 * testsuite/24_iterators/ostreambuf_iterator.cc: Same.
3233 * testsuite/25_algorithms/lower_bound.cc: Same.
3234 * testsuite/26_numerics/complex_inserters_extractors.cc: Same.
3235 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc: Same.
3236 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc: Same.
3237 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc: Same.
3238 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc: Same.
3239 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc: Same.
3240 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc: Same.
3241 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc: Same.
3242 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc: Same.
3243 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc: Same.
7e2055ec
ZW
3244 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3245 Same.
3246
1cb1de7e
PE
32472003-07-28 Phil Edwards <pme@gcc.gnu.org>
3248
3249 * docs/doxygen/user.cfg.in, docs/html/abi.txt, docs/html/debug.html,
3250 docs/html/test.html, docs/html/17_intro/headers_cc.txt,
3251 docs/html/17_intro/howto.html, docs/html/ext/howto.html: Change
3252 GLIBCPP to GLIBCXX (and explain as needed).
3253
6dfe0fc9
PE
32542003-07-28 Phil Edwards <pme@gcc.gnu.org>
3255
3256 * README: Update.
3257
2cb1c928
PE
32582003-07-28 Phil Edwards <pme@gcc.gnu.org>
3259
3260 * testsuite/22_locale/messages/members/char/1.cc,
3261 testsuite/22_locale/messages/members/char/2.cc,
3262 testsuite/22_locale/messages/members/char/3.cc,
3263 testsuite/22_locale/messages_byname/1.cc: Update comment regarding
3264 the origin of LOCALEDIR.
3265 * testsuite/lib/libstdc++-v3.exp: New file.
3266
b66ea7d4
BK
32672003-07-25 Benjamin Kosnik <bkoz@redhat.com>
3268
3269 * include/bits/char_traits.h: Update copyright, tweak.
e884d397 3270 * testsuite/ext/pod_char_traits.cc: Explicitly qualify namespace
b66ea7d4
BK
3271 std types.
3272
d5ff4e3f
MA
32732003-07-24 Matt Austern <austern@apple.com>
3274
3275 * /include/bits/char_traits.h (class char_traits): Put all the
3276 real work into the new class template __gnu_cxx::char_traits.
3277 Gave generic definitions for member functions. Types are taken
3278 from the new class template __gnu_cxx::_Char_types.
3279 * testsuite/21_strings/char_traits/requirements/short/1.cc: New
3280 file. Test of std::char_traits<short>, which serves as a test of
3281 the char_traits primary template.
3282
aecf642c
BK
32832003-07-24 Benjamin Kosnik <bkoz@redhat.com>
3284
3285 * testsuite/*: Change __gnu_cxx_test to __gnu_test.
3286
32872003-07-24 Nathan Myers <ncm-nospam@cantrip.org>
d7541133 3288
7e2055ec
ZW
3289 * testsuite/23_containers/map_operators.cc: Conform to
3290 container requirement as value must be Assignable.
d7541133 3291
118545ec
AO
32922003-07-23 Alexandre Oliva <aoliva@redhat.com>
3293
3294 * acinclude.m4 (GLIBCXX_ENABLE_PCH): Rework test such that it
3295 tests not only generation of pch files, but also their use.
3296 * aclocal.m4, configure: Rebuilt.
3297
ff89cb01
SE
32982003-07-23 Steve Ellcey <sje@cup.hp.com>
3299
3300 * config/cpu/hppa/atomicity.h: Change
3301 _GLIBCXX_INST_GLIBCXX_ATOMICITY_LOCK to _GLIBCXX_INST_ATOMICITY_LOCK
3302 to match misc-inst.cc
3303
1143680e
SE
33042003-07-23 Steve Ellcey <sje@cup.hp.com>
3305
3306 * include/c_std/cmath.tcc: Use _GLIBCXX_ prefix on file guard.
3307 * include/c_std/std_cctype.h: Ditto.
3308 * include/c_std/std_cerrno.h: Ditto.
3309 * include/c_std/std_cfloat.h: Ditto.
3310 * include/c_std/std_climits.h: Ditto.
3311 * include/c_std/std_clocale.h: Ditto.
3312 * include/c_std/std_cmath.h: Ditto.
3313 * include/c_std/std_csetjmp.h: Ditto.
3314 * include/c_std/std_csignal.h: Ditto.
3315 * include/c_std/std_cstdarg.h: Ditto.
3316 * include/c_std/std_cstddef.h: Ditto.
3317 * include/c_std/std_cstdio.h: Ditto.
3318 * include/c_std/std_cstdlib.h: Ditto.
3319 * include/c_std/std_cstring.h: Ditto.
3320 * include/c_std/std_ctime.h: Ditto.
3321 * include/c_std/std_cwchar.h: Ditto.
3322 * include/c_std/std_cwctype.h: Ditto.
3323 * include/std/std_algorithm.h: Ditto.
3324 * include/std/std_bitset.h: Ditto.
3325 * include/std/std_complex.h: Ditto.
3326 * include/std/std_deque.h: Ditto.
3327 * include/std/std_fstream.h: Ditto.
3328 * include/std/std_functional.h: Ditto.
3329 * include/std/std_iomanip.h: Ditto.
3330 * include/std/std_ios.h: Ditto.
3331 * include/std/std_iosfwd.h: Ditto.
3332 * include/std/std_iostream.h: Ditto.
3333 * include/std/std_istream.h: Ditto.
3334 * include/std/std_iterator.h: Ditto.
3335 * include/std/std_limits.h: Ditto.
3336 * include/std/std_list.h: Ditto.
3337 * include/std/std_locale.h: Ditto.
3338 * include/std/std_map.h: Ditto.
3339 * include/std/std_memory.h: Ditto.
3340 * include/std/std_numeric.h: Ditto.
3341 * include/std/std_ostream.h: Ditto.
3342 * include/std/std_queue.h: Ditto.
3343 * include/std/std_set.h: Ditto.
3344 * include/std/std_sstream.h: Ditto.
3345 * include/std/std_stack.h: Ditto.
3346 * include/std/std_stdexcept.h: Ditto.
3347 * include/std/std_streambuf.h: Ditto.
3348 * include/std/std_string.h: Ditto.
3349 * include/std/std_utility.h: Ditto.
3350 * include/std/std_valarray.h: Ditto.
3351 * include/std/std_vector.h: Ditto.
3352
3988d179
DG
33532003-07-22 Doug Gregor <dgregor@apple.com>
3354
3355 * include/bits/basic_string.h (basic_string::insert): Deprecate
3356 GNU extension.
3357
5dfda042
BK
33582003-07-21 Benjamin Kosnik <bkoz@redhat.com>
3359
3360 * scripts/testsuite_flags.in (--build-includes): Remove extraneous
3361 paths for libio.
3362 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc
3363 (test03): Include typeinfo for bad_cast.
3364 * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same.
3365 * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
3366 * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same.
3367
3988d179 33682003-07-21 Doug Gregor <dgregor@apple.com>
f345c6b5
DG
3369
3370 * include/bits/boost_concept_check.h:
7e2055ec
ZW
3371 (_EqualityComparableConcept::__constraints): Remove != from the
3372 list of constraints; it is not listed in Table 28 of the C++98
3373 standard.
f345c6b5 3374
2d5f9af2
AJ
33752003-07-18 Andreas Jaeger <aj@suse.de>
3376
3377 * config/abi/sparc-linux-gnu/baseline_symbols.txt: New file.
3378 * config/abi/mips-linux-gnu/baseline_symbols.txt: New file.
3379 * config/abi/hppa-linux-gnu/baseline_symbols.txt: New file.
3380 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Regenerated.
3381
fea4065d 33822003-07-17 Benjamin Kosnik <bkoz@redhat.com>
7e2055ec 3383
fea4065d
BK
3384 * config/linker-map.gnu: Add __moneypunct_cache, __timepunct_cache.
3385 * config/locale/generic/messages_members.h: Tweaks.
3386 * config/locale/generic/monetary_members.cc
3387 (moneypunct::_M_initialize_moneypunct): Use cache.
3388 (moneypunct::~moneypunct): Delete cache.
3389 * config/locale/generic/time_members.cc:
3390 (__timepunct::_M_initialize_timepunct): Use cache.
3391 * config/locale/generic/time_members.h:
3392 (__timepunct::~__timepunct): Delete cache.
3393 (__timepunct::__timepunct): Set cache.
3394 * config/locale/gnu/messages_members.h: Tweaks.
3395 * config/locale/gnu/monetary_members.cc:
3396 (moneypunct::_M_initialize_moneypunct): Use cache.
3397 (moneypunct::~moneypunct): Delete cache.
3398 * config/locale/gnu/time_members.cc:
3399 (__timepunct::_M_initialize_timepunct): Use cache.
3400 * config/locale/gnu/time_members.h:
3401 (__timepunct::~__timepunct): Delete cache.
3402 (__timepunct::__timepunct): Set cache.
3403 * include/bits/locale_facets.h (__timepunct_cache): New.
3404 (__moneypunct_cache): New.
3405 * include/bits/locale_facets.tcc: Tweak.
3406 * src/locale.cc (__timepunct::_S_timezones): Adjust for cache.
3407 * src/locale-inst.cc: Instantiate caches.
3408 * src/globals.cc: Add "C" caches.
3409 * src/localename.cc: Use external "C" caches.
3410
83a279e4
PE
34112003-07-17 Phil Edwards <pme@gcc.gnu.org>
3412
3413 * docs/doxygen/guide.html: Fix typo.
3414
db5eed18
BK
34152003-07-16 Benjamin Kosnik <bkoz@redhat.com>
3416
3417 * include/ext/pod_char_traits.h: Add state template argument.
3418
7942afdc
BK
34192003-07-16 Benjamin Kosnik <bkoz@redhat.com>
3420
3421 * include/bits/locale_facets.h (__num_base::_S_atoms_in): Add -+xX.
3422 (num_get::_M_convert_int): To _M_insert_int.
7e2055ec 3423 (num_get::_M_convert_float): To _M_insert_float.
7942afdc
BK
3424 * include/bits/locale_facets.tcc (num_get::_M_extract_float):
3425 Use caches for ctype, num_get.
3426 (num_get::_M_extract_int): Same.
3427 (num_get::get(bool)): Same.
3428 (__verify_grouping): Use size_t.
3429 * src/locale-inst.cc: Update.
3430 * src/locale.cc: Adjust _S_atoms_in.
3431
1ef4a5d4
PE
34322003-07-16 Phil Edwards <pme@gcc.gnu.org>
3433
3434 * docs/doxygen/mainpage.html: Move building/writing instructions...
3435 * docs/doxygen/guide.html: ...to here. New file.
3436
dced0d12
JW
34372003-07-16 Jonathan Wakely <redi@gcc.gnu.org>
3438
3439 * docs/html/ext/howto.html: Update URL for SGI STL docs.
3440 * docs/html/faq/index.html: Same.
3441 * docs/html/faq/index.txt: Regenerate.
3442
e50344b9
PC
34432003-07-16 Paolo Carlini <pcarlini@unitus.it>
3444
3445 PR libstdc++/11528
3446 * include/bits/locale_facets.tcc (money_get::do_get):
3447 Strip only _leading_ zeros.
3448 * testsuite/22_locale/money_get/get/char/11528.cc: Add.
3449 * testsuite/22_locale/money_get/get/wchar_t/11528.cc: Add.
3450
94b7906a
GP
34512003-07-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3452
3453 * include/ext/hash_map (class hash_multimap): Remove extra
3454 semicolons from __glibcxx_class_requires3 entries.
3455 * include/ext/hash_set (class hash_set): Ditto.
3456 (class hash_multiset): Ditto.
3457
73a530bd
PR
34582003-07-15 Petur Runolfsson <peturr02@ru.is>
3459
3460 * include/bits/char_traits.h (char_traits<wchar_t>::move):
3461 Change last parameter from int_type to size_t.
3462
119dbb1f
JQ
34632003-07-15 Jerry Quinn <jlquinn@optonline.net>
3464
3465 * include/bits/stl_algo.h (includes, set_union, set_intersection,
7e2055ec
ZW
3466 set_difference, set_symmetric_difference, max_element, min_element,
3467 next_permutation, prev_permutation, find_first_of, find_end):
3468 Document.
119dbb1f 3469 * include/bits/stl_algobase.h (copy,copy_backward): Clarify overlap
7e2055ec 3470 restrictions in docs.
119dbb1f 3471 * include/bits/stl_heap.h (push_heap, pop_heap, make_heap, sort_heap):
7e2055ec 3472 Document.
119dbb1f
JQ
3473 * docs/doxygen/doxygroups.cc (setoperations): New group.
3474
284f19bf
JQ
34752003-07-15 Jerry Quinn <jlquinn@optonline.net>
3476
7e2055ec 3477 * include/bits/basic_string.h: Document public functions.
284f19bf
JQ
3478 * docs/doxygen/TODO: Update c21 todo.
3479
709e7c9f
JQ
34802003-07-15 Jerry Quinn <jlquinn@optonline.net>
3481
3482 * include/bits/stl_list.h: Document more functions.
3483 * docs/doxygen/TODO: Update c23 todo.
3484
f45e487d
PC
34852003-07-14 Paolo Carlini <pcarlini@unitus.it>
3486
3487 * config/locale/gnu/c_locale.h (__convert_from_v): One more
3488 qualification.
3489
f088510d
PC
34902003-07-14 Paolo Carlini <pcarlini@unitus.it>
3491
3492 * include/bits/stl_tempbuf.h: Qualify free with std::.
3493 * src/locale.cc: Include <cstdlib>, qualify getenv.
3494
2def5b76
PC
34952003-07-14 Paolo Carlini <pcarlini@unitus.it>
3496
3497 * config/locale/gnu/c_locale.h (__convert_from_v): Include
3498 <cstdio>. Qualify names.
3499 * config/locale/generic/c_locale.h (__convert_from_v): Ditto.
3500
bda243ec
PC
35012003-07-14 Paolo Carlini <pcarlini@unitus.it>
3502 Nathan C. Myers <ncm-nospam@cantrip.org>
3503
3504 PR libstdc++/11378
3505 * include/std/std_fstream.h (xsputn): Declare only.
3506 * include/bits/fstream.tcc (xsputn): Define, optimize for the
7e2055ec 3507 always_noconv() case: when __n is sufficiently large flush
bda243ec
PC
3508 the buffer and issue a direct write, if possible combining the
3509 two with writev in __basic_file<>::xsputn_2.
3510 * config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
3511 New, declare.
3512 * config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
3513 Define.
3514 * acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
3515 the availability of writev in <sys/uio.h>.
3516 * configure.in: Call here.
3517 * acconfig.h: Add undef for the corresponding symbol.
3518 * aclocal.m4: Regenerate.
3519 * configure: Regenerate.
3520 * config.h.in: Regenerate.
3521 * testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.
3522
3523 * include/std/std_fstream.h (sync): Constify a variable.
3524
c573d965
BK
35252003-07-14 Benjamin Kosnik <bkoz@redhat.com>
3526
3527 * testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
3528 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
7e2055ec 3529
3ad249b9
GDR
35302003-07-14 Gabriel Dos Reis <gcc@integrable-solutions.net>
3531
3532 * config/locale/gnu/c_locale.h (__convert_from_v): Include
3533 <cstring> and <cstdlib>. Qualify names.
3534
f2ffecb1
MM
35352003-07-13 Mark Mitchell <mark@codesourcery.com>
3536
3537 * config/locale/generic/c_locale.h: Include <cstdlib> and
3538 <cstring>.
3539 * include/bits/boost_concept_check.h: Add this-> to unqualified
3540 method calls.
3541 * include/bits/deque.tcc: Likewise.
3542 * include/bits/locale_facets.h : Likewise.
3543 * include/bits/ostream.tcc: Likewise.
3544 * include/bits/stl_algo.h: Likewise.
3545 * include/bits/stl_bvector.h: Likewise.
3546 * include/bits/stl_deque.h: Likewise.
3547 * include/bits/stl_list.h: Likewise.
3548 * include/bits/stl_tree.h: Likewise.
3549 * include/bits/stl_vector.h: Likewise.
3550 * include/bits/vector.tcc: Likewise.
3551 * include/ext/rope: Likewise.
3552 * include/ext/ropeimpl.h: Likewise.
3553 * include/ext/stdio_filebuf.h: Likewise.
3554
e2fcbaa3
JQ
35552003-07-11 Jerry Quinn <jlquinn@optonline.net>
3556
3557 * include/bits/basic_ios.h (copyfmt): Document.
3558 * include/bits/ios_base.h (event, event_callback, register_callback,
3559 xalloc, iword, pword): Document.
3560 (imbue, ~ios_base): Update docs on callbacks.
3561
58579a27
PE
35622003-07-11 Phil Edwards <pme@gcc.gnu.org>
3563
3564 * acinclude.m4 (GLIBCC_ENABLE_SYMVERS): Tweak comments. Add
3565 warning messages if the environment cannot support symbol versioning.
3566 (port_specific_symbol_file): It's plural, add an 's' on the end.
3567 * configure.host: Likewise.
3568 * src/Makefile.am: Likewise.
3569 * config/linker-map.gnu: Remove one semicolon, heh.
3570 * scripts/extract_symvers: Don't assume useful 'export' syntax.
3571 Set LANG as well as LC_ALL for possibly-broken sort(1)s.
3572 * aclocal.m4, configure, src/Makefile.in: Regenerated.
3573
cde63840
BK
35742003-07-09 Benjamin Kosnik <bkoz@redhat.com>
3575
3576 * include/bits/locale_facets.tcc: Use function object for
7e2055ec 3577 __use_cache instead of template function. Partially specialize for
cde63840
BK
3578 __numpunct<_CharT>.
3579 * include/bits/locale_classes.h: Update friend declaration for
3580 __use_cache.
3581 (_M_install_cache): No throw exception specs.
3582 * src/locale.cc: Remove __use_cache specializations.
3583 * include/ext/pod_char_traits.h (length): Tweak.
3584 * include/bits/locale_facets.h (__numpunct_cache): Remove
3585 char_type typedef.
3586 * testsuite/testsuite_hooks.h (pod_unsigned_int): Remove.
3587 (pod_long): Remove.
3588 * testsuite/22_locale/numpunct/members/char/cache_1.cc: New.
3589 * testsuite/22_locale/numpunct/members/char/cache_2.cc: New.
3590 * testsuite/22_locale/numpunct/members/wchar_t/cache_1.cc: New.
3591 * testsuite/22_locale/numpunct/members/wchar_t/cache_2.cc: New.
3592 * testsuite/22_locale/numpunct/members/pod/1.cc: New.
3593 * testsuite/22_locale/numpunct/members/pod/2.cc: New.
7e2055ec 3594
e7f042e4
JQ
35952003-07-09 Jerry Quinn <jlquinn@optonline.net>
3596
3597 * src/ios.cc (_M_grow_words): Fix spelling.
3598
ca1c7011
GB
35992003-07-09 Gawain Bolton <gp.bolton@computer.org>
3600
3601 * include/bits/stl_tree.h: Move larger member functions in
3602 _Rb_tree_base_iterator and _Rb_tree_node to...
3603 * src/stl_tree.cc: Here.
3604 * src/Makefile.in: Add stl_tree.cc.
3605 * src/Makefile.in: Regenerated.
3606 * config/linker-map.gnu: Add symbols here.
3607
9e7facfd
BK
36082003-07-08 Benjamin Kosnik <bkoz@redhat.com>
3609
3610 * testsuite/ext/pod_char_traits.cc: New.
3611 * include/ext/pod_char_traits.h: New.
3612 * include/Makefile.am (ext_headers): Add pod_char_traits.h.
3613 * include/Makefile.in: Regenerate.
3614 * docs/html/21_strings/howto.html: Update.
7e2055ec 3615
e55dc371
GB
36162003-07-08 Gawain Bolton <gp.bolton@computer.org>
3617
3618 * testsuite/performance/list_create_fill_sort.cc: New.
3619
c094e9b9
BK
36202003-07-08 Benjamin Kosnik <bkoz@redhat.com>
3621
3622 * config/locale/generic/numeric_members.cc: Correct type info.
3623 * config/locale/gnu/numeric_members.cc: Same.
3624 * include/bits/locale_facets.h: Same.
7e2055ec 3625
c094e9b9
BK
3626 * include/bits/char_traits.h: Correct spacing.
3627
3628 * src/locale.cc: Wrap to 80 col.
7e2055ec 3629
a8784c4c
PC
36302003-07-07 Paolo Carlini <pcarlini@unitus.it>
3631
3632 * include/std/std_complex.h: Partially revert last
3633 changes: cmath functions must not be qualified.
3634
313dd504
PE
36352003-07-06 Phil Edwards <pme@gcc.gnu.org>
3636
3637 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Do not test for binutils
3638 2.11 with globbing backport fix.
3639 * aclocal.m4, configure: Regenerated.
3640
6623b2f2
PC
36412003-07-06 Paolo Carlini <pcarlini@unitus.it>
3642
3643 * include/std/std_fstream.h (xsputn): Don't call _M_destroy_pback:
3644 if output is at all possible (!_M_reading), cannot be active.
3645
3646 * include/std/std_fstream.h: Tweak comments to doxygen style.
3647
391cfc46
PC
36482003-07-06 Paolo Carlini <pcarlini@unitus.it>
3649
3650 * include/bits/locale_classes.h: Fully qualify standard
3651 functions with std::, thus avoiding Koenig lookup.
3652 * include/bits/locale_facets.tcc: Likewise.
3653 * src/locale.cc: Likewise.
3654 * src/localename.cc: Likewise.
3655
48166869
PE
36562003-07-06 Phil Edwards <pme@gcc.gnu.org>
3657
3658 * include/bits/allocator_traits.h: Fix doxygen markup.
3659 * include/ext/mt_allocator.h: Likewise.
3660
aaa4a229
PE
36612003-07-06 Phil Edwards <pme@gcc.gnu.org>
3662
3663 * testsuite/testsuite_hooks.h: Guard against a missing unlink().
3664
e6b7a69a
PE
36652003-07-05 Phil Edwards <pme@gcc.gnu.org>
3666
3667 * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Bump minimal version
3668 requirement. Add port_specific_symbol_file variable.
3669 * configure.host: Add docs for port_specific_symbol_file.
3670 Clean up try_cpu block for x86.
3671 * config/linker-map.gnu: No more "last symbol can't have a
3672 semicolon" kaka. Add hook for port-specific symbols.
3673 * src/Makefile.am: Remove trailing whitespace.
3674 (libstdc++-symbol.ver): Detect the presence of port-specific
3675 symbols, and add them accordingly.
3676
3677 * docs/html/17_intro/porting.texi: Bring up to date.
3678
3679 * src/Makefile.in, aclocal.m4, configure,
3680 docs/html/17_intro/porting.html: Regenerated.
3681
ac3d7b44
PE
36822003-07-05 Phil Edwards <pme@gcc.gnu.org>
3683
3684 * scripts/create_testsuite_files: New file.
3685 * testsuite/Makefile.am (all-local, check-performance): Use it.
3686 * testsuite/lib/libstdc++-v3-dg.exp (v3-computer-tests): Remove.
3687 * testsuite/Makefile.in: Regenerated.
3688
3689 * testsuite/performance/filebuf_sputc.cc: Remove the temporary
3690 files at the end.
3691 * testsuite/performance/fstream_seek_write.cc: Likewise.
3692 * testsuite/performance/ofstream_insert_float.cc: Likewise.
3693 * testsuite/performance/ofstream_insert_int.cc: Likewise.
3694 * testsuite/abi_check.cc (main): Nicer spacing in usage output.
3695
e3d51be2
GB
36962003-07-05 Gawain Bolton <gp.bolton@computer.org>
3697
3698 * include/bits/stl_list.h: Performance and memory usage
c094e9b9
BK
3699 improvements. In particular, the behaviour of the constructor and
3700 destructor as the list header node is no longer dynamically
3701 allocated/de-allocated.
e3d51be2
GB
3702 * include/bits/list.tcc: Likewise.
3703
eb9a4231
PC
37042003-07-05 Paolo Carlini <pcarlini@unitus.it>
3705
3706 * include/std/std_complex.h: Fully qualify standard
3707 functions with std::, thus avoiding Koenig lookup.
3708 * include/std/std_memory.h: Likewise.
3709 * include/std/std_valarray.h: Likewise.
3710
f92c5313
GB
37112003-07-05 Gawain Bolton <gp.bolton@computer.org>
3712
3713 * include/bits/stl_tree.h: _Rb_tree_rebalance(): Add local
7e2055ec 3714 variable for grandparent and use const
f92c5313 3715
8b87d3fa
DB
37162003-07-05 David Billinghurst <David.Billinghurst@riotinto.com>
3717
3718 * testsuite/27_io/basic_filebuf/close/char/4879.cc: xfail on cygwin
3719 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Ditto
3720 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Ditto
3721 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Ditto
3722 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Ditto
3723 * testsuite/27_io/objects/char/7.cc: Ditto
3724 * testsuite/27_io/objects/char/9661-1.cc: Ditto
3725
a8cad3e1
PC
37262003-07-05 Paolo Carlini <pcarlini@unitus.it>
3727
3728 * include/std/std_bitset.h: Fully qualify standard
3729 functions with std::, thus avoiding Koenig lookup.
3730
3731 * include/std/std_fstream.h: Change comment to doxygen style.
3732
2778669a
PE
37332003-07-05 Phil Edwards <pme@gcc.gnu.org>
3734
3735 * include/std/std_limits.h: More CPP->CXX changes.
3736 * scripts/check_survey.in: Likewise.
3737
3d7c150e
BK
37382003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3739
3740 Move from CPP to CXX.
3741 * include/bits/c++config: Move to GLIBCXX from GLIBCPP.
3742 * testsuite/Makefile.am: Same.
3743 * testsuite/Makefile.in: Regenerate.
3744 * po/Makefile.am: Same.
7e2055ec 3745 * po/Makefile.in: Regenerate.
3d7c150e 3746 * libsupc++/Makefile.am: Same.
7e2055ec 3747 * libsupc++/Makefile.in: Regenerate.
3d7c150e 3748 * libmath/Makefile.am: Same.
7e2055ec 3749 * libmath/Makefile.in: Regenerate.
3d7c150e 3750 * include/Makefile.am: Same.
7e2055ec 3751 * include/Makefile.in: Regenerate.
3d7c150e 3752 * src/Makefile.am: Same.
7e2055ec 3753 * src/Makefile.in: Regenerate.
3d7c150e
BK
3754 * acconfig.h: Same.
3755 * configure.host: Same.
3756 * configure.in: Same.
3757 * configure: Regenerate.
3758 * acinclude.m4: Same.
3759 * aclocal.m4: Same.
3760 * src: Change all files in this directory.
3761 * testsuite: Same.
3762 * include: Same, standardize include guards.
3763 * config: Same.
3764 * libsupc++: Same.
7e2055ec 3765
e6cc3a24
ZW
37662003-07-04 Zack Weinberg <zack@codesourcery.com>
3767
3768 * testsuite/22_locale/collate/compare/wchar_t/2.cc
3769 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc
3770 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc
3771 * testsuite/22_locale/collate/hash/wchar_t/2.cc
3772 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc
3773 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc
3774 * testsuite/22_locale/collate/transform/wchar_t/2.cc
3775 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc
3776 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3777 XFAIL on all targets.
3778
d542f114
BK
37792003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3780
3781 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix missed variable.
3782 * aclocal.m4: Regenerate.
3783 * configure: Regenerate.
e6cc3a24 3784
d542f114
BK
37852003-07-04 Jerry Quinn <jlquinn@optonline.net>
3786
3787 * include/bits/locale_facets.tcc (__int_to_char): Move common case
3788 to the top.
3789
69ef29fd 37902003-07-04 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24
ZW
3791 Petur Runolfsson <peturr02@ru.is>
3792
69ef29fd
BK
3793 * config/io/basic_file_stdio.cc: Revert.
3794
5b5bf717
PC
37952003-07-04 Paolo Carlini <pcarlini@unitus.it>
3796
3797 * include/bits/deque.tcc: Fully qualify standard
3798 functions with std::, thus avoiding Koenig lookup.
3799 * include/bits/gslice_array.h: Likewise.
3800 * include/bits/indirect_array.h: Likewise.
3801 * include/bits/list.tcc: Likewise.
3802 * include/bits/mask_array.h: Likewise.
3803 * include/bits/slice_array.h: Likewise.
3804
7f6dd1ca
GB
38052003-07-04 Gawain Bolton <gbolton@free.fr>
3806
3807 * include/bits/stl_tree.h: Performance and memory usage
3808 improvements.
3809
8c90b13a
L
38102003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3811
3812 * Makefile.am: Replace PWD with PWD_COMMAND.
3813 * Makefile.in: Regenerated.
3814 * docs/html/Makefile: Likewise.
3815
2f805868
PC
38162003-07-04 Paolo Carlini <pcarlini@unitus.it>
3817
3818 * include/bits/valarray_array.h: Fully qualify standard
3819 functions with std::, thus avoiding Koenig lookup.
3820 * include/bits/vector.tcc: Likewise.
3821
a30335e9
BK
38222003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3823
3824 * include/Makefile.am: Update target_ to host_.
3825 * include/Makefile.in: Regenerate.
3826 * src/Makefile.am: Same.
3827 * src/Makefile.in: Regenerate.
3828
3829 * config/os/gnu-linux/os_defines.h: Remove glibc-2.0 support.
e6cc3a24 3830
d8d81f62
BK
38312003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3832
3833 * acinclude.m4 (GLIBCPP_ENABLE_DEBUG_FLAGS): To
3834 --enable-libstdcxx-debug-flags.
3835 (GLIBCPP_ENABLE_DEBUG_FLAGS): To --enable-libstdcxx-debug.
3836 (GLIBCPP_ENABLE_PCH): To --enable-libstdcxx-pch.
3837 * aclocal.m4: Regenerate.
3838 * configure: Same.
3839 * docs/html/configopts.html: Update.
e6cc3a24 3840
10ef4e2e
PC
38412003-07-04 Paolo Carlini <pcarlini@unitus.it>
3842
3843 Revert the fix for libstdc++/11378.
3844
ac2c48d7
PC
38452003-07-04 Paolo Carlini <pcarlini@unitus.it>
3846
3847 PR libstdc++/11378
3848 * include/std/std_fstream.h (xsputn): In the unbuffered case,
3849 provided always_noconv(), issue directly _M_file.xsputn.
3850 * testsuite/performance/filebuf_unbuf_sputn.cc: New.
3851
9dd90ac6
PC
38522003-07-04 Paolo Carlini <pcarlini@unitus.it>
3853
3854 * include/bits/stl_list.h: Fully qualify standard
3855 functions with std::, thus avoiding Koenig lookup.
3856 * include/bits/stl_queue.h: Likewise.
3857 * include/bits/stl_raw_storage_iter.h: Likewise.
3858 * include/bits/stl_tempbuf.h: Likewise.
3859 * include/bits/stl_tree.h: Likewise.
3860 * include/bits/stl_uninitialized.h: Likewise.
3861 * include/bits/stl_vector.h: Likewise.
e6cc3a24 3862 * include/ext/rope: Change includes order.
9dd90ac6 3863
1b33b6b2
BK
38642003-07-04 Benjamin Kosnik <bkoz@redhat.com>
3865
3866 * configure.host (fpos_include_dir): Fix.
3867
369b78b0
PC
38682003-07-04 Paolo Carlini <pcarlini@unitus.it>
3869
3870 * include/bits/stl_heap.h: Fully qualify standard
3871 functions with std::, thus avoiding Koenig lookup.
3872 * include/bits/stl_iterator_base_funcs.h: Likewise.
3873
3874 * include/bits/stl_algo.h: Qualify __iterator_category too.
3875 * include/bits/stl_algobase.h: Likewise.
3876 * include/bits/stl_bvector.h: Likewise.
3877
3878 * include/bits/stl_algo.h: Don't qualify the pair type.
3879
cc5112c9
BK
38802003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3881
3882 * include/Makefile.am (target_headers): Add fpos.h
3883 (bits_headers): Remove.
3884 * include/Makefile.in: Regenerate.
3885 * configure.in: Add FPOS_INC_SRCDIR, substitute it.
3886 * configure: Regenerate.
3887 * configure.host: Add fpos_include_dir.
3888 * config/os/gnu-linux/fpos.h: New.
e6cc3a24
ZW
3889 * config/os/generic/fpos.h: Add.
3890 * include/bits/fpos.h: Remove.
cc5112c9
BK
3891
3892 * config/io/c_io_stdio.h: Remove fpos_t typedef.
3893
3894 * include/bits/fstream.tcc: Tweaks.
3895 * include/std/std_fstream.h: Same.
e6cc3a24 3896
cc5112c9
BK
3897 * testsuite/27_io/fpos/1.cc (test01): Uncomment. Move to...
3898 * testsuite/27_io/fpos/mbstate_t/1.cc: ...here.
3899 * testsuite/27_io/fpos/mbstate_t/2.cc: Same.
3900 * testsuite/27_io/fpos/mbstate_t/3.cc: Same.
3901 * testsuite/27_io/fpos/1.cc: New.
e6cc3a24 3902
cc5112c9
BK
39032003-07-03 Benjamin Kosnik <bkoz@redhat.com>
3904 Petur Runolfsson <peturr02@ru.is>
e6cc3a24 3905
cc5112c9
BK
3906 * include/std/std_streambuf.h: Remove _M_pos.
3907 * config/io/basic_file_stdio.h: Use seekpos instead of seekoff.
3908 * config/io/basic_file_stdio.cc: Same, use fseek instead of lseek,
3909 use fread/fwrite instead of read/write.
3910 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-2.cc: Fix.
3911 * testsuite/27_io/basic_filebuf/sputn/char/9339.cc: Close filebufs
3912 before reading again.
3913 * testsuite/27_io/objects/char/6.cc: Tweak.
e6cc3a24 3914
304d79dc
DE
39152003-07-03 David Edelsohn <edelsohn@gnu.org>
3916
3917 * testsuite/22_locale/num_put/put/char/7.cc: Guard with
3918 _GLIBCPP_USE_WCHAR_T.
3919
41ba4c46
PC
39202003-07-02 Paolo Carlini <pcarlini@unitus.it>
3921
3922 * include/bits/basic_string.tcc (_M_replace_aux): Constify
3923 __n1 and __off1.
3924
da73f9de
PC
39252003-07-02 Paolo Carlini <pcarlini@unitus.it>
3926
3927 * include/bits/stl_bvector.h: Fully qualify standard
3928 functions with std::, thus avoiding Koenig lookup.
3929 * include/bits/stl_construct.h: Likewise.
3930 * include/bits/stl_deque.h: Likewise.
3931
1c380095
PC
39322003-07-02 Paolo Carlini <pcarlini@unitus.it>
3933
3934 * testsuite/22_locale/num_put/put/char/7.cc: Include
3935 <testsuite_hooks.h>, tweak.
3936 * testsuite/22_locale/num_put/put/wchar_t/7.cc: Likewise.
3937
f9f4d1e1
PE
39382003-07-01 Phil Edwards <pme@gcc.gnu.org>
3939
3940 * testsuite/Makefile.am (AM_MAKEFLAGS): Set to -j1 (affects
3941 check* targets, but not libs/programs).
3942 * testsuite/Makefile.in: Regenerate.
3943
b7693a46
RS
39442003-07-01 Roger Sayle <roger@eyesopen.com>
3945
3946 * acinclude.m4 (GLIBCPP_CHECK_STDLIB_SUPPORT): Fix typo in CXXFLAGS.
3947 (GLIBCPP_CHECK_MATH_SUPPORT): Likewise.
3948 * aclocal.m4: Regenerate.
3949 * configure: Regenerate.
3950
a5b1b26c
BK
39512003-07-01 Benjamin Kosnik <bkoz@redhat.com>
3952
3953 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Fix obvious error.
3954 * aclocal.m4: Regenerated.
3955 * configure: Regenerated.
e6cc3a24 3956
f64f3e74
PC
39572003-07-01 Paolo Carlini <pcarlini@unitus.it>
3958
3959 PR libstdc++/11389
3960 * include/bits/fstream.tcc (underflow): For encoding() == 0
3961 don't read more than __buflen chars.
3962 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-1.cc: New.
3963 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-2.cc: New.
3964 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-3.cc: New.
3965 * testsuite/27_io/basic_filebuf/underflow/wchar_t/11389-4.cc: New.
3966
5ee78c21
JQ
39672003-07-01 Jerry Quinn <jlquinn@optonline.net>
3968
3969 * 22_locale/num_put/put/char/7.cc: New.
3970 * 22_locale/num_put/put/wchar_t/7.cc: New.
3971
e97ee22e
JQ
39722003-06-30 Jerry Quinn <jlquinn@optonline.net>
3973
3974 * src/locale.cc (__use_cache<numpunct>): Revert previous relocation.
3975 * include/bits/locale_facets.tcc (__use_cache<numpunct>): Ditto.
3976
7d6a0993
BK
39772003-06-30 Benjamin Kosnik <bkoz@redhat.com>
3978
3979 * 27_io/basic_filebuf/seekoff/char/1-in.cc: New.
3980 * 27_io/basic_filebuf/seekoff/char/1-io.cc: New.
3981 * 27_io/basic_filebuf/seekoff/char/1-out.cc: New.
3982 * 27_io/basic_filebuf/seekoff/char/2-in.cc: New.
3983 * 27_io/basic_filebuf/seekoff/char/2-io.cc: New.
3984 * 27_io/basic_filebuf/seekoff/char/2-out.cc: New.
3985 * 27_io/basic_filebuf/seekoff/char/2.cc: Remove.
3986 * 27_io/basic_filebuf/seekoff/char/3-in.cc: New.
3987 * 27_io/basic_filebuf/seekoff/char/3-io.cc: Change.
3988 * 27_io/basic_filebuf/seekoff/char/3-out.cc: New.
3989 * 27_io/basic_filebuf/seekoff/char/4-io.cc: Remove.
3990 * 27_io/basic_filebuf/seekpos/char/1-in.cc: New.
3991 * 27_io/basic_filebuf/seekpos/char/1-io.cc: New.
3992 * 27_io/basic_filebuf/seekpos/char/1-out.cc: New.
3993 * 27_io/basic_filebuf/seekpos/char/2-in.cc: New.
3994 * 27_io/basic_filebuf/seekpos/char/2-io.cc: New.
3995 * 27_io/basic_filebuf/seekpos/char/2-out.cc: New.
3996 * 27_io/basic_filebuf/seekpos/char/2.cc: Change.
3997 * 27_io/basic_filebuf/seekpos/char/3-in.cc: New.
3998 * 27_io/basic_filebuf/seekpos/char/3-io.cc: Remove.
3999 * 27_io/basic_filebuf/seekpos/char/3-out.cc: New.
4000 * 27_io/basic_filebuf/seekpos/char/4-io.cc: Remove.
4001 * data/seekoff-1.tst: Remove.
4002 * data/seekoff-1io.tst: New.
4003 * data/seekoff-1out.tst: New.
4004 * data/seekoff-2.tst: Remove.
4005 * data/seekoff-2io.tst: New.
4006 * data/seekoff-2out.tst: New.
4007 * data/seekoff.txt
4008 * data/seekpos-1.tst: Remove.
4009 * data/seekpos-1io.tst: New.
4010 * data/seekpos-1out.tst: New.
4011 * data/seekpos-2.tst: Remove.
4012 * data/seekpos-2io.tst: New.
4013 * data/seekpos-2out.tst: New.
4014 * data/seekpos.txt: New.
4015
a5b1b26c 40162003-06-30 Jerry Quinn <jlquinn@optonline.net>
cf0cad09
JQ
4017
4018 * src/locale.cc (__use_cache<numpunct>): Move from here ...
4019 * include/bits/locale_facets.tcc (__use_cache<numpunct>): To
4020 here.
4021
884a757a
PC
40222003-06-30 Paolo Carlini <pcarlini@unitus.it>
4023
4024 * include/bits/stl_algobase.h: Fully qualify standard
4025 functions with std::, thus avoiding Koenig lookup.
4026
5892c641 40272003-06-30 Doug Gregor <dgregor@apple.com>
e6cc3a24 4028
5892c641 4029 * include/bits/locale_facets.tcc (money_get::do_get): Avoid
e6cc3a24 4030 subscripting empty string.
5892c641 4031
7685a26d
PE
40322003-06-30 Phil Edwards <pme@gcc.gnu.org>
4033
4034 * testsuite/Makefile.am (check-am): Do not override.
4035 (baseline_symbols): Declare as PHONY, so no need to 'touch' it.
4036 * testsuite/Makefile.in: Regenerate.
4037
e6cc3a24
ZW
40382003-06-30 Doug Gregor <dgregor@apple.com>
4039
d147b75b
DG
4040 * testsuite/24_iterators/insert_iterator.cc (test01, test02):
4041 Don't initialize an insert_iterator with a singular iterator.
4042
44f0760e 40432003-06-30 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 4044
44f0760e
BK
4045 * acinclude.m4 (GLIBCPP_ENABLE_PCH): Add bits for --enable-pch.
4046 * aclocal.m4: Regenerate.
4047 * configure.in (GLIBCPP_CHECK_PCH): Move, change to
4048 GLIBCPP_ENABLE_PCH, default to yes.
4049 * configure: Regenerate.
4050 * docs/html/configopts.html: Add --enable-pch.
e6cc3a24 4051
e37f7da7
PE
40522003-06-30 Phil Edwards <pme@gcc.gnu.org>
4053
4054 * testsuite/lib/libstdc++-v3-dg.exp: Add comments.
4055 (libstdc++-v3-init): Also set LD_RUN_PATH.
4056
cd16e04b
PC
40572003-06-30 Paolo Carlini <pcarlini@unitus.it>
4058
fbfcbadc
PC
4059 * include/std/std_streambuf.h (_M_mode): Unused by streambuf, move
4060 from here to filebuf and stringbuf.
cd16e04b
PC
4061 (~basic_streambuf()): Don't set _M_mode.
4062 (basic_streambuf()): Don't set _M_mode.
4063 * include/std/std_fstream.h (_M_mode): Move here, from streambuf.
4064 (~basic_filebuf()): Clean up.
4065 * include/bits/fstream.tcc (basic_filebuf()): Set _M_mode.
4066 * include/std/std_sstream.h (_M_mode): Move here, from streambuf.
4067 * testsuite/27_io/basic_streambuf/cons/char/1.cc: Don't set _M_mode.
4068 * testsuite/27_io/basic_streambuf/overflow/char/1.cc: Likewise.
4069 * testsuite/27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
4070 * testsuite/27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
4071 * testsuite/27_io/basic_streambuf/sputn/char/1.cc: Likewise.
4072
40732003-06-30 Paolo Carlini <pcarlini@unitus.it>
4074
4075 * include/std/std_fstream.h (_M_underflow): Remove.
4076 (uflow): Remove, inherited from streambuf.
4077 (underflow): Only declare.
e6cc3a24 4078 * include/bits/fstream.tcc (_M_underflow): Rename to
cd16e04b
PC
4079 underflow, to which is equivalent for __bump == false,
4080 simplify.
4081 * include/std/std_sstream.h (_M_underflow): Remove.
4082 (uflow): Remove, inherited from streambuf.
4083 (underflow): Only declare.
e6cc3a24 4084 * include/bits/sstream.tcc (_M_underflow): Rename to
cd16e04b
PC
4085 underflow, to which is equivalent for __bump == false,
4086 simplify.
4087
c868f37e
PC
40882003-06-29 Paolo Carlini <pcarlini@unitus.it>
4089
fbfcbadc
PC
4090 * include/bits/stl_algo.h: Fully qualify standard functions
4091 with std::, thus avoiding Koenig lookup.
c868f37e 4092
165f54e0
PC
40932003-06-29 Paolo Carlini <pcarlini@unitus.it>
4094
4095 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:
4096 Improve type correctness-wise.
4097 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2.cc:
4098 Likewise.
4099 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3.cc:
4100 Likewise.
4101 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4.cc:
4102 Likewise.
4103
90319d16
PC
41042003-06-29 Paolo Carlini <pcarlini@unitus.it>
4105
4106 * include/std/std_streambuf.h (uflow): According to
4107 27.5.2.4.3,p16, don't check gptr() < egptr().
4108
b417ae14
PC
41092003-06-28 Paolo Carlini <pcarlini@unitus.it>
4110
4111 PR libstdc++/9875
4112 * include/bits/fstream.tcc (seekoff): Fix for encoding() > 0.
4113 (seekpos): Likewise.
4114 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/9875_seekoff.cc:
4115 New test.
4116 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9875_seekpos.cc:
4117 New test.
4118
f1a22109
BK
41192003-06-27 Benjamin Kosnik <bkoz@redhat.com>
4120
4121 * testsuite/testsuite_performance.h (__gnu_cxx_test): Change
4122 output name to libstdc++-v3-performance.sum.
4123 * testsuite/Makefile.am (CLEANFILES): Remove .performance.
4124 * testsuite/Makefile.in: Regenerate.
e6cc3a24 4125
f1a22109
BK
41262003-06-27 Matthias Klose <doko@debian.org>
4127
4128 * testsuite/Makefile.am (check-abi, check-abi-verbose): Save
4129 output of abi-check in libstdc++-v3-abi.sum.
4130 * testsuite/Makefile.in: Regenerate.
4131
2e8a523f
KW
41322003-06-27 Krister Walfridsson <cato@df.lth.se>
4133
4134 * config/os/bsd/netbsd/ctype_noninline.h
4135 (_C_ctype_): Declare.
4136 (ctype<char>::classic_table): Return _C_ctype_ + 1.
4137 (ctype<char>::ctype): Use classic_table.
4138
3461133d
PC
41392003-06-27 Paolo Carlini <pcarlini@unitus.it>
4140 Nathan C. Myers <ncm-nospam@cantrip.org>
4141
4142 PR libstdc++/9178
4143 * include/bits/fstream.tcc (_M_underflow): Properly estimate
4144 the worst-case number of external bytes for a given get area.
4145 * testsuite/27_io/basic_filebuf/underflow/wchar_t/9178.cc: New.
4146
41472003-06-27 Paolo Carlini <pcarlini@unitus.it>
4148 Petur Runolfsson <peturr02@ru.is>
4149
4150 PR libstdc++/11305
4151 * include/bits/fstream.tcc (overflow): Properly estimate the
4152 worst-case number of external bytes for a given put area
4153 (by using codecvt::max_length()).
4154 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1: New.
4155 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: New.
4156 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: New.
4157 * testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: New.
4158
5648db54
NS
41592003-06-27 Nathan Sidwell <nathan@codesourcery.com>
4160
4161 * config/linker-map.gnu: Remove ; after __numpunct_cache.
4162
215f9e28
BK
41632003-06-26 Benjamin Kosnik <bkoz@redhat.com>
4164
4165 * include/bits/ios_base.h (ios_base::_M_getloc): Return reference
4166 to the imbued locale.
4167 * include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
4168 _M_getloc.
4169 (num_put::_M_convert_float): Use.
4170
41712003-06-26 Benjamin Kosnik <bkoz@redhat.com>
4172 Jerry Quinn <jlquinn@optonline.net>
4173
4174 * config/linker-map.gnu: Add __numpunct_cache.
4175 * config/locale/gnu/numeric_members.cc
4176 (numpunct::_M_initialize_numpunct): Account for _M_data, fill in
4177 all elements for "C" locale.
4178 (numpunct::~numpunct): Delete _M_data.
e6cc3a24 4179 * config/locale/generic/numeric_members.cc: Same.
215f9e28
BK
4180 * include/bits/basic_ios.tcc
4181 (basic_ios::init): Remove __locale_cache bits.
4182 (basic_ios::_M_cache_locale): Same.
e6cc3a24 4183 * include/bits/ios_base.h: Same. Tweaks.
215f9e28
BK
4184 * include/bits/locale_classes.h: Tweaks. Reorder classes.
4185 (__use_cache): Make friends with _Impl, locale.
4186 (_Impl::_M_caches): Add.
4187 (_Impl::_M_install_cache): Add.
4188 * include/bits/locale_facets.h (__numpunct_cache): New.
4189 (numpunct): Encapsulate data members in __numpunct_cache member,
4190 _M_data. Adjust virtuals.
e6cc3a24 4191 (numpunct::numpunct): New ctor for the same.
215f9e28 4192 (__locale_cache_base): Remove.
e6cc3a24 4193 (__locale_cache): Remove.
215f9e28
BK
4194 * include/bits/locale_facets.tcc (__use_cache): New function,
4195 specializations.
4196 (num_put::_M_convert_int, _M_convert_float, do_put): Use it.
4197 * src/globals.cc: Add cache_vec, numpunct_cache_c, numpunct_cache_w.
4198 * src/ios.cc (ios_base::ios_base): Remove __locale_cache.
4199 * src/locale-inst.cc: Same. Add __numpunct_cache.
4200 * src/locale.cc: Tweak inlines.
4201 (__use_cache): Define specializations.
4202 * src/localename.cc: Use global bits.
4203 (_Impl::~Impl): Deal with __numpunct_cache destruction.
4204 (_Impl::_Impl): Same. Pre-cache standard numpunct facets.
4205 (_Impl::_M_init_facet): Take into account __numpunct_cache.
4206 * testsuite/27_io/ios_base/cons/assign_neg.cc: Update line numbers.
4207 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
4208
8370378a 42092003-06-26 Nathan C. Myers <ncm-nospam@cantrip.org>
e6cc3a24 4210 Paolo Carlini <pcarlini@unitus.it>
8370378a
NM
4211
4212 * testsuite/performance/filebuf_copy.cc: New, testing char
4213 by char file copy.
4214
2cfe4e68 42152003-06-26 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 4216 Nathan C. Myers <ncm-nospam@cantrip.org>
2cfe4e68
PC
4217
4218 * include/bits/fstream.tcc (_M_underflow): When the actual
4219 end of file is reached, set 'uncommitted' mode to allow a
4220 next write without an intervening seek (see C++98 27.8.1.1,2
4221 and C89 7.9.5.3).
4222 * testsuite/27_io/basic_filebuf/underflow/char/2.cc: New.
4223
29d9ed97
NM
42242003-06-25 Nathan C. Myers <ncm-nospam@cantrip.org>
4225
4226 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4227 sputc): Move inline, from here...
4228 * include/std/std_streambuf.h: ... to here.
4229
4230 * include/std/std_streambuf.h (snextc, sbumpc, sgetc,
4231 sputbackc, sungetc, sputc): Use __builtin_expect.
4232
c1a62440
PE
42332003-06-24 Phil Edwards <pme@gcc.gnu.org>
4234
4235 * docs/doxygen/mainpage.html: Use a useful title.
4236
cdc1242a
BK
42372003-06-24 Benjamin Kosnik <bkoz@redhat.com>
4238
4239 * docs/html/documentation.html: Remove assignment info.
4240 * docs/html/17_intro/contribute.html: Edits.
4241 * docs/html/17_intro/libstdc++-assign.tx: Remove.
4242
4243 * docs/html/test.html: Update.
4244
4245 * README: Update.
e6cc3a24 4246
1b6f0a56 42472003-06-24 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 4248 Ulrich Drepper <drepper@redhat.com>
1b6f0a56
BK
4249
4250 * testsuite/testsuite_performance.h: Tweak mallinfo.
4251
71b46021 42522003-06-24 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 4253 Nathan C. Myers <ncm-nospam@cantrip.org>
71b46021
PC
4254
4255 * include/std/std_fstream.h (_M_filepos): Remove.
4256 (_M_reading, _M_writing): New, encode the various I/O modes:
4257 'read', 'write' and 'uncommitted'.
4258 (sync): If there is something to flush, do it, then go to
4259 'uncommitted' mode.
4260 * include/bits/fstream.tcc (_M_set_buffer): Overhaul to deal
4261 with three different cases: __off > 0 (upon underflow),
4262 __off == 0 (upon overflow), __off == -1 (upon open, setbuf,
4263 seekoff/pos).
4264 (_M_underflow): Don't call overflow, set _M_reading to true
4265 on success, tweak.
4266 (pbackfail): Set _M_reading to true on pback creation, tweak.
4267 (overflow): Don't seek, deal with overflow in 'uncommitted' mode,
4268 set _M_writing to true on success, tweak.
4269 (seekoff): Simplify, set _M_reading, _M_writing to false, call
4270 _M_set_buffer(-1) ('uncommitted').
4271 (open, close, setbuf): Set _M_reading, _M_writing to false and
4272 call _M_set_buffer(-1), tweak.
4273 (basic_filebuf): Don't set _M_buf_unified.
4274 (_M_destroy_internal_buffer): Don't call setg and setp.
4275 * include/ext/stdio_filebuf.h (stdio_filebuf): Use _M_reading,
4276 _M_writing and _M_set_buffer(-1).
4277 * include/std/std_streambuf.h (_M_move_out_cur, _M_move_in_cur,
4278 _M_out_lim, _M_buf_unified): Remove.
4279 (basic_streambuf): Don't set _M_out_lim and _M_buf_unified.
e6cc3a24 4280 (setp): Don't set _M_out_lim.
71b46021
PC
4281 * testsuite/27_io/basic_filebuf/sbumpc/char/1-io.cc: Fix for
4282 the new logic ('read', 'write' and 'uncommitted' modes): e.g.,
4283 upon open the mode is 'uncommitted' and therefore the put area
4284 pointers are null.
4285 * testsuite/27_io/basic_filebuf/sbumpc/char/1-out.cc: Ditto.
4286 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: Ditto.
4287 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: Ditto.
4288 * testsuite/27_io/basic_filebuf/setbuf/char/1.cc: Ditto.
4289 * testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc: Ditto.
4290 * testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc: Ditto.
4291 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4292 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc: Ditto.
4293 * testsuite/27_io/basic_filebuf/snextc/char/1-io.cc: Ditto.
4294 * testsuite/27_io/basic_filebuf/snextc/char/1-out.cc: Ditto.
4295 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Ditto.
4296 * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: Ditto.
4297 * testsuite/27_io/basic_filebuf/sputc/char/1-io.cc: Ditto.
4298 * testsuite/27_io/basic_filebuf/sputc/char/1-out.cc: Ditto.
4299 * testsuite/27_io/basic_filebuf/sputc/char/9701-2.cc: Ditto.
4300 * testsuite/27_io/basic_filebuf/sputn/char/1-io.cc: Ditto.
4301 * testsuite/27_io/basic_filebuf/sputn/char/1-out.cc: Ditto.
4302 * testsuite/27_io/basic_filebuf/sputn/char/9701-1.cc: Ditto.
4303 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: Ditto.
4304 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: Ditto.
4305
4306 * include/bits/fstream.tcc (showmanyc): Use only the
4307 documented derivation interface to basic_streambuf (gptr(),
4308 setg(), etc.) to work right with user specializations.
4309 * include/bits/streambuf.tcc (sbumpc, sputbackc, sungetc,
4310 sputc, xsgetn, xsputn, __copy_streambufs): Likewise.
4311 * include/std/std_streambuf.h (in_avail, sgetc, uflow, stossc):
4312 Likewise.
4313 * include/std/std_fstream.h (_M_create_pback, _M_destroy_pback,
4314 xsgetn): Likewise.
4315
9eb6e1d3
LR
43162003-06-23 Loren J. Rittle <ljrittle@acm.org>
4317
4318 * configure.host (freebsd*): Set abi_baseline_pair.
4319 * config/abi/i386-freebsd4/baseline_symbols.txt: Update from 3.2
4320 (at or near first release) to 3.3.
4321 * config/abi/i386-freebsd5/baseline_symbols.txt: New file.
4322 * config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
4323 * config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
4324
3d57d7ba 4325 * include/ext/mt_allocator.h: Portability.
d1a2c4d6 4326 * testsuite/testsuite_performance.h: Likewise.
3d57d7ba 4327
c89c30dd
BK
43282003-06-23 Benjamin Kosnik <bkoz@redhat.com>
4329
4330 * docs/html/17_intro/libstdc++-assign.txt: Update address.
4331
4332 * testsuite/performance/ifstream_getline.cc: Fix.
e6cc3a24 4333
c89c30dd 43342003-06-23 Doug Gregor <dgregor@apple.com>
2b491e3a 4335
e6cc3a24
ZW
4336 * include/bits/boost_concept_check.h: Don't use _D or _R for type
4337 names.
2b491e3a 4338
1b170b55
PC
43392003-06-22 Paolo Carlini <pcarlini@unitus.it>
4340 Nathan C. Myers <ncm-nospam@cantrip.org>
4341
4342 * include/std/std_streambuf.h (_M_move_out_cur): _M_out_lim
4343 is now used only for filebuf, when _M_buf_unified is true.
4344 epgtr() plays the role of _M_out_lim but it's only updated
4345 upon overflow, underflow, uflow, seekoff/pos.
4346 * include/bits/sstream.tcc (_M_underflow): New, implements
4347 stringbuf::underflow and uflow.
4348 (seekoff, seekpos): Tweak, use _M_update_egptr.
4349 * include/std/std_sstream.h (str): Rewrote, deal correctly
4350 with the new logic, in particular, when pptr() > egptr().
4351 (_M_sync): When __testout && !__testin set all the get area
4352 pointers to the current string end.
4353 (_M_update_egptr): New, internal function updating egptr()
4354 to the actual string end.
4355 (_M_underflow): New, declare.
4356 (underflow): Dispatch to _M_underflow(false).
4357 (uflow): Dispatch to _M_underflow(true).
4358
4359 * include/bits/sstream.tcc (pbackfail, overflow, seekoff,
4360 seekpos): Use only the documented derivation interface to
4361 basic_streambuf (gptr(), setg(), etc.) to work right with
4362 user specializations.
4363 * include/std/std_sstream.h (str, _M_sync): Likewise.
4364
8dbe14be
DG
43652003-06-20 Doug Gregor <dgregor@apple.com>
4366
1b170b55
PC
4367 * testsuite/20_util/auto_ptr.cc: Don't dereference NULL auto_ptr
4368 * testsuite/21_strings/basic_string/replace/char/4.cc: Don't
4369 dereference end iterator.
4370 * testsuite/21_strings/basic_string/replace/wchar_t/4.cc: Same.
4371 * testsuite/22_locale/ctype/narrow/char/1.cc: Don't subscript with
4372 index equal to the length of a string.
4373 * testsuite/22_locale/ctype/narrow/char/2.cc: Same.
4374 * testsuite/22_locale/ctype/narrow/wchar_t/1.cc: Same.
4375 * testsuite/22_locale/ctype/narrow/wchar_t/2.cc: Same.
4376 * testsuite/22_locale/ctype/widen/char/1.cc: Same.
4377 * testsuite/22_locale/ctype/widen/wchar_t/1.cc: Same.
4378 * testsuite/23_containers/list_modifiers.cc: Don't dereference
4379 singular reverse iterator.
4380 * testsuite/23_containers/vector_bool.cc: Don't increment singular
4381 iterator.
4382 * testsuite/24_iterators/rel_ops.cc: Don't compare singular iterator.
8dbe14be 4383
bdb0f0f5
DG
43842003-06-20 Doug Gregor <dgregor@apple.com>
4385
e6cc3a24 4386 * include/bits/basic_string.h (basic_string::replace): Dispatch
bdb0f0f5
DG
4387 _InputIterator version based on _Is_integer.
4388 * include/bits/basic_string.tcc (basic_string::replace):
4389 Renamed replace(iterator, iterator, size_type, _CharT) to
4390 _M_replace_aux.
4391 * testsuite/21_strings/basic_string/assign/char/1.cc (test01):
4392 Test basic_string::assign(_InputIterator, _InputIterator),
4393 which calls basic_string::replace(iterator, iterator,
4394 _Input_iterator, _InputIterator).
4395
f5a6463e
BK
43962003-06-20 Benjamin Kosnik <bkoz@redhat.com>
4397
4398 * testsuite/testsuite_performance.h (resource_counter): Don't use
4399 mallinfo at the moment.
4400
bbdfb3e8
MK
44012003-06-20 Matthias Klose <doko@debian.org>
4402
4403 * configure.host: Set try_cpu to target_cpu for existing
4404 baseline files.
4405
97460e9a
AJ
44062003-06-19 Andreas Jaeger <aj@suse.de>
4407
4408 * testsuite/Makefile.am (extract_symvers): Revert accidental
4409 change.
4410 * testsuite/Makefile.in: Regenerate.
4411
4412 * configure.in: Pass MULTISUBDIR to testsuite/Makefile.
4413 * configure: Regenerated.
4414
50af15ec
PC
44152003-06-19 Paolo Carlini <pcarlini@unitus.it>
4416
4417 * include/std/std_sstream.h (_M_sync): Make non virtual.
4418
ce4f8c6b
BK
44192003-06-18 Benjamin Kosnik <bkoz@redhat.com>
4420
4421 * testsuite/testsuite_performance.h (time_counter): New.
4422 (resource_counter): New.
4423 (report_performance): New.
4424 (start_counters): New.
4425 (stop_counters): New.
97460e9a 4426 (clear_counters): New.
ce4f8c6b
BK
4427 * testsuite/performance/allocator.cc: Instrument.
4428 * testsuite/performance/cout_insert_int.cc: Same.
4429 * testsuite/performance/complex_norm.cc: Same.
4430 * testsuite/performance/filebuf_sputc.cc: New.
4431 * testsuite/performance/fstream_seek_write.cc: Same.
4432 * testsuite/performance/ifstream_getline.cc: Same.
4433 * testsuite/performance/map_create_fill.cc: Same.
4434 * testsuite/performance/ofstream_insert_float.cc: Same.
4435 * testsuite/performance/ofstream_insert_int.cc: Same.
97460e9a 4436 * testsuite/performance/string_append.cc: Convert.
ce4f8c6b
BK
4437 * scripts/check_performance: New.
4438 * testsuite/Makefile.am (check-performance): New.
4439 (CLEANFILES): Add.
97460e9a 4440
b82a33d2 44412003-06-18 Paolo Carlini <pcarlini@unitus.it>
e6cc3a24 4442 Benjamin Kosnik <bkoz@redhat.com>
b82a33d2
PC
4443
4444 * include/std/std_sstream.h (setbuf): Check __n >= 0.
4445 * include/bits/fstream.tcc (setbuf): Tweak.
4446
4c526d09
PC
44472003-06-18 Paolo Carlini <pcarlini@unitus.it>
4448
4449 * include/bits/sstream.tcc (seekoff): We can't seek beyond
4450 _M_out_lim, therefore _M_move_out_cur boils down to simply
4451 updating _M_out_cur.
4452 (seekpos): Likewise, clean up.
4453
c1b74c21 44542003-06-18 Nathan C. Myers <ncm-nospam@cantrip.org>
e6cc3a24 4455 Paolo Carlini <pcarlini@unitus.it>
c1b74c21
NM
4456
4457 * include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
4458 simply equivalent to the unbuffered case (0, 0) as far as
4459 _M_buf_size is concerned.
4460
a1af4623
AJ
44612003-06-18 Andreas Jaeger <aj@suse.de>
4462
4463 * testsuite/Makefile.am (new-abi-baseline): Create baseline
4464 directory.
4465 (baseline_file): Use baseline_dir.
4466 (baseline_dir): New.
4467 (mkinstalldirs): New.
4468
4469 * acinclude.m4: Rename baseline_file to baseline_dir, strip
4470 filename from baseline_dir.
4471
4472 * testsuite/Makefile.in: Regenerated.
4473 * Makefile.in: Regenerated.
4474 * aclocal.m4: Regenerated.
4475 * configure: Regenerated.
4476
2f934953
BK
44772003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4478
4479 * configure.in: Missed check_survey bit.
4480 * configure: Regenerated.
4481
0676e930
BK
44822003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4483
4484 * scripts: New.
4485 * config/abi/extract_symvers: Move to...
4486 * scripts/extract_symvers: ...here.
4487 * mkcheck.in: Move to..
4488 * scripts/check_survey.in: ...here.
4489 * testsuite_flags.in: Move to..
4490 * scripts/testsuite_flags.in: ...here.
4491 * configure.in: Change check and testsuite_flags locations.
4492 * configure: Regenerate.
4493 * testsuite/Makefile.am (current_symbols.txt): Change location.
4494 * testsuite/Makefile.in: Regenerate.
4495 * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Modify
4496 location of testsuite_flags.
4497 * Makefile.am (check-script): Move..
4498 (check-script-install): Move...
a1af4623 4499 * testsuite/Makefile.am: ... here.
0676e930 4500 * testsuite/Makefile.in: Regenerate.
a1af4623
AJ
4501 * Makefile.in: Regenerate.
4502
82620aaf
BK
45032003-06-17 Benjamin Kosnik <bkoz@redhat.com>
4504
4505 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.3.0.
4506
c4c064e7
BK
45072003-06-16 Benjamin Kosnik <bkoz@redhat.com>
4508
4509 * Makefile.am (check-abi): Move...
4510 (new-abi-baseline): Move...
4511 * testsuite/Makefile.am: ...here.
4512 (new-abi-baseline): Conditionalize.
4513 (check-abi): Conditionalize.
4514 (check-abi-verbose): New.
4515 * Makefile.in: Regenerate.
a1af4623 4516 * testsuite/Makefile.in: Regenerate.
c4c064e7
BK
4517 * configure.in: Consolidate testsuite configure bits.
4518 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Same.
4519 * configure: Regenerate.
a1af4623 4520 * aclocal.m4: Regenerate.
c4c064e7
BK
4521 * testsuite/abi_check.cc: Add --check-verbose.
4522 Only output detailed information if --check-verbose.
4523
e7bb3511 45242003-06-16 Andreas Jaeger <aj@suse.de>
a1af4623 4525
e6cc3a24 4526 * testsuite/abi_check.cc: Create summary report.
a1af4623 4527
8363b773
PC
45282003-06-16 Paolo Carlini <pcarlini@unitus.it>
4529
4530 * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
4531 for systems with BUFSIZ != 8192.
4532 * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
4533 * testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
4534 Minor tweaks.
4535
5ab481e0
BK
45362003-06-16 Andreas Jaeger <aj@suse.de>
4537
4538 * acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
4539 check-abi multilib aware.
4540 * aclocal.m4: Regenerate.
4541 * configure: Regenerate.
a1af4623 4542
5ab481e0 45432003-06-16 Benjamin Kosnik <bkoz@redhat.com>
e6cc3a24 4544 Andreas Jaeger <aj@suse.de>
5ab481e0
BK
4545
4546 * configure.host: Set x86_64 abi_baseline pair correctly.
4547
0bad3b7c
PC
45482003-06-16 Paolo Carlini <pcarlini@unitus.it>
4549
4550 * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
e6cc3a24 4551 fix for missing seeks between gets and puts into...
0bad3b7c
PC
4552 * testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
4553 * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
4554 * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
4555 * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
4556 * testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
4557 * testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.
a1af4623 4558
dc4add82
RH
45592003-06-15 Richard Henderson <rth@redhat.com>
4560
4561 * config/linker-map.gnu: Export virtual function thunks for
4562 64-bit systems too.
4563
ef16a298
BK
45642003-06-13 Benjamin Kosnik <bkoz@redhat.com>
4565
4566 * config/abi/i686-pc-linux-gnu: To..
4567 * config/abi/i486-linux-gnu: ...this.
4568 * config/abi/alphaev67-unknown-linux-gnu: To..
4569 * config/abi/alpha-linux-gnu: ...this.
4570 * config/abi/ia64-unknown-linux-gnu: To...
4571 * config/abi/ia64-linux-gnu: ...this.
4572 * config/abi/x86_64-unknown-linux-gnu: To...
4573 * config/abi/x86_64-linux-gnu: ...this.
4574 * config/abi/i386-unknown-freebsd4: To...
4575 * config/abi/i386-freebsd4: ...this.
5ab481e0
BK
4576 * config/linker-map.gnu: Cleanups, move libsupc++ bits into
4577 CXXABI.
ef16a298
BK
4578 * configure.host: abi_baseline_triplet to abi_baseline_pair.
4579 Simplify cpu bits so that abi_baseline_pair can use the same
4580 cpu configuration.
4581 * acinclude.m4: Same.
4582 * aclocal.m4: Regenerate.
4583 * configure.in: Can't get enable_abi_check to yes unless native.
4584 * configure: Regenerate.
4585
ed242935
PC
45862003-06-13 Paolo Carlini <pcarlini@unitus.it>
4587
4588 * testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
4589 fix for missing seeks between gets and puts into...
4590 * testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
4591 * testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
4592 * testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
4593 * testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
4594 * testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
4595 * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
4596 for missing seeks between gets and puts.
4597 * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
4598 * testsuite/data/seekoff-1.tst: New.
4599 * testsuite/data/seekoff-2.tst: New.
4600 * testsuite/data/seekpos-1.tst: New.
4601 * testsuite/data/seekpos-2.tst: New.
4602
ca566e4c
NM
46032003-06-13 Nathan C. Myers <ncm-nospam@cantrip.org>
4604
4605 Avoid multi-processor bus contention on increment/decrement-and-
a1af4623 4606 test of the reference count in the empty-string object, by comparing
e6cc3a24
ZW
4607 addresses first, and never touching the reference count of the empty-
4608 string object.
ca566e4c
NM
4609 * include/bits/basic_string.h:
4610 (_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
4611 members.
a1af4623 4612 (_Rep::_S_empty_rep()): New accessor.
ca566e4c
NM
4613 (_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
4614 a base class _Rep_base.
4615 (_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
4616 (basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
4617 since no longer must increment its refcount.
4618 * include/bits/basic_string.tcc:
a1af4623 4619 (_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
e6cc3a24
ZW
4620 return immediately. The former might be unnecessary. The latter
4621 prevents begin() and end() from cloning it unnecessarily.
ca566e4c
NM
4622 (_S_construct(_InIterator, _InIterator, const _Alloc&,
4623 input_iterator_tag), _S_construct(_InIterator, _InIterator,
4624 const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
4625 const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
4626 (_M_mutate): Check for the empty string and treat it as shared.
e6cc3a24
ZW
4627 This is necessary here because _M_mutate is sometimes called with
4628 all-zero arguments; in all other uses of _M_is_shared, the test comes
4629 out right anyhow.
a1af4623 4630
c37514ff
BK
46312003-06-12 Benjamin Kosnik <bkoz@redhat.com>
4632
4633 * src/allocator-inst.cc: Explicitly instantiate.
4634 * include/ext/pool_allocator.h: Inhibit implicit instantiations.
4635 Tweaks.
4636 * config/linker-map.gnu: Add __pool_alloc bits. Tweaks.
a1af4623 4637
58ac1d7f
BK
46382003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4639
4640 * acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
4641 * aclocal.m4: Regenerate.
4642 * Makefile.am (SUBDIRS): Remove libio.
4643 * Makefile.in: Regenerate.
4644 * configure.in: Same.
4645 * configure: Regenerate.
4646 * config/io/basic_file_libio.cc: Remove.
a1af4623 4647 * config/io/basic_file_libio.h: Remove.
58ac1d7f 4648 * config/io/c_io_libio_codecvt.c: Remove.
a1af4623 4649 * config/io/c_io_libio.h: Remove.
58ac1d7f
BK
4650 * libio/*: Remove.
4651 * src/Makefile.am: Same.
4652 * src/Makefile.in: Regenerate.
a1af4623 4653 * docs/html/configopts.html: Edits.
58ac1d7f 4654 * docs/html/explanations.html: Edits.
a1af4623 4655
1ff9402d
BK
46562003-06-11 Benjamin Kosnik <bkoz@redhat.com>
4657
4658 * include/bits/stl_alloc.h (__debug_alloc): Move out.
4659 (__malloc_alloc): Same.
4660 (__pool_alloc): Same.
4661 (__new_alloc): Same.
4662 Rename to..
4663 * include/bits/allocator.h: ...this.
4664 * include/bits/stl_deque.h: Modify comment.
4665 * include/bits/stl_tree.h: Modify include.
4666 * include/std/std_memory.h: Same.
4667 * include/ext/rope: Same.
a1af4623 4668 * include/ext/slist: Same.
1ff9402d
BK
4669 * include/std/std_vector.h: Same.
4670 * include/std/std_stack.h: Same.
4671 * include/std/std_queue.h: Same.
4672 * include/std/std_list.h: Same.
4673 * include/std/std_deque.h: Same.
4674 * include/backward/alloc.h: Same.
4675 * include/ext/debug_allocator.h: New.
a1af4623
AJ
4676 * include/ext/malloc_allocator.h: New.
4677 * include/ext/pool_allocator.h: New.
1ff9402d
BK
4678 * include/ext/new_allocator.h: New.
4679 * include/bits/pthread_allocimpl.h: Remove.
a1af4623 4680 * include/bits/stl_pthread_alloc.h: Remove.
1ff9402d
BK
4681 * include/Makefile.am (ext_headers): Add.
4682 * include/Makefile.in: Regenerate.
4683 * src/stl-inst.cc: Use __gnu_cxx namespace.
4684 * src/stl-inst.cc: Move to...
4685 * src/allocator-inst.cc: Here.
4686 * src/Makefile.am (sources): Update.
4687 * src/Makefile.in: Regenerate.
4688 * config/linker-map.gnu: Remove __pool_alloc bits.
4689 * testsuite/ext/headers.cc: Add.
4690 * testsuite/ext/allocators.cc: Fixup.
a1af4623 4691
1ff9402d 46922003-06-11 Stefan Olsson <stefan@snon.net>
e6cc3a24 4693