OSDN Git Service

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