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