]> gcc.gnu.org Git - gcc.git/blob - libstdc++-v3/ChangeLog
re PR c++/13684 (local static object variable constructed once but ctors and dtors...
[gcc.git] / libstdc++-v3 / ChangeLog
1 2004-08-27 Jason Merrill <jason@redhat.com>
2
3 PR c++/13684
4 * libsupc++/guard.cc (static_mutex): Internal class implementing a
5 recursive mutex which controls initialization of local statics.
6 (__gnu_cxx::recursive_init): New exception class.
7 (__cxa_guard_acquire): Deal with locking and recursion detection.
8 (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
9
10 2004-08-27 Matthias Klose <doko@debian.org>
11
12 * configure.host: For mips*-*-linux* update cpu_include_dir
13 after atomicity_dir is set.
14
15 2004-08-27 Matthias Klose <doko@debian.org>
16
17 * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
18 * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
19 * configure.host: Set abi_baseline_pair for arm*-*-linux* and
20 mips*-*-linux*.
21
22 2004-08-27 Paolo Carlini <pcarlini@suse.de>
23
24 * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
25 * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
26 * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
27 * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
28 * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
29
30 * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
31 formatting fixes.
32 * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
33 * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
34 * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
35 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
36
37 2004-08-25 Paolo Carlini <pcarlini@suse.de>
38
39 PR libstdc++/17038 (partial)
40 * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
41 __maxlen to 128.
42 * include/bits/locale_facets.h (class __timepunct): Add FIXME
43 comment about _M_put.
44 * config/locale/generic/time_members.cc (_M_put): Always null
45 terminate __s.
46 * config/locale/gnu/time_members.cc (_M_put): Likewise.
47 * testsuite/22_locale/time_put/put/char/17038.cc: New.
48 * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
49
50 2004-08-24 Paolo Carlini <pcarlini@suse.de>
51
52 * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
53 * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
54 * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
55 * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
56 * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
57 * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
58
59 * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
60 newlines.
61 * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
62
63 2004-08-22 Matthias Klose <doko@debian.org>
64
65 * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
66 * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
67
68 2004-08-23 Paolo Carlini <pcarlini@suse.de>
69
70 * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
71 * aclocal.m4: Regenerate with automake-1.9.1.
72 * configure: Regenerate.
73 * Makefile.in: Likewise.
74 * include/Makefile.in: Likewise.
75 * libmath/Makefile.in: Likewise.
76 * libsupc++/Makefile.in: Likewise.
77 * po/Makefile.in: Likewise.
78 * src/Makefile.in: Likewise.
79 * testsuite/Makefile.in: Likewise.
80
81 2004-08-22 Paolo Carlini <pcarlini@suse.de>
82
83 * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
84 to a signed type, long according to the resolution of DR 359.
85 * testsuite/22_locale/num_put/put/char/9.cc: New.
86 * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
87
88 * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
89 Simplify a bit: no need to clear showpos.
90
91 2004-08-21 Paolo Carlini <pcarlini@suse.de>
92
93 * include/bits/char_traits.h (struct _Char_traits_match): Remove,
94 unused.
95
96 2004-08-21 Paolo Carlini <pcarlini@suse.de>
97
98 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
99 wchar_t type for the fill argument; minor formatting tweaks.
100 * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
101 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
102 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
103 * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
104 * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
105 * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
106
107 2004-08-21 Paolo Carlini <pcarlini@suse.de>
108
109 * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
110 with _M_word != _M_local_word two times, redundantly.
111
112 2004-08-20 Jason Merrill <jason@redhat.com>
113
114 * include/Makefile.am (${host_builddir}/gthr.h): Don't add
115 _GLIBCXX_ to #pragma lines.
116 * include/Makefile.in: Update.
117
118 2004-08-20 Paolo Carlini <pcarlini@suse.de>
119
120 PR libstdc++/7219 (continued)
121 * include/bits/ios_base.h (class ios_base): Expose Annex D.6
122 typedefs by default.
123 * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
124 * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
125 line number.
126 * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
127
128 2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
129
130 * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
131 barrier to locking asm.
132
133 2004-08-20 Paolo Carlini <pcarlini@suse.de>
134
135 * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
136 actually the warning is a front-end bug (c++/17120).
137
138 2004-08-20 Matthias Klose <doko@debian.org>
139
140 * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
141
142 2004-08-20 Paolo Carlini <pcarlini@suse.de>
143
144 * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
145 used as truth value warning.
146
147 2004-08-20 Paolo Carlini <pcarlini@suse.de>
148
149 * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
150 baseline.
151
152 2004-08-20 Paolo Carlini <pcarlini@suse.de>
153
154 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
155
156 2004-08-19 Benjamin Kosnik <bkoz@redhat.com>
157
158 * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
159 timezone.
160 * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
161
162 2004-08-19 Paolo Carlini <pcarlini@suse.de>
163
164 * testsuite/performance/20_util/allocator/insert.cc: For std::map
165 instantiate the allocator for a correct pair type.
166 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
167 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
168 * testsuite/performance/20_util/allocator/producer_consumer.cc:
169 Likewise.
170
171 * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
172 minor formatting fixes.
173 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
174
175 2004-08-19 Paolo Carlini <pcarlini@suse.de>
176
177 * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
178 results.
179 * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
180 * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
181 * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
182 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
183 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
184 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
185 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
186
187 2004-08-19 Paolo Carlini <pcarlini@suse.de>
188
189 * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
190
191 2004-08-18 Matthias Klose <doko@debian.org>
192
193 * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
194 * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
195 * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
196
197 2004-08-17 Paolo Carlini <pcarlini@suse.de>
198
199 * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
200
201 2004-08-17 Paolo Carlini <pcarlini@suse.de>
202
203 * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
204
205 2004-08-17 Benjamin Kosnik <bkoz@redhat.com>
206
207 * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
208
209 2004-08-16 Paolo Carlini <pcarlini@suse.de>
210
211 * include/bits/indirect_array.h: Trivial formatting fixes.
212 * include/bits/valarray_after.h: Likewise.
213 * include/bits/valarray_array.h: Likewise.
214 * src/valarray-inst.cc: Likewise.
215
216 2004-08-15 Paolo Carlini <pcarlini@suse.de>
217
218 * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
219 * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
220 * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
221
222 * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
223 * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
224 * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
225 * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
226 * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
227
228 2004-08-15 Paolo Carlini <pcarlini@suse.de>
229
230 * include/bits/deque.tcc: Trivial formatting fixes.
231
232 2004-08-15 Paolo Carlini <pcarlini@suse.de>
233
234 * include/bits/deque.tcc: Trivial formatting fixes.
235
236 * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
237 Remove unneded typedef.
238
239 * include/bits/locale_facets.tcc: Very minor tweaks.
240
241 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
242 type for the fill argument.
243 * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
244 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
245 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
246 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
247 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
248 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
249 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
250 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
251
252 2004-08-13 Paolo Carlini <pcarlini@suse.de>
253
254 * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
255 memmove is not needed, memcpy suffices.
256
257 2004-08-13 Paolo Carlini <pcarlini@suse.de>
258
259 * include/std/std_fstream.h (class basic_ifstream,
260 class basic_ofstream, class basic_fstream): Add const overloads
261 of is_open, as per DR 365 [WP].
262 * docs/html/ext/howto.html: Add an entry for DR 365.
263
264 2004-08-12 Paolo Carlini <pcarlini@suse.de>
265
266 * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
267
268 2004-08-12 Paolo Carlini <pcarlini@suse.de>
269
270 PR libstdc++/16956
271 * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
272 to the returned value, reorganize a bit.
273 * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
274 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
275
276 * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
277 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
278 * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
279 * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
280
281 2004-08-12 Paul Brook <paul@codesourcery.com>
282
283 * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
284 _GLIBCXX_CXA_VEC_CTOR_RETURN.
285 * config/cpu/generic/cxxabi_tweaks.h: Ditto.
286 * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
287 __cxa_vec_ctor_return.
288 * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
289 Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
290
291 2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
292
293 * Makefile.in, aclocal.m4, configure, include/Makefile.in,
294 libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
295 src/Makefile.in, testsuite/Makefile.in: Regenerate
296
297 2004-08-12 Jan Beulich <jbeulich@novell.com>
298
299 * config/locale/generic/ctype_members.cc
300 (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
301 initializer for return value, as that is invalid for enumerated types.
302 * config/locale/gnu/ctype_members.cc
303 (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
304
305 2004-08-11 Paolo Carlini <pcarlini@suse.de>
306
307 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
308
309 2004-08-11 Paolo Carlini <pcarlini@suse.de>
310
311 * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
312 variable.
313 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
314 * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
315 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
316 * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
317 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
318 * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
319 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
320 * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
321 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
322 * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
323 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
324 * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
325 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
326 * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
327 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
328 * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
329 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
330 * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
331 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
332 * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
333 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
334
335 2004-08-11 Paolo Carlini <pcarlini@suse.de>
336 Petur Runolfsson <peturr02@ru.is>
337
338 PR libstdc++/16959
339 * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
340 standard streams are constructed.
341 * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
342
343 2004-08-09 Paolo Carlini <pcarlini@suse.de>
344
345 * include/bits/stl_bvector.h: Trivial formatting fixes.
346
347 2004-08-09 Paolo Carlini <pcarlini@suse.de>
348
349 * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
350
351 2004-08-07 Jonathan Wakely <redi@gcc.gnu.org>
352 Paolo Carlini <pcarlini@suse.de>
353
354 * src/debug.cc (_Error_formatter::_M_print_string): In order
355 to print individual words from __string, _M_format_word can't
356 be called since may be just sprintf, thus ignoring completely
357 __n: instead, use memmove and append '\0' by hand.
358
359 2004-08-07 Paolo Carlini <pcarlini@suse.de>
360
361 * config/locale/generic/c_locale.h (__convert_from_v): Don't
362 use a default for __prec, assume __prec >= 0 and simplify.
363 * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
364 * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
365 Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
366
367 2004-08-04 Phil Edwards <phil@codesourcery.com>
368
369 * docs/html/configopts.html: Emphasize that options change.
370 * docs/html/17_intro/configury.html: Update links.
371
372 2004-08-03 Paolo Carlini <pcarlini@suse.de>
373
374 * include/bits/list.tcc: Trivial formatting fixes.
375
376 2004-08-03 Mark Mitchell <mark@codesourcery.com>
377
378 * libsupc++/new_op.cc: Update comments.
379 * libsupc++/del_op.cc: Likewise.
380
381 2004-08-02 Mark Mitchell <mark@codesourcery.com>
382
383 * libsupc++/cxxabi.h: Make all declarations have default
384 visibility.
385 * libsupc++/exception: Likewise.
386 * libsupc++/new: Likewise.
387 * libsupc++/typeinfo: Likewise.
388 * libsupc++/unwind-cxx.h: Likewise.
389 * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
390 the __cxxabiv1 namespace.
391 (__cxa_free_exception): Likewise.
392 * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
393 (__cxa_bad_typeid): Likewise.
394 * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
395 (__cxa_end_catch): Likewise.
396 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
397 (__cxa_get_globals): Likewise.
398 * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
399 (__cxa_rethrow): Likewise.
400 * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
401 * libsupc++/eh_type.cc: Include <cxxabi.h>.
402
403 * Makefile.am (hosted_source): Add libmath and testsuite.
404 (SUBDIRS): Remove them.
405 * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
406 on arm*-*-symbianelf*.
407 * crossconfig.m4: Add arm*-*-symbianelf* support.
408 * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
409 when freestanding. Do not bring names into std:: namespace with
410 "using" when freestanding. Declare required functions and macros
411 when freestanding.
412 * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
413 when freestanding.
414 * libsupc++/del_op.cc: Declare "free" only when freestanding.
415 * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
416 (malloc): Declare when freestanding.
417 (free): Likewise.
418 (memset): Likewise.
419 (__cxa_allocate_exception): Call malloc, not std::malloc. Likewise
420 for memset.
421 (__cxa_free_exception): Likewise for free.
422 * libsupc++/new_op.cc: Declare "malloc" when freestanding.
423 * libsupc++/pure.cc (writestr): Define to nothing when
424 freestanding.
425 * libsupc++/vterminate.cc: Do not define anything when
426 freestanding.
427 * Makefile.in: Regenerated.
428 * aclocal.m4: Likewise.
429 * configure: Likewise.
430 * include/Makefile.in: Likewise.
431 * libmath/Makefile.in: Likewise.
432 * libsupc++/Makefile.in: Likewise.
433 * po/Makefile.in: Likewise.
434 * src/Makefile.in: Likewise.
435 * testsuite/Makefile.in: Likewise.
436
437 2004-08-01 Matt Austern <austern@apple.com>
438
439 PR libstdc++/16844
440 * include/bits/stl_list.h (_M_create_node): Remove unused
441 zero-argument version.
442 * include/ext/slist (_M_create_node): Pass two arguments to
443 allocator's construct() member function.
444 * testsuite/23_containers/deque/explicit_instantiation.cc: New.
445 * testsuite/23_containers/list/explicit_instantiation.cc: New.
446 * testsuite/23_containers/vector/explicit_instantiation.cc: New.
447 * testsuite/23_containers/map/explicit_instantiation.cc: New.
448 * testsuite/23_containers/set/explicit_instantiation.cc: New.
449 * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
450 * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
451 * testsuite/ext/hash_set_explicit_instantiation.cc: New.
452 * testsuite/ext/slist_explicit_instantiation.cc: New.
453
454 2004-07-30 Paolo Carlini <pcarlini@suse.de>
455
456 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
457 num_get<>::_M_extract_int): In the main parsing loop delay the
458 life of __q to the actual use point.
459
460 2004-07-29 Paolo Carlini <pcarlini@suse.de>
461
462 PR libstdc++/14220
463 * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
464 Don't clip the precision passed down to __convert_from_v:
465 22.2.2.2.2 nowhere says so.
466 * testsuite/22_locale/num_put/put/char/14220.cc: New.
467 * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
468
469 2004-07-29 Paolo Carlini <pcarlini@suse.de>
470
471 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
472
473 2004-07-29 Paolo Carlini <pcarlini@suse.de>
474 Petur Runolfsson <peturr02@ru.is>
475
476 PR libstdc++/12658 (continued)
477 * src/locale_init.cc (locale::locale, locale::global): Use
478 a single locale_mutex instead of two separate mutexes.
479
480 2004-07-29 Paolo Carlini <pcarlini@suse.de>
481
482 PR libstdc++/16813
483 * include/debug/map.h (insert(_InputIterator, _InputIterator)):
484 Fix typo.
485 * testsuite/23_containers/map/insert/16813.cc: New.
486
487 2004-07-29 Phil Edwards <phil@codesourcery.com>
488
489 * docs/html/faq/index.html: Update version references. Make
490 clear that code from SGI has diverged greatly. Remove references
491 to library snapshots and what's-new sections.
492 * docs/html/faq/index.txt: Regenerate.
493
494 2004-07-28 Matt Austern <austern@apple.com>
495
496 * include/bits/stl_construct.h (_Destroy): New three-argument
497 overload that takes an allocator argument. Another inline
498 three-argument overload that takes std::allocator and dispatches
499 to the two-argument version.
500 * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
501 Change return type to void to match uninitialized_fill_n.
502 (__uninitialized_copy_a_): New function. Like uninitialized_copy
503 except that it takes an allocator and uses it for construct and
504 destroy. If the allocator is std::allocator, dispatches to
505 uninitialized_copy.
506 (__uninitialized_fill_a): Likewise.
507 (__uninitialized_fill_n_a): Likewise.
508 (__uninitialized_copy_copy): Give it an allocator argument.
509 (__uninitialized_fill_copy): Likewise.
510 (__uninitialized_copy_fill): Likewise.
511 * include/bits/deque.tcc: Use new forms defined in stl_construct.h
512 and stl_uninitialized.h. Replace use of single-argument _Construct
513 and _Destroy with use of allocator's construct and destroy methods.
514 * include/bits/list.tcc: Likewise.
515 * include/bits/stl_deque.h: Likewise.
516 * include/bits/stl_list.h: Likewise.
517 * include/bits/stl_tree.h: Likewise.
518 * include/bits/stl_vector.h: Likewise.
519 * include/bits/vector.tcc: Likewise.
520 * include/ext/hashtable.h: Use rebind so that allocator_type
521 has correct type for a container's allocator. Replace use of
522 single-argument _Construct and _Destroy with use of allocator's
523 construct and destroy methods.
524 * include/ext/memory (__uninitialized_copy_n_a): New function.
525 Like uninitialized_copy_n except that it takes an extra parameter,
526 an allocator, and uses it for construct and destroy operations.
527 * include/ext/rope: Use new forms defined in stl_construct.h,
528 stl_uninitialized.h, and ext/memory. Replace use of single-argument
529 _Construct and _Destroy with allocator construct and destroy methods.
530 * include/ext/ropeimpl.h: Likewise.
531 * include/ext/slist.h: Likewise.
532 * testsuite/testsuite_allocator.h (check_construct_destroy): New.
533 * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
534 * testsuite/23_containers/deque/check_construct_destroy.cc: New.
535 * testsuite/23_containers/list/check_construct_destroy.cc: New.
536 * testsuite/23_containers/set/check_construct_destroy.cc: New.
537 * testsuite/23_containers/vector/check_construct_destroy.cc: New.
538 * testsuite/ext/hash_check_construct_destroy.cc: New.
539 * testsuite/ext/slist_check_construct_destroy.cc: New.
540
541 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
542
543 2003-10-01 Eric Christopher <echristo@redhat.com>
544 * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
545 constraint.
546 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
547 * config/cpu/sh/atomicity.h: New. Use movli and movco on SH4a.
548
549 2004-07-23 Benjamin Kosnik <bkoz@redhat.com>
550
551 PR libstdc++/16678
552 * include/bits/locale_facets.tcc: Fix for -Werror.
553
554 2004-07-23 Jonathan Wakely <redi@gcc.gnu.org>
555
556 * docs/html/debug.html: Say debug mode only available since 3.4.0.
557
558 2004-07-21 Benjamin Kosnik <bkoz@redhat.com>
559
560 * docs/doxygen/mainpage.html: Clarify links.
561 * docs/doxygen/stdheader.cc: Add files.
562 * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
563 * docs/doxygen/user.cfg.in: New options, wrap.
564
565 2004-07-20 Danny Smith <dannysmith@users.sourceforge.net>
566
567 * include/c_std/std_cwchar.h (wcsstr): Correct signature.
568
569 2004-07-19 Benjamin Kosnik <bkoz@redhat.com>
570
571 PR libstdc++/15488
572 * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
573
574 2004-07-17 Richard Sandiford <rsandifo@redhat.com>
575
576 PR bootstrap/16469
577 * scripts/create_testsuite_files: Pass -print to find.
578
579 2004-07-15 Paolo Carlini <pcarlini@suse.de>
580
581 * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
582 * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
583
584 2004-07-15 Jakub Jelinek <jakub@redhat.com>
585
586 PR libstdc++/14697
587 * acinclude.m4 (glibcxx_shared_libgcc): Correct
588 glibcxx_shared_libgcc test for multilibs.
589 * configure: Rebuilt.
590
591 2004-07-14 Paolo Carlini <pcarlini@suse.de>
592
593 PR libstdc++/16505
594 * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
595 the signature to return void, as per 20.4.4.3.
596 * include/bits/stl_vector.h (vector::vector(size_type,
597 const value_type&, const allocator_type&), vector::vector(size_type),
598 vector::_M_initialize_dispatch): Adjust callers.
599 * include/bits/vector.tcc (vector<>::_M_fill_assign,
600 vector<>::_M_fill_insert): Likewise.
601 * testsuite/20_util/memory/16505.cc: New.
602
603 2004-07-14 Paolo Carlini <pcarlini@suse.de>
604
605 * testsuite/22_locale/locale/cons/12658_thread-1.cc,
606 12658_thread-2.cc: Use __gnu_test::try_named_locale.
607
608 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
609
610 * docs/html/ext/mt_allocator.html: Add docs for _Tune.
611 * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
612 (__mt_alloc::_S_set_options): Same.
613 Add to comments.
614
615 2004-07-13 Benjamin Kosnik <bkoz@redhat.com>
616
617 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
618 for linux.
619 * configure: Regenerated.
620
621 2004-07-13 Paolo Carlini <pcarlini@suse.de>
622
623 * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
624 to 12658_thread-1.cc and xfail.
625 * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
626 simpler version of 12658_thread-1.cc, still failing on 3_3 and
627 not failing on 3_4/mainline - both on single processor and
628 multiprocessor machines.
629
630 2004-07-12 Benjamin Kosnik <bkoz@redhat.com>
631
632 * docs/html/abi.html: Remove non-public qualification.
633
634 * include/bits/concurrence.h: Tweak comments.
635
636 2004-07-11 Paolo Carlini <pcarlini@suse.de>
637
638 Add wchar_t counterparts of the basic_streambbuf<char> tests.
639 * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
640 * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
641 Likewise.
642 * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
643 * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
644 3599.cc: Likewise.
645 * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
646 * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
647 * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
648 * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
649 * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
650 Likewise.
651 * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
652
653 * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
654 tweaks.
655 * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
656 Likewise.
657 * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
658 * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
659
660 2004-07-11 Phil Edwards <phil@codesourcery.com>
661
662 * acinclude.m4: Cosmetic shell syntax fixes.
663 * configure.ac: Bring comment inline with reality.
664 * configure.host: Both of the above. Move 'arm' case to right
665 place in host_cpu switch.
666 * aclocal.m4, configure: Regenerate.
667
668 2004-07-09 Paolo Carlini <pcarlini@suse.de>
669
670 Add wchar_t counterparts of the basic_stringbuf<char> tests.
671 * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
672 * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
673 * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
674 3599.cc, 9988.cc: Likewise.
675 * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
676 Likewise.
677 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
678 Likewise.
679 * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
680 Likewise.
681 * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
682 Likewise.
683 * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
684 * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
685 * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
686 * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
687 Likewise.
688 * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
689 9404-1.cc: Likewise.
690 * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
691 9404-2.cc: Likewise.
692 * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
693 3955.cc: Likewise.
694 * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
695 * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
696
697 2004-07-08 Paolo Carlini <pcarlini@suse.de>
698
699 * include/bits/gslice.h: Trivial formatting fixes.
700 * include/bits/gslice_array.h: Likewise.
701 * include/bits/indirect_array.h: Likewise.
702 * include/bits/mask_array.h: Likewise.
703 * include/bits/slice_array.h: Likewise.
704 * include/bits/valarray_after.h: Likewise.
705 * include/bits/valarray_array.h: Likewise.
706 * include/bits/valarray_before.h: Likewise.
707 * include/std/std_valarray.h: Likewise.
708
709 2004-07-08 Benjamin Kosnik <bkoz@redhat.com>
710
711 PR c++/16169
712 * include/bits/basic_string.h (basic_string::operator=): Revert.
713
714 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
715
716 * configure.ac (libtool_VERSION): To 6:2:0.
717 * configure: Regenerated.
718
719 * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
720
721 2004-07-07 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
722
723 PR libstdc++/16411
724 * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
725
726 2004-07-07 Benjamin Kosnik <bkoz@redhat.com>
727
728 * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
729 -Weffc++ issues.
730
731 2004-07-07 Paolo Carlini <pcarlini@suse.de>
732
733 PR libstdc++/16401
734 * include/bits/sstream.tcc (overflow): When reallocating _M_string
735 use an exponential grow policy.
736 * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
737 * testsuite/performance/27_io/stringbuf_overflow.cc: New.
738
739 2004-07-06 Anssi Hannula <anssi.hannula@mbnet.fi>
740
741 PR libstdc++/15928
742 * crossconfig.m4: Add in bits for djgpp.
743 * configure: Regenerate.
744
745 2004-07-05 Jonathan Wakely <redi@gcc.gnu.org>
746
747 * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
748 instantiation of set and multiset (functor param given as int).
749
750 2004-07-04 Paolo Carlini <pcarlini@suse.de>
751
752 * include/bits/basic_string.h: Trivial formatting fixes and/or
753 const-ification of some variables.
754 * include/bits/deque.tcc: Likewise.
755 * include/bits/stl_algobase.h: Likewise.
756 * include/bits/stl_bvector.h: Likewise.
757 * include/bits/stl_construct.h: Likewise.
758 * include/bits/stl_deque.h: Likewise.
759 * include/bits/stl_pair.h: Likewise.
760 * include/bits/stl_vector.h: Likewise.
761 * include/bits/vector.tcc: Likewise.
762
763 2004-07-04 Paolo Carlini <pcarlini@suse.de>
764
765 * testsuite/25_algorithms/copy/1.cc: Add instantiations for
766 systems with no COMDAT or weak support.
767 * testsuite/25_algorithms/copy/2.cc: Likewise.
768 * testsuite/25_algorithms/copy/3.cc: Likewise.
769 * testsuite/25_algorithms/copy/4.cc: Likewise.
770
771 2004-07-03 Paul Brook <paul@codesourcery.com>
772
773 * configure.ac: Set ABI_TWEAKS_SRCDIR.
774 * configure.host: Set abi_tweaks_dir. Check for atomicity.h when
775 setting atomicity_dir. Override type_cpu for arm based targets.
776 * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
777 * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
778 * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
779 * libsupc++/vec.cc: Ditto.
780 * config/cpu/arm/cxxabi_tweaks.h: New file.
781 * config/cpu/generic/cxxabi_tweaks.h: New file.
782 * */Makefile.in: Regenerate.
783 * configure: Regenerate.
784
785 2004-07-02 Paolo Carlini <pcarlini@suse.de>
786
787 * include/bits/type_traits.h (_Is_normal_iterator): Move...
788 * include/bits/cpp_type_traits.h: ... here, renamed to
789 __is_normal_iterator and consistent with the other traits.
790 * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
791 to the struct __copy_normal and three specializations.
792 (__copy_backward_output_normal_iterator,
793 __copy_backward_input_normal_iterator): Likewise, convert to
794 the struct __copy_backward_normal and three specializations.
795 (copy, copy_backward): Use the latter.
796 (__copy_aux, __copy_backward_aux): Very minor tweaks.
797
798 2004-07-01 Paolo Carlini <pcarlini@suse.de>
799
800 * include/bits/stl_algobase.h (__copy_trivial): Remove.
801 (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
802 __is_trivially_copyable, __are_same and __copy::copy.
803 (__copy): Rewrite as a class template and two specializations.
804 (__copy_ni2): Simplify, just call __copy_aux.
805
806 * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
807 check.
808 * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
809 for destination value type != source value type.
810
811 2004-07-01 Benjamin Kosnik <bkoz@redhat.com>
812 Per Bothner <per@bothner.com>
813 Mohan Embar <gnustuff@thisiscool.com>
814
815 PR libstdc++/16248
816 * include/bits/concurrence.h (__glibcxx_mutex_type): New.
817 (__glibcxx_mutex): Encapsulate mutex init function into type for
818 threaded configurations without __GTHREAD_MUTEX_INIT.
819 (lock::lock): Make device member a reference.
820 (lock::~lock): Same.
821 * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
822 to mutex_type.
823 * src/allocator.cc: Same.
824
825 2004-06-30 Brad Spencer <spencer@infointeractive.com>
826
827 * include/ext/mt_allocator.h: Handle allocations at static
828 initialization that happen before _S_options is (automatically)
829 constructed; set _S_init even if _M_force_new is true.
830
831 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
832
833 * config/linker-map.gnu: Revert new exports.
834
835 2004-06-30 Benjamin Kosnik <bkoz@redhat.com>
836 Stuart Anderson <anderson@netsweng.com>
837
838 * config/linker-map.gnu: Add destructor exports for abstract base
839 classes to conform to LSB.
840
841 2004-06-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
842 Paolo Carlini <pcarlini@suse.de>
843
844 * include/bits/cpp_type_traits.h: Add __is_pointer and
845 __is_trivially_copyable.
846 * include/bits/stl_algobase.h (fill, fill_n): Slightly
847 tweak to use the latter.
848 (__copy_backward_dispatch): Remove.
849 (__copy_backward_aux): Rewrite to use __is_pointer and
850 __is_trivially_copyable and __copy_backward::copy_b.
851 (__copy_backward): Rewrite as a class template and two
852 specializations.
853
854 2004-06-30 Paolo Carlini <pcarlini@suse.de>
855
856 * testsuite/25_algorithms/copy.cc: Move to...
857 * testsuite/25_algorithms/copy/1.cc: ... here, extend.
858 * testsuite/25_algorithms/copy/2.cc: New.
859 * testsuite/25_algorithms/copy/3.cc: New.
860 * testsuite/25_algorithms/copy/4.cc: New.
861
862 2004-06-29 Paul Brook <paul@codesourcery.com>
863
864 * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
865 element size in the cookie.
866
867 2004-06-28 Paolo Carlini <pcarlini@suse.de>
868
869 * include/bits/cpp_type_traits.h: Move the additions to
870 namespace __gnu_internal outside of namespace std; trivial
871 formatting fixes.
872
873 2004-06-28 Benjamin Kosnik <bkoz@redhat.com>
874
875 * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
876 Revert -Weffc++ changes that defined copy ctory and or assignment
877 operator.
878 * libsupc++/tinfo.cc (__upcast_result): Same.
879
880 2004-06-28 Paolo Carlini <pcarlini@suse.de>
881
882 * src/localename.cc (locale::_Impl::_Impl): Slightly improve
883 the algorithm used to name the categories.
884
885 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
886
887 * include/Makefile.am: Give a .gch extension to
888 the PCH files, not only to the directory.
889 * include/Makefile.in: Regenerate.
890
891 2004-06-28 Paolo Carlini <pcarlini@suse.de>
892
893 * config/locale/gnu/monetary_members.cc
894 (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
895 assignments of _M_decimal_point and _M_thousands_sep.
896
897 2004-06-27 Paolo Carlini <pcarlini@suse.de>
898
899 * docs/html/17_intro/contribute.html: Update some links.
900 * docs/html/17_intro/porting-howto.html: Likewise.
901 * docs/html/17_intro/porting-howto.xml: Likewise.
902 * docs/html/18_support/howto.html: Likewise.
903 * docs/html/21_strings/howto.html: Likewise.
904 * docs/html/27_io/howto.html: Likewise.
905 * docs/html/configopts.html: Likewise.
906 * docs/html/ext/howto.html: Likewise.
907 * docs/html/faq/index.html: Likewise.
908 * docs/html/install.html: Don't mention 2.x compilers.
909
910 2004-06-27 Paolo Carlini <pcarlini@suse.de>
911
912 * include/ext/rope: Trivial formatting fixes.
913 * include/ext/ropeimpl.h: Likewise.
914
915 2004-06-26 Paolo Carlini <pcarlini@suse.de>
916
917 PR libstdc++/16210
918 * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
919 availability of strto(u)ll, not used anymore in the iostreams.
920 * configure: Regenerate.
921
922 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
923
924 PR libstdc++/16182
925 * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
926 AC_DEFINE_UNQUOTED.
927 * configure: Regenerate.
928
929 2004-06-25 Paul Brook <paul@codesourcery.com>
930
931 * libsupc++/cxxabi.h: Define __ARM_EABI__
932 (__guard): Use it.
933 * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
934
935 2004-06-25 Paul Brook <paul@codesourcery.com>
936
937 * include/bits/concurrence.h: Still create mutex object when
938 single-threaded.
939
940 2004-06-25 Paolo Carlini <pcarlini@suse.de>
941
942 * include/bits/stl_algobase.h (fill, fill_n): Revert last
943 change: actually we need to copy construct an object of type
944 _Tp, not of type iterator_traits<>::value_type, therefore the
945 code is ok.
946
947 2004-06-25 Paolo Carlini <pcarlini@suse.de>
948
949 * include/bits/stl_algobase.h (fill, fill_n): Tighten the
950 dispatch: use iterator_traits<>::value_type, not _Tp.
951
952 2004-06-25 Paolo Carlini <pcarlini@suse.de>
953
954 * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
955 * testsuite/25_algorithms/fill/2.cc: Likewise.
956
957 2004-06-25 Dan Nicolaescu <dann@ics.uci.edu>
958 Paolo Carlini <pcarlini@suse.de>
959
960 * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
961 for fill and fill_n, respectively: when copying is cheap, use a
962 temporary to avoid a memory read in each iteration.
963
964 2004-06-25 Paolo Carlini <pcarlini@suse.de>
965
966 * testsuite/25_algorithms/fill/1.cc: New.
967 * testsuite/25_algorithms/fill/2.cc: Likewise.
968
969 2004-06-25 Benjamin Kosnik <bkoz@redhat.com>
970
971 * include/debug/formatter.h (__gnu_debug::_Error_formatter):
972 Remove copy constructor and assignment operator.
973
974 2004-06-24 Benjamin Kosnik <bkoz@redhat.com>
975
976 * include/bits/concurrence.h (__gnu_cxx::lock): New.
977 * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
978 (__pool_base::_M_get_mutex): New.
979 * include/bits/allocator.h: Tweak.
980 * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
981 * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
982 * include/bits/stl_threads.h: Remove.
983 * include/Makefile.am: Also here.
984 * include/Makefile.in: Regenerate.
985
986 * src/locale_init.cc: Use __gnu_cxx::lock.
987
988 * src/allocator.cc: Move all instantiations...
989 * src/allocator-inst.cc: ...here.
990
991 2004-06-23 Andrew Pinski <apinski@apple.com>
992
993 * linkage.m4: Remove check for libmx.
994 * configure: Regenerate.
995
996 2004-06-23 Paolo Carlini <pcarlini@suse.de>
997
998 PR libstdc++/16154
999 * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
1000 Don't require the _DefaultConstructibleConcept.
1001 (struct _ForwardIteratorConcept): Require it here.
1002
1003 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
1004
1005 * include/bits/istream.tcc (getline): Make sure arguments passed
1006 to min/max have the same type.
1007 * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
1008 * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
1009
1010 2004-06-22 Benjamin Kosnik <bkoz@redhat.com>
1011
1012 * docs/html/abi.html: Update links.
1013
1014 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1015
1016 * testsuite/26_numerics/complex_inserters_extractors.cc,
1017 complex_value.cc, buggy_complex.cc: Move to...
1018 * testsuite/26_numerics/complex/: ... here.
1019 * testsuite/26_numerics/c99_classification_macros_c++.cc,
1020 c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
1021 fabs_inline.cc: Move to...
1022 * testsuite/26_numerics/cmath/: ... here.
1023 * testsuite/26_numerics/binary_closure.cc, slice.cc,
1024 slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
1025 valarray_name_lookup.cc, valarray_operators.cc,
1026 valarray_subset_assignment.cc: Move to...
1027 * testsuite/26_numerics/valarray/: ... here (new dir).
1028 * testsuite/26_numerics/sum_diff.cc: Move to...
1029 * testsuite/26_numerics/numeric/: ... here (new dir).
1030
1031 2004-06-22 Paolo Carlini <pcarlini@suse.de>
1032
1033 * include/std/std_istream.h (ignore(streamsize __n = 1,
1034 int_type __delim = traits_type::eof())): Split into...
1035 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1036 int_type __delim)): The first two can be much more simpler
1037 and efficient than the fully general case; also, the last
1038 two can take advantage of the same mechanism already used
1039 for getline.
1040 * include/bits/istream.tcc (ignore(streamsize __n = 1,
1041 int_type __delim = traits_type::eof()): Remove.
1042 (ignore(), ignore(streamsize __n), ignore(streamsize __n,
1043 int_type __delim)): New.
1044
1045 2004-06-21 Loren J. Rittle <ljrittle@acm.org>
1046
1047 * config/linker-map.gnu: Use wildcards for
1048 __basic_file::sys_open(FILE*, _Ios_Openmode).
1049
1050 2004-06-20 Paolo Carlini <pcarlini@suse.de>
1051
1052 * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
1053
1054 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1055
1056 * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
1057 the alignment requested.
1058 (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
1059 (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
1060 (__mt_alloc<>::deallocate): Likewise.
1061
1062 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1063
1064 PR libstdc++/16020
1065 * include/debug/safe_base.h
1066 (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
1067 _Safe_sequence_base::operator=): Provide definitions.
1068 * testsuite/23_containers/bitset/cons/16020.cc: New.
1069
1070 2004-06-18 Benjamin Kosnik <bkoz@redhat.com>
1071
1072 * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
1073 (__pool_base): Remove unused template parameter. Add
1074 protected. Move lock data into __pool_base::_Lock. Remove static
1075 on member functions.
1076 (__pool_base::_M_get_free_list): New.
1077 (__pool_alloc): Move _S_force new here.
1078 * src/allocator.cc: Move out of line __pool_base definitions here.
1079 * config/linker-map.gnu: Export bits from __pool_base.
1080
1081 2004-06-18 Paolo Carlini <pcarlini@suse.de>
1082
1083 * config/locale/gnu/numeric_members.cc
1084 (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
1085 assignments of _M_decimal_point and _M_thousands_sep.
1086 * config/locale/gnu/time_members.cc
1087 (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
1088 and reformat assignments of date and time fields.
1089
1090 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1091
1092 * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
1093 to use _Data_allocate.
1094 * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
1095 (rope<>::_S_substring): Likewise.
1096 (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
1097 (rope<>::c_str()): Likewise.
1098 (rope<>::replace_with_c_str()): Likewise.
1099
1100 * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
1101 Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
1102 not _RopeRep.
1103 (_Rope_iterator_base<>::_S_setcache): Likewise.
1104 (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
1105 (rope<>::_S_substring): Likewise.
1106 (rope<>::_S_dump): Likewise.
1107 (rope<>::_S_fetch_ptr): Likewise.
1108 (rope<>::_S_compare): Likewise.
1109 (rope<>::replace_with_c_str()): Likewise.
1110
1111 * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
1112 * testsuite/ext/rope/2.cc: New.
1113
1114 2004-06-16 Paolo Carlini <pcarlini@suse.de>
1115 Matt Austern <austern@apple.com>
1116
1117 * testsuite/ext/rope/3.cc: New.
1118
1119 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1120
1121 * acinclude.m4: Remove useless multilib configury.
1122 * Makefile.am: Remove useless multilib rules.
1123 * aclocal.m4: Regenerate.
1124 * Makefile.in: Regenerate.
1125 * configure: Regenerate.
1126
1127 2004-06-15 Paolo Carlini <pcarlini@suse.de>
1128
1129 * include/ext/hashtable.h: Trivial formatting fixes.
1130 * include/ext/rb_tree: Likewise.
1131
1132 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1133
1134 * include/ext/hash_map: Trivial formatting fixes.
1135 * include/ext/hash_set: Likewise.
1136 * include/ext/memory: Likewise.
1137 * include/ext/numeric: Likewise.
1138
1139 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
1140
1141 * Makefile.in: Regenerate with automake 1.8.5.
1142 * aclocal.m4: Same.
1143 * include/Makefile.in: Same.
1144 * libmath/Makefile.in: Same.
1145 * libsupc++/Makefile.in: Same.
1146 * po/Makefile.in: Same.
1147 * src/Makefile.in: Same.
1148 * testsuite/Makefile.in: Same.
1149
1150 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1151
1152 * include/ext/slist: Trivial formatting fixes.
1153
1154 2004-06-14 Paolo Carlini <pcarlini@suse.de>
1155
1156 * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
1157 Don't use the 'magic number' 10 in the computation of __minlen;
1158 never access __name past __minlen; in the loop over __i3, don't
1159 decrease __nmatches and increase __i3 at once, only either of
1160 the two; tidy.
1161
1162 2004-06-13 Paolo Carlini <pcarlini@suse.de>
1163
1164 * include/bits/locale_facets.tcc (time_get<>::do_get_time,
1165 time_get<>::do_get_date): Use only once _M_extract_via_format,
1166 instead of going through "%X"/"%x" and calling it two times
1167 (+ using widen).
1168
1169 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1170
1171 * include/ext/algorithm: Trivial formatting fixes.
1172 * include/ext/functional: Likewise.
1173 * include/ext/hash_fun.h: Likewise.
1174 * include/ext/iterator: Likewise.
1175
1176 2004-06-12 Paolo Carlini <pcarlini@suse.de>
1177
1178 * include/bits/basic_string.tcc (find(const _CharT*, size_type,
1179 size_type)): Reimplement using std::search.
1180 * src/string-inst.cc: Instantiate std::search for char/wchar_t.
1181
1182 2004-06-12 Dhruv Matani <dhruvbird@gmx.net>
1183
1184 * testsuite/performance/21_strings/string_find.cc: New.
1185
1186 2004-06-10 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
1187
1188 * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
1189
1190 2004-06-10 Jan van Dijk <jan@etpmod.phys.tue.nl>
1191
1192 * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
1193 this function return a value.
1194
1195 2004-06-09 Paolo Carlini <pcarlini@suse.de>
1196
1197 PR libstdc++/15775
1198 * include/bits/stl_deque.h: Consistently with stl_set.h, define
1199 pointer as allocator's pointer, likewise for reference,
1200 const_pointer, and const_reference.
1201 * include/bits/stl_list.h: Likewise.
1202 * include/bits/stl_map.h: Likewise.
1203 * include/bits/stl_multimap.h: Likewise.
1204 * include/bits/stl_vector.h: Likewise.
1205
1206 2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
1207
1208 * crossconfig.m4: Remove signbit, signbitf, signbitl.
1209 * linkage.m4: Comment LIBMATHOBJS, tweak others. AC_DEFINES for
1210 builtin math functions instead of AC_DEFINE_UNQUOTED.
1211 * configure: Regenerate.
1212
1213 2004-06-08 Benjamin Kosnik <bkoz@redhat.com>
1214
1215 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
1216 * docs/doxygen/mainpage.html: Remove links.
1217
1218 2004-06-08 Jason Merrill <jason@redhat.com>
1219
1220 * config/linker-map.gnu: Use wildcards for
1221 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
1222
1223 2004-06-08 Paolo Carlini <pcarlini@suse.de>
1224
1225 * include/ext/pool_allocator.h: Convert to a global free-list,
1226 as per the original SGI/HP design: move the implementation
1227 details to struct __pool_base, from which __pool_alloc derives.
1228 * src/allocator.cc: Instantiate __pool_base.
1229
1230 2004-06-07 Dhruv Matani <dhruvbird@gmx.net>
1231 Paolo Carlini <pcarlini@suse.de>
1232
1233 * testsuite/testsuite_performance.h
1234 (resource_counter::allocated_memory): Make it return the right
1235 number of bytes requested by the allocators/application. This is
1236 the sbrk+mmaped memory.
1237
1238 2004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
1239
1240 * include/std/std_complex.h (log): Tidy.
1241
1242 2004-05-31 Benjamin Kosnik <bkoz@redhat.com>
1243
1244 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
1245 * testsuite/testsuite_abi.cc: Same.
1246 * configure.ac (libtool_VERSION): Bump to 6:1:0.
1247 * configure: Regenerate.
1248 * aclocal.m4: Regenerate.
1249
1250 2004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1251
1252 * include/std/std_complex.h (complex<_Tp>): Properly indent
1253 to follow C++STYLE.
1254 (complex<>::__rep): New.
1255 (__complex_abs): New. Dispatch to built-ins.
1256 (abs): Use them.
1257 (__complex_arg): New. Dispatch to built-ins.
1258 (arg): Use it.
1259 (__complex_cos): New. Dispatch to built-ins.
1260 (cos): Use it.
1261 (__complex_cosh): New. Dispatch to built-ins.
1262 (cosh): Use it.
1263 (__complex_exp): New. Dispatch to built-ins.
1264 (exp): Use it.
1265 (__complex_log): New. Dispatch to built-ins.
1266 (log): Use it.
1267 (__complex_sin): New. Dispatch to built-ins.
1268 (sin): Use it.
1269 (__complex_sinh): New. Dispatch to built-ins.
1270 (sinh): Use it.
1271 (__complex_sqrt): New. Dispatch to built-ins.
1272 (sqrt): Use it.
1273 (__complex_tan): New. Dispatch to built-ins.
1274 (tan): Use it.
1275 (__complex_tanh): New. Dispatch to built-ins.
1276 (tanh): Use it.
1277 (__complex_pow): New. Dispatch to built-ins.
1278 (pow): Use it.
1279
1280 2004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
1281 Benjamin Kosnik <bkoz@redhat.com>
1282
1283 PR libstdc++/14600
1284 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
1285 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
1286 * config/io/basic_file_stdio.cc (__basic_file::file): New.
1287 * config/io/basic_file_stdio.h: Define.
1288
1289 2004-05-27 Benjamin Kosnik <bkoz@redhat.com>
1290
1291 PR libstdc++/15675
1292 * docs/html/documentation.html: Update doxygen links for 3.4.0.
1293
1294 2004-05-27 Jan Beulich <jbeulich@novell.com>
1295
1296 * scripts/create_testsuite_files: Tweak.
1297
1298 2004-05-25 Benjamin Kosnik <bkoz@redhat.com>
1299
1300 PR libstdc++/15489
1301 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
1302 bits to do the same thing.
1303
1304 2004-05-24 Paolo Carlini <pcarlini@suse.de>
1305
1306 * include/bits/istream.tcc (ignore): Correctly deal with
1307 n == numeric_limits<streamsize>::max().
1308 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
1309
1310 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
1311 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
1312 __n == numeric_limits<>::min().
1313
1314 * include/bits/istream.tcc: Minor tweaks.
1315
1316 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1317 Tighten.
1318 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1319 Likewise.
1320 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1321 Likewise.
1322 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1323 Likewise.
1324 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1325
1326 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1327
1328 PR libstdc++/12854
1329 Fixups for -Weffc++.
1330 * include/bits/basic_string.h (basic_string::operator=): Return
1331 pointer to this instead of result of assign. Although redundant,
1332 this doesn't impact resultant codegen.
1333
1334 * include/bits/locale_facets.h (__numpunct_cache): Declare
1335 assignment opxserator and copy constructor private.
1336 (__timepunct_cache): Same.
1337 (__moneypunct_cache): Same.
1338 (collate): Use member initialization list for _M_c_locale_collate.
1339 * config/locale/gnu/messages_members.h: Same.
1340 * config/locale/gnu/time_members.h (__timepunct): Same.
1341 * src/codecvt.cc: Use member initialization list to initialize
1342 _M_c_locale_codecvt.
1343 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
1344 * config/os/gnu-linux/ctype_noninline.h: Same.
1345 * src/locale.cc (_Impl): Same.
1346 * src/locale_init.cc: Same.
1347 * src/localename.cc: Same.
1348
1349 * include/bits/basic_ios.h (basic_ios): Complete member
1350 initialization list.
1351 * include/bits/istream.tcc (basic_istream::sentry): Same.
1352 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
1353 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
1354 _M_pback to member initialization list.
1355 * include/std/std_streambuf.h: Same.
1356 * include/std/std_sstream.h: Same, for _M_mode.
1357 * src/ios.cc (ios_base): Same.
1358
1359 * include/ext/rope: Make derived classes match exception
1360
1361 specifications. Add copy constructors and assignment operators.
1362
1363 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
1364 constructor and assignment operator protected.
1365 (_Safe_iterator_base): Same.
1366 * include/debug/formatter.h (_Error_formatter): Define copy
1367 constructor and assignment operator.
1368
1369 * include/backward/strstream: Declare assignment operator and copy
1370 constructor private.
1371
1372 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1373
1374 * testsuite/testsuite_hooks.h (func_callback): Declare copy
1375 constructor and assignment operator private.
1376 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
1377 exception specifications of base class.
1378 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
1379 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
1380 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1381
1382 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1383
1384 * libsupc++/cxxabi.h: Remove duplicated and useless public and
1385 private keywords in class declarations. Format. Use
1386 stddef.h. Expose declarations to "C" compilation.
1387 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
1388 assignment operator.
1389 (__dyncast_result): Same.
1390 * libsupc++/vec.cc (uncatch_exception): Same, use member
1391 initialization list.
1392
1393 2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
1394
1395 * testsuite/abi_check.cc: Add unistd.h.
1396
1397 2004-05-22 Paolo Carlini <pcarlini@suse.de>
1398
1399 PR libstdc++/15565
1400 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
1401 __int_to_char(unsigned long long)): Showpos is not relevant
1402 for unsigned types.
1403 * testsuite/22_locale/num_put/put/char/15565.cc: New.
1404 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
1405
1406 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
1407 char.
1408 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
1409 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
1410 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
1411 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
1412 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
1413 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
1414
1415 2004-05-21 Matthias Klose <doko@debian.org>
1416
1417 * docs/doxygen/run_doxygen: Bump required version.
1418
1419 2004-05-21 Benjamin Kosnik <bkoz@redhat.com>
1420
1421 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
1422 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
1423
1424 2004-05-21 Paolo Carlini <pcarlini@suse.de>
1425
1426 * include/bits/istream.tcc (ignore): Remove redundant line.
1427 (readsome): Tidy, closely following 27.6.1.3, p30.
1428
1429 2004-05-20 Paolo Carlini <pcarlini@suse.de>
1430
1431 * include/bits/istream.tcc (operator>>(basic_istream<>&,
1432 basic_string<>&)): Use a temporary buffer, thus avoiding
1433 reallocation for common case.
1434 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
1435 New.
1436 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
1437 Likewise.
1438
1439 * include/bits/istream.tcc: Const-ification of a few variables.
1440
1441 * include/bits/ostream.tcc: Trivial formatting fixes and
1442 const-ification of some variables.
1443
1444 2004-05-20 Benjamin Kosnik <bkoz@redhat.com>
1445
1446 PR libstdc++/15123
1447 PR libstdc++/13928
1448 * docs/doxygen/Intro.3: Remove Allocators.3.
1449 Add new extension headers, extension namespace list.
1450 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
1451 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
1452 __gnu_debug::. Remove __policy_ renames.
1453 * docs/doxygen/guide.html: Add dot note.
1454 * docs/doxygen/stdheader.cc: Edit, add files.
1455 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
1456
1457 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1458
1459 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
1460
1461 2004-05-18 Jan Beulich <jbeulich@novell.com>
1462
1463 PR libstdc++/15489
1464 * scripts/create_testsuite_files: Also find source files through
1465 symbolic links.
1466
1467 2004-05-18 Jan Beulich <jbeulich@novell.com>
1468
1469 PR libstdc++/15488
1470 * testsuite/lib/libstdc++.exp: Make test files writable.
1471
1472 2004-05-18 Paolo Carlini <pcarlini@suse.de>
1473
1474 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
1475 tweaks.
1476
1477 2004-05-18 Dhruv Matani <dhruvbird@gmx.net>
1478
1479 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
1480 allocation loop which removes blocks from the global free list
1481 from O(N) to O(1) when the required blocks are <= the number
1482 available.
1483
1484 2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
1485
1486 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
1487
1488 2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
1489
1490 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
1491 * testsuite/23_containers/deque/14340.cc: New.
1492 * testsuite/23_containers/list/14340.cc: New.
1493 * testsuite/23_containers/map/14340.cc: New.
1494 * testsuite/23_containers/multimap/14340.cc: New.
1495 * testsuite/23_containers/multiset/14340.cc: New.
1496 * testsuite/23_containers/set/14340.cc: New.
1497 * testsuite/23_containers/vector/14340.cc: New.
1498
1499 2004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
1500
1501 PR libstdc++/14340
1502 * include/debug/safe_iterator.h (_Safe_iterator converting
1503 constructor): Only allow declaration to instantiate when the
1504 incoming _Safe_iterator has exactly the right iterator type.
1505
1506 2004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
1507
1508 * include/bits/boost_concept_check.h: Fix old attribute syntax.
1509 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
1510 to pass concept-checks.
1511 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1512 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1513 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1514
1515 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1516
1517 * include/std/std_bitset.h: Minor formatting fixes.
1518
1519 2004-05-16 Paolo Carlini <pcarlini@suse.de>
1520
1521 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1522 Consistently update __bin._M_free[0].
1523 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
1524 __bin._M_free[0] to simplify the while loop (i.e., the number
1525 of iterations becomes known at the outset).
1526
1527 2004-05-15 Paolo Carlini <pcarlini@suse.de>
1528
1529 * include/std/std_bitset.h: Trivial formatting fixes.
1530
1531 2004-05-14 Paolo Carlini <pcarlini@suse.de>
1532 Ivan Godard <igodard@pacbell.net>
1533
1534 PR libstdc++/15361
1535 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
1536 * testsuite/23_containers/bitset/ext/15361.cc: New.
1537
1538 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1539
1540 PR libstdc++/15046
1541 * crossconfig.m4: Add C99 math bits for linux crosses.
1542 * configure: Regenerate.
1543
1544 2004-05-13 Simon Marshall <simon.marshall@misys.com>
1545 Benjamin Kosnik <bkoz@redhat.com>
1546
1547 PR libstdc++/15090
1548 * include/bits/locale_facets.h: Fix for -fno-for-scope.
1549 * include/debug/safe_sequence.h: Same.
1550 * include/debug/safe_iterator.tcc: Same.
1551 * src/debug.cc: Same.
1552 * src/locale.cc: Same.
1553 * src/locale_init.cc: Same.
1554 * src/localename.cc: Same.
1555 * config/locale/gnu/ctype_members.cc: Same.
1556 * config/locale/gnu/numeric_members.cc: Same.
1557 * testsuite/testsuite_abi.cc: Same.
1558 * testsuite/testsuite_hooks.cc: Same.
1559
1560 2004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
1561
1562 * docs/html/abi.html: Document effect of -fabi-version on value
1563 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
1564 Fix markup.
1565
1566 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1567
1568 PR libstdc++/15074
1569 * docs/html/faq/index.html: Update docs for libsupc++ usage.
1570
1571 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1572
1573 PR libstdc++/15412
1574 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
1575 __gnu_internal.
1576 (_GLIBCXX_mutex_address): Same.
1577 (_GLIBCXX_once): Same.
1578 (_GLIBCXX_mutex_init): Same.
1579 (_GLIBCXX_mutex_address_init): Same.
1580
1581 2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
1582
1583 * docs/html/abi.html: New.
1584 * docs/html/abi.txt: Remove.
1585 * docs/html/documentation.html: Add link.
1586 * testsuite/Makefile.am: Add files.
1587 * testsuite/Makefile.in: Regenerated.
1588 * testsuite/abi_check.cc: Move and modify code into...
1589 * testsuite/testsuite_abi.cc: Add.
1590 * testsuite/testsuite_abi.h: Add.
1591
1592 * docs/html/17_intro/TODO: Update.
1593 * include/bits/stl_pair.h: Format.
1594
1595 2004-05-06 Matthias Klose <doko@debian.org>
1596
1597 * include/backward/iterator.h: Add GPL copyright info,
1598 with exception clause.
1599 * include/bits/boost_concept_check.h: Likewise.
1600 * include
1601 * libsupc++/tinfo.h: Likewise.
1602 * po/string_literals.cc: Likewise.
1603
1604 2004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
1605
1606 * acinclude.m4: Replace -W with more speaking -Wextra.
1607 * configure: Rebuilt.
1608
1609 2004-05-03 Paolo Carlini <pcarlini@suse.de>
1610
1611 Optimize locale::_M_impl->_M_names for the most common cases:
1612 !_M_names[0] means unnamed; !_M_names[1] means all the categories
1613 the same name (_M_names[0] && _M_names[1] means that the full set
1614 of _M_names must be processed, the general case).
1615 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
1616 Tweak, saving work when !_M_names[1].
1617 (locale::locale(const locale&, _Facet*): Simplify: now just setting
1618 _M_names[0] = 0 means unnamed.
1619 * src/locale.cc (locale::operator==): Deal first with the common,
1620 easy cases, otherwise fall back to locale::name().
1621 (locale::name()): Tweak, if !_M_names[0] just return "*".
1622 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
1623 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
1624 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
1625 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
1626 Simplify when !std::strchr, just updating _M_names[0]; clean up.
1627 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
1628 for the general case (full set of names), then do the usual work;
1629 clean up.
1630
1631 * src/locale.cc (locale::name()): Reserve space in __ret.
1632 * src/locale_init.cc (locale::global(const locale&)): Save
1633 the name in a temporary.
1634 * src/localename.cc (locale::locale(const char*)): Reserve space
1635 in __str.
1636
1637 2004-04-29 Paolo Carlini <pcarlini@suse.de>
1638
1639 * src/locale.cc (locale::operator==): Always avoid constructing
1640 locale::name(), directly compare pairs of _M_names.
1641
1642 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1643
1644 * include/bits/istream.tcc: Fix comment.
1645
1646 2004-04-26 Paolo Carlini <pcarlini@suse.de>
1647
1648 * include/bits/stl_vector.h: Trivial formatting fixes.
1649 * include/bits/vector.tcc: Likewise.
1650
1651 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1652
1653 PR libstdc++/15002 (continued again)
1654 * include/bits/istream.tcc (getline(basic_istream<>&,
1655 basic_string<>&, _CharT)): Use a temporary buffer, thus
1656 avoiding reallocation for common case.
1657
1658 * include/bits/basic_string.tcc (_S_construct(_InIterator,
1659 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
1660 of temporary buffer to a power of two.
1661
1662 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
1663
1664 2004-04-25 Paolo Carlini <pcarlini@suse.de>
1665
1666 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
1667 New.
1668 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
1669 Likewise.
1670 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
1671
1672 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1673 Petur Runolfsson <peturr02@ru.is>
1674
1675 PR libstdc++/15002 (continued)
1676 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
1677 streamsize, char_type)): Use traits::find/copy in a loop to speed
1678 up greatly the function in the common case (I/O buffer size >> 1).
1679
1680 2004-04-24 Paolo Carlini <pcarlini@suse.de>
1681
1682 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
1683
1684 * include/bits/istream.tcc (getline(basic_istream<>&,
1685 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
1686 of sbumpc(), consistently with the other functions, thus also
1687 dealing correctly with the case of exceeded string::max_size().
1688
1689 2004-04-24 Matthias Klose <doko@debian.org>
1690
1691 Jonathan Wakely <cow@compsoc.man.ac.uk>
1692 * docs/html/configopts.html: Fix reference to allocator config option.
1693
1694 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
1695
1696 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
1697 * configure: Regenerate.
1698
1699 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
1700
1701 PR libstdc++/15047, libstdc++/11610
1702 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
1703 (libstdc++_init): Don't pass outdir to v3-copy-files.
1704
1705 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1706
1707 * include/bits/deque.tcc: Trivial formatting fixes.
1708 * include/bits/stl_deque.h: Likewise.
1709 * include/bits/stl_list.h: Likewise.
1710 * include/bits/stl_tree.h: Likewise.
1711
1712 2004-04-21 Paolo Carlini <pcarlini@suse.de>
1713 Andrew Pinski <pinskia@physics.uc.edu>
1714
1715 * include/bits/basic_string.tcc (_M_mutate): Don't compute
1716 __src unnecessarily.
1717
1718 2004-04-19 Benjamin Kosnik <bkoz@redhat.com>
1719
1720 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
1721 Clarify assertion, set test variable to false before assert.
1722 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
1723 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
1724 * testsuite/27_io/ios_base/storage/2.cc: Same.
1725
1726 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
1727 function returns.
1728 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
1729 * testsuite/27_io/fpos/14320-3.cc: Same.
1730
1731 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
1732 * testsuite/27_io/fpos/1.cc: Same.
1733 * testsuite/27_io/basic_stringstream/2.cc: Same.
1734 * testsuite/27_io/basic_stringbuf/4.cc: Same.
1735 * testsuite/27_io/basic_stringbuf/1.cc: Same.
1736 * testsuite/27_io/basic_stringbuf/2.cc: Same.
1737 * testsuite/27_io/basic_streambuf/2.cc: Same.
1738 * testsuite/27_io/basic_ostringstream/2.cc: Same.
1739 * testsuite/27_io/basic_ostream/2.cc: Same.
1740 * testsuite/27_io/basic_ofstream/2.cc: Same.
1741 * testsuite/27_io/basic_istringstream/2.cc: Same.
1742 * testsuite/27_io/basic_istream/2.cc: Same.
1743 * testsuite/27_io/basic_iostream/2.cc: Same.
1744 * testsuite/27_io/basic_ios/2.cc: Same.
1745 * testsuite/27_io/basic_ifstream/2.cc: Same.
1746 * testsuite/27_io/basic_fstream/2.cc: Same.
1747 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
1748
1749 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
1750 unsigned against zero.
1751 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
1752 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
1753
1754 * testsuite/18_support/new_delete_placement.cc: Initialize
1755 variables before first use.
1756 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
1757 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
1758 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
1759 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
1760 Same.
1761 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
1762 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
1763 Same.
1764 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
1765 * testsuite/27_io/types/2.cc: Same.
1766
1767 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
1768 file name.
1769 * testsuite/27_io/fpos/14775.cc: Same.
1770
1771 2004-04-19 Paolo Carlini <pcarlini@suse.de>
1772
1773 PR libstdc++/15002 (partial)
1774 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
1775 Special case __n2 == 1, not calling traits_type::assign/copy.
1776
1777 2004-04-17 Benjamin Kosnik <bkoz@redhat.com>
1778
1779 * include/bits/stl_bvector.h: Use _M_impl._M_start.
1780
1781 2004-04-16 Benjamin Kosnik <bkoz@redhat.com>
1782
1783 * include/bits/c++config (_GLIBCXX_STD): New.
1784 * src/list.cc: Use it.
1785 * include/std/std_bitset.h: Same.
1786 * include/bits/vector.tcc: Same.
1787 * include/bits/stl_set.h: Same.
1788 * include/bits/stl_multiset.h: Same.
1789 * include/bits/stl_multimap.h: Same.
1790 * include/bits/stl_map.h: Same.
1791 * include/bits/stl_list.h: Same.
1792 * include/bits/stl_vector.h: Same.
1793 * include/bits/stl_bvector.h: Same.
1794 * include/bits/stl_deque.h: Same.
1795 * include/bits/deque.tcc: Same.
1796 * include/bits/list.tcc: Same.
1797 * include/debug/vector: Same.
1798 * include/debug/set.h: Same.
1799 * include/debug/multiset.h: Same.
1800 * include/debug/multimap.h: Same.
1801 * include/debug/map.h: Same.
1802 * include/debug/list: Same.
1803 * include/debug/deque: Same.
1804 * include/debug/bitset: Same.
1805 * include/debug/formatter.h (__gnu_debug): Remove using directive.
1806 Add using declaration for std::type_info.
1807 * include/debug/safe_iterator.h: Add using declaration for
1808 std::iterator_traits and std::pair.
1809 * src/debug_list.cc: New.
1810 * src/Makefile.am: Add debug_list.cc.
1811 * src/Makefile.in: Regenerate.
1812 * config/linker-map.gnu: Add _List_node_base exports for std and
1813 __gnu_norm.
1814
1815 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
1816 idiom that other containers use.
1817 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
1818
1819 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1820
1821 PR libstdc++/14975
1822 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
1823 in case of error.
1824 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
1825 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
1826
1827 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1828
1829 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
1830 used anymore.
1831 * config.h.in: Regenerate.
1832
1833 2004-04-16 Paolo Carlini <pcarlini@suse.de>
1834
1835 * config/locale/generic/monetary_members.cc
1836 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
1837 btowc unnecessarily, just cast to wchar_t (the concerned chars
1838 all belong to the basic character set).
1839 * config/locale/generic/numeric_members.cc
1840 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1841 * config/locale/gnu/monetary_members.cc
1842 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
1843 * config/locale/gnu/numeric_members.cc
1844 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
1845
1846 2004-04-15 Paolo Carlini <pcarlini@suse.de>
1847
1848 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
1849 avoid constructing unnecessarily this->name().
1850
1851 2004-04-14 Zack Weinberg <zack@codesourcery.com>
1852
1853 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
1854 Change definition of CXX to use $(shell) instead of backticks.
1855 * testsuite/Makefile.in: Regenerate.
1856
1857 2004-04-12 Dhruv Matani <dhruvbird@gmx.net>
1858
1859 * testsuite/performance/20_util/allocator/list_sort_search.cc:
1860 Minor formatting fixes.
1861 * testsuite/performance/20_util/allocator/map_mt_find.cc:
1862 Likewise.
1863
1864 2004-04-12 Paolo Carlini <pcarlini@suse.de>
1865
1866 * config/locale/gnu/numeric_members.cc
1867 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
1868 in __uselocale, since btowc is called for chars belonging to
1869 the basic character set.
1870
1871 2004-04-09 Paolo Carlini <pcarlini@suse.de>
1872
1873 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
1874 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
1875 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
1876 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
1877 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
1878 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
1879 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
1880 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
1881 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
1882 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
1883 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
1884 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
1885 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
1886 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
1887 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
1888 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
1889 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
1890
1891 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1892
1893 * config/locale/generic/time_members.cc
1894 (__timepunct<char>::_M_initialize_timepunct,
1895 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
1896 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
1897 * config/locale/gnu/time_members.cc
1898 (__timepunct<char>::_M_initialize_timepunct,
1899 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
1900 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
1901 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
1902
1903 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
1904 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
1905 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
1906 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
1907 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
1908 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
1909 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
1910 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
1911 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
1912 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
1913 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
1914 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
1915 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
1916 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
1917 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
1918 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
1919 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
1920 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
1921 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
1922 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
1923 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
1924 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
1925 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
1926 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
1927 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
1928 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
1929 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
1930 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
1931 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
1932 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
1933 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
1934 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
1935 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
1936 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
1937 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
1938 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
1939
1940 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
1941
1942 2004-04-07 Paolo Carlini <pcarlini@suse.de>
1943
1944 * config/locale/gnu/monetary_members.cc
1945 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
1946 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
1947 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
1948 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
1949 * config/locale/gnu/numeric_members.cc
1950 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
1951 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
1952
1953 2004-04-06 Benjamin Kosnik <bkoz@redhat.com>
1954
1955 Fixups for EDG front end.
1956 * include/ext/rope: Instead of non-existent function
1957 _Data_allocate, use allocator's allocate. Use this.
1958 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
1959 enumerations from _Rope_RopeRep here.
1960 * include/ext/ropeimpl.h: Same.
1961 * src/ext-inst.cc (_S_min_len): Fix up definition.
1962
1963 * config/locale/gnu/ctype_members.cc: Qualify base class members
1964 with this.
1965 * config/locale/generic/ctype_members.cc: Same.
1966 * config/locale/gnu/messages_members.h: Same.
1967 * config/locale/generic/messages_members.h: Same.
1968 * src/ctype.cc: Same.
1969 * include/bits/codecvt.h: Same.
1970
1971 * include/bits/boost_concept_check.h: Declare.
1972 (__error_type_must_be_an_unsigned_integer_type): Remove this.
1973 (__error_type_must_be_an_integer_type): Remove this.
1974 (__error_type_must_be_a_signed_integer_type): Remove this.
1975
1976 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
1977
1978 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
1979 specification to definition.
1980 (__cxa_allocate_exception): Same.
1981 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
1982 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
1983 (__cxa_get_globals): Same.
1984
1985 * libsupc++/del_op.cc: Add comment about freestanding.
1986
1987 2004-04-05 Paolo Carlini <pcarlini@suse.de>
1988
1989 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
1990 The critical section is actually very small, only two assignments.
1991
1992 2004-04-04 Paolo Carlini <pcarlini@suse.de>
1993 Petur Runolfsson <peturr02@ru.is>
1994
1995 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
1996 adapted from libstdc++/11378.
1997
1998 2004-04-03 Paolo Carlini <pcarlini@suse.de>
1999
2000 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
2001 some duplicated code.
2002 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
2003 in the single threaded case.
2004 * testsuite/performance/20_util/allocator/list_sort_search.cc:
2005 Reorder and renumber the tests consistently with the other testfiles.
2006 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2007 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2008 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2009
2010 2004-04-02 Paolo Carlini <pcarlini@suse.de>
2011
2012 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2013 Rearrange arithmetic to avoid computing two divisions at
2014 each deallocation.
2015
2016 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2017
2018 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
2019 Streamline the second half, wrapping it in a single
2020 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
2021 conditionals inside loops.
2022
2023 2004-04-01 Paolo Carlini <pcarlini@suse.de>
2024
2025 PR libstdc++/14775
2026 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
2027 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
2028 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
2029 to _GLIBCXX_RES_LIMITS.
2030 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
2031 HAVE_LIMIT_*.
2032 * testsuite/testsuite_hooks.h: Declare set_file_limit.
2033 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
2034 and setrlimit(RLIMIT_FSIZE).
2035 * testsuite/27_io/fpos/14775.cc: New.
2036 * config.h.in: Regenerate.
2037 * configure: Likewise.
2038
2039 2004-03-31 Paolo Carlini <pcarlini@suse.de>
2040
2041 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
2042 In v3 uses of sscanf, the special floating-point numbers INF,
2043 INFINITY, etc., cannot occur in input, therefore, if the latter
2044 is too large, ERANGE is always stored in errno, no need of finitel.
2045
2046 2004-03-30 Benjamin Kosnik <bkoz@redhat.com>
2047
2048 PR libstdc++/14783
2049 * include/bits/stl_tree.h: Adjust initialization list order.
2050
2051 2004-03-29 Loren J. Rittle <ljrittle@acm.org>
2052
2053 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
2054
2055 2004-03-29 Paolo Carlini <pcarlini@suse.de>
2056
2057 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
2058 on allocator behavior, the memory pointed by data2 may well be not
2059 trashed.
2060
2061 2004-03-28 Chavdar Botev <cbotev@yahoo.com>
2062
2063 PR libstdc++/14245
2064 * include/bits/basic_string.tcc
2065 (basic_string::basic_string(const basic_string&)): Pass to
2066 _Rep::_M_grab the actual allocator of the string being constructed
2067 not the default constructed one.
2068
2069 2004-03-27 Benjamin Kosnik <bkoz@redhat.com>
2070
2071 libstdc++ PR/13598
2072 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
2073 (__enc_traits::_M_destroy): New.
2074 (__enc_traits::~__enc_traits): Use it.
2075 (__enc_traits::operator=): Use _M_destroy, _M_init.
2076 (__enc_traits::__enc_traits): Same.
2077
2078 2004-03-27 Petur Runolfsson <peturr02@ru.is>
2079
2080 * testsuite/ext/enc_filebuf/char/13598.cc: New.
2081
2082 2004-03-27 Paolo Carlini <pcarlini@suse.de>
2083
2084 * include/ext/mt_allocator.h: Uglify consistently names of
2085 variables, members and classes; tidy.
2086
2087 2004-03-27 Dhruv Matani <dhruvbird@gmx.net>
2088
2089 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
2090 Deallocation loop rewrote.
2091
2092 2004-03-26 Paolo Carlini <pcarlini@suse.de>
2093
2094 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2095 __mt_alloc<>::deallocate): Protect two instances of
2096 block->thread_id with __GTHREADS.
2097
2098 2004-03-25 Gawain Bolton <gp.bolton@computer.org>
2099
2100 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
2101 default argument in constructors.
2102 (_Rb_tree::_M_empty_initialize): Remove.
2103
2104 2004-03-25 Benjamin Kosnik <bkoz@redhat.com>
2105
2106 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
2107 * testsuite/23_containers/set/operators/1_neg.cc: Same.
2108
2109 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2110
2111 * include/bits/cpp_type_traits.h: Changed __is_pod
2112 completely. Now, it does not use any of the previous type_traits
2113 to detect the pod types, and it also detects function pointers as
2114 POD types.
2115
2116 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
2117 which encapsulates the internal implementation of an rb_tree. Made
2118 the allocator a base class of this class instead of the rb_tree,
2119 which was not conforming. This _Rb_tree_impl class is also
2120 specialized on whether the _Compare parameter is a POD type or
2121 not. If so, then it maintains the comparison function as a data
2122 member, otherwise it makes the _Compare parameter a base class of
2123 itself. Also, _M_key_compare is now a function instead of a data
2124 member, so that the above trick can work properly. Delegated the
2125 initialization of the other data members to this newly created
2126 class. Also, now other member functions of rb_tree must refer to
2127 _M_key_compare as _M_impl._M_key_compare(). The other data members
2128 (*) can be referenced to as _M_impl.(*), where
2129 (*) includes _M_header, and _M_node_count.
2130
2131 2004-03-25 Paolo Carlini <pcarlini@suse.de>
2132
2133 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
2134 Add _M_min_bin, the size in bytes of the smallest bin.
2135 (__mt_alloc<>::tune()): Tweak accordingly.
2136 (__mt_alloc<>::tune(size_t, ...)): Likewise.
2137 (__mt_alloc<>::block_record): Change to a union: members next
2138 and thread_id are never used at the same time.
2139 (__mt_alloc<>::allocate): Update consistently.
2140 (__mt_alloc<>::deallocate): Likewise.
2141 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
2142 _S_bin_size for the configurable _M_min_size.
2143
2144 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2145
2146 * include/bits/stl_list.h: Created a _List_impl class and made it
2147 derive from the allocator, instead of the list deriving from the
2148 allocator class, which was not conformant. Changed all references
2149 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
2150 as above (changed all references to the concerned variables).
2151
2152 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2153
2154 * include/bits/stl_deque.h: Created a _Deque_impl class and made
2155 it derive from the allocator, instead of the deque deriving from
2156 the allocator class, which was not conformant. Changed all
2157 references to the _M_start, _M_finish, _M_map, and _M_map_size to
2158 _M_impl.*.
2159 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
2160 qualification in 2 places where it was missing.
2161 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
2162 above.
2163 * include/bits/deque.tcc: Same as above (changed all references to
2164 the concerned variables).
2165
2166 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2167
2168 * include/bits/stl_vector.h: Created a _Vector_impl class and made
2169 it derive from the allocator, instead of the _Vector_base class,
2170 deriving from the allocator which was not conformant. Changed all
2171 references to the _M_start, _M_finish, and _M_end_of_storage to
2172 _M_impl.*.
2173 * include/bits/vector.tcc: Same as above (changed all references
2174 to the concerned variables).
2175
2176 2004-03-25 Dhruv Matani <dhruvbird@gmx.net>
2177
2178 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
2179 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
2180 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
2181
2182 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2183
2184 * include/ext/malloc_allocator.h: Fixed the construct function to
2185 call global placement new instead of assignment. Added a check
2186 after the return from malloc to check whether returned pointer is
2187 NULL, and if so, throw std::bad_alloc().
2188 * include/ext/debug_allocator.h: Added a check in the deallocate
2189 function to check whether the user has passed a NULL pointer or
2190 not.
2191
2192 2004-03-24 Benjamin Kosnik <bkoz@redhat.com>
2193
2194 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
2195
2196 2004-03-24 Andreas Schwab <schwab@suse.de>
2197
2198 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
2199 warning from IA64 assembler.
2200
2201 2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
2202
2203 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
2204 function call __builtin_ctz instead of the while loop.
2205 (allocate) -> If condition has __builtin_expect.
2206 (deallocate) -> Ditto.
2207 Renamed a few left-over variables and typedefs according to the
2208 C++STYLE mentioned in the documentation.
2209 Protected calls to __gthread* by __gthread_active_p(), whose value
2210 is cached in the local variable __threads_active.
2211
2212 2004-03-24 Felix Yen <fwy@alumni.brown.edu>
2213
2214 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2215 Use linear algorithm for producer.
2216
2217 2004-03-24 Paolo Carlini <pcarlini@suse.de>
2218
2219 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
2220 __mt_alloc<>::deallocate): Avoid redundant conditionals.
2221
2222 2004-03-23 Benjamin Kosnik <bkoz@redhat.com>
2223
2224 * include/bits/locale_facets.h: Tweaks for 80 column.
2225 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
2226 (__moneypunct_cache::_M_cache): Same.
2227 (num_get): Don't inherit from __num_base.
2228 (num_put): Same.
2229 (money_get): Don't inherit from money_base.
2230 (money_put): Same.
2231 (__timepunct::_M_am_pm_format): New.
2232 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
2233 (time_get::_M_extract_name): Same.
2234 (time_get::_M_extract_via_format): Same.
2235 * include/bits/locale_facets.tcc: Tweaks for 80 column.
2236 Use _M_getloc instead of getloc.
2237 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
2238 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
2239 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
2240
2241 2004-03-22 Paolo Carlini <pcarlini@suse.de>
2242
2243 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
2244 * configure: Regenerate.
2245 * config/allocator/pool_allocator_base.h: New.
2246 * include/ext/pool_allocator.h: Convert to a standard-conforming
2247 allocator.
2248 * src/allocator.cc: Tweak instantiations.
2249 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
2250 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
2251 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
2252 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
2253 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
2254 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
2255
2256 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
2257
2258 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
2259 inline" and attribute-unused. Qualify parameter __mem with
2260 "volatile".
2261 (__exchange_and_add): Ditto. Add back memory clobber to asm.
2262
2263 2004-03-20 Paolo Carlini <pcarlini@suse.de>
2264
2265 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
2266 Remove junk.
2267 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
2268 Likewise.
2269 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
2270 Likewise.
2271 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
2272 Likewise.
2273 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
2274 Likewise.
2275 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
2276 Likewise.
2277 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
2278 Likewise.
2279 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
2280 Likewise.
2281 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
2282 Likewise.
2283 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
2284 Likewise.
2285
2286 2004-03-20 Paolo Carlini <pcarlini@suse.de>
2287
2288 * include/std/std_valarray.h: Document DR389 [Ready].
2289 * docs/html/ext/howto.html: Add an entry for DR389.
2290
2291 2004-03-19 Michael Eager <eager@mvista.com>
2292
2293 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
2294 SC instructions.
2295
2296 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2297
2298 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
2299 static_cast-s.
2300 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
2301 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
2302 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
2303 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
2304 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
2305 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
2306 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
2307 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
2308 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
2309
2310 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2311 Petur Runolfsson <peturr02@ru.is>
2312
2313 PR libstdc++/12077
2314 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
2315 no way to find out the conversion used by the underlying FILE*.
2316 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
2317 * testsuite/27_io/objects/char/9.cc: Tweak.
2318
2319 2004-03-19 Paolo Carlini <pcarlini@suse.de>
2320
2321 PR libstdc++/14648
2322 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
2323 memory allocation/deallocation calls.
2324 * testsuite/ext/14648.cc: New.
2325
2326 2004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
2327
2328 PR libstdc++/14647
2329 * include/backward/bvector.h (bit_vector): Allocator is in std
2330 namespace.
2331
2332 2004-03-19 Phil Edwards <phil@codesourcery.com>
2333
2334 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
2335 not libiconv. SUBST this variable as well.
2336 * testsuite/Makefile.am (site.exp): New target, based on that
2337 created by automake. Also set libiconv.
2338
2339 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
2340 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
2341 testsuite/Makefile.in: Regenerate.
2342
2343 2004-03-16 Benjamin Kosnik <bkoz@redhat.com>
2344
2345 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
2346 new_allocator for all hosts.
2347 * configure: Regenerate.
2348
2349 2004-03-16 Paolo Carlini <pcarlini@suse.de>
2350
2351 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
2352 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
2353
2354 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2355
2356 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2357 Adjust the logic underlying the parsing of symbol to deal
2358 correctly with an optional sign component (i.e., when either
2359 negative_sign or positive_sign is empty)
2360 * testsuite/22_locale/money_get/get/char/19.cc: New.
2361 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
2362
2363 2004-03-15 Paolo Carlini <pcarlini@suse.de>
2364
2365 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2366 Do not accept an incomplete currency symbol.
2367 * testsuite/22_locale/money_get/get/char/18.cc: New.
2368 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
2369
2370 2004-03-13 Benjamin Kosnik <bkoz@redhat.com>
2371
2372 * config/allocator: New.
2373 * config/allocator/bitmap_allocator_base.h: New.
2374 * config/allocator/malloc_allocator_base.h: New.
2375 * config/allocator/mt_allocator_base.h: New.
2376 * config/allocator/new_allocator_base.h: New.
2377 * include/bits/allocator.h: Include c++allocator.h.
2378 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
2379 * aclocal.m4: Regenerate.
2380 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
2381 * configure: Regenerate.
2382 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
2383 * include/Makefile.in: Regenerate.
2384 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
2385
2386 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2387
2388 * include/bits/allocator.h: Revert.
2389
2390 2004-03-12 Paolo Carlini <pcarlini@suse.de>
2391
2392 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
2393 * include/bits/gslice_array.h: Add comment about DR 253.
2394 * include/bits/indirect_array.h: Likewise.
2395 * include/bits/mask_array.h: Likewise.
2396 * include/bits/slice_array.h: Likewise.
2397
2398 2004-03-12 Benjamin Kosnik <bkoz@redhat.com>
2399
2400 * testsuite/20_util/allocator/14176.cc: New.
2401 * include/ext/mt_allocator.h: Formatting fixes.
2402
2403 2004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
2404
2405 * include/Makefile.am (ext_headers): Add
2406 ${ext_srcdir}/bitmap_allocator.h .
2407 * include/Makefile.in: Regenerate.
2408 * docs/html/ext/ballocator_doc.txt: New file.
2409 * include/ext/bitmap_allocator.h: New file.
2410 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
2411 test.
2412 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
2413 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
2414 test for the bitmap_allocator<>.
2415 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
2416 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
2417 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
2418
2419 2004-03-11 Paolo Carlini <pcarlini@suse.de>
2420
2421 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2422 pow(const _Tp&, const complex&), pow(const complex&,
2423 const complex&)): Fully qualify with std:: a few calls.
2424 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
2425
2426 2004-03-11 Steven Bosscher <stevenb@suse.de>
2427
2428 PR libstdc++/11706
2429 * include/c_std/cmath.tcc (__cmath_power): Define inline.
2430
2431 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
2432
2433 * configure.ac: Bump AC_PREREQ to 2.59.
2434
2435 2004-03-10 Paolo Carlini <pcarlini@suse.de>
2436
2437 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2438
2439 2004-03-10 Paul Kienzle <pkienzle@nist.gov>
2440 Paolo Carlini <pcarlini@suse.de>
2441
2442 PR libstdc++/13450
2443 * include/std/std_complex.h (pow(const complex&, const _Tp&),
2444 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
2445 * testsuite/26_numerics/complex/13450.cc: New.
2446
2447 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
2448 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
2449
2450 2004-03-10 Jerry Quinn <jlquinn@optonline.net>
2451
2452 PR libstdc++/3247
2453 * include/bits/gslice_array.h (gslice_array()): Make public.
2454 (operator=(gslice_array)): Make public. Implement.
2455 * include/bits/indirect_array.h (indirect_array()): Make public.
2456 * include/bits/mask_array.h (mask_array()): Make public.
2457 (operator=(mask_array)): Make public. Implement.
2458 * include/bits/valarray_array.tcc (__valarray_copy):
2459 Comment. Add versions for gslice_array and mask_array.
2460 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
2461
2462 2004-03-09 Benjamin Kosnik <bkoz@redhat.com>
2463
2464 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
2465 non-weak systems.
2466 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
2467 * testsuite/23_containers/set/modifiers/swap.cc: Same.
2468 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
2469 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
2470 * testsuite/23_containers/map/modifiers/swap.cc: Same.
2471 * testsuite/23_containers/list/modifiers/swap.cc: Same.
2472
2473 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
2474
2475 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2476
2477 PR c++/13658
2478 * testsuite/23_containers/deque/modifiers/swap.cc: New.
2479 * testsuite/23_containers/list/modifiers/swap.cc: New.
2480 * testsuite/23_containers/map/modifiers/swap.cc: New.
2481 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
2482 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
2483 * testsuite/23_containers/set/modifiers/swap.cc: New.
2484 * testsuite/23_containers/vector/modifiers/swap.cc: New.
2485
2486 2004-03-08 Petur Runolfsson <peturr02@ru.is>
2487
2488 PR libstdc++/12658
2489 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
2490
2491 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2492
2493 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
2494 * include/bits/stl_multiset.h: Add comment about DR 103.
2495 * include/bits/stl_set.h: Likewise.
2496
2497 2004-03-08 Paolo Carlini <pcarlini@suse.de>
2498
2499 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2500 The value _space_ indicates that at least one space is required
2501 at that position.
2502 * testsuite/22_locale/money_get/get/char/17.cc: New.
2503 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
2504
2505 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
2506 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
2507
2508 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
2509 Remove redundant conditional on __str.size().
2510
2511 2004-03-08 Benjamin Kosnik <bkoz@redhat.com>
2512
2513 * include/bits/allocator.h: Switch defaults to mt_alloc.
2514
2515 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2516
2517 * include/ext/mt_allocator.h (_S_initialize): If
2518 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
2519
2520 2004-03-06 Benjamin Kosnik <bkoz@redhat.com>
2521
2522 PR libstdc++/12658
2523 * src/locale_init.cc (locale::locale): Lock critical regions with
2524 external mutexes.
2525 (locale::global): Same.
2526 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
2527 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
2528 (__glibcxx_mutex_lock): Same.
2529
2530 * config/cpu/generic/atomicity.h: Remove
2531 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
2532 * src/misc-inst.cc: Move all locking bits out of this file.
2533
2534 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
2535 * src/misc-inst.cc: Same.
2536 * config/cpu/hppa/atomicity.h: Same.
2537
2538 * config/linker-map.gnu: Remove types in the signature of atomic
2539 exports, as they may vary.
2540
2541 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2542
2543 * include/bits/locale_facets.tcc: Tweak the comment preceding
2544 has_facet: doesn't throw.
2545
2546 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2547
2548 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
2549 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2550 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2551 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2552 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2553 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2554 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2555 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2556
2557 2004-03-06 Paolo Carlini <pcarlini@suse.de>
2558
2559 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2560 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
2561 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
2562 * testsuite/testsuite_character.h (struct __gnu_test::character):
2563 Provide operator==.
2564 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
2565 Likewise.
2566
2567 2004-03-05 Paolo Carlini <pcarlini@suse.de>
2568
2569 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
2570
2571 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2572
2573 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
2574
2575 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
2576 returns 0.
2577 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2578 * testsuite/23_containers/list/invalidation/1.cc: Same.
2579 * testsuite/23_containers/list/invalidation/2.cc: Same.
2580 * testsuite/23_containers/list/invalidation/3.cc: Same.
2581 * testsuite/23_containers/list/invalidation/4.cc: Same.
2582 * testsuite/23_containers/map/invalidation/2.cc: Same.
2583 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
2584 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2585 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
2586 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2587 * testsuite/23_containers/set/invalidation/1.cc: Same.
2588 * testsuite/23_containers/set/invalidation/2.cc: Same.
2589 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2590 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2591 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2592 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2593
2594 2004-03-04 Paolo Carlini <pcarlini@suse.de>
2595
2596 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
2597 CXXFLAGS_save.
2598 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
2599 DEFAULT_CXXFLAGS.
2600 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
2601 from the dg-options.
2602 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
2603 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
2604 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
2605 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
2606 * testsuite/23_containers/vector/resize/1.cc: Likewise.
2607 * testsuite/26_numerics/complex_value.cc: Likewise.
2608 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
2609 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
2610 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
2611 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
2612 * testsuite/27_io/objects/char/5.cc: Likewise.
2613 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
2614 * testsuite/backward/11460.cc: Likewise.
2615 * testsuite/thread/pthread7-rope.cc: Likewise.
2616
2617 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
2618 missing test variable.
2619 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
2620 missing test variable.
2621
2622 2004-03-04 Benjamin Kosnik <bkoz@redhat.com>
2623
2624 * testsuite/20_util/allocator/1.cc: Provide explicit
2625 instantiations for non-weak systems.
2626 * testsuite/20_util/binders.cc: Same.
2627 * testsuite/20_util/allocator/8230.cc: Same.
2628 * testsuite/20_util/allocator/10378.cc: Same.
2629 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
2630 * testsuite/22_locale/ctype/is/char/2.cc: Same.
2631 * testsuite/thread/pthread7-rope.cc: Same.
2632 * testsuite/thread/pthread6.cc: Same.
2633 * testsuite/thread/pthread5.cc: Same.
2634 * testsuite/thread/pthread4.cc: Same.
2635 * testsuite/thread/pthread1.cc: Same.
2636 * testsuite/ext/rope.cc: Same.
2637 * testsuite/ext/hash_set.cc: Same.
2638 * testsuite/ext/hash_map.cc: Same.
2639 * testsuite/ext/concept_checks.cc: Same.
2640 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
2641 * testsuite/25_algorithms/unique/2.cc: Same.
2642 * testsuite/25_algorithms/unique/1.cc: Same.
2643 * testsuite/25_algorithms/rotate.cc: Same.
2644 * testsuite/25_algorithms/min_max.cc: Same.
2645 * testsuite/25_algorithms/equal.cc: Same.
2646 * testsuite/24_iterators/rel_ops.cc: Same.
2647 * testsuite/24_iterators/iterator.cc: Same.
2648 * testsuite/24_iterators/insert_iterator.cc: Same.
2649 * testsuite/24_iterators/front_insert_iterator.cc: Same.
2650 * testsuite/24_iterators/back_insert_iterator.cc: Same.
2651 * testsuite/23_containers/vector/resize/1.cc: Same.
2652 * testsuite/23_containers/vector/modifiers/2.cc: Same.
2653 * testsuite/23_containers/vector/modifiers/1.cc: Same.
2654 * testsuite/23_containers/vector/invalidation/4.cc: Same.
2655 * testsuite/23_containers/vector/invalidation/3.cc: Same.
2656 * testsuite/23_containers/vector/invalidation/2.cc: Same.
2657 * testsuite/23_containers/vector/invalidation/1.cc: Same.
2658 * testsuite/23_containers/vector/element_access/1.cc: Same.
2659 * testsuite/23_containers/vector/cons/6513.cc: Same.
2660 * testsuite/23_containers/vector/cons/3.cc: Same.
2661 * testsuite/23_containers/vector/cons/2.cc: Same.
2662 * testsuite/23_containers/vector/cons/1.cc: Same.
2663 * testsuite/23_containers/vector/capacity/8230.cc: Same.
2664 * testsuite/23_containers/vector/capacity/1.cc: Same.
2665 * testsuite/23_containers/vector/bool/6886.cc: Same.
2666 * testsuite/23_containers/stack/members/7158.cc: Same.
2667 * testsuite/23_containers/set/invalidation/2.cc: Same.
2668 * testsuite/23_containers/set/invalidation/1.cc: Same.
2669 * testsuite/23_containers/queue/members/7157.cc: Same.
2670 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
2671 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2672 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
2673 * testsuite/23_containers/multiset/insert/1.cc: Same.
2674 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2675 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
2676 * testsuite/23_containers/map/operators/1.cc: Same.
2677 * testsuite/23_containers/map/invalidation/2.cc: Same.
2678 * testsuite/23_containers/map/invalidation/1.cc: Same.
2679 * testsuite/23_containers/map/insert/1.cc: Same.
2680 * testsuite/23_containers/list/operators/4.cc: Same.
2681 * testsuite/23_containers/list/operators/3.cc: Same.
2682 * testsuite/23_containers/list/operators/2.cc: Same.
2683 * testsuite/23_containers/list/operators/1.cc: Same.
2684 * testsuite/23_containers/list/modifiers/3.cc: Same.
2685 * testsuite/23_containers/list/modifiers/2.cc: Same.
2686 * testsuite/23_containers/list/modifiers/1.cc: Same.
2687 * testsuite/23_containers/list/invalidation/4.cc: Same.
2688 * testsuite/23_containers/list/invalidation/3.cc: Same.
2689 * testsuite/23_containers/list/invalidation/2.cc: Same.
2690 * testsuite/23_containers/list/invalidation/1.cc: Same.
2691 * testsuite/23_containers/list/cons/9.cc: Same.
2692 * testsuite/23_containers/list/cons/8.cc: Same.
2693 * testsuite/23_containers/list/cons/7.cc: Same.
2694 * testsuite/23_containers/list/cons/6.cc: Same.
2695 * testsuite/23_containers/list/cons/5.cc: Same.
2696 * testsuite/23_containers/list/cons/4.cc: Same.
2697 * testsuite/23_containers/list/cons/3.cc: Same.
2698 * testsuite/23_containers/list/cons/2.cc: Same.
2699 * testsuite/23_containers/list/cons/1.cc: Same.
2700 * testsuite/23_containers/list/capacity/1.cc: Same.
2701 * testsuite/23_containers/deque/operators/1.cc: Same.
2702 * testsuite/23_containers/deque/invalidation/4.cc: Same.
2703 * testsuite/23_containers/deque/invalidation/3.cc: Same.
2704 * testsuite/23_containers/deque/invalidation/2.cc: Same.
2705 * testsuite/23_containers/deque/invalidation/1.cc: Same.
2706 * testsuite/23_containers/deque/cons/2.cc: Same.
2707 * testsuite/23_containers/deque/cons/1.cc: Same.
2708
2709 * src/allocator.cc: Add char, wchar_t instantiations
2710 to match extern template declarations in memory.h.
2711
2712 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2713
2714 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2715 Fix warning regression.
2716
2717 2004-03-03 Paolo Carlini <pcarlini@suse.de>
2718
2719 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
2720 Deal properly with empty __digits and negative frac_digits,
2721 clean-up a bit.
2722
2723 2004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
2724
2725 * docs/html/documentation.html: Regenerate.
2726
2727 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2728
2729 PR libstdc++/14320
2730 * include/bits/postypes.h (class streamoff): Remove, now
2731 streamoff is just typedef a 64 bit signed integer type.
2732 (class fpos): Tweak consistently.
2733 * testsuite/27_io/fpos/14320-1.cc: New.
2734 * testsuite/27_io/fpos/14320-2.cc: New.
2735 * testsuite/27_io/fpos/14320-3.cc: New.
2736 * testsuite/27_io/fpos/14320-4.cc: New.
2737 * testsuite/27_io/fpos/14320-5.cc: New.
2738 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
2739
2740 2004-03-02 Paolo Carlini <pcarlini@suse.de>
2741
2742 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2743 Reorganize a bit the main parsing loop, thus early detecting
2744 an empty value component.
2745 * testsuite/22_locale/money_get/get/char/16.cc: New.
2746 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
2747
2748 2004-03-02 Benjamin Kosnik <bkoz@redhat.com>
2749
2750 Support automake 1.8.2
2751 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
2752 * po/Makefile.am (EXTRA_DIST): New.
2753 * po/Makefile.in: Regenerate.
2754 * Makefile.in: Same.
2755 * include/Makefile.in: Same.
2756 * libmath/Makefile.in: Same.
2757 * libsupc++/Makefile.in: Same.
2758 * src/Makefile.in: Same.
2759 * testsuite/Makefile.in: Same.
2760
2761 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
2762 __GXX_WEAK__ instead of SUPPORTS_WEAK.
2763 (${host_builddir}/gthr-default.h): Same.
2764 (${host_builddir}/gthr.h): Same.
2765 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
2766 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
2767 -fno-weak.
2768 * aclocal.m4: Regenerate.
2769 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
2770 * config.h.in: Regenerate.
2771 * configure: Same.
2772
2773 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2774
2775 Support autoconf 2.59
2776 * acinclude.m4: Quote correctly.
2777 * aclocal.m4: Regenerate.
2778 * linkage.m4: Same.
2779
2780 2004-03-01 Benjamin Kosnik <bkoz@redhat.com>
2781
2782 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
2783
2784 * docs/html/18_support/howto.html: Add bit about writing to
2785 stderr, mostly by Zack.
2786
2787 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2788
2789 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
2790 money_get<>::do_get(string_type&)): ... and two more.
2791
2792 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2793
2794 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2795 Fix thinkos in the switch from string_type& to string& as last
2796 argument.
2797
2798 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2799
2800 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2801 Also when parsing exponent sign, first look for thousands_sep
2802 and decimal_point; tweak a bit.
2803 * testsuite/22_locale/num_get/get/char/15.cc: New.
2804 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
2805
2806 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2807 num_get<>::_M_extract_int): Reorder some conditionals.
2808
2809 2004-03-01 Paolo Carlini <pcarlini@suse.de>
2810
2811 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2812 Consistently with numpunct, enforce the requirements in
2813 22.2.6.3, p3 for the thousands separators; tweak a bit.
2814 * testsuite/22_locale/money_get/get/char/15.cc: New.
2815 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
2816
2817 2004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
2818
2819 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
2820 testsuite_files from correct multilib blddir when running
2821 testsuite.
2822
2823 2004-02-29 Phil Edwards <phil@codesourcery.com>
2824
2825 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
2826 the summary file to the logfile.
2827 * testsuite/Makefile.in: Regenerate.
2828
2829 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2830
2831 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
2832 volatile.
2833 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
2834 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
2835
2836 2004-02-28 Paolo Carlini <pcarlini@suse.de>
2837
2838 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
2839 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
2840 no 'decimal-point' in the middle: in this case too we must fix
2841 up __found_grouping; slightly tweak.
2842 * testsuite/22_locale/num_get/get/char/14.cc: New.
2843 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
2844
2845 2004-02-27 Eric Christopher <echristo@redhat.com>
2846 Phil Edwards <phil@codesourcery.com>
2847
2848 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
2849 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
2850 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
2851 testsuite/22_locale/collate/hash/wchar_t/2.cc,
2852 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
2853 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
2854 testsuite/22_locale/collate/transform/wchar_t/2.cc,
2855 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
2856 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2857 Use dg-require-iconv.
2858 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
2859
2860 2004-02-27 Phil Edwards <phil@codesourcery.com>
2861 Eric Christopher <echristo@redhat.com>
2862
2863 * testsuite/config/default.exp: Update with comments.
2864 (${tool}_target_compile): New wrapper routine.
2865 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
2866 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
2867 fixes.
2868 (load_gcc_lib, v3track): New routines.
2869 (v3-init): Rename to libstdc++_init.
2870 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
2871 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
2872
2873 2004-02-27 Benjamin Kosnik <bkoz@redhat.com>
2874
2875 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
2876
2877 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
2878
2879 * config/os/irix/irix5.2/atomicity.h: Merge..
2880 * config/os/irix/irix6.5/atomicity.h: Merge..
2881 * config/os/irix/atomicity.h: ...into this.
2882 * config/os/irix/atomic_word.h: New.
2883 * configure.host: Set atomic_word_dir for irix.
2884
2885 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
2886 * i386/atomicity.h: Same.
2887 * m68k/atomicity.h: Same.
2888 * sparc/atomicity.h: Same.
2889
2890 2004-02-27 David Edelsohn <edelsohn@gnu.org>
2891
2892 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
2893 static, and inline keywords.
2894
2895 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2896
2897 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2898 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
2899 call reserve on the __tmp_gruping string.
2900 (num_get<>::_M_extract_float): Don't append unnecessarily a
2901 char() to the returned string.
2902 * include/bits/locale_facets.tcc: Trivial reformattings.
2903
2904 2004-02-27 Paolo Carlini <pcarlini@suse.de>
2905
2906 * include/bits/locale_facets.h (money_get<>::_M_extract):
2907 Change signature: now takes a plain string&.
2908 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
2909 Update consistently the definition; use the moneypunct cache
2910 to parse the value; use swap to change __units.
2911 (money_get<>::do_get(long double&)): Update call of _M_extract,
2912 avoid ctype::narrow, not correct wrt the standard.
2913 (money_get<>::do_get(string_type&)): Likewise, update call
2914 of _M_extract, use ctype::widen.
2915 * src/locale-inst.cc: Tweak instantiations of _M_extract.
2916
2917 2004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
2918
2919 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
2920 * testsuite/demangle/abi_examples/02.cc: Likewise.
2921 * testsuite/demangle/regression/cw-11.cc: Likewise.
2922 * testsuite/demangle/regression/cw-16.cc: Change two expected
2923 results to match libiberty demangler output.
2924
2925 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2926
2927 PR libstdc++/10246
2928 * libsupc++/Makefile.am: Use libiberty demangler.
2929 (c_sources): Add cp-demangle.c.
2930 * libsupc++/Makefile.in: Regenerate.
2931 * src/Makefile.am (sources): Remove demangle.cc.
2932 * src/Makefile.in: Regenerate.
2933 * include/Makefile.am (bits_headers): Move demangle.h.
2934 (ext_headers): ...here.
2935 * include/Makefile.in: Regenerate.
2936 * include/bits/demangle.h: Move...
2937 * include/ext/demangle.h: ...here.
2938 * src/demangle.cc: Remove.
2939
2940 2004-02-26 Benjamin Kosnik <bkoz@redhat.com>
2941
2942 * include/bits/demangle.h: Add type template parameter to all
2943 templates with just an Allocator template parameter.
2944
2945 2004-02-25 Benjamin Kosnik <bkoz@redhat.com>
2946
2947 * include/bits/atomicity.h: New, forward declarations for __atomic_add
2948 and __exchange_and_add.
2949 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
2950 * config/cpu/cris/atomic_word.h: Same.
2951 * config/cpu/sparc/atomic_word.h: Same.
2952 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
2953 Qualifiy with __gnu_cxx.
2954 (_Callback_list::_M_add_reference): Same.
2955 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
2956 (locale::facet::_M_remove_reference): Same.
2957 (locale::_Impl::_M_add_reference): Add.
2958 (locale::_Impl::_M_remove_reference): Same.
2959 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
2960 (basic_string::_Rep::_M_dispose): Same.
2961 * src/ios.cc (ios_base::xalloc): Same.
2962 * src/ios_init.cc (ios_base::Init::Init): Same.
2963 (ios_base::Init::~Init): Same.
2964 * src/locale.cc (locale::id::_M_id): Same.
2965 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
2966 static, and inline keywords.
2967 * config/cpu/alpha/atomicity.h: Same.
2968 * config/cpu/cris/atomicity.h: Same.
2969 * config/cpu/generic/atomicity.h: Same.
2970 * config/cpu/hppa/atomicity.h: Same.
2971 * config/cpu/i386/atomicity.h: Same.
2972 * config/cpu/ia64/atomicity.h: Same.
2973 * config/cpu/m68k/atomicity.h: Same.
2974 * config/cpu/mips/atomicity.h: Same.
2975 * config/cpu/powerpc/atomicity.h: Same.
2976 * config/cpu/s390/atomicity.h: Same.
2977 * config/cpu/sparc/atomicity.h: Same.
2978
2979 * src/Makefile.am (host_sources): Add atomicity.cc.
2980 (atomicity.cc): New rule.
2981 * src/Makefile.in: Regenerate.
2982 * include/Makefile.am (host_headers): Remove host atomicity.h.
2983 (host_headers): Add atomic_word.h.
2984 (bits_headers): Add bits atomicity.h.
2985 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2986 * include/Makefile.in: Regenerate.
2987 * configure.host (atomic_word_dir): Add.
2988 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
2989 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
2990 * configure: Regenerate.
2991 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
2992
2993 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
2994 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
2995
2996 2004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
2997
2998 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
2999 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
3000 Fix markup, more <link> tags.
3001
3002 2004-02-25 Carlo Wood <carlo@alinoe.com>
3003
3004 * bits/demangle.h
3005 namespace __gnu_cxx::demangler
3006 (session<Allocator>::qualifier_list_Allocator): Add
3007 (session<Allocator>::M_qualifier_list_alloc): Add
3008 (session<Allocator>::decode_type_with_postfix):
3009 Use M_qualifier_list_alloc instead of calling operator new/delete.
3010
3011 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3012
3013 PR libstdc++/14252
3014 * include/bits/postypes.h (class streamoff): Add operator++(),
3015 operator++(int), operator--() and operator--(int).
3016 * testsuite/27_io/fpos/14252.cc: New.
3017
3018 2004-02-24 Richard Sandiford <rsandifo@redhat.com>
3019
3020 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
3021 error in handling of hex constants.
3022
3023 2004-02-24 Paolo Carlini <pcarlini@suse.de>
3024
3025 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3026 Prefer basic_string::append to operator+= and a temporary.
3027
3028 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3029
3030 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
3031 Only use fputs, not write.
3032
3033 2004-02-23 Benjamin Kosnik <bkoz@redhat.com>
3034
3035 * include/ext/malloc_allocator.h: Add operators ==, !=.
3036 * include/ext/new_allocator.h: Add operators ==, !=.
3037 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
3038 (__mt_alloc::_S_get_options): New.
3039 (__mt_alloc::_S_set_options): New.
3040 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
3041 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
3042 Move functions out of line, simplify, format.
3043 * src/allocator.cc: Simplify explicit instantiations.
3044 * include/bits/allocator.h: Tweak.
3045
3046 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3047
3048 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
3049 Restructure formatting of value component, first dealing with
3050 the non-decimal digits; use reserve.
3051
3052 2004-02-22 Paolo Carlini <pcarlini@suse.de>
3053
3054 * include/bits/locale_facets.h (class money_get): Inherit
3055 from money_base too; tweak declaration of _M_extract, now
3056 parameterized on _Intl too.
3057 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
3058 Update definition to use the cache; call reserve on __res to
3059 avoid multiple reallocations; fix parsing of sign component
3060 according to 22.2.6.1.2, p3.
3061 (money_get<>::do_get(long double&),
3062 money_get<>::do_get(string_type&)): Update calls of _M_extract.
3063 * src/locale-inst.cc: Add instantiations of
3064 money_get::_M_extract<false> and money_get::_M_extract<true>.
3065 * testsuite/22_locale/money_get/get/char/14.cc: New.
3066 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
3067
3068 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3069
3070 * libsupc++/vterminate.cc
3071 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
3072 calls to terminate.
3073 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
3074
3075 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3076 not set RLIMIT_AS on HP-UX.
3077
3078 2004-02-21 Mark Mitchell <mark@codesourcery.com>
3079
3080 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
3081 not set RLIMIT_AS on HP-UX.
3082
3083 2004-02-21 Paolo Carlini <pcarlini@suse.de>
3084
3085 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
3086 _S_zero, _S_end } enum, _S_atoms.
3087 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
3088 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
3089 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
3090 (__moneypunct_cache<>::~__moneypunct_cache): Update.
3091 (__moneypunct_cache<>::_M_cache): Fill the cache.
3092 (class moneypunct): Tweak __cache_type typedef.
3093 (class money_put): Inherit from money_base too; tweak declaration
3094 of _M_insert, now parameterized on _Intl.
3095 * include/bits/locale_facets.tcc
3096 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
3097 (money_put<>::_M_insert): Update definition to use the cache;
3098 call reserve on __res to avoid multiple reallocations.
3099 (money_put<>::do_put(long double),
3100 money_put<>::do_put(const string_type&): Update calls of _M_insert.
3101 * config/locale/generic/monetary_members.cc
3102 (moneypunct<char, true>::_M_initialize_moneypunct,
3103 moneypunct<char, false>::_M_initialize_moneypunct,
3104 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
3105 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
3106 * config/locale/gnu/monetary_members.cc: Likewise.
3107 * config/locale/gnu/monetary_members.cc
3108 (moneypunct<wchar_t, true>::~moneypunct(),
3109 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
3110 * src/globals_locale.cc: Tweak fake_money_cache_c.
3111 * src/locale-inst.cc: Add instantiations for
3112 money_put::_M_insert<false> and money_put::_M_insert<true> and
3113 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
3114 * src/locale_facets.cc: Define money_base::_S_atoms.
3115 * src/locale_init.cc: Update placement new of
3116 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
3117 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
3118
3119 * config/locale/generic/numeric_members.cc: Clean up.
3120 * config/locale/gnu/numeric_members.cc: Likewise.
3121 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
3122 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
3123 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
3124 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
3125 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
3126 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
3127
3128 2004-02-20 Mark Mitchell <mark@codesourcery.com>
3129
3130 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
3131 FIFO for writing with ios_base::in|ios_base::out.
3132 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3133 * testsuite/27_io/objects/char/7.cc: Likewise.
3134 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
3135 with "r+".
3136
3137 2004-02-19 David Edelsohn <edelsohn@gnu.org>
3138
3139 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
3140 from iso-8859-1 to ISO8859-1.
3141 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
3142 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
3143 * 22_locale/collate/hash/wchar_t/2.cc: Same.
3144 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
3145 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
3146 * 22_locale/collate/transform/wchar_t/2.cc: Same.
3147 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
3148 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
3149
3150 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3151
3152 * include/bits/locale_facets.h (money_get<>::_M_extract):
3153 New, helper for do_get.
3154 (money_put<>::_M_insert): Likewise, for do_put.
3155 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
3156 money_put<>::_M_insert): Define.
3157 (money_get<>::do_get(long double&), money_get<>::do_get(
3158 string_type&), money_put::do_put(long double),
3159 money_put::do_put(const string_type&)): Use the helpers.
3160
3161 2004-02-18 Paolo Carlini <pcarlini@suse.de>
3162
3163 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3164 Rewrite, avoiding recursion.
3165 (__gnu_internal::xwrite): Minor tweaks.
3166
3167 2004-02-17 Stefan Olsson <stefan@xapa.se>
3168
3169 * include/ext/mt_allocator.h: Removed the last
3170 pointer. Deallocated blocks are now added to the front of
3171 freelists as proposed by Felix Yen. This gives roughly 10%
3172 performance boost and saves some memory.
3173 * docs/html/ext/mt_allocator.html: Change due to that deallocated
3174 blocks now are added to the front of freelists. The reason to this
3175 approach is also explained.
3176
3177 2004-02-17 Paolo Carlini <pcarlini@suse.de>
3178
3179 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
3180 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
3181 grouping fidelity conditional.
3182
3183 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3184
3185 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
3186 Qualify exception with std::.
3187 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
3188 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3189 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3190 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3191 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3192
3193 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3194
3195 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
3196 for now that the catch block is not reached.
3197 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
3198
3199 2004-02-16 Paolo Carlini <pcarlini@suse.de>
3200
3201 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3202 Fix parsing of the remaining sign characters.
3203 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
3204 the input is scanned 'til eof.
3205 * 22_locale/money_get/get/char/4.cc: Likewise.
3206 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
3207 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
3208 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
3209 not do_pos_format: the former is the only one that matters during
3210 input.
3211 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
3212
3213 * 22_locale/money_get/get/char/6.cc: Minor tweak.
3214 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
3215
3216 2004-02-15 David Asher <david.asher@cavium.com>
3217
3218 PR libstdc++/11352
3219 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
3220 access __olds beyond __oldlen.
3221
3222 2004-02-14 Paolo Carlini <pcarlini@suse.de>
3223
3224 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
3225 sure the exception is actually thrown.
3226 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3227 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3228 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3229
3230 2004-02-14 Paolo Carlini <pcarlini@suse.de>
3231
3232 PR libstdc++/13858
3233 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
3234 In case of conversion errors, throw ios_failure; simplify.
3235 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
3236 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
3237 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
3238 previously we didn't throw in case of conversion errors, instead
3239 just returned eof().
3240 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
3241 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
3242 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
3243
3244 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
3245 Trivial simplification of a conditional.
3246
3247 2004-02-12 Paolo Carlini <pcarlini@suse.de>
3248
3249 PR libstdc++/13731 (final part: writev)
3250 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
3251 New, a wrapper around writev() handling partial writes.
3252 (__basic_file<char>::xwrite): Move to __gnu_internal and make
3253 static.
3254 (__basic_file<char>::xsputn): Update call.
3255 (__basic_file<char>::xsputn_2): Likewise.
3256 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3257 Don't declare, now static.
3258
3259 2004-02-11 Stefan Olsson <stefan@xapa.se>
3260
3261 * docs/html/ext/mt_allocator.html: New.
3262
3263 2004-02-11 Benjamin Kosnik <bkoz@redhat.com>
3264
3265 * docs/html/20_util/allocator.html: New file, consolidate
3266 allocator information here. Revamp.
3267 * docs/html/documentation.html: Change links.
3268 * docs/html/20_util/howto.html: Same.
3269 * docs/html/ext/howto.html: Same.
3270
3271 2004-02-11 Paolo Carlini <pcarlini@suse.de>
3272
3273 PR libstdc++/13731 (first part: write)
3274 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
3275 New, declare.
3276 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
3277 Define it: a wrapper around write() handling partial write.
3278 (__basic_file<char>::xsputn): Use it.
3279 (__basic_file<char>::xsputn_2): Likewise.
3280
3281 2004-02-11 Paolo Carlini <pcarlini@suse.de>
3282 Petur Runolfsson <peturr02@ru.is>
3283
3284 PR libstdc++/14078
3285 * include/std/std_istream.h (operator>>(__istream_type& (*)
3286 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
3287 operator>>(ios_base& (*)(ios_base&))): Declare inline.
3288 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
3289 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
3290 operator<<(ios_base& (*) (ios_base&))): Likewise.
3291 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
3292
3293 2004-02-10 Loren J. Rittle <ljrittle@acm.org>
3294
3295 PR libstdc++/14098
3296 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3297 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
3298
3299 PR libstdc++/14097
3300 * config/linker-map.gnu: Add typeinfo and typeinfo name for
3301 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
3302
3303 2004-02-09 Loren J. Rittle <ljrittle@acm.org>
3304
3305 * include/ext/pool_allocator.h: Include c++config.h.
3306
3307 2004-02-09 Stefan Olsson <stefan@xapa.se>
3308
3309 * include/ext/mt_allocator.h: thread_id is unused in non threaded
3310 applications and now has a ifdef to remove it completely on
3311 compilers without thread support. Include stdlib.h due to a
3312 compiler warning on getenv().
3313
3314 2004-02-09 Paul Brook <paul@codesourcery.com>
3315
3316 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
3317
3318 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3319
3320 PR libstdc++/14071
3321 * src/locale_init.cc (locale::global(const locale&)): Use
3322 locale::name() in order to decide whether calling setlocale.
3323 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
3324
3325 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
3326 Avoid computing &= unnecessarily.
3327
3328 2004-02-09 James E Wilson <wilson@specifixinc.com>
3329
3330 PR libstdc++/5625
3331 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
3332 __builtin_extend_pointer.
3333
3334 2004-02-09 Paolo Carlini <pcarlini@suse.de>
3335
3336 PR libstdc++/14072
3337 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
3338 Don't leave dangling pointers.
3339 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
3340 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
3341 facet is needed in the final test.
3342
3343 2004-02-09 Bernardo Innocenti <bernie@develer.com>
3344
3345 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
3346 * configure: Regenerate.
3347
3348 2004-02-08 Richard Henderson <rth@redhat.com>
3349
3350 PR libstdc++/14026
3351 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
3352 uncaughtExceptions during nested catch rethrow.
3353 * testsuite/18_support/14026.cc: New.
3354
3355 2004-02-08 Paolo Carlini <pcarlini@suse.de>
3356
3357 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
3358 When working in place remember to set the state to sharable
3359 (otherwise, _M_mutate does it).
3360
3361 2004-02-08 Bernardo Innocenti <bernie@develer.com>
3362
3363 * include/bits/allocator.h, include/bits/basic_ios.h,
3364 include/bits/basic_ios.tcc, include/bits/basic_string.h,
3365 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
3366 include/bits/char_traits.h, include/bits/codecvt.h,
3367 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
3368 include/bits/demangle.h, include/bits/deque.tcc,
3369 include/bits/fstream.tcc, include/bits/functexcept.h,
3370 include/bits/gslice.h, include/bits/gslice_array.h,
3371 include/bits/indirect_array.h, include/bits/ios_base.h,
3372 include/bits/istream.tcc, include/bits/list.tcc,
3373 include/bits/locale_classes.h, include/bits/locale_facets.h,
3374 include/bits/locale_facets.tcc, include/bits/localefwd.h,
3375 include/bits/mask_array.h, include/bits/ostream.tcc,
3376 include/bits/postypes.h, include/bits/slice_array.h,
3377 include/bits/sstream.tcc, include/bits/stl_algo.h,
3378 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
3379 include/bits/stl_construct.h, include/bits/stl_deque.h,
3380 include/bits/stl_function.h, include/bits/stl_heap.h,
3381 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
3382 include/bits/stl_list.h, include/bits/stl_map.h,
3383 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
3384 include/bits/stl_numeric.h, include/bits/stl_pair.h,
3385 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
3386 include/bits/stl_relops.h, include/bits/stl_set.h,
3387 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
3388 include/bits/stl_threads.h, include/bits/stl_tree.h,
3389 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
3390 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
3391 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
3392 include/bits/type_traits.h, include/bits/valarray_after.h,
3393 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
3394 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
3395 trailing whitespace.
3396
3397 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3398
3399 * include/bits/basic_string.h: Fix comment.
3400
3401 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3402
3403 * include/bits/stl_construct.h: Wrap overlong lines, reformat
3404 according to the coding standards.
3405 * include/bits/stl_pair.h: Likewise.
3406 * include/bits/stl_raw_storage_iter.h: Likewise.
3407 * include/bits/stl_stack.h: Likewise.
3408 * include/bits/stl_uninitialized.h: Likewise.
3409 * include/bits/stream_iterator.h: Likewise.
3410 * include/bits/streambuf_iterator.h: Likewise.
3411 * include/bits/type_traits.h: Likewise.
3412
3413 2004-02-06 Paolo Carlini <pcarlini@suse.de>
3414
3415 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3416 Adjust timings.
3417
3418 2004-02-05 Loren J. Rittle <ljrittle@acm.org>
3419
3420 * scripts/check_performance: Support PCH.
3421
3422 * scripts/check_performance (CXX): Add -DNOTHREAD.
3423 * testsuite/performance/20_util/allocator/insert.cc: Integrate
3424 threaded tests from insert_insert.cc. Tweak iterations,
3425 remove special cases.
3426 * testsuite/performance/20_util/allocator/insert_insert.cc:
3427 Make all tests single-threaded. Tweak iterations.
3428 * testsuite/performance/20_util/allocator/map_thread.cc:
3429 Tweak iterations.
3430 * testsuite/performance/20_util/allocator/producer_consumer.cc:
3431 Likewise.
3432
3433 2004-02-05 Geoffrey Keating <geoffk@apple.com>
3434
3435 PR 12179
3436 * .cvsignore: New.
3437 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
3438 'gcc-lib'. Add comment about poorly-named variables.
3439 * aclocal.m4: Regenerate.
3440 * configure: Regenerate.
3441
3442 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3443
3444 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
3445 Thousands-sep are always optional; thousands-sep are not allowed
3446 after the decimal_point.
3447 * testsuite/22_locale/money_get/get/char/12.cc: New.
3448 * testsuite/22_locale/money_get/get/char/13.cc: New.
3449 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
3450 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
3451
3452 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
3453 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
3454 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
3455 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
3456 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
3457 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
3458 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
3459 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
3460
3461 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
3462 the standard.
3463 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
3464
3465 2004-02-05 Richard Sandiford <rsandifo@redhat.com>
3466
3467 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
3468 Define.
3469 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
3470 it to decide whether FIONREAD should take an off_t or int argument.
3471
3472 2004-02-05 Paolo Carlini <pcarlini@suse.de>
3473
3474 * include/bits/stl_function.h: Minor formatting changes.
3475
3476 2004-02-04 Zack Weinberg <zack@codesourcery.com>
3477
3478 Revert previous change to config/abi/*/baseline_symbols.txt.
3479
3480 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3481 Zack Weinberg <zack@codesourcery.com>
3482
3483 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
3484 New function.
3485 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
3486 (__basic_file<char>::_M_open_mode): Delete.
3487 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
3488
3489 * testsuite/27_io/basic_filebuf/close/char/9964.cc
3490 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
3491 Correct flags to filebuf::open calls.
3492
3493 * config/abi/alpha-freebsd5/baseline_symbols.txt
3494 * config/abi/alpha-linux-gnu/baseline_symbols.txt
3495 * config/abi/hppa-linux-gnu/baseline_symbols.txt
3496 * config/abi/i386-freebsd4/baseline_symbols.txt
3497 * config/abi/i386-freebsd5/baseline_symbols.txt
3498 * config/abi/i486-linux-gnu/baseline_symbols.txt
3499 * config/abi/ia64-linux-gnu/baseline_symbols.txt
3500 * config/abi/mips-linux-gnu/baseline_symbols.txt
3501 * config/abi/sparc-freebsd5/baseline_symbols.txt
3502 * config/abi/sparc-linux-gnu/baseline_symbols.txt
3503 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
3504 Remove entry for __basic_file<char>::_M_open_mode.
3505
3506 2004-02-04 Loren J. Rittle <ljrittle@acm.org>
3507
3508 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
3509
3510 2004-02-04 Felix Yen <fwy@alumni.brown.edu>
3511
3512 * testsuite/performance/20_util/producer_consumer.cc: New.
3513 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
3514
3515 2004-02-04 Benjamin Kosnik <bkoz@redhat.com>
3516
3517 * testsuite/performance/20_util/allocator.cc: Move to..
3518 * testsuite/performance/20_util/allocator/insert.cc: ...here.
3519 * testsuite/performance/20_util/allocator_thread.cc: Move to...
3520 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
3521 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
3522 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
3523
3524 2004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
3525
3526 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
3527 * docs/html/faq/index.txt: Regenerate.
3528
3529 2004-02-04 Dhruv Matani <dhruvbird@gmx.net>
3530
3531 * include/ext/debug_allocator.h: _M_extra now stands for the
3532 number of extra objects instead of the number of extra bytes.
3533 (debug_allocator::allocate): Adjust.
3534 (debug_allocator::deallocate): Adjust.
3535
3536 * include/ext/pool_allocator.h: Fix typo.
3537
3538 2004-02-03 Felix Yen <fwy@alumni.brown.edu>
3539 Benjamin Kosnik <bkoz@redhat.com>
3540
3541 * testsuite/performance/20_util/allocator.cc: Add map,
3542 deque, set tests.
3543 * testsuite/performance/20_util/allocator_thread.cc: Same.
3544
3545 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3546
3547 * include/bits/basic_string.h (insert(iterator)): Remove,
3548 non-standard and already scheduled for removal.
3549
3550 2004-02-03 Paolo Carlini <pcarlini@suse.de>
3551
3552 * include/bits/stl_iterator_base_funcs.h: Minor formatting
3553 and indentation tweaks.
3554 * include/bits/stl_iterator_base_types.h: Likewise.
3555 * include/bits/stl_list.h: Likewise.
3556 * include/bits/stl_map.h: Likewise.
3557 * include/bits/stl_tempbuf.h: Likewise.
3558
3559 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3560
3561 * include/bits/gslice.h, include/bits/gslice_array.h,
3562 include/bits/indirect_array.h, include/bits/mask_array.h,
3563 include/bits/slice_array.h, include/bits/stl_numeric.h,
3564 include/std/std_valarray.h: Update copyright years.
3565
3566 2004-02-02 Jerry Quinn <jlquinn@optonline.net>
3567
3568 * include/bits/gslice.h (gslice): Document.
3569 * include/bits/gslice_array.h (gslice_array): Document.
3570 * include/bits/indirect_array (indirect_array): Document.
3571 * include/bits/mask_array (mask_array): Document.
3572 * include/bits/slice_array.h (slice,slice_array): Document.
3573 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
3574 adjacent_difference): Document
3575 * include/std/std_valarray.h (valarray): Document.
3576
3577 2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
3578
3579 * docs/html/19_diagnostics/howto.html: Move verbose terminate
3580 documentation...
3581 * docs/html/18_support/howto.html: Here.
3582 * docs/html/documentation.html: Add reference here.
3583
3584 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3585
3586 * config/locale/gnu/c++locale_internal.h: Remove prototypes
3587 of no longer used GLIBC thread locale functions.
3588
3589 2004-02-02 Eric Christopher <echristo@redhat.com>
3590 Zack Weinberg <zack@codesourcery.com>
3591
3592 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
3593 -finput-charset.
3594 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
3595 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
3596 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
3597 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
3598 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
3599 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
3600 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
3601 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
3602 Ditto.
3603
3604 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3605
3606 * include/bits/stl_function.h: Additional minor tweaks.
3607 * include/bits/stl_multiset.h: Likewise.
3608
3609 * include/bits/stl_queue.h: Minor tweaks.
3610
3611 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3612
3613 PR libstdc++/13976 (continued)
3614 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
3615 Make the second parameter unnamed, to void unused parameter
3616 warnings.
3617 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
3618
3619 2004-02-02 Paolo Carlini <pcarlini@suse.de>
3620
3621 PR libstdc++/13976
3622 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
3623 Make the second parameter unnamed, to void unused parameter
3624 warnings.
3625 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
3626 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
3627
3628 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3629
3630 * include/bits/stl_algo.h: Additional minor tweaks.
3631 * include/bits/stl_map.h: Likewise.
3632 * include/bits/stl_multimap.h: Likewise.
3633 * include/bits/stl_multiset.h: Likewise.
3634 * include/bits/stl_set.h: Likewise.
3635 * include/bits/stl_tree.h: Likewise.
3636
3637 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3638
3639 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
3640 Remove, unused.
3641
3642 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3643
3644 * include/bits/stl_function.h: Additional minor tweaks.
3645
3646 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3647
3648 * include/bits/deque.tcc: Wrap overlong lines, constify
3649 a few variables, reformat according to the coding standards.
3650 * include/bits/list.tcc: Likewise.
3651 * include/bits/stl_deque.h: Likewise.
3652 * include/bits/stl_function.h: Likewise.
3653 * include/bits/stl_iterator.h: Likewise.
3654 * include/bits/stl_iterator_base_funcs.h: Likewise.
3655 * include/bits/stl_iterator_base_types.h: Likewise.
3656 * include/bits/stl_list.h: Likewise.
3657 * include/bits/stl_map.h: Likewise.
3658 * include/bits/stl_multimap.h: Likewise.
3659 * include/bits/stl_multiset.h: Likewise.
3660 * include/bits/stl_relops.h: Likewise.
3661 * include/bits/stl_set.h: Likewise.
3662
3663 2004-02-01 Paolo Carlini <pcarlini@suse.de>
3664
3665 * include/bits/stl_bvector.h: Wrap overlong lines, constify
3666 a few variables, reformat according to the coding standards.
3667 * include/bits/stl_tree.h: Likewise.
3668
3669 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3670
3671 * include/bits/stl_algo.h: Minor additional reformat, add
3672 copyright year.
3673 * include/bits/stl_algobase.h: Add copyright year.
3674
3675 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3676
3677 * include/bits/stl_algo.h: Wrap overlong lines, constify
3678 a few variables, reformat according to the coding standards.
3679 * include/bits/stl_algobase.h: Likewise.
3680 * include/bits/stl_heap.h: Likewise.
3681
3682 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3683
3684 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
3685
3686 * include/bits/basic_string.h: Fix two comments.
3687
3688 2004-01-31 Per Bothner <per@bothner.com>
3689
3690 * include/ext/mt_allocator.h
3691 (__mt_alloc::_S_thread_freelist_mutex): Guard with
3692 __GTHREAD_MUTEX_INIT.
3693
3694 2004-01-31 Paolo Carlini <pcarlini@suse.de>
3695
3696 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
3697
3698 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3699
3700 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
3701 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
3702 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
3703
3704 2004-01-30 Felix Yen <fwy@alumni.brown.edu>
3705
3706 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
3707 Don't use clear, but instead assign. Use insert.
3708
3709 2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
3710
3711 * src/demangle.cc: Add instantiations.
3712 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
3713 * src/Makefile.in: Regenerate.
3714
3715 2004-01-30 David Edelsohn <edelsohn@gnu.org>
3716
3717 * src/allocator.cc: Protect _S_get_thread_id() and
3718 _S_thread_key_destr() with #ifdef __GTHREADS.
3719
3720 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3721
3722 Reshuffle performance testsuite.
3723 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
3724 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
3725 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
3726 fstream_seek_write.cc, ifstream_extract_float.cc,
3727 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
3728 list_create_fill_sort.cc, map_create_fill.cc,
3729 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
3730 ofstream_insert_float.cc, ofstream_insert_int.cc,
3731 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
3732 wchar_t_out.cc: Split into...
3733 * testsuite/performance/20_util/allocator.cc: New.
3734 * testsuite/performance/20_util/allocator_map_thread.cc: New.
3735 * testsuite/performance/20_util/allocator_thread.cc: New.
3736 * testsuite/performance/21_strings/string_append: New.
3737 * testsuite/performance/22_locale/is_wchar_t.cc: New.
3738 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
3739 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
3740 * testsuite/performance/22_locale/wchar_t_in.cc: New.
3741 * testsuite/performance/22_locale/wchar_t_length.cc: New.
3742 * testsuite/performance/22_locale/wchar_t_out.cc: New.
3743 * testsuite/performance/23_containers/container_benchmark.cc: New.
3744 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
3745 * testsuite/performance/23_containers/map_create_fill.cc: New.
3746 * testsuite/performance/26_numerics/complex_norm.cc: New.
3747 * testsuite/performance/27_io/cout_insert_int.cc: New.
3748 * testsuite/performance/27_io/filebuf_copy.cc: New.
3749 * testsuite/performance/27_io/filebuf_sputc.cc: New.
3750 * testsuite/performance/27_io/fstream_seek_write.cc: New.
3751 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
3752 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
3753 * testsuite/performance/27_io/ifstream_getline.cc: New.
3754 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
3755 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
3756
3757 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3758
3759 * include/bits/basic_string.tcc (_Rep::_S_create):
3760 Never allocate a string bigger than max_size(); always keep
3761 __capacity and __size in sync to avoid memory leaks at
3762 deallocation time.
3763
3764 2004-01-30 Paolo Carlini <pcarlini@suse.de>
3765
3766 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3767 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
3768 the double loop, streamline.
3769
3770 * include/bits/basic_string.tcc: Very minor tweaks.
3771
3772 2004-01-30 Loren J. Rittle <ljrittle@acm.org>
3773
3774 * scripts/check_performance: Only compile with $THREAD_FLAG
3775 when test is marked to require it. Allow multiple
3776 compilations/executions of marked tests.
3777 * testsuite/testsuite_performance.h (report_performance):
3778 Report dynamic thread support status.
3779 (report_header): Likewise.
3780 * testsuite/performance/allocator.cc: Stabilize iteration
3781 count. Support more allocators. Mark each allocator test to
3782 run and report independently.
3783 * testsuite/performance/allocator_map_thread.cc: Likewise.
3784 * testsuite/performance/allocator_thread.cc: Likewise.
3785
3786 2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
3787
3788 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
3789 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
3790 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
3791 std::get_temporary_buffer() instead of duplicating its code.
3792 Update to C++STYLE conventions.
3793 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
3794 new() instead of std::malloc().
3795 (return_temporary_buffer): Use ::operator delete() instead of
3796 std::free().
3797
3798 2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
3799
3800 * include/bits/allocator.h: Temporary switch to new_allocator as
3801 the default to unjam bootstraps.
3802
3803 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3804
3805 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
3806 * include/Makefile.in: Regenerate.
3807 * include/bits/allocator_traits.h: Remove.
3808 * include/bits/allocator.h: Remove allocator_traits.h include, and
3809 relevant comments.
3810 (allocator): Empty base class, inherit from the underlying allocator.
3811 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
3812 * src/allocator.cc: ...here. New. For the underlying allocators.
3813 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
3814 * config/linker-map.gnu: Remove __pool_alloc bits.
3815 * src/Makefile.am (sources): Add allocator.cc.
3816 * src/Makefile.in: Regenerate.
3817 * testsuite/20_util/allocator/1.cc: Split second test into...
3818 * testsuite/20_util/allocator/8230.cc: ...this.
3819 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
3820 typedef to use std::allocatore. Format.
3821 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
3822 _Alloc_traits.
3823 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
3824 __throw_bad_alloc calls. Don't include <memory>.
3825 * include/ext/malloc_allocator.h: Remove <memory> include.
3826 * include/ext/new_allocator.h (new_allocator): Same.
3827 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
3828 declaration. Switch __alloc to _Alloc.
3829 * include/ext/hashtable.h: Remove __alloc.
3830 * include/backward/alloc.h: Only inject allocator, not
3831 implementation details.
3832
3833 * include/ext/mt_allocator.h: Replace free with delete.
3834
3835 2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
3836
3837 * src/globals_io.cc: Change to __gnu_internal namespace.
3838 * src/globals_locale.cc: Same.
3839 * src/locale_init.cc: Same.
3840 * src/ios_init.cc: Same.
3841
3842 2004-01-28 Stefan Olsson <stefan@snon.net>
3843
3844 * include/ext/mt_allocator.h: Replaced all malloc() calls with
3845 operator new(). Added support for the env variable
3846 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
3847 one in allocate() as well). Fix typos.
3848
3849 2004-01-28 Paolo Carlini <pcarlini@suse.de>
3850
3851 * include/bits/basic_string.h (_S_create(size_t,
3852 const _Alloc&): Change signature to take two size_type
3853 arguments.
3854 * include/bits/basic_string.tcc (_S_construct(_InIterator,
3855 _InIterator, const _Alloc&, input_iterator_tag)): Update
3856 call, tweak a bit.
3857 (_S_construct(_InIterator, _InIterator, const _Alloc&,
3858 forward_iterator_tag)): Likewise.
3859 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
3860 (_M_mutate(size_type, size_type, size_type)): Don't
3861 implement the exponential growth policy, demand it to
3862 _S_create, update call and simplify.
3863 (_M_clone(const _Alloc&, size_type)): Likewise.
3864 (_S_create(size_type, size_type, const _Alloc&)): Implement
3865 the growth policy, simplify otherwise.
3866
3867 * include/bits/basic_string.h (_Rep::operator[]): Tweak
3868 signature to take a size_type, consistently with the other
3869 members.
3870
3871 2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
3872
3873 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
3874 delete declarations, add include and test variable.
3875
3876 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
3877
3878 * include/bits/codecvt.h, include/bits/locale_facets.h,
3879 include/bits/postypes.h, include/bits/stl_bvector.h,
3880 include/bits/stl_multiset.h, include/bits/stl_set.h,
3881 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
3882 include/std/std_complex.h: Document.
3883
3884 2004-01-27 Jerry Quinn <jlquinn@optonline.net>
3885
3886 PR libstdc++/11584
3887 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
3888 iword/pword selector.
3889 (ios_base::iword, ios_base::pword): Use it.
3890 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
3891 iword or pword member on alloc failure.
3892 * testsuite/27_io/ios_base/storage/11584.cc: New test.
3893
3894 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
3895 PJ Darcy <darcypj@us.ibm.com>
3896
3897 * configure.host: Add support for *-tpf.
3898 * crossconfig.m4: Likewise.
3899 * configure: Regenerate.
3900 * config/os/tpf: New directory.
3901 * config/os/tpf/os_defines.h: New file.
3902 * config/os/tpf/ctype_base.h: Likewise.
3903 * config/os/tpf/ctype_inline.h: Likewise.
3904 * config/os/tpf/ctype_noninline.h: Likewise.
3905
3906 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3907
3908 PR libstdc++/13884
3909 * include/bits/sstream.tcc: Guard use of extern template.
3910
3911 2004-01-27 Paolo Carlini <pcarlini@suse.de>
3912
3913 * include/bits/basic_string.tcc
3914 (basic_string(const basic_string&, size_type, size_type),
3915 basic_string(const basic_string&, size_type, size_type,
3916 const _Alloc&)): Avoid unnecessarily constructing iterators.
3917
3918 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3919
3920 * config/locale/generic/c_locale.cc: Fix throw messages
3921 to use the __N marker.
3922 * config/locale/gnu/c_locale.cc: Likewise.
3923 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
3924 Likewise.
3925 * docs/html/17_intro/C++STYLE: Likewise.
3926 * include/bits/basic_ios.tcc: Likewise.
3927 * include/bits/fstream.tcc: Likewise.
3928 * include/bits/vector.tcc: Likewise.
3929 * include/ext/ropeimpl.h: Likewise.
3930 * include/std/std_bitset.h: Likewise.
3931 * src/ios.cc: Likewise.
3932 * src/locale.cc: Likewise.
3933 * src/localename.cc: Likewise.
3934
3935 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3936
3937 * include/bits/basic_string.h (_M_replace_aux): Use the
3938 __N marker in throw message.
3939 * include/bits/basic_string.tcc (assign(const _CharT*,
3940 size_type), insert(size_type, const _CharT*, size_type),
3941 replace(size_type, size_type, const _CharT*, size_type),
3942 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
3943 Likewise.
3944
3945 * include/bits/basic_string.h, include/bits/basic_string.tcc:
3946 Fold overlong lines, minor formatting changes.
3947
3948 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3949
3950 * include/bits/basic_string.h (replace(iterator, iterator,
3951 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
3952 (replace(iterator, iterator, const _CharT*)): Ditto.
3953 (replace(iterator, iterator, const _CharT*, size_type)):
3954 Add missing _GLIBCXX_DEBUG_PEDASSERT.
3955
3956 2004-01-26 Paolo Carlini <pcarlini@suse.de>
3957
3958 * include/bits/basic_string.tcc (replace(size_type,
3959 size_type, const _CharT*, size_type)): Implement optimized
3960 in-place algorithm for non-overlapping ranges.
3961 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
3962 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
3963
3964 * include/bits/basic_string.tcc (insert(size_type,
3965 const _CharT*, size_type)): Tweak slightly.
3966
3967 2004-01-26 Andreas Schwab <schwab@suse.de>
3968
3969 * config/locale/gnu/monetary_members.cc: Restore locale before
3970 rethrowing exception.
3971
3972 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3973
3974 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3975 Define inline here.
3976 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
3977 Move inline.
3978
3979 * include/bits/basic_string.tcc: Very minor tweaks.
3980
3981 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3982
3983 * testsuite/performance/string_append.cc: Increase number
3984 of iterations.
3985
3986 2004-01-25 Paolo Carlini <pcarlini@suse.de>
3987
3988 * include/bits/basic_string.h (erase(size_type, size_type),
3989 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
3990 instead, thus avoiding redundant check for length_error.
3991
3992 * include/bits/basic_string.h: Tweak some comments.
3993
3994 2004-01-24 Paolo Carlini <pcarlini@suse.de>
3995
3996 * include/bits/basic_string.tcc (operator+(const _CharT*,
3997 const basic_string&)): No need to go through the append
3998 taking two iterators.
3999
4000 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4001
4002 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
4003 Revert last change to use std::min: machine language is worse.
4004 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
4005 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4006 (find_last_not_of(_CharT, size_type)): Ditto.
4007
4008 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
4009 size_type)): Discard the value returned by _M_check.
4010 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
4011 (append(const basic_string&, size_type, size_type)): Ditto.
4012 (copy(_CharT*, size_type, size_type)): Ditto.
4013 (compare(size_type, size_type, const basic_string&)): Ditto.
4014 (compare(size_type, size_type, const basic_string&,
4015 size_type, size_type)): Ditto.
4016 (compare(size_type, size_type, const _CharT*)): Ditto.
4017 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4018
4019 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4020
4021 * include/bits/basic_string.h (insert(size_type,
4022 const basic_string&, size_type, size_type)): Define inline here.
4023 * include/bits/basic_string.tcc (insert(size_type,
4024 const basic_string&, size_type, size_type)): Move inline.
4025
4026 2004-01-24 Paolo Carlini <pcarlini@suse.de>
4027
4028 * include/bits/basic_string.h (assign(const basic_string&,
4029 size_type, size_type)): Define inline here.
4030 (replace(size_type, size_type, const basic_string&,
4031 size_type, size_type)): Ditto.
4032 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4033 _InputIterator, __false_type)): Only declare.
4034 (_M_replace(iterator, iterator, _InputIterator,
4035 _InputIterator)): Remove.
4036 * include/bits/basic_string.tcc (assign(const basic_string&,
4037 size_type, size_type)): Move inline.
4038 (replace(size_type, size_type, const basic_string&,
4039 size_type, size_type)): Ditto.
4040 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4041 _InputIterator, __false_type)): Define, now does also what
4042 _M_replace did before.
4043 * src/string-inst.cc (_M_replace): Don't instantiate.
4044
4045 * include/bits/basic_string.tcc (find(const _CharT*,
4046 size_type, size_type)): Tidy.
4047 (rfind(_CharT, size_type)): Ditto.
4048 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
4049 (find_first_not_of(_CharT, size_type)): Ditto.
4050 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
4051 (find_last_not_of(_CharT, size_type)): Ditto.
4052
4053 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4054
4055 PR libstdc++/13838
4056 * include/debug/bitset (operator|=): Fix typo.
4057 * testsuite/23_containers/bitset/operations/13838.cc: New.
4058
4059 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4060
4061 * include/bits/basic_string.tcc (insert(size_type,
4062 const _CharT*, size_type __n)): Fix length_error check.
4063 (replace(size_type, size_type, const _CharT*, size_type):
4064 Ditto; call _M_replace_safe.
4065 (_M_replace_aux(size_type, size_type, size_type, _CharT):
4066 Fix length_error check.
4067 (_M_replace(iterator, iterator, _InputIterator,
4068 _InputIterator)): Ditto, tweak.
4069 (_M_replace_safe(size_type, size_type, const _CharT*,
4070 size_type)): Remove length_error check.
4071
4072 * include/bits/basic_string.tcc (append(const basic_string&),
4073 append(const basic_string&, size_type, size_type)): Tweak
4074 comment.
4075
4076 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
4077 size_type)): If __n == 0 don't call traits::copy.
4078
4079 2004-01-23 Stefan Olsson <stefan@snon.net>
4080
4081 * include/ext/mt_allocator.h: Reduce lock contention.
4082
4083 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4084
4085 PR libstdc++/13831
4086 * include/bits/fstream.tcc (underflow): Remove unused
4087 variable.
4088 * include/bits/streambuf_iterator.h (equal): Ditto.
4089 * include/bits/locale_facets.h (_M_convert_from_char):
4090 Ditto.
4091
4092 2004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4093
4094 PR c/13814
4095 * config/linker-map.gnu (nan): Delete.
4096 * libmath/mathconf.h (NAN, nan): Delete.
4097 * linkage.m4 (nan): Don't check for it.
4098 * libmath/nan.c: Delete file.
4099
4100 * config.h.in, configure: Regenerate.
4101
4102 2004-01-23 Paolo Carlini <pcarlini@suse.de>
4103
4104 * include/bits/basic_string.h (push_back(_CharT)):
4105 Call _M_replace_aux.
4106 (insert(size_type, const basic_string&)): Trivial tweak.
4107 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
4108 (insert(iterator, _CharT)): Ditto.
4109 (erase(size_type, size_type)): Ditto.
4110 (erase(iterator)): Ditto.
4111 (erase(iterator, iterator)): Ditto.
4112 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4113
4114 2004-01-23 Loren J. Rittle <ljrittle@acm.org>
4115
4116 libstdc++/13823
4117 * testsuite/performance/allocator_map_thread.cc: New test.
4118
4119 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4120
4121 * include/bits/locale_facets.tcc
4122 (money_put::do_put(..., long double)): Use the basic_string
4123 constructor for char arrays, not that for C-strings, to pass
4124 __digits to do_put(..., const string_type&): __ws isn't
4125 null-terminated.
4126
4127 2004-01-22 Paolo Carlini <pcarlini@suse.de>
4128
4129 * include/bits/basic_string.h (_M_replace_safe): Change
4130 signatures to take size_types and const _CharT*.
4131 (_M_replace_aux): Likewise, takes size_types instead of
4132 iterators.
4133 (append(size_type, _CharT)): Update call.
4134 (assign(size_type, _CharT)): Ditto.
4135 (replace(iterator, iterator, size_type, _CharT)): Ditto.
4136 (_M_replace_dispatch(iterator, iterator, _Integer,
4137 _Integer, __true_type)): Ditto.
4138 * include/bits/basic_string.tcc (assign(const _CharT*,
4139 size_type)): Ditto.
4140 (insert(size_type, const _CharT*, size_type)): Ditto.
4141 (replace(size_type, size_type, const _CharT*,
4142 size_type)): Ditto.
4143 (_M_replace(iterator, iterator, _InputIterator,
4144 _InputIterator)): Ditto.
4145 (append(const basic_string&)): Ditto.
4146 (append(const basic_string&, size_type, size_type): Ditto.
4147 (append(const _CharT*, size_type): Ditto.
4148 (_M_replace_safe, _M_replace_safe): Change definitions
4149 accordingly, simplify.
4150 * string-inst.cc (_M_replace_safe): Don't instantiate.
4151
4152 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4153
4154 * include/bits/basic_string.tcc (append(const basic_string&)):
4155 Revert previous change.
4156 (append(const basic_string&, size_type, size_type)): Revert
4157 previous change, use _M_check and _M_limit.
4158
4159 2004-01-21 Paolo Carlini <pcarlini@suse.de>
4160
4161 * include/bits/basic_string.h (_M_check): Change to return
4162 a checked __pos and take an additional const char* argument.
4163 (_M_fold): Rename to _M_limit, change to return a size_type,
4164 corresponding to the __off limited to the actual length.
4165 (insert(size_type, size_type, _CharT)): Update call, call
4166 replace.
4167 (insert(iterator, _CharT)): Call replace(iterator, iterator,
4168 size_type, _CharT) instead.
4169 (erase(size_type, size_type)): Update calls.
4170 (replace(size_type, size_type, size_type, _CharT)): Ditto.
4171 (substr(size_type, size_type)): Use _M_check.
4172 * include/bits/basic_string.tcc (basic_string(const basic_string&,
4173 size_type, size_type)): Update calls.
4174 (basic_string(const basic_string&, size_type, size_type,
4175 const _Alloc&)): Ditto.
4176 (assign(const basic_string&, size_type, size_type)): Use the
4177 new _M_check and _M_limit.
4178 (insert(size_type, const basic_string&, size_type, size_type):
4179 Ditto.
4180 (insert(size_type, const _CharT*, size_type)): Ditto.
4181 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
4182 (replace(size_type, size_type, const basic_string&,
4183 size_type, size_type)): Ditto.
4184 (append(const basic_string&)): Ditto.
4185 (append(const basic_string&, size_type, size_type)): Ditto.
4186 (copy(_CharT*, size_type, size_type)): Ditto.
4187 (compare(size_type, size_type, const basic_string&)): Ditto.
4188 (compare(size_type, size_type, const basic_string&,size_type,
4189 size_type)): Ditto.
4190 (compare(size_type, size_type, const _CharT*)): Ditto.
4191 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
4192
4193 2004-01-19 Stefan Olsson <stefan@snon.net>
4194
4195 * include/ext/mt_allocator.h: If a thread, when it dies, still has
4196 memory on it's freelist this memory is not returned to global
4197 list. Simplification of deallocate so that memory is always
4198 returned to the calling thread id's freelist instead of to
4199 global. Fix typos. Add volatile where appropriate.
4200
4201 2004-01-19 Loren J. Rittle <ljrittle@acm.org>
4202
4203 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
4204 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
4205 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
4206
4207 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4208
4209 * src/debug.cc: Make sure all the names are prefixed with
4210 double (or single) underscore.
4211
4212 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4213
4214 * src/debug.cc: Trivial formatting change.
4215
4216 2004-01-19 Paolo Carlini <pcarlini@suse.de>
4217
4218 * include/bits/basic_string.tcc (_S_construct(size_type,
4219 _CharT, const _Alloc&)): Remove redundant try/catch.
4220 (_M_mutate(size_type, size_type, size_type)): Ditto.
4221 (_M_clone(const _Alloc&, size_type)): Ditto.
4222
4223 2004-01-18 Paolo Carlini <pcarlini@suse.de>
4224
4225 * include/bits/basic_string.h (c_str()): Simplify, due to
4226 21.3.4 the internal representation is always kept null-terminated.
4227 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
4228 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
4229 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
4230 Ditto.
4231
4232 2004-01-18 Paolo Carlini <pcarlini@suse.de>
4233
4234 * include/bits/basic_string.h (append(size_type, _CharT)):
4235 Moved inline, just call _M_replace_aux, no source iterators at
4236 risk of being clobbered.
4237 (assign(size_type, _CharT)): Call directly _M_replace_aux.
4238 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4239 input_iterator_tag)): Remove fifth unused argument.
4240 (_M_replace_dispatch(iterator, iterator, _InputIterator,
4241 _InputIterator, __false_type)): Update call.
4242 * include/bits/basic_string.tcc (replace(size_type, size_type,
4243 const _CharT*, size_type)): Update call.
4244 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
4245 throw string literal.
4246 (_M_replace_safe(iterator, iterator, _ForwardIterator,
4247 _ForwardIterator)): Likewise.
4248 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
4249 input_iterator_tag)): Remove fifth unused argument.
4250 (append(size_type __n, _CharT __c)): Move inline.
4251 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
4252 const C*, const C*, input_iterator_tag)): Remove fifth unused
4253 argument.
4254
4255 2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
4256
4257 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
4258 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
4259
4260 2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
4261
4262 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
4263 mkfifo for mingw32.
4264
4265 2004-01-15 Stefan Olsson <stefan@snon.net>
4266
4267 * include/ext/mt_allocator.h: Reuse thread id's as soon as
4268 possible by changing the behaviour of thread_freelist to do
4269 push_front when threads die instead of push_back.
4270
4271 2004-01-14 Paolo Carlini <pcarlini@suse.de>
4272
4273 * include/bits/locale_facets.h (struct __numpunct_cache):
4274 Add member _M_grouping_size, caching the length of _M_grouping.
4275 (__numpunct_cache<>::_M_cache): Assign the latter.
4276 (__verify_grouping): Move declaration...
4277 * include/bits/locale_facets.tcc (__verify_grouping):
4278 ... here, change signature to take a const char* and a size_t
4279 for the grouping; not a template anymore.
4280 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
4281 Likewise change signature and tweak consistently.
4282 (num_get::_M_extract_float, num_get::_M_extract_int,
4283 num_put::_M_insert_int, num_put::_M_insert_float,
4284 money_get::do_get(string_type&), money_get::do_put(string_type)):
4285 Update callers.
4286 * config/locale/generic/numeric_members.cc
4287 (numpunct<>::_M_initialize_numpunct): Assign the new member.
4288 * config/locale/gnu/numeric_members.cc
4289 (numpunct<>::_M_initialize_numpunct): Likewise.
4290 * src/locale-inst.cc (__add_grouping): Tweak signature.
4291 (__verify_grouping): Don't instantiate, not a template anymore.
4292
4293 * include/bits/locale_facets.h: Rename _M_truename_len ->
4294 _M_truename_size, _M_falsename_len -> _M_falsename_size.
4295 * include/bits/locale_facets.tcc: Likewise.
4296 * config/locale/generic/numeric_members.cc: Likewise.
4297 * config/locale/gnu/numeric_members.cc: Likewise.
4298
4299 2004-01-14 Stefan Olsson <stefan@snon.net>
4300
4301 * include/ext/mt_allocator.h: Fixups.
4302 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
4303 * testsuite/performance/allocator_thread.cc: Same.
4304
4305 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4306
4307 * testsuite/performance/ifstream_extract_float.cc: Add higher
4308 precision tests.
4309 * testsuite/performance/ofstream_insert_float.cc: Same.
4310
4311 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4312
4313 * src/locale-misc-inst.cc (__convert_from_v(long),
4314 __convert_from_v(unsigned long), __convert_from_v(long long),
4315 __convert_from_v(unsigned long long)): Remove, unused.
4316
4317 2004-01-13 Benjamin Kosnik <bkoz@redhat.com>
4318
4319 * testsuite/performance/ifstream_extract_float.cc: New.
4320 * testsuite/performance/ofstream_insert_float.cc: Float generation
4321 matches above.
4322
4323 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
4324 * 20_util/auto_ptr/1.cc: ...this.
4325 * 20_util/auto_ptr/2.cc: Same.
4326 * 20_util/auto_ptr/3.cc: Same.
4327 * 20_util/auto_ptr/3946.cc: Same.
4328 * 20_util/auto_ptr/4.cc: Same.
4329 * 20_util/auto_ptr/5.cc: Same.
4330 * 20_util/auto_ptr/6.cc: Same.
4331 * 20_util/auto_ptr/7.cc: Same.
4332 * 20_util/auto_ptr/assign_neg.cc
4333 * 20_util/pairs.cc: Break into...
4334 * 20_util/pair/1.cc: ...this.
4335 * 20_util/pair/2.cc: Same.
4336 * 20_util/pair/3.cc: Same.
4337 * 20_util/pair/4.cc: Same.
4338
4339 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4340
4341 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
4342 Set correctly just basefield, the only group that matters.
4343
4344 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4345
4346 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
4347 (_Rope_rep_base): Inherit directly from the rope allocator;
4348 use rebinding instead of _Alloc_traits; pick up data member
4349 from _Rope_rep_alloc_base.
4350 (_Rope_alloc_base): Eliminate.
4351 (_Rope_base): Inherit directly from the rope allocator; use
4352 rebinding instead of _Alloc_traits; pick up data member from
4353 _Rope_alloc_base.
4354 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
4355 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
4356
4357 2004-01-13 Paolo Carlini <pcarlini@suse.de>
4358
4359 PR libstdc++/13650
4360 * include/bits/basic_string.tcc (compare(size_type, size_type,
4361 const _CharT*, size_type)): Implement correctly the resolution
4362 of DR 5: basically, s is a char array, -not- a C string.
4363 * include/bits/basic_string.h: Tweak some comments.
4364 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
4365 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
4366
4367 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
4368
4369 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
4370 Solaris.
4371
4372 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4373
4374 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
4375 Use try_mkfifo.
4376 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
4377 Likewise.
4378
4379 2004-01-12 Paolo Carlini <pcarlini@suse.de>
4380
4381 * include/bits/locale_facets.h (struct __numpunct_cache):
4382 Add members _M_truename_len and _M_falsename_len, caching
4383 the lengths of _M_truename and _M_falsename.
4384 (__numpunct_cache<>::_M_cache): Assign the latter.
4385 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
4386 num_put::do_put(bool)): Use the new members, thus avoiding
4387 computing string lengths again and again.
4388 * config/locale/generic/numeric_members.cc
4389 (numpunct<>::_M_initialize_numpunct): Assign the new members.
4390 * config/locale/gnu/numeric_members.cc
4391 (numpunct<>::_M_initialize_numpunct): Likewise.
4392
4393 2004-01-12 Mark Mitchell <mark@codesourcery.com>
4394
4395 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
4396 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
4397 it.
4398 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
4399 and remove Cygwin XFAIL.
4400 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
4401 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
4402 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
4403 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
4404 Likewise.
4405 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
4406 * testsuite/27_io/objects/char/7.cc: Likewise.
4407 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
4408 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
4409 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
4410
4411 2004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
4412
4413 * include/std/std_complex.h (std::complex<>::real): Return a
4414 reference. Add non-const overload.
4415 (std::complex<>::real): Likewise.
4416 (std::real): Likewise.
4417 (std::imag): Likewise.
4418 (std::operator+): Tidy.
4419 (std::operator-): Likewise.
4420 (std::operator*): Likewise.
4421 (std::operator/): Likewise.
4422 (std::operator>>): Likewise.
4423
4424 2004-01-11 Paolo Carlini <pcarlini@suse.de>
4425
4426 PR libstdc++/13582
4427 * include/bits/fstream.tcc (imbue): Exploit the external
4428 buffer to imbue 'on the fly' a new locale and convert its
4429 remainder with the new codecvt facet.
4430 (underflow): Tweak slightly to deal with this special case.
4431 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
4432 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
4433 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
4434 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
4435 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
4436
4437 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4438
4439 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
4440 Import Revision 28.
4441
4442 2004-01-10 Paolo Carlini <pcarlini@suse.de>
4443
4444 PR libstdc++/13630
4445 * include/bits/locale_classes.h (class locale): Fix category
4446 typedef.
4447 * testsuite/22_locale/locale/13630.cc: Add.
4448
4449 2004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
4450
4451 * include/bits/locale_facets.h: Make a name really dependent. This
4452 will be needed when Core Issue 224 is implemented.
4453
4454 2004-01-09 Paolo Carlini <pcarlini@suse.de>
4455
4456 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
4457 * testsuite/performance/allocator_thread.cc: Likewise.
4458
4459 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4460
4461 * crossconfig.m4: Add LFS, io bits to linux cross config.
4462 * acconfig.h: Remove obsolete bits, reorder.
4463 * config.h.in: Regenerate.
4464 * aclocal.m4: Same.
4465 * configure: Same.
4466
4467 2004-01-07 Gawain Bolton <gp.bolton@computer.org>
4468
4469 * include/bits/stl_list.h:
4470 * include/bits/list.tc:
4471 * src/list.cc:
4472 Performance enhancements for destructor, push_front(),
4473 push_back(), pop_front(), pop_back(), sort()
4474 Eliminated static_casts where possible.
4475 Moved code out of header files into new src/list.cc
4476 implementation file for library where possible.
4477 Remove inheritance from iterator class and create separate
4478 classes for non-constant and constant iterators.
4479 * include/bits/stl_tree.h (_Rb_tree class):
4480 * src/tree.cc:
4481 Only erase contents in destructor.
4482 Eliminate unnecessary initialization in assignment operator.
4483 Optimize for the nominal case by not checking whether
4484 container is empty in clear().
4485 Re-order test in _M_insert() to improve performance.
4486 Move initialization of new node's left & right pointers to
4487 src/tree.cc to where new node's colour is initialized
4488 and to reduce the amount of inline code.
4489 Use _M_leftmost() and _M_end() to improve readability where
4490 appropriate.
4491 Create separate classes for non-constant and constant
4492 iterators to clarify code, avoid extra template parameters and
4493 casting away constness.
4494
4495 2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
4496
4497 * src/Makefile.am (sources): Add list.cc, tree.cc.
4498 * src/stl_tree.cc: Move to...
4499 * src/tree.cc: ...here.
4500 * src/list.cc: Add.
4501 * config/linker-map.gnu: Tweaks.
4502 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
4503 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
4504
4505 * bits/stl_vector.h: Column wrap comments.
4506
4507 2004-01-07 Loren J. Rittle <ljrittle@acm.org>
4508
4509 (re-open) PR libstdc++/12658
4510 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
4511 (locale::global): Likewise.
4512
4513 2004-01-07 Paolo Carlini <pcarlini@suse.de>
4514
4515 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
4516 Remove redundant #include.
4517 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
4518 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
4519 re-enable normal testing.
4520 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
4521 #include.
4522 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
4523 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
4524 Likewise.
4525 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
4526 Likewise.
4527 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
4528 Likewise.
4529 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
4530 Likewise.
4531 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
4532 Likewise.
4533 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
4534 Likewise.
4535 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
4536 Likewise.
4537 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
4538 More properly, #include <locale>.
4539 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
4540 Remove redundant #include.
4541 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
4542 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
4543 redundant DejaGnu directive.
4544 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
4545 redundant #include.
4546
4547 2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
4548 Stefan Olsson <stefan@snon.net>
4549
4550 * scripts/check_performance: Use -pthread.
4551 * testsuite/performance/allocator.cc: Tweaks, add list.
4552 * testsuite/performance/allocator_thread.cc: New.
4553
4554 2004-01-06 Jerry Quinn <jlquinn@optonline.net>
4555
4556 * include/bits/locale_facets.h: Document public classes and
4557 functions.
4558 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
4559 Add comment.
4560
4561 2004-01-06 Paolo Carlini <pcarlini@suse.de>
4562
4563 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
4564 Remove redundant #includes.
4565 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
4566 Likewise.
4567 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
4568 Likewise.
4569 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
4570 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
4571 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
4572 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
4573 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
4574 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
4575 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
4576 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
4577 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
4578 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
4579 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
4580 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
4581 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
4582 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
4583 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
4584 Likewise.
4585 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
4586 Likewise.
4587 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
4588 Likewise.
4589 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
4590 Likewise.
4591 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
4592 Likewise.
4593 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
4594 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
4595 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
4596
4597 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4598
4599 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
4600 Remove redundant #includes.
4601 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
4602 Likewise.
4603 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
4604 Likewise.
4605 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
4606 Likewise.
4607 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
4608 Likewise.
4609 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
4610 Likewise.
4611 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
4612 Likewise.
4613 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
4614 Likewise.
4615 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
4616 Likewise.
4617 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
4618 Likewise.
4619 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
4620 Likewise.
4621 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
4622 Likewise.
4623 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
4624 Likewise.
4625
4626 2004-01-04 Mark Mitchell <mark@codesourcery.com>
4627
4628 PR c++/12226
4629 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
4630 constructor.
4631 * testsuite/27_io/basic_fstream/4.cc: Likewise.
4632 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
4633 * testsuite/27_io/basic_ios/4.cc: Likewise.
4634 * testsuite/27_io/basic_iostream/4.cc: Likewise.
4635 * testsuite/27_io/basic_istream/4.cc: Likewise.
4636 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
4637 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
4638 * testsuite/27_io/basic_ostream/4.cc: Likewise.
4639 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
4640 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
4641 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
4642
4643 2004-01-04 Paolo Carlini <pcarlini@suse.de>
4644
4645 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
4646 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
4647 always use double underscored names.
4648 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
4649 Likewise.
4650 * include/bits/locale_facets.h (struct __numpunct_cache):
4651 Dimension _M_atoms_out and _M_atoms_in one position smaller.
4652 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
4653 and _M_atoms_in.
This page took 0.267962 seconds and 5 git commands to generate.