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