OSDN Git Service

4e510e99834280d4f5ea369e9faac73ca0f8f338
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2004-12-09  Paolo Carlini  <pcarlini@suse.de>
2
3         * include/tr1/type_traits: Implement remove_extent and
4         remove_all_extents.
5         * testsuite/tr1/4_metaprogramming/array_modifications/
6         remove_all_extents.cc: New.
7         * testsuite/tr1/4_metaprogramming/array_modifications/
8         remove_extent.cc: Likewise.
9
10 2004-12-08  Paolo Carlini  <pcarlini@suse.de>
11
12         * include/tr1/type_traits: Implement is_same, add_reference and
13         remove_reference.
14         * testsuite/testsuite_tr1.h (test_relationship): New.
15         * testsuite/tr1/4_metaprogramming/reference_modifications/
16         add_reference.cc: New.
17         * testsuite/tr1/4_metaprogramming/reference_modifications/
18         remove_reference.cc: Likewise.
19         * testsuite/tr1/4_metaprogramming/relationships_between_types/
20         is_same/is_same.cc: Likewise.
21         * testsuite/tr1/4_metaprogramming/relationships_between_types/
22         is_same/typedefs.cc: Likewise.
23
24         * testsuite/tr1/4_metaprogramming/type_properties/is_const/
25         is_const.cc: Minor tweaks.
26         * testsuite/tr1/4_metaprogramming/type_properties/is_volatile/
27         is_volatile.cc: Likewise.
28
29 2004-12-08  David Edelsohn  <edelsohn@gnu.org>
30
31         * Makefile.am (AM_MAKEFLAGS): Remove duplicate LIBCFLAGS and
32         PICFLAG.
33         * Makefile.in: Regenerated.
34
35 2004-12-07  Paolo Carlini  <pcarlini@suse.de>
36
37         * include/tr1/type_traits: Implement is_const and is_volatile.
38         * testsuite/testsuite_tr1.h (test_property): New.
39         * testsuite/tr1/4_metaprogramming/type_properties/
40         is_const/is_const.c: New.
41         * testsuite/tr1/4_metaprogramming/type_properties/
42         is_const/typedefs.cc: Likewise.
43         * testsuite/tr1/4_metaprogramming/type_properties/
44         is_volatile/is_volatile.cc: Likewise.
45         * testsuite/tr1/4_metaprogramming/type_properties/
46         is_volatile/typedefs.cc: Likewise.
47         * testsuite/tr1/4_metaprogramming/composite_type_traits/
48         is_arithmetic/is_arithmetic.cc: Slightly tweak to use ClassType
49         from testsuite_tr1.h.
50         * testsuite/tr1/4_metaprogramming/composite_type_traits/
51         is_fundamental/is_fundamental.cc: Likewise.
52         * testsuite/tr1/4_metaprogramming/primary_type_categories/
53         is_array/is_array.cc: Likewise.
54         * testsuite/tr1/4_metaprogramming/primary_type_categories/
55         is_floating_point/is_floating_point.cc: Likewise.
56         * testsuite/tr1/4_metaprogramming/primary_type_categories/
57         is_integral/is_integral.cc: Likewise.
58         * testsuite/tr1/4_metaprogramming/primary_type_categories/
59         is_reference/is_reference.cc: Likewise.
60         * testsuite/tr1/4_metaprogramming/primary_type_categories/
61         is_void/is_void.cc: Likewise.
62
63 2004-12-06  Paolo Carlini  <pcarlini@suse.de>
64
65         * include/tr1/type_traits: Implement is_reference.
66         * testsuite/tr1/4_metaprogramming/primary_type_categories/
67         is_reference/is_reference.cc: New.
68         * testsuite/tr1/4_metaprogramming/primary_type_categories/
69         is_reference/typedefs.cc: Likewise.
70
71 2004-12-05  Paolo Carlini  <pcarlini@suse.de>
72
73         PR libstdc++/18837
74         * testsuite/testsuite_performance.h: Fix mallinfo macros for
75         hpux.
76
77 2004-12-04  Richard Henderson  <rth@redhat.com>
78
79         * testsuite/26_numerics/complex/pow.cc: Use -mieee on alpha.
80
81 2004-12-04  Richard Henderson  <rth@redhat.com>
82
83         * include/ext/malloc_allocator.h: Include cstdlib.
84
85 2004-12-04  Paolo Carlini  <pcarlini@suse.de>
86
87         * include/tr1/type_traits: New.
88         * include/Makefile.am: Add.
89         * include/Makefile.in: Regenerate.
90         * testsuite/testsuite_tr1.h: New.
91         * testsuite/tr1/4_metaprogramming/composite_type_traits/
92         is_arithmetic/is_arithmetic.cc: New.
93         * testsuite/tr1/4_metaprogramming/composite_type_traits/
94         is_arithmetic/typedefs.cc: Likewise.
95         * testsuite/tr1/4_metaprogramming/composite_type_traits/
96         is_fundamental/is_fundamental.cc: Likewise.
97         * testsuite/tr1/4_metaprogramming/composite_type_traits/
98         is_fundamental/typedefs.cc: Likewise.
99         * testsuite/tr1/4_metaprogramming/helper_classes/
100         true_false_type.cc: Likewise.
101         * testsuite/tr1/4_metaprogramming/helper_classes/
102         true_false_type_typedefs.cc: Likewise.
103         * testsuite/tr1/4_metaprogramming/helper_classes/
104         typedefs.cc: Likewise.
105         * testsuite/tr1/4_metaprogramming/primary_type_categories/
106         is_array/is_array.cc: Likewise.
107         * testsuite/tr1/4_metaprogramming/primary_type_categories/
108         is_array/typedefs.cc: Likewise.
109         * testsuite/tr1/4_metaprogramming/primary_type_categories/
110         is_floating_point/is_floating_point.cc: Likewise.
111         * testsuite/tr1/4_metaprogramming/primary_type_categories/
112         is_floating_point/typedefs.cc: Likewise.
113         * testsuite/tr1/4_metaprogramming/primary_type_categories/
114         is_integral/is_integral.cc: Likewise.
115         * testsuite/tr1/4_metaprogramming/primary_type_categories/
116         is_integral/typedefs.cc: Likewise.
117         * testsuite/tr1/4_metaprogramming/primary_type_categories/
118         is_void/is_void.cc: Likewise.
119         * testsuite/tr1/4_metaprogramming/primary_type_categories/
120         is_void/typedefs.cc: Likewise.
121
122 2004-12-02  Paolo Carlini  <pcarlini@suse.de>
123
124         * testsuite/testsuite_io.h (class sync_buf): New, templatized
125         version of sync_streambuf; add typedefs for streambuf/wstreambuf.
126         (class fail_buf): Likewise, for fail_streambuf.
127         (class fail_num_get): Templatize and add char/wchar_t typedefs.
128         (class fail_num_put): Likewise.
129         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
130         exceptions_badbit_throw.cc: Use the latter.
131         * testsuite/27_io/basic_istream/extractors_arithmetic/char/
132         exceptions_failbit_throw.cc: Likewise.
133         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
134         exceptions_badbit_throw.cc: Likewise.
135         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/
136         exceptions_failbit_throw.cc: Likewise.
137
138 2004-12-01  Paolo Carlini  <pcarlini@suse.de>
139
140         * testsuite/27_io/basic_istream/get/wchar_t/1.cc: New.
141         * testsuite/27_io/basic_istream/get/wchar_t/2.cc: Likewise.
142         * testsuite/27_io/basic_istream/get/wchar_t/3.cc: Likewise.
143         * testsuite/27_io/basic_istream/ignore/wchar_t/1.cc: Likewise.
144         * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
145         * testsuite/27_io/basic_istream/ignore/wchar_t/3.cc: Likewise.
146         * testsuite/27_io/basic_istream/ignore/wchar_t/6360.cc: Likewise.
147         * testsuite/27_io/basic_istream/ignore/wchar_t/7220.cc: Likewise.
148
149 2004-11-29  Paolo Carlini  <pcarlini@suse.de>
150
151         * testsuite/21_strings/basic_string/capacity/char/18654.cc: Use
152         better names.
153         * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: Same.
154
155 2004-11-29  Paolo Carlini  <pcarlini@suse.de>
156
157         PR libstdc++/18654
158         * include/bits/basic_string.tcc (_Rep::_S_create): When shrinking,
159         do not round to pagesize.
160         * testsuite/21_strings/basic_string/capacity/char/18654.cc: New.
161         * testsuite/21_strings/basic_string/capacity/wchar_t/18654.cc: New.
162
163 2004-11-27  Paolo Carlini  <pcarlini@suse.de>
164
165         PR libstdc++/18690
166         * include/tr1/utility (get(pair), get(const pair)): Change
167         occurrences of _I to _Int.
168
169 2004-11-27  Paolo Carlini  <pcarlini@suse.de>
170
171         * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: Fix typo.
172         * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: Likewise.
173
174         * testsuite/22_locale/time_put/put/char/17038.cc: Use VERIFY.
175         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: Likewise.
176         * testsuite/27_io/basic_filebuf/underflow/wchar_t/11603.cc: Likewise.
177         * testsuite/27_io/basic_ios/exceptions/char/2.cc: Likewise.
178
179 2004-11-26  Paolo Carlini  <pcarlini@suse.de>
180
181         DR 243. get and getline when sentry reports failure [WP]
182         * include/bits/istream.tcc (istream<>::get, istream<>::getline):
183         Store a null character only if the array has a non-zero size.
184         * src/istream.cc (istream<char>::getline, istream<wchar_t>::getline):
185         Likewise.
186         * testsuite/27_io/basic_istream/get/char/3.cc: New.
187         * testsuite/27_io/basic_istream/getline/char/6.cc: New.
188         * testsuite/27_io/basic_istream/getline/wchar_t/6.cc: New.
189         * docs/html/ext/howto.html: Add an entry for DR 243.
190
191         * testsuite/27_io/basic_istream/getline/wchar_t/1.cc: New.
192         * testsuite/27_io/basic_istream/getline/wchar_t/2.cc: New.
193         * testsuite/27_io/basic_istream/getline/wchar_t/3.cc: New.
194         * testsuite/27_io/basic_istream/getline/wchar_t/4.cc: New.
195         * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: New.
196
197 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
198
199         * configure: Regenerate for libtool change.
200
201 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
202
203         * Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.
204         * include/Makefile.in: Likewise.
205         * libmath/Makefile.in: Likewise.
206         * libsupc++/Makefile.in: Likewise.
207         * po/Makefile.in: Likewise.
208         * src/Makefile.in: Likewise.
209         * testsuite/Makefile.in: Likewise.
210
211 2004-11-24  Jonathan Wakely  <redi@kayari.org>
212
213         * docs/html/ext/howto.html: Fix incorrect link.
214         * docs/html/documentation.html: Regenerate.
215
216 2004-11-24  Nathan Myers  <ncm@cantrip.org>
217
218         * include/bits/streambuf_iterator.h
219         (istreambuf_iterator<>::operator++(), operator++(int)): Don't
220         check unnecessarily the return value of _M_sbuf->sbumpc().
221
222 2004-11-24  Benjamin Kosnik  <bkoz@redhat.com>
223
224         * include/Makefile.am (tr1_headers): Add utility, functional.
225         * include/Makefile.in: Regenerate.
226
227 2004-11-24  Chris Jefferson  <chris@bubblescope.net>
228
229         * include/tr1/tuple(operator!=): Change operator 
230         definition to match (draft) technical report.
231         (operator>): Same.
232         (operator<=): Same.
233         (operator>=): Same.
234         (ref): Move to include/tr1/functional.
235         (cref): Same.
236         (tuple_size<pair>): Move to include/tr1/utility.
237         (tuple_element<,pair>): Same.
238         * include/tr1/functional: New.
239         * include/tr1/utility: New.
240         * testsuite/tr1/6_container/utility/pair.cc: New.
241
242 2004-11-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
243
244         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
245         (do_out, do_unshift, do_in): Remove redundant typedef.
246
247 2004-11-23  Chris Jefferson  <chris@bubblescope.net>
248
249         * testsuite/testsuite_iterators.h: New.
250         * testsuite/25_algorithms/search_n/iterator.cc: New.
251         * testsuite/performance/25_algorithms/search_n.cc: New.
252
253 2004-11-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
254
255         * testsuite/lib/libstdc++.exp: Use new procs in target-libpath.exp.
256
257 2004-11-23  Benjamin Kosnik  <bkoz@redhat.com>
258
259         * docs/doxygen/doxygroups.cc: Add std::tr1 namespace.
260         * docs/doxygen/run_doxygen: Renames for std::tr1.
261         * docs/doxygen/user.cfg.in: Add cxxabi.h.
262         * include/bits/*.tcc: Add file markup.
263         * include/bits/allocator.h: Add link to allocator.html.
264         * include/bits/atomicity.h: Add file markup.
265         * include/bits/concurrence.h: Same.
266         * include/bits/functexcept.h: Same.
267         * include/ext*: Adjust file markup, remove GCC3 bits.
268         * include/std/*: Adjust file markup, remove bits about renamed files.
269         * libsupc++/cxxabi.h: Add file markup.
270         * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust line numbers.
271
272 2004-11-22  Benjamin Kosnik  <bkoz@redhat.com>
273
274         * include/bits/locale_facets.h (isspace, isprint, isupper,
275         islower, isalpha, isdigit, ispunct, isxdigit, isalnum, isgraph,
276         toupper, tolower): Add doxygen markup.
277         (codecvt_byname, ctype_byname, numpunct_byname, collate_byname,
278         time_get_byname, time_put_byname, moneypunct_byname,
279         messages_byname): Same.
280         * include/std/std_fstream.h: Remove superfluous markup.
281         * include/std/std_sstream.h: Same.
282         * include/std/std_streambuf.h: Same.
283         * include/ext/enc_filebuf.h: Adjust markup.
284         * include/ext/stdio_filebuf.h: Same.
285         * include/ext/stdio_sync_filebuf.h: Same.
286         * include/bits/codecvt.h: Same.
287         * config/os/gnu-linux/ctype_base.h: Same.
288         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
289         * include/tr1/array: Add markup.
290         * include/tr1/tuple: Same.
291         
292         * docs/doxygen/run_doxygen: Print arguments.
293
294         * docs/doxygen/user.cfg.in: Tweaks.
295
296 2004-11-19  Jonathan Wakely  <redi@gcc.gnu.org>
297
298         * include/bits/basic_string.h, include/bits/locale_classes.h,
299         include/bits/valarray_after.h, include/bits/valarray_before.h,
300         include/ext/stdio_sync_filebuf.h, include/std/std_algorithm.h,
301         include/std/std_functional.h, include/std/std_memory.h,
302         include/std/std_numeric.h: Doxygen fixes.
303
304 2004-11-19  Paolo Carlini  <pcarlini@suse.de>
305
306         * testsuite/22_locale/time_get/get_date/char/1.cc: In the checks
307         use, more correctly (and consistently with other testcases) the
308         return value of the facet (the iterator arguments are by value).
309         * testsuite/22_locale/time_get/get_date/char/12791.cc: Likewise.
310         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Likewise.
311         * testsuite/22_locale/time_get/get_date/wchar_t/12791.cc: Likewise.
312         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Likewise.
313         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
314         * testsuite/22_locale/time_get/get_time/char/1.cc: Likewise.
315         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Likewise.
316         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
317         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
318         * testsuite/22_locale/time_get/get_year/char/1.cc: Likewise.
319         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Likewise.
320
321 2004-11-19  Jonathan Wakely  <redi@gcc.gnu.org>
322
323         * Makefile.am (doxygen, doxygen-maint, doxygen-man): Remove extra '$'
324         from host_alias variable.
325         * Makefile.in: Regenerate.
326
327 2004-11-19  Chris Jefferson  <chris@bubblescope.net>
328
329         * include/bits/stl_list.h (list::back, list::back const):
330         Don't decrement temporary.
331
332 2004-11-19  Paolo Carlini  <pcarlini@suse.de>
333
334         * include/bits/stl_deque.h (deque::front, deque::front const,
335         deque::back, deque::back const): Slightly tweak for stylistic
336         consistency.
337
338 2004-11-18  Paolo Carlini  <pcarlini@suse.de>
339
340         * testsuite/26_numerics/numeric/sum_diff.cc: Use VERIFY.
341         * testsuite/ext/array_allocator/1.cc: Likewise.
342         * testsuite/ext/array_allocator/2.cc: Likewise.
343         * testsuite/ext/array_allocator/3.cc: Likewise.
344         * testsuite/ext/enc_filebuf/char/13598.cc: Likewise.
345
346 2004-11-18  Paolo Carlini  <pcarlini@suse.de>
347
348         * include/bits/locale_facets.tcc (num_get<>::do_get(void*&)):
349         If the failbit is set, don't set it again.
350         (money_get<>::_M_extract): Minor stylistic tweak: consistently
351         with the other functions, take care of eofbit at the end.
352
353 2004-11-18  Paolo Carlini  <pcarlini@suse.de>
354
355         DR 434. bitset::to_string() hard to use [Ready]
356         * include/std/std_bitset.h (to_string): Add three overloads, taking
357         fewer template arguments.
358         * docs/html/ext/howto.html: Add an entry for DR 434.
359         * testsuite/23_containers/bitset/to_string/1.cc: New.
360
361 2004-11-17  Paolo Carlini  <pcarlini@suse.de>
362
363         * include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&,
364         _CharT)): Remove temporary kludge for libstdc++/15002.
365         * include/std/std_streambuf.h (class basic_streambuf): Declare
366         getline(basic_istream<>&, basic_string<>&, _CharT) as friend.
367         * include/bits/basic_string.h (getline(basic_istream<>&,
368         basic_string<>&, _CharT)): Declare optimized specializations for
369         char and wchar_t, using protected members of basic_streambuf.
370         * src/istream.cc: Define the latter.
371
372 2004-11-16  Jonathan Wakely  <redi@gcc.gnu.org>
373
374         * docs/html/19_diagnostics/howto.html: Document change from
375         _GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.
376
377 2004-11-16  Matthias Klose  <doko@debian.org>
378
379         * docs/doxygen/user.cfg.in: Set HAVE_DOT to NO.
380
381 2004-11-16  Matthias Klose  <doko@debian.org>
382
383         * Makefile.am (doxygen, doxygen-maint, doxygen-man): Use host_alias
384         instead of build_alias.
385         * docs/doxygen/run_doxygen: Likewise.
386         * docs/doxygen/user.cfg.in: Likewise.
387         * Makefile.in: Regenerate.
388
389 2004-11-15  Paolo Carlini  <pcarlini@suse.de>
390
391         * include/bits/streambuf.tcc (__copy_streambufs): Provide
392         a generic version of the function, not using the protected
393         members of basic_streambuf.
394         * include/std/std_streambuf.h (__copy_streambufs): Declare
395         optimized specializations for char and wchar_t.
396         * src/streambuf.cc: New file, define the latter.
397         * src/Makefile.am: Add.
398         * src/Makefile.in: Regenerate.
399
400 2004-11-15  Matthias Klose  <doko@debian.org>
401
402         * docs/doxygen/run_doxygen: Add --build_alias option,
403         substitute it in docs/doxygen/user.cfg.in.
404         * docs/doxygen/user.cfg.in: Use build_alias.
405         * Makefile.am: Pass --build_alias to run_doxygen
406         * Makefile.in: Regenerate.
407
408 2004-11-15  Benjamin Kosnik  <bkoz@redhat.com>
409
410         * testsuite/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.4.
411
412 2004-11-15  Paolo Carlini  <pcarlini@suse.de>
413
414         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 33.
415
416 2004-11-14  Paolo Carlini  <pcarlini@suse.de>
417
418         * include/bits/streambuf_iterator.h (istreambuf_iterator::_M_get):
419         Slightly tweak for clarity (also leads to measurably better code).
420
421 2004-11-12  Andrew Pinski  <pinskia@physics.uc.edu>
422
423         PR other/14264
424         * testsuite/lib/libstdc++.exp: Set LC_ALL and LANG to C.
425
426 2004-11-09  Paolo Carlini  <pcarlini@suse.de>
427
428         * include/bits/locale_facets.tcc (time_get<>::do_get_weekday,
429         time_get<>::do_get_monthname): Absolutely avoid dereferencing
430         end iterators.
431
432         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
433         Minor tweak.    
434
435 2004-11-08  Benjamin Kosnik  <bkoz@redhat.com>
436             Doug Gregor  <dgregor@cs.indiana.edu>
437
438         PR libstdc++/17664
439         * src/debug.cc : Just use one mutex.
440
441 2004-11-08  Benjamin Kosnik  <bkoz@redhat.com>
442
443         * configure.ac (libtool_VERSION): To 6:4:0.
444         * configure: Regenerate.
445
446         * config/linker-map.gnu: Slide new symbols into GLIBCXX_3.4.4.
447
448         * docs/doxygen/user.cfg.in: Add more extension files.
449
450 2004-11-08  Paolo Carlini  <pcarlini@suse.de>
451
452         * include/bits/streambuf_iterator.h (class istreambuf_iterator):
453         Consistently use _M_c to cache the current char, i.e., not only
454         when operator++(int) is involved; change _M_c to mutable.
455         (_M_get()): Always save the return value of _M_sbuf->sgetc() into
456         _M_c.
457         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
458         (long standing) typo.
459         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
460         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
461         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.
462
463 2004-11-08  Paolo Carlini  <pcarlini@suse.de>
464
465         * include/bits/istream.tcc (getline(char_type*, streamsize,
466         char_type), ignore(streamsize), ignore(streamsize, int_type)):
467         Restore a generic version of the functions, not using the
468         protected members of basic_streambuf.
469         * include/std/std_istream.h (getline(char_type*, streamsize,
470         char_type), ignore(streamsize), ignore(streamsize, int_type)):
471         Declare optimized specializations for char and wchar_t.
472         * src/istream.cc: New file, define the latter.
473         * src/Makefile.am: Add.
474         * src/Makefile.in: Regenerate.
475
476 2004-11-07  Paolo Carlini  <pcarlini@suse.de>
477
478         * testsuite/performance/27_io/ifstream_getline-2.cc: New.
479
480 2004-11-05  Benjamin Kosnik  <bkoz@redhat.com>
481
482         PR libstdc++/17218
483         PR libstdc++/17223
484         * docs/doxygen/filter: Remove.
485         * docs/doxygen/filter.sed: Remove.
486         * docs/doxygen/mainpage.html: Add link to functions.
487         * docs/doxygen/run_doxygen: Changes due to new source filtering.
488         * docs/doxygen/user.cfg.in: Update to doxygen 1.3.9.1, tweak.
489         * include/bits/allocator.h: Tweaks for doxygen.
490         * include/bits/char_traits.h: Same.
491         * include/bits/codecvt.h: Same.
492         * include/bits/concurrence.h: Same.
493         * include/bits/locale_facets.h: Same.
494         * include/ext/array_allocator.h: Same.
495         * include/ext/debug_allocator.h: Same.
496         * include/ext/malloc_allocator.h: Same.
497         * include/ext/mt_allocator.h: Same.
498         * include/ext/new_allocator.h: Same.
499         * include/ext/pool_allocator.h: Same.
500         * include/ext/stdio_sync_filebuf.h: Same.
501         * include/std/std_memory.h: Same.
502         * include/tr1/array: Same.
503         * include/tr1/tuple: Same.
504         * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same.
505         * config/os/gnu-linux/ctype_base.h: Same.
506
507 2004-11-04  Paolo Carlini  <pcarlini@suse.de>
508
509         * include/bits/locale_facets.tcc (num_get<>::do_get(bool&)):
510         Evaluate __beg == __end the exact strict minimum number of times.
511
512 2004-11-03  Jonathan Wakely  <redi@gcc.gnu.org>
513
514         * include/bits/stl_numeric.h (partial_sum, adjacent_difference):
515         Avoid dereferencing two times __first in the prologue.
516  
517 2004-11-03  Paolo Carlini  <pcarlini@suse.de>
518
519         * include/bits/stl_numeric.h: Trivial formatting fixes.
520
521 2004-11-03  Benjamin Kosnik  <bkoz@redhat.com>
522
523         * include/bits/c++config: Spacing.
524         * libsupc++/del_op.cc: Include c++config.h.
525         * libsupc++/del_opnt.cc: Same.
526         * libsupc++/del_opv.cc: Same.
527         * libsupc++/del_opvnt.cc: Same.
528         * libsupc++/new_op.cc: Same.
529         * libsupc++/new_opnt.cc: Same.
530         * libsupc++/new_opv.cc: Same.
531         * libsupc++/new_opvnt.cc: Same.
532
533 2004-11-03  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
534
535         * config/os/bsd/darwin/os_defines.h
536         (_GLIBCXX_WEAK_DEFINITION): Define.
537         * include/bits/c++config (_GLIBCXX_WEAK_DEFINITION): Define.
538         * libsupc++/del_op.cc (operator delete(void *)): Use
539         _GLIBCXX_WEAK_DEFINITION.
540         * libsupc++/del_opnt.cc
541         (operator delete(void *, const std::nothrow_t&)): Same.
542         * libsupc++/del_opv.cc (operator delete[](void *)): Same.
543         * libsupc++/del_opvnt.cc
544         (operator delete[](void *, const std::nothrow_t&)): Same.
545         * libsupc++/new_op.cc (operator new(std::size_t)): Same.
546         * libsupc++/new_opnt.cc
547         (operator new(std::size_t, const std::nothrow_t&)): Same
548         * libsupc++/new_opv.cc (operator new[](std::size_t)): Same.
549         * libsupc++/new_opvnt.cc
550         (operator new[](std::size_t, const std::nothrow_t&)): Same.
551
552 2004-11-02  Paolo Carlini  <pcarlini@suse.de>
553
554         * include/bits/locale_facets.tcc (num_get<>::_M_extract_int):
555         Evaluate *__beg the exact strict minimum number of times; likewise
556         for __beg != __end; slightly simplify main parsing loop.
557
558 2004-11-02  Benjamin Kosnik  <bkoz@redhat.com>
559             Lothar Werzinger  <lothar@xcerla.com>
560         
561         PR libstdc++/17664
562         * src/debug.cc: Include concurrence, use mutexes.
563         (_Safe_iterator_base::_M_attach): Here. 
564         (_Safe_iterator_base::_M_detach): Here. 
565         
566 2004-11-02  Benjamin Kosnik  <bkoz@redhat.com>
567
568         PR libstdc++/17922
569         * include/bits/ios_base.h : Add enum values.
570         * testsuite/testsuite_hooks.h (bitmask_operators): Add function.
571         * testsuite/27_io/ios_base/types/fmtflags/bitmask_operators.cc: New.
572         * testsuite/27_io/ios_base/types/fmtflags/case_label.cc: New.
573         * testsuite/27_io/ios_base/types/iostate/bitmask_operators.cc: New.
574         * testsuite/27_io/ios_base/types/iostate/case_label.cc: New.
575         * testsuite/27_io/ios_base/types/openmode/bitmask_operators.cc: New.
576         * testsuite/27_io/ios_base/types/openmode/case_label.cc: New.
577         * testsuite/27_io/ios_base/types/seekdir/case_label.cc: New.
578
579         * config/io/c_io_stdio.h (__ios_flags): Mark deprecated.
580         * src/ios.cc: Same.
581
582         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
583         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
584
585 2004-11-01  Momchil Velikov  <velco@fadata.bg>
586
587         PR libstdc++/18185
588         * libsupc++/eh_globals.cc (get_globals_dtor): Delete unhandled
589         exceptions.
590         * testsuite/thread/18185.cc: New.
591         
592 2004-11-01  Chris Jefferson  <chris@bubblescope.net>
593
594         PR libstdc++/18159
595         * include/tr1/tuple (get(pair)): Change occurrences of _I to _Int.
596         (get(const pair)): Likewise.
597
598 2004-11-01  Paolo Carlini  <pcarlini@suse.de>
599
600         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
601         Evaluate *__beg the exact strict minimum number of times; likewise
602         for __beg != __end; in the main parsing loop, call ++__beg in two
603         places only. The former is also a correctness issue, because,
604         according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
605         dereferenced only one time for each increment.
606
607 2004-10-31  Benjamin Kosnik  <bkoz@redhat.com>
608
609         PR c++/16728
610         * testsuite/23_containers/set/modifiers/16728.cc: New.
611
612 2004-10-30  Paolo Carlini  <pcarlini@suse.de>
613
614         * include/ext/bitmap_allocator.h (allocate(size_type)): Minor tweak.
615
616         * testsuite/ext/bitmap_allocator/check_delete.cc: New.
617         * testsuite/ext/bitmap_allocator/check_new.cc: Likewise.
618
619 2004-10-29  Geoffrey Keating  <geoffk@apple.com>
620
621         * configure.host (darwin*): Set os_include_dir to a separate directory
622         for Darwin.
623         * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add a new C locale kind,
624         'darwin'.
625         * config/locale/darwin/ctype_members.cc: New.
626         * config/os/bsd/darwin/ctype_base.h: New.
627         * config/os/bsd/darwin/ctype_inline.h: New.
628         * config/os/bsd/darwin/ctype_noninline.h: New.
629         * config/os/bsd/darwin/os_defines.h: New.
630
631         * testsuite/22_locale/locale/cons/12658_thread-1.cc: Only xfail
632         on Linux.
633
634 2004-10-29  Chris Jefferson  <chris@bubblescope.net>
635
636         * include/bit/stl_algo.h (find_first_of(,,,,pred)):
637         Remove invalid EqualOpConcept.
638         * testsuite/25_algorithms/find_first_of/concept_check_1.cc: New.
639
640 2004-10-29  Benjamin Kosnik  <bkoz@redhat.com>
641
642         * testsuite/testsuite_allocator.h (check_delete): New.
643         (check_new): Simplify.
644         * testsuite/ext/array_allocator/check_delete.cc: New.
645         * testsuite/ext/array_allocator/check_new.cc: Simplify.
646         * testsuite/ext/debug_allocator/check_delete.cc: New.
647         * testsuite/ext/debug_allocator/check_new.cc: Simplify.
648         * testsuite/ext/malloc_allocator/check_delete.cc: New.
649         * testsuite/ext/malloc_allocator/check_new.cc: Simplify.
650         * testsuite/ext/mt_allocator/check_delete.cc: New.
651         * testsuite/ext/mt_allocator/check_new.cc: Simplify.
652         * testsuite/ext/new_allocator/check_delete.cc: New.
653         * testsuite/ext/new_allocator/check_new.cc: Simplify.
654         * testsuite/ext/pool_allocator/check_delete.cc: New.
655         * testsuite/ext/pool_allocator/check_new.cc: Simplify.
656
657 2004-10-28  Chris Jefferson  <chris@bubblescope.net>
658
659         PR libstdc++/18159
660         * include/tr1/tuple: Fix, change formatting.
661
662 2004-10-28  Benjamin Kosnik  <bkoz@redhat.com>
663
664         * include/ext/mt_allocator.h (__common_pool_policy): Add template
665         template parameter for pool class type.
666         (__per_type_pool_policy): Same.
667         (__mt_allocator): Don't inherit policy. Qualify policy_type calls.
668         * testsuite/ext/mt_allocator/check_deallocate_null.cc: Fix.
669         * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: Same.
670         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
671         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
672         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
673         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
674         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
675         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
676         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
677         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
678         * testsuite/ext/mt_allocator/instantiate.cc: Same.
679         * testsuite/ext/mt_allocator/tune-1.cc: Same.
680         * testsuite/ext/mt_allocator/tune-2.cc: Same.
681         * testsuite/ext/mt_allocator/tune-3.cc: Same.
682         * testsuite/ext/mt_allocator/tune-4.cc: Same.
683
684 2004-10-28  Paolo Carlini  <pcarlini@suse.de>
685
686         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
687         Cache *__beg in __c when parsing exponent sign too.
688         (num_get<>::do_get(..., bool&)): Cache *__beg.
689         (money_get<>::_M_extract)): Likewise, in money_base::value.
690
691 2004-10-27  Paolo Carlini  <pcarlini@suse.de>
692
693         * include/bits/basic_string.h (assign(const basic_string&)):
694         Move out of line...
695         * include/bits/basic_string.tcc: ... here.
696
697 2004-10-27  Paolo Carlini  <pcarlini@suse.de>
698
699         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
700         Move out of line...
701         * include/bits/basic_string.tcc: ... here.
702
703 2004-10-26  Paolo Carlini  <pcarlini@suse.de>
704
705         * include/bits/basic_string.h (append(const basic_string&),
706         append(size_type, _CharT)): Move out of line...
707         * include/bits/basic_string.tcc: ... here.
708
709 2004-10-26  Paolo Carlini  <pcarlini@suse.de>
710
711         * include/bits/basic_string.h (erase(size_type, size_type),
712         erase(iterator), erase(iterator, iterator)): Call _M_mutate
713         instead of _M_replace_safe, equivalent when the fourth argument
714         is zero and simpler.
715
716 2004-10-26  Benjamin Kosnik  <bkoz@redhat.com>
717
718         * include/ext/array_allocator.h (array::allocate): Check for valid
719         array object, use its size member function directly.
720         * testsuite/ext/array_allocator/3.cc: New.
721         * docs/html/20_util/allocator.html: Add docs.
722         
723 2004-10-25  Geoffrey Keating  <geoffk@apple.com>
724
725         * configure.host (darwin*): Build libstdc++ single module
726         and flat namespace.
727         * libsupc++/new_op.cc (new): Make weak.
728         * libsupc++/new_opnt.cc (new): Make weak.
729         * libsupc++/new_opv.cc (new): Make weak.
730         * libsupc++/new_opvnt.cc (new): Make weak.
731         * libsupc++/delete_op.cc (delete): Make weak.
732         * libsupc++/delete_opnt.cc (delete): Make weak.
733         * libsupc++/delete_opv.cc (delete): Make weak.
734         * libsupc++/delete_opvnt.cc (delete): Make weak.
735
736 2004-10-25  Benjamin Kosnik  <bkoz@redhat.com>
737
738         * testsuite/Makefile.am (GLIBCXX_INCLUDES): Add.
739         (AUTOMAKE_OPTIONS): Add nostdinc.
740         * testsuite/Makefile.in: Regenerate.
741         * scripts/testsuite_flags.in (build-includes): Remove redundant
742         search for libsupc++.
743         * fragment.am: Clean.
744         
745 2004-10-25  Benjamin Kosnik  <bkoz@redhat.com>
746
747         * include/Makefile.am (tr1_headers): Add tuple.
748         * include/Makefile.in: Regenerate.
749
750 2004-10-25  Chris Jefferson  <chris@bubblescope.net>
751
752         * include/tr1/tuple: Implementation of tuple from library TR.
753         * testsuite/tr1/6_containers/tuple/tuple_element.cc: New.
754         * testsuite/tr1/6_containers/tuple/tuple_size.cc: New.
755         * testsuite/tr1/6_containers/tuple/comparison_operators/comparisons.cc:
756         New.
757         * testsuite/tr1/6_containers/tuple/cons/assignment.cc: New.
758         * testsuite/tr1/6_containers/tuple/cons/big_tuples.cc: New.
759         * testsuite/tr1/6_containers/tuple/cons/constructor.cc: New.
760         * testsuite/tr1/6_containers/tuple/creation_functions/make_tuple.cc: 
761         New.
762         * testsuite/tr1/6_containers/tuple/creation_functions/tie.cc: New.
763         * testsuite/tr1/6_containers/tuple/element_access/get.cc: New.
764
765 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
766         
767         * include/bits/basic_string.h (_Rep::_M_is_safe): Move to
768         basic_string as _M_disjunct, adjust to take only __s.
769         * include/bits/basic_string.tcc: Adjust consistently callers. 
770
771 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
772
773         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
774         Adjust bit missing from the previous commit.
775
776 2004-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
777
778         PR other/18138
779         * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc.
780
781 2004-10-25  Paolo Carlini  <pcarlini@suse.de>
782
783         * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length,
784         _M_move, _M_copy, _M_assign): New, use througout.
785         (operator+=(_CharT)): Define in terms of push_back.
786         (append(const basic_string&)): Define here, inline, and simplify,
787         don't use the full _M_replace_safe.
788         (append(size_type, _CharT)): Likewise, don't use _M_replace_aux.
789         (push_back): Likewise.
790         (assign(const basic_string&)): Define here, inline.
791         * include/bits/basic_string.tcc (append(const _CharT* s, size_type):
792         Fix: when s points inside the _Rep, upon reallocation (reserve) we
793         were copying from deallocated memory.
794         (append(const basic_string&, size_type, size_type)): Simplify,
795         don't use _M_replace_safe.
796         (replace(size_type, size_type, const _CharT*, size_type)): Slightly
797         tweak.
798         (reserve): Likewise.
799         * testsuite/21_strings/basic_string/append/char/2.cc: New.
800         * testsuite/21_strings/basic_string/append/char/3.cc: Likewise.
801         * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise.
802         * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise.
803
804         * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk.
805         * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise.
806
807 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
808
809         * testsuite/ext/mt_allocator/deallocate_global-2.c:
810         s/value_t/value_type/. s/traits_t/traits_type/.
811         s/policy_t/policy_type/. s/allocator_t/allocator_type/.
812         s/string_t/string_type/. s/list_t/list_type/.
813         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Likewise.
814         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Likewise.
815         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Likewise.
816         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Likewise.
817         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Likewise.
818         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Likewise.
819         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Likewise.
820
821 2004-10-21  Benjamin Kosnik  <bkoz@redhat.com>
822
823         * include/tr1/array (array): Make safe for zero-sized arrays.
824         (array::end): Return one past the end.
825         (array::at): Use __throw_out_of_range, include functexcept.h.
826         (operator==): Implement.
827         (operator!=): Same.
828         (operator<): Same.
829         (operator>): Same.
830         (operator>=): Same.
831         (operator<=): Same.
832         * testsuite/tr1/6_containers/array/capacity/(empty.cc,
833         max_size.cc, size.cc): New.
834         * testsuite/tr1/6_containers/array/comparison_operators/(equal.cc,
835         greater.cc, greater_or_equal.cc, less.cc, less_or_equal.cc,
836         not_equal): New.
837         * testsuite/tr1/6_containers/array/cons/aggregate_initialization.cc: 
838         New.
839         * testsuite/tr1/6_containers/array/element_access/at_out_of_range.cc: 
840         New.
841         * testsuite/tr1/6_containers/array/iterators/end_is_one_past.cc: New.
842         * testsuite/tr1/6_containers/array/requirements/(contiguous.cc,
843         instantiate, typedefs, zero_size_arrays): New.
844
845 2004-10-21  Paolo Carlini  <pcarlini@suse.de>
846             Benjamin Kosnik  <bkoz@redhat.com>
847
848         * include/bits/basic_string.h (_M_set_length_and_sharable): New.
849         * include/bits/basic_string.tcc (_S_construct, assign(const _CharT*,
850         size_type), _M_mutate, _M_clone): Use it.
851         (_Rep::_S_create): Don't set/call _M_length/_M_set_sharable here.
852
853 2004-10-21  Paolo Carlini  <pcarlini@suse.de>
854             Dhruv Matani  <dhruvbird@gmx.net>
855             Nathan Myers  <ncm@cantrip.org>
856
857         * include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
858         _M_range_insert): Check at the outset that we are not trying
859         to exceed max_size, then deal properly with __len overflows.
860         * testsuite/23_containers/vector/modifiers/insert/1.cc: New.
861         
862         * testsuite/testsuite_allocator.h: Remove redundant include.
863
864 2004-10-20  Paolo Carlini  <pcarlini@suse.de>
865
866         * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc
867         when n > max_size().
868         * include/ext/malloc_allocator.h (allocate): Likewise.
869         * include/ext/mt_allocator.h (allocate): Likewise.
870         * include/ext/new_allocator.h (allocate): Likewise.
871         * include/ext/array_allocator.h: Use __throw_bad_alloc().
872         * include/ext/pool_allocator.h: Use __builtin_expect.
873         * testsuite/ext/array_allocator/check_allocate_max_size.cc: New.
874         * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise.
875         * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise.
876         * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise.
877         * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise.
878         * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise.
879         * testsuite/testsuite_allocator.h (check_allocate_max_size): New test.
880
881 2004-10-19  Paolo Carlini  <pcarlini@suse.de>
882
883         * testsuite/performance/20_util/allocator/list_sort_search.cc:
884         Include <ext/new_allocator.h>.
885         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
886
887 2004-10-18  Paolo Carlini  <pcarlini@suse.de>
888
889         * include/bits/basic_string.tcc (_M_mutate): Do not reallocate
890         unnecessarily when _M_rep() == &_S_empty_rep() and __new_size
891         == capacity() (== 0): is ok to just leave everything unchanged.
892
893         * include/bits/basic_string.h: Minor formatting fixes.
894         * include/bits/basic_string.tcc: Likewise.
895
896 2004-10-17  Benjamin Kosnik  <bkoz@redhat.com>
897
898         * include/ext/mt_allocator.h (__pool::_M_get_align): New.
899         (__mt_alloc::allocate): Use it.
900         * src/mt_allocator.cc (__pool::_M_reclaim_block): Use it.
901         (__pool::_M_reserve_block): Simplify block allocation.
902         
903 2004-10-17  Dhruv Matani  <dhruvbird@gmx.net>
904             Paolo Carlini  <pcarlini@suse.de>
905                 
906         * include/ext/bitmap_allocator.h: Change unsigned int -> size_t: this
907         makes the code 64-bit correct and also fixes (together with using at
908         the beginning a bitmap 2 * size_t bytes wide) alignment issues: now
909         8 is guaranteed, easily tunable to 16 via _BALLOC_ALIGN_BYTES.
910         Fix pthread-rope7.cc fail by nulling out __mini_vector<> destructor.
911         * src/bitmap_allocator.cc: Change to size_t.
912         * config/linker-map.gnu: Adjust.
913
914 2004-10-16  Benjamin Kosnik  <bkoz@redhat.com>
915
916         * include/tr1/array: Don't use layout_type.
917
918 2004-10-16  Sashan Govender  <sashang@gmail.com>
919
920         * include/tr1/array (array::end const): Fix casting from iterator
921         to const_iterator.
922         
923 2004-10-15  Paolo Carlini  <pcarlini@suse.de>
924
925         * include/ext/bitmap_allocator.h: Qualify ::operator delete.
926         * src/bitmap_allocator.cc: Likewise.
927         * src/mt_allocator.cc: Use ::operator delete, not delete,
928         consistently with ::operator new.
929
930         * include/ext/bitmap_allocator.h (deallocate): Check for null
931         pointer.
932         * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
933         * testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
934
935 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
936
937         * include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
938         null pointer.
939         * include/ext/pool_allocator.h (debug_allocator::deallocate):
940         Check pointer value.
941         * include/ext/debug_allocator.h (debug_allocator::deallocate):
942         Throw exceptions, don't abort.
943         * include/ext/array_allocator.h
944         (array_allocator_base::deallocate): Remove unused parameters.
945         * testsuite/testsuite_allocator.h (check_deallocate_null): New.
946         * testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
947         * testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
948         * testsuite/ext/array_allocator/check_deallocate_null.cc: New.
949         * testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
950         * testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
951         * testsuite/ext/new_allocator/check_deallocate_null.cc: New.
952         * testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
953
954         * testsuite/testsuite_allocator.h (check_new): Add instance argument.
955         * testsuite/ext/array_allocator/check_new.cc: New.
956         
957 2004-10-14  Paolo Carlini  <pcarlini@suse.de>
958
959         * include/ext/bitmap_allocator.h (bitmap_allocator::_Alloc_block):
960         Rename __unused to __M_unused.
961
962 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
963
964         * testsuite/ext/headers.cc: Add includes, compile only.
965         * testsuite/ext/hash_map.cc: Move to...
966         * testsuite/ext/hash_map/1.cc: ...here.
967         * testsuite/ext/14648.cc: Move to...
968         * testsuite/ext/hash_map/14648.cc: ...here.
969         * testsuite/ext/hash_map/instantiate.cc: Add.
970         * testsuite/ext/hash_set.cc: Move to...
971         * testsuite/ext/hash_set/1.cc: ...here.
972         * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
973         * testsuite/ext/hash_set/instantiate.cc: ...here.
974         * testsuite/ext/hash_check_construct_destroy.cc: Move to...
975         * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
976         * testsuite/ext/slist_check_construct_destroy.cc: Move to...
977         * testsuite/ext/slist/check_construct_destroy.cc: ...here.
978         * testsuite/ext/slist_explicit_instantiation.cc: Move to...
979         * testsuite/ext/slist/instantiate.cc: ...here.
980         
981 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
982
983         * include/ext/mt_allocator.h: Tweaks.
984         * src/mt_allocator.cc: Same.
985
986 2004-10-14  Dhruv Matani  <dhruvbird@gmx.net>
987
988         * ext/bitmap_allocator.h: Clean-up add/remove functions.
989         * src/bitmap_allocator.cc: New file. Contains the out-of-line
990         function definitions, static initialization of variables, and
991         explicit instantiations needed for the allocator.
992         * src/Makefile.am: Add.
993         * src/Makefile.in: Regenerate.
994         * config/linker.map.gnu: Add the necessary symbols.
995
996 2004-10-13  Paolo Carlini  <pcarlini@suse.de>
997
998         * include/bits/basic_string.tcc (_S_create): Use consistently
999         the exponential policy, simplify.
1000         * testsuite/performance/21_strings/string_append_2.cc: New.
1001
1002         * include/ext/array_allocator.h (allocate): Fix bad_alloc check.
1003         * testsuite/ext/array_allocator/2.cc: Fix wrt 64-bit archs (in
1004         that case sizeof(_Rep) == 24).
1005
1006 2004-10-12  Paolo Carlini  <pcarlini@suse.de>
1007
1008         PR libstdc++/17948
1009         * include/bits/stl_tree.h (erase(iterator, iterator)): Revert
1010         wrong commit of 2004-10-07.
1011         
1012 2004-10-12  Scott Snyder  <snyder@fnal.gov>
1013
1014         PR libstdc++/17948
1015         * testsuite/23_containers/set/modifiers/17948.cc: New.
1016
1017 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
1018
1019         * include/bits/stl_deque.h: Correct for over-long lines.
1020
1021 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
1022
1023         PR libstdc++/17937
1024         * include/ext/mt_allocator.h (__pool::_M_destroy): New.
1025         * src/mt_allocator.cc (__pool::~__pool): Change definitions to
1026         _M_destroy.
1027         * acconfig.h: Remove _GLIBCXX_USE___CXA_ATEXIT.
1028         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): Remove.
1029         * configure.ac: Remove call to GLIBCXX_ENABLE_CXA_EXIT.
1030         * configure: Regenerate.
1031         * config/linker-map.gnu: Tweak exports.
1032         * docs/html/ext/mt_allocator.html: Update docs.
1033         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Fix.
1034         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Fix.       
1035         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Fix.
1036         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Fix.
1037         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Fix.
1038         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Fix.
1039         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Fix.
1040         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Fix.
1041
1042 2004-10-11  Benjamin Kosnik  <bkoz@redhat.com>
1043
1044         PR libstdc++/16614 continued.
1045         * include/ext/mt_allocator.h
1046         (__per_type_pool_policy::_S_get_pool): Use saner defaults based on
1047         specific type characteristics.
1048         (__pool_base): Add constructor that takes a _Tune argument.
1049         (__pool): Same.
1050         * testsuite/ext/mt_allocator/tune-2.cc: Adjust default.
1051         * testsuite/ext/mt_allocator/tune-4.cc: Same.
1052         * testsuite/ext/mt_allocator/tune-3.cc: Same.
1053
1054 2004-10-11  Joachim Kuebart  <kuebart@mathematik.uni-ulm.de>
1055             Paolo Carlini  <pcarlini@suse.de>
1056
1057         * src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
1058         Deal properly with exceptions thrown by ::operator new(size_t).
1059         * testsuite/ext/pool_allocator/allocate_chunk.cc: New.
1060
1061         * include/ext/pool_allocator.h: Include <cstdlib>.
1062
1063 2004-10-10  Benjamin Kosnik  <bkoz@redhat.com>
1064
1065         * include/bits/functexcept.h: Add guards.
1066
1067         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Tweak test.
1068         * configure: Regenerate.
1069         
1070 2004-10-10  Paolo Carlini  <pcarlini@suse.de>
1071
1072         * config/locale/gnu/monetary_members.cc (_S_construct_pattern):
1073         Give __ret a default value, thus avoiding spurious warnings.
1074
1075         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Open either
1076         words or linux.words, otherwise exit.
1077         * testsuite/performance/27_io/ifstream_getline.cc: Slighlty tweak.
1078
1079 2004-10-09  Paolo Carlini  <pcarlini@suse.de>
1080
1081         * include/std/std_memory.h (__get_temporary_buffer): Don't use
1082         INT_MAX, prefer numeric_limits<ptrdiff_t>::max(), ok on 64-bit
1083         platforms too.
1084         * testsuite/20_util/memory/auto_ptr/assign_neg.cc: Adjust dg-error
1085         line numbers.
1086
1087 2004-10-08  Benjamin Kosnik  <bkoz@redhat.com>
1088
1089         * acconfig.h: Add _GLIBCXX_USE___CXA_ATEXIT.
1090         * acinclude.m4 (GLIBCXX_ENABLE_CXA_ATEXIT): New.
1091         * configure.ac: Call GLIBCXX_ENABLE_CXA_EXIT.
1092         * configure: Regenerate.
1093         * src/mt_allocator.cc (__pool::~__pool): Make conditional on
1094         _GLIBCXX_USE___CXA_ATEXIT macro.
1095         * docs/html/ext/mt_allocator.html: Add note about deallocation.
1096         * testsuite/ext/mt_allocator/deallocate_local-2.cc: Guard checks
1097         with _GLIBCXX_USE___CXA_ATEXIT.
1098         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
1099         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
1100         * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
1101         * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
1102         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
1103         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
1104         * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
1105         
1106 2004-10-07  Phil Edwards  <phil@codesourcery.com>
1107
1108         * testsuite/lib/libstdc++.exp:  Update list of undefined functions.
1109
1110 2004-10-07  Paolo Carlini  <pcarlini@suse.de>
1111
1112         * include/bits/list.tcc (operator=): Avoid iterator postincrement.
1113         * include/bits/stl_tree.h (erase(iterator, iterator)): Likewise.
1114
1115 2004-10-07  Benjamin Kosnik  <bkoz@redhat.com>
1116
1117         * include/tr1: New.
1118         * include/tr1/array: New.
1119         * include/Makefile.am (tr1_headers): New.
1120         (stamp-tr1): New.
1121         (install-headers): New.
1122         (allstamped): Add stamp-tr1.
1123
1124         * include/ext/array_allocator.h: New.
1125         * include/Makefile.am: Add.
1126         * include/Makefile.in: Regenerate.
1127         * testsuite/ext/array_allocator/1.cc: New.
1128         * testsuite/ext/array_allocator/2.cc: New.
1129
1130 2004-10-07  Richard Earnshaw  <rearnsha@arm.com>
1131
1132         * testsuite/lib/libstdc++.exp (libstdc++_exit): New proc.
1133
1134 2004-10-07  Roger Sayle  <roger@eyesopen.com>
1135
1136         PR libstdc++/17850
1137         * configure.ac: Newlib does not provide strtold.
1138         * configure: Regenerate.
1139
1140 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
1141
1142         * acinclude.m4 (GLIBCXX_ENABLE_THREADS): Set enable_thread.
1143         (GLIBCXX_CONFIGURE_TESTSUITE): Use it.
1144         * configure: Regenerated.
1145         * testsuite/Makefile.am (CLEANFILES): Add TEST for
1146         check-performance executables.
1147         (stamp_thread): New.
1148         (all-local): Use it.
1149         * testsuite/Makefile.in: Regenerate.
1150         * scripts/create_testsuite_files: Filter thread tests.
1151
1152         * testsuite/thread/pthread1.cc: Remove macro conditionals: this
1153         file will only be run by thread enabled configurations.
1154         * testsuite/thread/pthread7-rope.cc: Same, add rope_type typedef.
1155         * testsuite/thread/pthread6.cc: Same.
1156         * testsuite/thread/pthread5.cc: Same.
1157         * testsuite/thread/pthread4.cc: Same.
1158         * testsuite/thread/pthread3.cc: Same.
1159         * testsuite/thread/pthread2.cc: Same.
1160
1161         * testsuite/ext/mt_allocator/instantiate.cc: Add in __GTHREADS guard.
1162         * testsuite/ext/mt_allocator/deallocate_global-1.cc: Move to...
1163         * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: ...here.
1164         * testsuite/ext/mt_allocator/deallocate_global-3.cc: Move to...
1165         * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: ...here. 
1166         * testsuite/ext/mt_allocator/deallocate_local-1.cc: Move to...
1167         * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: ...here.
1168         * testsuite/ext/mt_allocator/deallocate_local-3.cc: Move to...
1169         * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: ...here.
1170
1171 2004-10-06  Benjamin Kosnik  <bkoz@redhat.com>
1172             Paolo Carlini  <pcarlini@suse.de>
1173
1174         PR libstdc++/17780
1175         * src/mt_allocator.cc (__pool<true>::_M_reserve_block): Revert
1176         to old locking order.
1177
1178 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
1179
1180         * include/std/std_sstream.h (_M_sync): When the caller is
1181         setbuf, don't trust _M_string.capacity() to be the size of
1182         the buffer area, use _M_string.size() in this case.
1183         * testsuite/27_io/basic_stringbuf/setbuf/char/4.cc: New.
1184         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Likewise.
1185
1186         * include/bits/sstream.tcc (overflow): Avoid calling string::assign
1187         unnecessarily when the current _M_string is empty.
1188
1189 2004-10-06  Paolo Carlini  <pcarlini@suse.de>
1190
1191         * include/bits/stl_algo.h (__reverse(bidirectional_iterator_tag)):
1192         Avoid iterator postincrement.
1193         (__rotate): Likewise.
1194
1195         * include/bits/stl_algo.h: Minor formatting tweaks.
1196
1197 2004-10-06  Christopher Jefferson <caj@cs.york.ac.uk>
1198
1199         * include/bits/stl_algo.h (__reverse(random_access_iterator_tag)):
1200         Avoid iterator postincrement; fix swapping middle element with
1201         itself on odd-length inputs.
1202
1203 2004-10-05  Benjamin Kosnik  <bkoz@redhat.com>
1204
1205         PR libstdc++/17780
1206         * include/ext/mt_allocator.h (__pool_base::_Tune): Add default
1207         options as compile-time constant enums.
1208         (__pool_base::_Tune::is_default): New.
1209         (__pool_base::_Block_address): New.
1210         (__pool_base): Rearrange data members.
1211         (__pool::_M_reserve_memory): To _M_reserve_block.
1212         (__pool::_M_reclaim_memory): To _M_reclaim_block.       
1213         (__pool::_Bin_record): Add _Block_address data member.
1214         (__pool<false>): Add _M_thread_freelist_initial.
1215         (__pool::~__pool): Declare.     
1216         (__common_pool_policy): Move static data member to...
1217         (__common_pool_policy::_S_get_pool): ...here, make static local.
1218         (__per_type_pool_policy): Move static data member to...
1219         (__per_type_pool_policy::_S_get_pool): ...here, make static local.
1220         (__mt_alloc::__mt_alloc): Call __policy_type::_S_get_pool.
1221         Remove static member definitions. Use define for __default_policy.
1222         * src/mt_allocator.cc: Same.
1223         * config/linker-map.gnu: Don't export _S_get_pool. Renames.
1224         * testsuite/ext/new_allocator: New.
1225         * testsuite/ext/new_allocator/instantiate.cc: New.
1226         * testsuite/ext/new_allocator/check_new.cc: New.
1227         * testsuite/ext/new_allocator/deallocate_global.cc: New.
1228         * testsuite/ext/new_allocator/deallocate_local.cc: New.
1229         * testsuite/ext/mt_allocator/instantiate.cc: Instantiate all
1230         template arguments.
1231         * testsuite/ext/mt_allocator/deallocate_global-1.cc: New.
1232         * testsuite/ext/mt_allocator/deallocate_global-2.cc: New.
1233         * testsuite/ext/mt_allocator/deallocate_global-3.cc: New.
1234         * testsuite/ext/mt_allocator/deallocate_global-4.cc: New.
1235         * testsuite/ext/mt_allocator/deallocate_local-1.cc: New.
1236         * testsuite/ext/mt_allocator/deallocate_local-2.cc: New.
1237         * testsuite/ext/mt_allocator/deallocate_local-3.cc: New.
1238         * testsuite/ext/mt_allocator/deallocate_local-4.cc: New.
1239         * testsuite/ext/mt_allocator/deallocate.cc: New.
1240         * testsuite/ext/malloc_allocator/deallocate.cc: New.    
1241         * testsuite/ext/malloc_allocator/deallocate_global.cc: New.
1242         * testsuite/ext/malloc_allocator/deallocate_local.cc: New.
1243         
1244 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
1245
1246         * configure.host (abi_baseline_pair): Define for s390-*-linux* and
1247         s390x-*-linux*.
1248         * config/abi/s390-linux-gnu/baseline_symbols.txt: Add missing symbols.
1249         * config/abi/s390x-linux-gnu/baseline_symbols.txt: New file.
1250
1251 2004-10-05  Christopher Jefferson  <caj@cs.york.ac.uk>
1252
1253         * include/bits/stl_algobase.h (iter_swap): delegate to swap via
1254         __iter_swap when iterator's value_types are equal.
1255         (struct __iter_swap): New.
1256
1257 2004-10-04  Benjamin Kosnik  <bkoz@redhat.com>
1258
1259         * configure.ac (libtool_VERSION): To 6:3:0.
1260         * configure: Regnerate.
1261         * testsuite/testsuite_abi.cc (check_version): Add 3.4.3.
1262
1263 2004-10-04  Roger Sayle  <roger@eyesopen.com>
1264             Eric Botcazou  <ebotcazou@libertysurf.fr>
1265
1266         PR libstdc++/17505
1267         * config/linker-map.gnu: Synchronize the current list of stub
1268         functions from libmath.
1269
1270 2004-10-03  Roger Sayle  <roger@eyesopen.com>
1271
1272         * config/locale/generic/c_locale.cc (__convert_to_v): Use
1273         _GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
1274         Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
1275         to check for presence of strtold.
1276
1277 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
1278
1279         * include/bits/stl_list.h: Trivial formatting fixes.
1280         * include/bits/stl_tree.h: Likewise.
1281
1282 2004-10-03  Paolo Carlini  <pcarlini@suse.de>
1283
1284         * include/bits/sstream.tcc (seekpos): In case of success, just
1285         return __sp.
1286
1287 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
1288
1289         * include/bits/sstream.tcc (pbackfail): Implement correctly
1290         27.7.1.3/2, bullet 2: if mode & ios_base::out is false do not
1291         write in the buffer.
1292         * testsuite/27_io/basic_stringbuf/pbackfail/char/1.cc: New.
1293         * testsuite/27_io/basic_stringbuf/pbackfail/char/2.cc: Likewise.
1294         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/1.cc: Likewise.
1295         * testsuite/27_io/basic_stringbuf/pbackfail/wchar_t/2.cc: Likewise.
1296         * testsuite/27_io/basic_istream/putback/char/1.cc: Tweak consistently.
1297
1298 2004-10-01  Paolo Carlini  <pcarlini@suse.de>
1299
1300         * include/bits/sstream.tcc (seekpos): Minor rearrangement of two
1301         conditionals consistently with seekoff.
1302         * include/std/std_sstream.h (setbuf): Avoid a string temporary.
1303         (_M_sync): Simplify a bit, clean-up comment.
1304
1305 2004-09-30  Paolo Carlini  <pcarlini@suse.de>
1306
1307         PR libstdc++/10975 (DR 453)
1308         * include/bits/sstream.tcc (seekoff): Don't fail if __beg == 0
1309         and __off == 0.
1310         * docs/html/ext/howto.html: Add an entry for DR 453.
1311         * testsuite/27_io/basic_stringbuf/seekoff/char/10975.cc: New.
1312         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/10975.cc: Likewise.
1313         * testsuite/27_io/basic_istream/tellg/char/1.cc: Tweak consistently.
1314         * testsuite/27_io/basic_ostream/tellp/char/1.cc: Likewise.
1315         * testsuite/27_io/basic_ostream/tellp/char/2.cc: Likewise.
1316         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc: Fix and
1317         move to...
1318         * testsuite/27_io/basic_istream/seekp/char/2346-fstream.cc: ... here.
1319         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc: Fix and
1320         move to...
1321         * testsuite/27_io/basic_istream/seekp/char/2346-sstream.cc: ... here.
1322
1323 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
1324
1325         * include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
1326         Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
1327         (str()): Slightly tweak, protect from pptr() == 0.
1328         (_M_update_egptr()): Likewise.
1329         * include/bits/sstream.tcc (ssekoff, seekpos): In order to check
1330         for an empty buffer use __beg instead of _M_string.capacity().
1331         * testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
1332         * testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.
1333
1334         * testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
1335         * testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
1336         * testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
1337         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.
1338
1339 2004-09-29  Paolo Carlini  <pcarlini@suse.de>
1340             Benjamin Kosnik  <bkoz@redhat.com>
1341         
1342         * testsuite/testsuite_io.h (class constraint_buf): New, extended
1343         and templatized version of constraint_filebuf; add typedefs for
1344         streambuf/stringbuf/filebuf and wchar_t counterparts.
1345
1346 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
1347
1348         PR libstdc++/16612
1349         * include/bits/basic_string.h (_M_dispose, _M_refcopy,
1350         basic_string()): When _GLIBCXX_FULLY_DYNAMIC_STRING is defined,
1351         don't deal with _S_empty_rep.
1352         * include/bits/basic_string.tcc (_S_construct, _M_destroy,
1353         _M_leak_hard, _M_mutate): Likewise.
1354         * acinclude.m4 (GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING): New.
1355         * acconfig.h: Add corresponding undef.  
1356         * configure.ac: Use GLIBCXX_ENABLE_FULLY_DYNAMIC_STRING.
1357         * docs/html/configopts.html: Document --enable-fully-dynamic-string.
1358         * configure: Regenerate.
1359         * config.h.in: Likewise.
1360
1361 2004-09-28  Benjamin Kosnik  <bkoz@redhat.com>
1362             Paolo Carlini  <pcarlini@suse.de>
1363
1364         * testsuite/21_strings/basic_string/operations/char/1.cc: New.
1365         * testsuite/21_strings/basic_string/operations/wchar_t/1.cc: New.
1366         * testsuite/21_strings/basic_string/element_access/char/empty.cc: New.
1367         * testsuite/21_strings/basic_string/element_access/wchar_t/empty.cc: 
1368         New.
1369
1370 2004-09-28  Paolo Carlini  <pcarlini@suse.de>
1371
1372         * README: Remove obsolete entry about include/c_shadow.
1373
1374 2004-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1375
1376         PR libstdc++/17469
1377         * testsuite/lib/libstdc++.exp: Don't use global ld_library_path.
1378
1379 2004-09-24  Paolo Carlini  <pcarlini@suse.de>
1380
1381         * src/localename.cc (locale::locale(const char*)): Minor tweaks:
1382         rename a variable, move an assignment.
1383         (locale::_Impl::_Impl(const char*, size_t)): Likewise, minor tweak.
1384
1385 2004-09-24  Paul Brook  <paul@codesourcery.com>
1386
1387         * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: XFAIL more arm
1388         simulator targets.
1389         * testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
1390         * testsuite/27_io/basic_filebuf/sgetn/char/2-in.cc: Ditto.
1391         * testsuite/27_io/basic_filebuf/sgetn/char/2-io.cc: Ditto.
1392         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc: Ditto.
1393         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Ditto.
1394         * testsuite/ext/stdio_filebuf/char/10063-3.cc: Ditto.
1395
1396 2004-09-23  Zack Weinberg  <zack@codesourcery.com>
1397
1398         * testsuite/20_util/memory/auto_ptr/assign_neg.cc
1399         * testsuite/23_containers/map/operators/1_neg.cc
1400         * testsuite/23_containers/set/operators/1_neg.cc:
1401         Update locations and/or regexps of dg-error markers.
1402
1403 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
1404
1405         * include/Makefile.am (thread_host_headers): Add gthr-tpf.h.
1406         Add rule to build ${host_builddir}/gthr-tpf.h.
1407         * include/Makefile.in: Regenerate.
1408
1409 2004-09-23  Paolo Carlini  <pcarlini@suse.de>
1410             Magnus Fromreide  <magfr@lysator.liu.se>
1411
1412         * include/bits/boost_concept_check.h (struct _SequenceConcept):
1413         Remove wrong requirement, i.e., not present in Table 67.
1414
1415 2004-09-21  Paolo Carlini  <pcarlini@suse.de>
1416
1417         PR libstdc++/12882 (cont)
1418         * acinclude.m4 (GLIBCXX_CHECK_LFS): Check for fstat64 too.
1419         * configure: Regenerate.
1420         * config/io/basic_file_stdio.cc (__basic_file<>::showmanyc): When
1421         _GLIBCXX_USE_LFS use fstat64 and lseek64, thus providing a non
1422         trivial showmanyc for large files too.
1423
1424 2004-09-17  Jonathan Wakely  <redi@gcc.gnu.org>
1425
1426         * include/bits/stl_algo.h (remove): Remove too restrictive
1427         concept-check.
1428
1429 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1430
1431         * include/bits/fstream.tcc (xsgetn): Slightly tweak conditional,
1432         as per Nathan's original suggestion.
1433
1434 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1435
1436         * testsuite/ext/mt_allocator/tune-1.cc: Use VERIFY, clean
1437         up a bit.
1438         * testsuite/ext/mt_allocator/tune-2.cc: Likewise.
1439         * testsuite/ext/mt_allocator/tune-3.cc: Likewise.
1440         * testsuite/ext/mt_allocator/tune-4.cc: Likewise.
1441
1442 2004-09-17  Paolo Carlini  <pcarlini@suse.de>
1443             Andrea Arcangeli  <andrea@suse.de>
1444
1445         * config/io/basic_file_stdio.cc (__basic_file<>::close)): Don't
1446         call unnecessarily sync, that is fflush: the library, since 3.4.0
1447         does not use buffered fread/fwrite.
1448         * include/bits/fstream.tcc (basic_filebuf<>::overflow): Likewise.
1449
1450 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
1451
1452         * config/cpu/arm/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1453         Define.
1454         * config/cpu/generic/cxxabi_tweaks.h (__cxa_cdtor_return_type):
1455         Define.
1456         * libsupc++/cxxabi.h (__cxa_cdtor_return_type): New type.
1457         (__cxa_vec_new): Use it.
1458         (__cxa_vec_new2): Likewise.
1459         (__cxa_vec_new3): Likewise.
1460         (__cxa_vec_cdtor): Likewise.
1461         (__cxa_vec_cctor): Likeiwse.
1462         (__cxa_vec_dtor): Likewise.
1463         (__cxa_vec_cleanup): Likewise.
1464         (__cxa_vec_delete2): Likewise.
1465         (__cxa_vec_delete3): Likewise.
1466         * libsupc++/vec.cc (__cxa_vec_new): Likewise.
1467         (__cxa_vec_new2): Likewise.
1468         (__cxa_vec_new3): Likewise.
1469         (__cxa_vec_cdtor): Likewise.
1470         (__cxa_vec_cctor): Likeiwse.
1471         (__cxa_vec_dtor): Likewise.
1472         (__cxa_vec_cleanup): Likewise.
1473         (__cxa_vec_delete2): Likewise.
1474         (__cxa_vec_delete3): Likewise.
1475         (__aeabi_vec_ctor_nocookie_nodtor): New function.
1476         (__aeabi_vec_ctor_cookie_nodtor): Likewise.
1477         (__aeabi_vec_cctor_nocookie_nodtor): Likewise.
1478         (__aeabi_vec_new_cookie_noctor): Likewise.
1479         (__aeabi_vec_new_nocookie): Likewise.
1480         (__aeabi_vec_new_cookie_nodtor): Likewise.
1481         (__aeabi_vec_new_cookie): Likewise.
1482         (__aeabi_vec_dtor): Likewise.
1483         (__aeabi_vec_dtor_cookie): Likewise.
1484         (__aeabi_vec_delete): Likewise.
1485         (__aeabi_vec_delete3): Likewise.
1486         (__aeabi_vec_delete3_nodtor): Likewise.
1487         (__aeabi_atexit): Likewise.
1488
1489 2004-09-14  Nathan Myers  <ncm@cantrip.org>
1490
1491         * include/bits/fstream.tcc (xsgetn): Slightly tweak the recent fix
1492         for 11722: copy can replace move; the common case is __avail == 0.
1493
1494 2004-09-14  Paolo Carlini  <pcarlini@suse.de>
1495
1496         * include/bits/cpp_type_traits.h: Rename __is_trivially_copyable
1497         to __is_scalar, more clear and consistent with "tr1" naming.
1498         * include/bits/stl_algobase.h: Update consistently throughout.
1499
1500 2004-09-13  Paolo Carlini  <pcarlini@suse.de>
1501
1502         PR libstdc++/11722
1503         * include/std/std_fstream.h (xsgetn): Declare only.
1504         * include/bits/fstream.tcc (xsgetn): Define, optimize for the
1505         always_noconv() case: when __n > __buflen, copy the available
1506         buffer and issue a direct read.
1507         * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: New.
1508
1509         * include/bits/fstream.tcc (xsputn): Minor tweak, reorder a
1510         conditional.
1511
1512 2004-09-13  Hans-Peter Nilsson  <hp@bitrange.com>
1513
1514         * testsuite/lib/libstdc++.exp: Use gcc wrapper.exp and call
1515         libstdc++_maybe_build_wrapper instead of using local code.
1516
1517 2004-09-08  Benjamin Kosnik  <bkoz@redhat.com>
1518
1519         * config/linker-map.gnu (GLIBCXX_3.4.3): New, adjust symbol exports.
1520
1521 2004-09-03  Jan Beulich  <jbeulich@novell.com>
1522
1523         * crossconfig.m4: Add NetWare as a target.
1524         * configure: Regenerate.
1525
1526 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
1527
1528         * libsupc++/typeinfo: Honor __GXX_MERGED_TYPEINFO_NAMES if already
1529         defined.
1530
1531 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1532             Simon Richter  <Simon.Richter@hogyros.de>
1533
1534         PR libstdc++/16715
1535         * include/bits/istream.tcc: Add extern template for iostream
1536         char and wchar_t instantiations.
1537
1538 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1539             Leland Wang  <llwang@infor.org>
1540
1541         PR libstdc++/17259
1542         * include/ext/ropeimpl.h (rope::_S_compare): Use
1543         _Rope_constants::_S_leaf.
1544
1545 2004-09-02  Benjamin Kosnik  <bkoz@redhat.com>
1546
1547         PR libstdc++/16848
1548         * include/Makefile.am (ext_headers): Remove demangle.h.
1549         * include/Makefile.in: Regenerate.
1550         * include/ext/demangle.h: Remove.
1551
1552 2004-09-01  Benjamin Kosnik  <bkoz@redhat.com>
1553
1554         PR libstdc++/16614
1555         * include/ext/mt_allocator.h (__mt_base): Not type dependent,
1556         split into..
1557         (__pool): New, specialize.
1558         (__common_pool): New, static bits here.
1559         (__per_type_pool): New, and here.
1560         (__mt_alloc_base): New.
1561         (__mt_alloc): Add template parameter, inherit from it.
1562         * src/allocator.cc: Split this...
1563         * src/allocator-inst.cc: And this...
1564         * src/pool_allocator.cc: ...into this.
1565         * src/mt_allocator.cc: ... and this. Add definitions for
1566         __mt_base.
1567         * src/Makefile.am (sources): Split allocator.cc to
1568         pool_allocator.cc and mt_allocator.cc.
1569         * src/Makefile.in: Regenerate.
1570         * config/linker-map.gnu: Add symbols.
1571         * docs/html/ext/mt_allocator.html: Document new design.
1572         * testsuite/ext/mt_allocator/tune-1.cc: New.
1573         * testsuite/ext/mt_allocator/tune-2.cc: New.
1574         * testsuite/ext/mt_allocator/tune-3.cc: New.
1575         * testsuite/ext/mt_allocator/tune-4.cc: New.
1576
1577         * testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
1578         * testsuite/ext/allocators.cc: Use check_new, split into...
1579         * testsuite/ext/mt_allocator/check_new.cc: this.
1580         * testsuite/ext/pool_allocator/check_new.cc: this.
1581         * testsuite/ext/malloc_allocator/check_new.cc: this.
1582         * testsuite/ext/debug_allocator/check_new.cc: this.
1583         * testsuite/ext/mt_allocator/instantiate.cc: this.
1584         * testsuite/ext/pool_allocator/instantiate.cc: this.
1585         * testsuite/ext/malloc_allocator/instantiate.cc: this.
1586         * testsuite/ext/debug_allocator/instantiate.cc: this.
1587
1588 2004-08-30  Phil Edwards  <phil@codesourcery.com>
1589
1590         * docs/html/install.html:  Update locales list (from Paolo).
1591         Remove other redundant information and point to the GCC install
1592         documentation.
1593
1594 2004-08-30  Benjamin Kosnik  <bkoz@redhat.com>
1595
1596         * include/ext/pool_allocator.h: Rename __pool_base to
1597         __pool_alloc_base.
1598         * src/allocator.cc: Same.
1599         * config/linker-map.gnu: Same.
1600
1601 2004-08-30  Paolo Carlini  <pcarlini@suse.de>
1602             Kenneth C. Schalk  <ken@xorian.net>
1603
1604         PR libstdc++/17215
1605         * config/io/basic_file_stdio.cc (__basic_file<char>::close()):
1606         Check the return value of fclose/sync, loop on EINTR.
1607         (__basic_file<char>::sys_open): Likewise, for sync.
1608
1609 2004-08-29  Paolo Carlini  <pcarlini@suse.de>
1610
1611         * include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format,
1612         case 'S'): Allow for at least one leap-second (as per C99, 7.23.1
1613         and 7.23.3.5), two if !_GLIBCXX_USE_C99.
1614         * testsuite/22_locale/time_get/get_time/char/4.cc: New.
1615         * testsuite/22_locale/time_get/get_time/wchar_t/4.cc: Likewise.
1616
1617 2004-08-27  Jason Merrill  <jason@redhat.com>
1618
1619         PR c++/13684
1620         * libsupc++/guard.cc (static_mutex): Internal class implementing a
1621         recursive mutex which controls initialization of local statics.
1622         (__gnu_cxx::recursive_init): New exception class.
1623         (__cxa_guard_acquire): Deal with locking and recursion detection.
1624         (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise.
1625
1626 2004-08-27  Matthias Klose  <doko@debian.org>
1627
1628         * configure.host: For mips*-*-linux* update cpu_include_dir
1629         after atomicity_dir is set.
1630
1631 2004-08-27  Matthias Klose  <doko@debian.org>
1632
1633         * config/abi/arm-linux-gnu/baseline_symbols.txt: New.
1634         * config/abi/mips-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1635         * configure.host: Set abi_baseline_pair for arm*-*-linux* and
1636         mips*-*-linux*.
1637
1638 2004-08-27  Paolo Carlini  <pcarlini@suse.de>
1639
1640         * testsuite/27_io/manipulators/adjustfield/wchar_t/1.cc: New.
1641         * testsuite/27_io/manipulators/adjustfield/wchar_t/2.cc: Likewise.
1642         * testsuite/27_io/manipulators/basefield/wchar_t/1.cc: Likewise.
1643         * testsuite/27_io/manipulators/standard/wchar_t/1.cc: Likewise.
1644         * testsuite/27_io/manipulators/standard/wchar_t/2.cc: Likewise.
1645
1646         * testsuite/27_io/manipulators/adjustfield/char/1.cc: Minor
1647         formatting fixes.
1648         * testsuite/27_io/manipulators/adjustfield/char/2.cc: Likewise.
1649         * testsuite/27_io/manipulators/basefield/char/1.cc: Likewise.
1650         * testsuite/27_io/manipulators/standard/char/1.cc: Likewise.
1651         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1652
1653 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
1654
1655         PR libstdc++/17038 (partial)
1656         * include/bits/locale_facets.tcc (time_put<>::do_put): Increase
1657         __maxlen to 128.
1658         * include/bits/locale_facets.h (class __timepunct): Add FIXME
1659         comment about _M_put.
1660         * config/locale/generic/time_members.cc (_M_put): Always null
1661         terminate __s.
1662         * config/locale/gnu/time_members.cc (_M_put): Likewise.
1663         * testsuite/22_locale/time_put/put/char/17038.cc: New.
1664         * testsuite/22_locale/time_put/put/wchar_t/17038.cc: New.
1665
1666 2004-08-24  Paolo Carlini  <pcarlini@suse.de>
1667
1668         * testsuite/27_io/basic_istringstream/rdbuf/wchar_t/2832.cc: New.
1669         * testsuite/27_io/basic_istringstream/str/wchar_t/1.cc: Likewise.
1670         * testsuite/27_io/basic_ostringstream/cons/wchar_t/3.cc: Likewise.
1671         * testsuite/27_io/basic_ostringstream/rdbuf/wchar_t/2832.cc: Likewise.
1672         * testsuite/27_io/basic_ostringstream/str/wchar_t/1.cc: Likewise.
1673         * testsuite/27_io/basic_ostringstream/str/wchar_t/2.cc: Likewise.
1674
1675         * testsuite/27_io/basic_istringstream/rdbuf/char/2832.cc: Trim excess
1676         newlines.
1677         * testsuite/27_io/basic_istringstream/str/char/1.cc: Likewise.
1678
1679 2004-08-22  Matthias Klose  <doko@debian.org>
1680
1681         * config/abi/m68k-linux-gnu/baseline_symbols.txt: New.
1682         * config/abi/sparc-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1683
1684 2004-08-23  Paolo Carlini  <pcarlini@suse.de>
1685
1686         * configure.ac: Specify version 1.9.1 in AM_INIT_AUTOMAKE.
1687         * aclocal.m4: Regenerate with automake-1.9.1.
1688         * configure: Regenerate.
1689         * Makefile.in: Likewise.
1690         * include/Makefile.in: Likewise.
1691         * libmath/Makefile.in: Likewise.
1692         * libsupc++/Makefile.in: Likewise.
1693         * po/Makefile.in: Likewise.
1694         * src/Makefile.in: Likewise.
1695         * testsuite/Makefile.in: Likewise.
1696
1697 2004-08-22  Paolo Carlini  <pcarlini@suse.de>
1698
1699         * include/bits/locale_facets.tcc (num_put<>::do_put(bool)): Cast
1700         to a signed type, long according to the resolution of DR 359.
1701         * testsuite/22_locale/num_put/put/char/9.cc: New.
1702         * testsuite/22_locale/num_put/put/wchar_t/9.cc: New.
1703
1704         * include/bits/locale_facets.tcc (num_put<>::do_put(const void*)):
1705         Simplify a bit: no need to clear showpos.
1706
1707 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1708
1709         * include/bits/char_traits.h (struct _Char_traits_match): Remove,
1710         unused.
1711
1712 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1713
1714         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Use proper
1715         wchar_t type for the fill argument; minor formatting tweaks.
1716         * testsuite/22_locale/money_put/put/wchar_t/12971.cc: Likewise.
1717         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1718         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1719         * testsuite/22_locale/money_put/put/wchar_t/4.cc: Likewise.
1720         * testsuite/22_locale/money_put/put/wchar_t/5.cc: Likewise.
1721         * testsuite/22_locale/money_put/put/wchar_t/6.cc: Likewise.
1722
1723 2004-08-21  Paolo Carlini  <pcarlini@suse.de>
1724
1725         * include/bits/basic_ios.tcc (basic_ios<>::copyfmt): Don't deal
1726         with _M_word != _M_local_word two times, redundantly.
1727
1728 2004-08-20  Jason Merrill  <jason@redhat.com>
1729
1730         * include/Makefile.am (${host_builddir}/gthr.h): Don't add
1731         _GLIBCXX_ to #pragma lines.
1732         * include/Makefile.in: Update.
1733
1734 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1735
1736         PR libstdc++/7219 (continued)
1737         * include/bits/ios_base.h (class ios_base): Expose Annex D.6
1738         typedefs by default.
1739         * testsuite/27_io/types/1.cc: Remove #if _GLIBCXX_DEPRECATED.
1740         * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak dg-error
1741         line number.
1742         * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise.
1743
1744 2004-08-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1745
1746         * cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
1747         barrier to locking asm.
1748
1749 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1750
1751         * include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
1752         actually the warning is a front-end bug (c++/17120).
1753
1754 2004-08-20  Matthias Klose  <doko@debian.org>
1755
1756         * config/abi/s390-linux-gnu/baseline_symbols.txt: New.
1757
1758 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1759
1760         * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
1761         used as truth value warning.
1762
1763 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1764
1765         * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
1766         baseline.
1767
1768 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
1769
1770         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Fix it.
1771
1772 2004-08-19  Benjamin Kosnik  <bkoz@redhat.com>
1773
1774         * testsuite/22_locale/time_put/put/char/3.cc (test03): Don't check
1775         timezone.
1776         * testsuite/22_locale/time_put/put/wchar_t/3.cc (test03): Same.
1777
1778 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
1779
1780         * testsuite/performance/20_util/allocator/insert.cc: For std::map
1781         instantiate the allocator for a correct pair type.
1782         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1783         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1784         * testsuite/performance/20_util/allocator/producer_consumer.cc:
1785         Likewise.
1786
1787         * testsuite/performance/20_util/allocator/list_sort_search.cc: Very
1788         minor formatting fixes.
1789         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1790
1791 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
1792
1793         * testsuite/22_locale/time_put/put/char/1.cc: Add VERIFY on the
1794         results.
1795         * testsuite/22_locale/time_put/put/char/2.cc: Likewise.
1796         * testsuite/22_locale/time_put/put/char/3.cc: Likewise.
1797         * testsuite/22_locale/time_put/put/char/4.cc: Likewise.
1798         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Likewise.
1799         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1800         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1801         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1802
1803 2004-08-19  Paolo Carlini  <pcarlini@suse.de>
1804
1805         * config/abi/x86_64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1806
1807 2004-08-18  Matthias Klose  <doko@debian.org>
1808
1809         * config/abi/hppa-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1810         * config/abi/i386-linux-gnu/baseline_symbols.txt: New.
1811         * config/abi/powerpc-linux-gnu/baseline_symbols.txt: New.
1812
1813 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
1814
1815         * config/abi/alpha-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1816
1817 2004-08-17  Paolo Carlini  <pcarlini@suse.de>
1818
1819         * config/abi/ia64-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1820
1821 2004-08-17  Benjamin Kosnik  <bkoz@redhat.com>
1822
1823         * config/abi/i486-linux-gnu/baseline_symbols.txt: Update to 3.4.0.
1824
1825 2004-08-16  Paolo Carlini  <pcarlini@suse.de>
1826
1827         * include/bits/indirect_array.h: Trivial formatting fixes.
1828         * include/bits/valarray_after.h: Likewise.
1829         * include/bits/valarray_array.h: Likewise.
1830         * src/valarray-inst.cc: Likewise.
1831
1832 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
1833
1834         * testsuite/27_io/basic_stringstream/rdbuf/char/2832.cc: Remove junk.
1835         * testsuite/27_io/basic_stringstream/str/char/1.cc: Likewise.
1836         * testsuite/27_io/basic_stringstream/str/char/3.cc: Likewise.
1837
1838         * testsuite/27_io/basic_stringstream/rdbuf/wchar_t/2832.cc: New.
1839         * testsuite/27_io/basic_stringstream/str/wchar_t/1.cc: Likewise.
1840         * testsuite/27_io/basic_stringstream/str/wchar_t/2.cc: Likewise.
1841         * testsuite/27_io/basic_stringstream/str/wchar_t/3.cc: Likewise.
1842         * testsuite/27_io/basic_stringstream/str/wchar_t/4.cc: Likewise.
1843
1844 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
1845
1846         * include/bits/deque.tcc: Trivial formatting fixes.
1847
1848 2004-08-15  Paolo Carlini  <pcarlini@suse.de>
1849
1850         * include/bits/deque.tcc: Trivial formatting fixes.
1851
1852         * include/bits/locale_facets.tcc (num_get<>::do_get(&bool)):
1853         Remove unneded typedef.
1854
1855         * include/bits/locale_facets.tcc: Very minor tweaks.
1856
1857         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Use proper
1858         type for the fill argument.
1859         * testsuite/22_locale/time_put/put/wchar_t/10.cc: Likewise.
1860         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Likewise.
1861         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Likewise.
1862         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Likewise.
1863         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Likewise.
1864         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Likewise.
1865         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Likewise.
1866         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Likewise.
1867
1868 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
1869
1870         * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
1871         memmove is not needed, memcpy suffices.
1872
1873 2004-08-13  Paolo Carlini  <pcarlini@suse.de>
1874
1875         * include/std/std_fstream.h (class basic_ifstream,
1876         class basic_ofstream, class basic_fstream): Add const overloads
1877         of is_open, as per DR 365 [WP].
1878         * docs/html/ext/howto.html: Add an entry for DR 365.
1879
1880 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
1881
1882         * configure.ac: Specify version 1.8.5 in AM_INIT_AUTOMAKE.
1883
1884 2004-08-12  Paolo Carlini  <pcarlini@suse.de>
1885
1886         PR libstdc++/16956
1887         * include/bits/sstream.tcc (basic_stringbuf<>::seekoff): Add __off
1888         to the returned value, reorganize a bit.
1889         * testsuite/27_io/basic_stringbuf/seekoff/char/16956.cc: New.
1890         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/16956.cc: New.
1891
1892         * testsuite/27_io/basic_stringbuf/seekoff/char/1.cc: Remove junk.
1893         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc: Likewise.
1894         * testsuite/27_io/basic_stringbuf/seekpos/char/1.cc: Likewise.
1895         * testsuite/27_io/basic_stringbuf/seekpos/wchar_t/1.cc: Likewise.
1896
1897 2004-08-12  Paul Brook  <paul@codesourcery.com>
1898
1899         * config/cpu/arm/cxxabi_tweaks.h: Define __cxa_vec_ctor_return and
1900         _GLIBCXX_CXA_VEC_CTOR_RETURN.
1901         * config/cpu/generic/cxxabi_tweaks.h: Ditto.
1902         * libsupc++/cxxabi.h (__cxa_vec_ctor, __cxa_vec_cctor): Use
1903         __cxa_vec_ctor_return.
1904         * libsupc++/vec.cc (__cxa_vec_ctor, __cxa_vec_cctor): Ditto.
1905         Use _GLIBCXX_CXA_VEC_CTOR_RETURN.
1906
1907 2004-08-12  Kelley Cook  <kcook@gcc.gnu.org>
1908
1909         * Makefile.in, aclocal.m4, configure, include/Makefile.in,
1910         libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
1911         src/Makefile.in, testsuite/Makefile.in: Regenerate
1912
1913 2004-08-12  Jan Beulich  <jbeulich@novell.com>
1914
1915         * config/locale/generic/ctype_members.cc
1916         (ctype<wchar_t>::_M_convert_to_wmask): Default case must not use 0 as
1917         initializer for return value, as that is invalid for enumerated types.
1918         * config/locale/gnu/ctype_members.cc
1919         (ctype<wchar_t>::_M_convert_to_wmask): Likewise.
1920
1921 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
1922
1923         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Fix typo.
1924
1925 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
1926
1927         * testsuite/27_io/basic_stringbuf/imbue/char/1.cc: Declare test
1928         variable.
1929         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc: Ditto.
1930         * testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Remove junk.
1931         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Ditto.
1932         * testsuite/27_io/basic_stringbuf/sbumpc/char/1.cc: Ditto.
1933         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc: Ditto.
1934         * testsuite/27_io/basic_stringbuf/setbuf/char/1.cc: Ditto.
1935         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc: Ditto.
1936         * testsuite/27_io/basic_stringbuf/sgetc/char/1.cc: Ditto.
1937         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Ditto.
1938         * testsuite/27_io/basic_stringbuf/sgetn/char/1.cc: Ditto.
1939         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Ditto.
1940         * testsuite/27_io/basic_stringbuf/snextc/char/1.cc: Ditto.
1941         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Ditto.
1942         * testsuite/27_io/basic_stringbuf/sputbackc/char/1.cc: Ditto.
1943         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc: Ditto.
1944         * testsuite/27_io/basic_stringbuf/sputc/char/1.cc: Ditto.
1945         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc: Ditto.
1946         * testsuite/27_io/basic_stringbuf/sputn/char/1.cc: Ditto.
1947         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc: Ditto.
1948         * testsuite/27_io/basic_stringbuf/sungetc/char/1.cc: Ditto.
1949         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Ditto.
1950
1951 2004-08-11  Paolo Carlini  <pcarlini@suse.de>
1952             Petur Runolfsson  <peturr02@ru.is>
1953
1954         PR libstdc++/16959
1955         * src/ios_init.cc (ios_base::sync_with_stdio): Make sure the
1956         standard streams are constructed.
1957         * testsuite/27_io/ios_base/sync_with_stdio/16959.cc: New.
1958
1959 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
1960
1961         * include/bits/stl_bvector.h: Trivial formatting fixes.
1962
1963 2004-08-09  Paolo Carlini  <pcarlini@suse.de>
1964
1965         * src/ios.cc (ios_base::_M_grow_words): Uglify the names.
1966
1967 2004-08-07  Jonathan Wakely  <redi@gcc.gnu.org>
1968             Paolo Carlini  <pcarlini@suse.de>
1969
1970         * src/debug.cc (_Error_formatter::_M_print_string): In order
1971         to print individual words from __string, _M_format_word can't
1972         be called since may be just sprintf, thus ignoring completely
1973         __n: instead, use memmove and append '\0' by hand.
1974
1975 2004-08-07  Paolo Carlini  <pcarlini@suse.de>
1976
1977         * config/locale/generic/c_locale.h (__convert_from_v): Don't
1978         use a default for __prec, assume __prec >= 0 and simplify.
1979         * config/locale/gnu/c_locale.h (__convert_from_v): Likewise.
1980         * include/bits/locale_facets.tcc (money_put<>::do_put(long double)):
1981         Pass format "%.*Lf" + precision == 0, equivalent to "%.0Lf".
1982
1983 2004-08-04  Phil Edwards  <phil@codesourcery.com>
1984
1985         * docs/html/configopts.html:  Emphasize that options change.
1986         * docs/html/17_intro/configury.html:  Update links.
1987
1988 2004-08-03  Paolo Carlini  <pcarlini@suse.de>
1989
1990         * include/bits/list.tcc: Trivial formatting fixes.
1991
1992 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
1993
1994         * libsupc++/new_op.cc: Update comments.
1995         * libsupc++/del_op.cc: Likewise.
1996
1997 2004-08-02  Mark Mitchell  <mark@codesourcery.com>
1998
1999         * libsupc++/cxxabi.h: Make all declarations have default
2000         visibility.
2001         * libsupc++/exception: Likewise.
2002         * libsupc++/new: Likewise.
2003         * libsupc++/typeinfo: Likewise.
2004         * libsupc++/unwind-cxx.h: Likewise.
2005         * libsupc++/eh_alloc.cc (__cxa_allocate_exception): Put it into
2006         the __cxxabiv1 namespace.
2007         (__cxa_free_exception): Likewise.
2008         * libsupc++/eh_aux_runtime.cc (__cxa_bad_cast): Likewise.
2009         (__cxa_bad_typeid): Likewise.
2010         * libsupc++/eh_catch.cc (__cxa_begin_catch): Likewise.
2011         (__cxa_end_catch): Likewise.
2012         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Likewise.
2013         (__cxa_get_globals): Likewise.
2014         * libsupc++/eh_throw.cc (__cxa_throw): Likewise.
2015         (__cxa_rethrow): Likewise.
2016         * libsupc++/pure.cc (__cxa_pure_virtual): Likewise.
2017         * libsupc++/eh_type.cc: Include <cxxabi.h>.
2018
2019         * Makefile.am (hosted_source): Add libmath and testsuite.
2020         (SUBDIRS): Remove them.
2021         * acinclude.m4: (GLIBCXX_ENABLED_HOSTED): Default to freestanding
2022         on arm*-*-symbianelf*.
2023         * crossconfig.m4: Add arm*-*-symbianelf* support.
2024         * include/c_std/std/std_cstdlib.h (stdlib.h): Do not include it
2025         when freestanding.  Do not bring names into std:: namespace with
2026         "using" when freestanding.  Declare required functions and macros
2027         when freestanding.
2028         * libsupc++/Makefile.am (c_sources): Do not include cp-demangle.c
2029         when freestanding.
2030         * libsupc++/del_op.cc: Declare "free" only when freestanding.
2031         * libsupc++/eh_alloc.cc (cstring): Include it only when hosted.
2032         (malloc): Declare when freestanding.
2033         (free): Likewise.
2034         (memset): Likewise.
2035         (__cxa_allocate_exception): Call malloc, not std::malloc.  Likewise
2036         for memset.
2037         (__cxa_free_exception): Likewise for free.
2038         * libsupc++/new_op.cc: Declare "malloc" when freestanding.
2039         * libsupc++/pure.cc (writestr): Define to nothing when
2040         freestanding.
2041         * libsupc++/vterminate.cc: Do not define anything when
2042         freestanding.
2043         * Makefile.in: Regenerated.
2044         * aclocal.m4: Likewise.
2045         * configure: Likewise.
2046         * include/Makefile.in: Likewise.
2047         * libmath/Makefile.in: Likewise.
2048         * libsupc++/Makefile.in: Likewise.
2049         * po/Makefile.in: Likewise.
2050         * src/Makefile.in: Likewise.
2051         * testsuite/Makefile.in: Likewise.
2052
2053 2004-08-01  Matt Austern  <austern@apple.com>
2054
2055         PR libstdc++/16844
2056         * include/bits/stl_list.h (_M_create_node): Remove unused
2057         zero-argument version.
2058         * include/ext/slist (_M_create_node): Pass two arguments to
2059         allocator's construct() member function.
2060         * testsuite/23_containers/deque/explicit_instantiation.cc: New.
2061         * testsuite/23_containers/list/explicit_instantiation.cc: New.
2062         * testsuite/23_containers/vector/explicit_instantiation.cc: New.
2063         * testsuite/23_containers/map/explicit_instantiation.cc: New.
2064         * testsuite/23_containers/set/explicit_instantiation.cc: New.
2065         * testsuite/23_containers/multimap/explicit_instantiation.cc: New.
2066         * testsuite/23_containers/multiset/explicit_instantiation.cc: New.
2067         * testsuite/ext/hash_set_explicit_instantiation.cc: New.
2068         * testsuite/ext/slist_explicit_instantiation.cc: New.
2069
2070 2004-07-30  Paolo Carlini  <pcarlini@suse.de>
2071
2072         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
2073         num_get<>::_M_extract_int): In the main parsing loop delay the
2074         life of __q to the actual use point.
2075
2076 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
2077
2078         PR libstdc++/14220
2079         * include/bits/locale_facets.tcc (num_put<>::_M_insert_float):
2080         Don't clip the precision passed down to __convert_from_v:
2081         22.2.2.2.2 nowhere says so.
2082         * testsuite/22_locale/num_put/put/char/14220.cc: New.
2083         * testsuite/22_locale/num_put/put/wchar_t/14220.c: Likewise.
2084
2085 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
2086
2087         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 31.
2088
2089 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
2090             Petur Runolfsson  <peturr02@ru.is>
2091
2092         PR libstdc++/12658 (continued)
2093         * src/locale_init.cc (locale::locale, locale::global): Use
2094         a single locale_mutex instead of two separate mutexes.
2095
2096 2004-07-29  Paolo Carlini  <pcarlini@suse.de>
2097
2098         PR libstdc++/16813
2099         * include/debug/map.h (insert(_InputIterator, _InputIterator)):
2100         Fix typo.
2101         * testsuite/23_containers/map/insert/16813.cc: New.
2102
2103 2004-07-29  Phil Edwards  <phil@codesourcery.com>
2104
2105         * docs/html/faq/index.html:  Update version references.  Make
2106         clear that code from SGI has diverged greatly.  Remove references
2107         to library snapshots and what's-new sections.
2108         * docs/html/faq/index.txt:  Regenerate.
2109
2110 2004-07-28  Matt Austern  <austern@apple.com>
2111
2112         * include/bits/stl_construct.h (_Destroy): New three-argument
2113         overload that takes an allocator argument.  Another inline
2114         three-argument overload that takes std::allocator and dispatches
2115         to the two-argument version.
2116         * include/bits/stl_uninitialized.h (__uninitialized_fill_n_aux):
2117         Change return type to void to match uninitialized_fill_n.
2118         (__uninitialized_copy_a_): New function.  Like uninitialized_copy
2119         except that it takes an allocator and uses it for construct and
2120         destroy.  If the allocator is std::allocator, dispatches to
2121         uninitialized_copy.
2122         (__uninitialized_fill_a): Likewise.
2123         (__uninitialized_fill_n_a): Likewise.
2124         (__uninitialized_copy_copy): Give it an allocator argument.
2125         (__uninitialized_fill_copy): Likewise.
2126         (__uninitialized_copy_fill): Likewise.
2127         * include/bits/deque.tcc: Use new forms defined in stl_construct.h
2128         and stl_uninitialized.h.  Replace use of single-argument _Construct
2129         and _Destroy with use of allocator's construct and destroy methods.
2130         * include/bits/list.tcc: Likewise.
2131         * include/bits/stl_deque.h: Likewise.
2132         * include/bits/stl_list.h: Likewise.
2133         * include/bits/stl_tree.h: Likewise.
2134         * include/bits/stl_vector.h: Likewise.
2135         * include/bits/vector.tcc: Likewise.
2136         * include/ext/hashtable.h: Use rebind so that allocator_type
2137         has correct type for a container's allocator.  Replace use of
2138         single-argument _Construct and _Destroy with use of allocator's
2139         construct and destroy methods.
2140         * include/ext/memory (__uninitialized_copy_n_a): New function.
2141         Like uninitialized_copy_n except that it takes an extra parameter,
2142         an allocator, and uses it for construct and destroy operations.
2143         * include/ext/rope: Use new forms defined in stl_construct.h,
2144         stl_uninitialized.h, and ext/memory.  Replace use of single-argument
2145         _Construct and _Destroy with allocator construct and destroy methods.
2146         * include/ext/ropeimpl.h: Likewise.
2147         * include/ext/slist.h: Likewise.
2148         * testsuite/testsuite_allocator.h (check_construct_destroy): New.
2149         * testsuite/testsuite_allocator.cc (check_construct_destroy): New.
2150         * testsuite/23_containers/deque/check_construct_destroy.cc: New.
2151         * testsuite/23_containers/list/check_construct_destroy.cc: New.
2152         * testsuite/23_containers/set/check_construct_destroy.cc: New.
2153         * testsuite/23_containers/vector/check_construct_destroy.cc: New.
2154         * testsuite/ext/hash_check_construct_destroy.cc: New.
2155         * testsuite/ext/slist_check_construct_destroy.cc: New.
2156
2157 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
2158
2159         2003-10-01  Eric Christopher  <echristo@redhat.com>
2160         * config/cpu/sh/atomicity.h (__exchange_and_add): Remove 'm'
2161         constraint.
2162         2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
2163         * config/cpu/sh/atomicity.h: New.  Use movli and movco on SH4a.
2164
2165 2004-07-23  Benjamin Kosnik  <bkoz@redhat.com>
2166
2167         PR libstdc++/16678
2168         * include/bits/locale_facets.tcc: Fix for -Werror.
2169
2170 2004-07-23  Jonathan Wakely  <redi@gcc.gnu.org>
2171
2172         * docs/html/debug.html: Say debug mode only available since 3.4.0.
2173
2174 2004-07-21  Benjamin Kosnik  <bkoz@redhat.com>
2175
2176         * docs/doxygen/mainpage.html: Clarify links.
2177         * docs/doxygen/stdheader.cc: Add files.
2178         * docs/doxygen/style.css: Remove bolds, add h2, h3 styles.
2179         * docs/doxygen/user.cfg.in: New options, wrap.
2180
2181 2004-07-20  Danny Smith  <dannysmith@users.sourceforge.net>
2182
2183         * include/c_std/std_cwchar.h (wcsstr): Correct signature.
2184
2185 2004-07-19  Benjamin Kosnik  <bkoz@redhat.com>
2186
2187         PR libstdc++/15488
2188         * testsuite/lib/libstdc++.exp (v3-copy-files): Revert.
2189
2190 2004-07-17  Richard Sandiford  <rsandifo@redhat.com>
2191
2192         PR bootstrap/16469
2193         * scripts/create_testsuite_files: Pass -print to find.
2194
2195 2004-07-15  Paolo Carlini  <pcarlini@suse.de>
2196
2197         * docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 30.
2198         * docs/html/ext/howto.html: Tweak entries for DRs 167/253/389/402.
2199
2200 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
2201
2202         PR libstdc++/14697
2203         * acinclude.m4 (glibcxx_shared_libgcc): Correct
2204         glibcxx_shared_libgcc test for multilibs.
2205         * configure: Rebuilt.
2206
2207 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
2208
2209         PR libstdc++/16505
2210         * include/bits/stl_uninitialized.h (uninitialized_fill_n): Fix
2211         the signature to return void, as per 20.4.4.3.
2212         * include/bits/stl_vector.h (vector::vector(size_type,
2213         const value_type&, const allocator_type&), vector::vector(size_type),
2214         vector::_M_initialize_dispatch): Adjust callers.
2215         * include/bits/vector.tcc (vector<>::_M_fill_assign,
2216         vector<>::_M_fill_insert): Likewise.
2217         * testsuite/20_util/memory/16505.cc: New.
2218
2219 2004-07-14  Paolo Carlini  <pcarlini@suse.de>
2220
2221         * testsuite/22_locale/locale/cons/12658_thread-1.cc,
2222         12658_thread-2.cc: Use __gnu_test::try_named_locale.
2223
2224 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
2225
2226         * docs/html/ext/mt_allocator.html: Add docs for _Tune.
2227         * include/ext/mt_allocator.h (__mt_alloc::_S_get_options): Make public.
2228         (__mt_alloc::_S_set_options): Same.
2229         Add to comments.
2230
2231 2004-07-13  Benjamin Kosnik  <bkoz@redhat.com>
2232
2233         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add allocator defaults
2234         for linux.
2235         * configure: Regenerated.
2236
2237 2004-07-13  Paolo Carlini  <pcarlini@suse.de>
2238
2239         * testsuite/22_locale/locale/cons/12658_thread.cc: Move/rename
2240         to 12658_thread-1.cc and xfail.
2241         * testsuite/22_locale/locale/cons/12658_thread-2.c: New, much
2242         simpler version of 12658_thread-1.cc, still failing on 3_3 and
2243         not failing on 3_4/mainline - both on single processor and
2244         multiprocessor machines.
2245
2246 2004-07-12  Benjamin Kosnik  <bkoz@redhat.com>
2247
2248         * docs/html/abi.html: Remove non-public qualification.
2249
2250         * include/bits/concurrence.h: Tweak comments.
2251
2252 2004-07-11  Paolo Carlini  <pcarlini@suse.de>
2253
2254         Add wchar_t counterparts of the basic_streambbuf<char> tests.
2255         * testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: New.
2256         * testsuite/27_io/basic_streambuf/imbue/wchar_t/1.cc, 9322.cc:
2257         Likewise.
2258         * testsuite/27_io/basic_streambuf/in_avail/wchar_t/9701-3.cc: Likewise.
2259         * testsuite/27_io/basic_streambuf/overflow/wchar_t/1.cc, 2.cc,
2260         3599.cc: Likewise.
2261         * testsuite/27_io/basic_streambuf/sgetc/wchar_t/1.cc: Likewise.
2262         * testsuite/27_io/basic_streambuf/sgetn/wchar_t/1.cc: Likewise.
2263         * testsuite/27_io/basic_streambuf/sputbackc/wchar_t/9538.cc: Likewise.
2264         * testsuite/27_io/basic_streambuf/sputc/wchar_t/1057.cc: Likewise.
2265         * testsuite/27_io/basic_streambuf/sputn/wchar_t/1.cc, 1057.cc:
2266         Likewise.
2267         * testsuite/27_io/basic_streambuf/sync/wchar_t/1057.cc: Likewise.
2268
2269         * testsuite/27_io/basic_streambuf/imbue/char/1.cc, 9322.cc: Minor
2270         tweaks.
2271         * testsuite/27_io/basic_streambuf/overflow/char/2.cc, 3599.cc:
2272         Likewise.
2273         * testsuite/27_io/basic_streambuf/sputn/char/1057.cc: Likewise.
2274         * testsuite/27_io/basic_streambuf/sync/char/1057.cc: Likewise.
2275
2276 2004-07-11  Phil Edwards  <phil@codesourcery.com>
2277
2278         * acinclude.m4:  Cosmetic shell syntax fixes.
2279         * configure.ac:  Bring comment inline with reality.
2280         * configure.host:  Both of the above.  Move 'arm' case to right
2281         place in host_cpu switch.
2282         * aclocal.m4, configure:  Regenerate.
2283
2284 2004-07-09  Paolo Carlini  <pcarlini@suse.de>
2285
2286         Add wchar_t counterparts of the basic_stringbuf<char> tests.
2287         * testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
2288         * testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
2289         * testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
2290         3599.cc, 9988.cc: Likewise.
2291         * testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
2292         Likewise.
2293         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
2294         Likewise.
2295         * testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
2296         Likewise.
2297         * testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
2298         Likewise.
2299         * testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
2300         * testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
2301         * testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
2302         * testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
2303         Likewise.
2304         * testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
2305         9404-1.cc: Likewise.
2306         * testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
2307         9404-2.cc: Likewise.
2308         * testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
2309         3955.cc: Likewise.
2310         * testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
2311         * testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.
2312
2313 2004-07-08  Paolo Carlini  <pcarlini@suse.de>
2314
2315         * include/bits/gslice.h: Trivial formatting fixes.
2316         * include/bits/gslice_array.h: Likewise.
2317         * include/bits/indirect_array.h: Likewise.
2318         * include/bits/mask_array.h: Likewise.
2319         * include/bits/slice_array.h: Likewise.
2320         * include/bits/valarray_after.h: Likewise.
2321         * include/bits/valarray_array.h: Likewise.
2322         * include/bits/valarray_before.h: Likewise.
2323         * include/std/std_valarray.h: Likewise.
2324
2325 2004-07-08  Benjamin Kosnik  <bkoz@redhat.com>
2326
2327         PR c++/16169
2328         * include/bits/basic_string.h (basic_string::operator=): Revert.
2329
2330 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
2331
2332         * configure.ac (libtool_VERSION): To 6:2:0.
2333         * configure: Regenerated.
2334
2335         * testsuite/testsuite_abi.cc (check_version): Add 3.4.2.
2336
2337 2004-07-07  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
2338
2339         PR libstdc++/16411
2340         * config/linker-map.gnu: Add stdio_sync_filebuf::file exports.
2341
2342 2004-07-07  Benjamin Kosnik  <bkoz@redhat.com>
2343
2344         * docs/html/abi.html: Updates for 3.4.1 release. Add summary of
2345         -Weffc++ issues.
2346
2347 2004-07-07  Paolo Carlini  <pcarlini@suse.de>
2348
2349         PR libstdc++/16401
2350         * include/bits/sstream.tcc (overflow): When reallocating _M_string
2351         use an exponential grow policy.
2352         * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: New.
2353         * testsuite/performance/27_io/stringbuf_overflow.cc: New.
2354
2355 2004-07-06  Anssi Hannula  <anssi.hannula@mbnet.fi>
2356
2357         PR libstdc++/15928
2358         * crossconfig.m4: Add in bits for djgpp.
2359         * configure: Regenerate.
2360
2361 2004-07-05  Jonathan Wakely  <redi@gcc.gnu.org>
2362
2363         * testsuite/23_containers/{set,multiset}/14340.cc: Fix typos in
2364         instantiation of set and multiset (functor param given as int).
2365
2366 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
2367
2368         * include/bits/basic_string.h: Trivial formatting fixes and/or
2369         const-ification of some variables.
2370         * include/bits/deque.tcc: Likewise.
2371         * include/bits/stl_algobase.h: Likewise.
2372         * include/bits/stl_bvector.h: Likewise.
2373         * include/bits/stl_construct.h: Likewise.
2374         * include/bits/stl_deque.h: Likewise.
2375         * include/bits/stl_pair.h: Likewise.
2376         * include/bits/stl_vector.h: Likewise.
2377         * include/bits/vector.tcc: Likewise.
2378
2379 2004-07-04  Paolo Carlini  <pcarlini@suse.de>
2380
2381         * testsuite/25_algorithms/copy/1.cc: Add instantiations for
2382         systems with no COMDAT or weak support.
2383         * testsuite/25_algorithms/copy/2.cc: Likewise.
2384         * testsuite/25_algorithms/copy/3.cc: Likewise.
2385         * testsuite/25_algorithms/copy/4.cc: Likewise.
2386
2387 2004-07-03  Paul Brook  <paul@codesourcery.com>
2388
2389         * configure.ac: Set ABI_TWEAKS_SRCDIR.
2390         * configure.host: Set abi_tweaks_dir.  Check for atomicity.h when
2391         setting atomicity_dir.  Override type_cpu for arm based targets.
2392         * include/Makefile.am (host_headers): Add cxxabi_tweaks.h.
2393         * libsupc++/cxxabi.h: Include bits/cxxabi.h. Don't declare __guard.
2394         * libsupc++/guard.cc: Use definitions from cxxabi_tweaks.h.
2395         * libsupc++/vec.cc: Ditto.
2396         * config/cpu/arm/cxxabi_tweaks.h: New file.
2397         * config/cpu/generic/cxxabi_tweaks.h: New file.
2398         * */Makefile.in: Regenerate.
2399         * configure: Regenerate.
2400
2401 2004-07-02  Paolo Carlini  <pcarlini@suse.de>
2402
2403         * include/bits/type_traits.h (_Is_normal_iterator): Move...
2404         * include/bits/cpp_type_traits.h: ... here, renamed to
2405         __is_normal_iterator and consistent with the other traits.
2406         * include/bits/stl_algobase.h (__copy_ni1, __copy_ni2): Convert
2407         to the struct __copy_normal and three specializations.
2408         (__copy_backward_output_normal_iterator,
2409         __copy_backward_input_normal_iterator): Likewise, convert to
2410         the struct __copy_backward_normal and three specializations.
2411         (copy, copy_backward): Use the latter.
2412         (__copy_aux, __copy_backward_aux): Very minor tweaks.
2413
2414 2004-07-01  Paolo Carlini  <pcarlini@suse.de>
2415
2416         * include/bits/stl_algobase.h (__copy_trivial): Remove.
2417         (__copy_aux2): Rewrite as __copy_aux to use __is_pointer,
2418         __is_trivially_copyable, __are_same and __copy::copy.
2419         (__copy): Rewrite as a class template and two specializations.
2420         (__copy_ni2): Simplify, just call __copy_aux.
2421
2422         * include/bits/stl_algobase.h (__copy_backward_aux): Add __are_same
2423         check.
2424         * testsuite/25_algorithms/copy/1.cc, 2.cc, 3.cc, 4.cc: Test also
2425         for destination value type != source value type.
2426
2427 2004-07-01  Benjamin Kosnik  <bkoz@redhat.com>
2428             Per Bothner  <per@bothner.com>
2429             Mohan Embar  <gnustuff@thisiscool.com>
2430
2431         PR libstdc++/16248
2432         * include/bits/concurrence.h (__glibcxx_mutex_type): New.
2433         (__glibcxx_mutex): Encapsulate mutex init function into type for
2434         threaded configurations without __GTHREAD_MUTEX_INIT.
2435         (lock::lock): Make device member a reference.
2436         (lock::~lock): Same.
2437         * include/ext/pool_allocator.h (__pool_base::_M_get_mutex): Change
2438         to mutex_type.
2439         * src/allocator.cc: Same.
2440
2441 2004-06-30  Brad Spencer  <spencer@infointeractive.com>
2442
2443         * include/ext/mt_allocator.h: Handle allocations at static
2444         initialization that happen before _S_options is (automatically)
2445         constructed; set _S_init even if _M_force_new is true.
2446
2447 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2448
2449         * config/linker-map.gnu: Revert new exports.
2450
2451 2004-06-30  Benjamin Kosnik  <bkoz@redhat.com>
2452             Stuart Anderson  <anderson@netsweng.com>
2453
2454         * config/linker-map.gnu: Add destructor exports for abstract base
2455         classes to conform to LSB.
2456
2457 2004-06-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2458             Paolo Carlini  <pcarlini@suse.de>
2459
2460         * include/bits/cpp_type_traits.h: Add __is_pointer and
2461         __is_trivially_copyable.
2462         * include/bits/stl_algobase.h (fill, fill_n): Slightly
2463         tweak to use the latter.
2464         (__copy_backward_dispatch): Remove.
2465         (__copy_backward_aux): Rewrite to use __is_pointer and
2466         __is_trivially_copyable and __copy_backward::copy_b.
2467         (__copy_backward): Rewrite as a class template and two
2468         specializations.
2469
2470 2004-06-30  Paolo Carlini  <pcarlini@suse.de>
2471
2472         * testsuite/25_algorithms/copy.cc: Move to...
2473         * testsuite/25_algorithms/copy/1.cc: ... here, extend.
2474         * testsuite/25_algorithms/copy/2.cc: New.
2475         * testsuite/25_algorithms/copy/3.cc: New.
2476         * testsuite/25_algorithms/copy/4.cc: New.
2477
2478 2004-06-29  Paul Brook  <paul@codesourcery.com>
2479
2480         * libsupc++/vec.cc (__cxa_vec_new2, __cxa_vec_new3): Store the
2481         element size in the cookie.
2482
2483 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2484
2485         * include/bits/cpp_type_traits.h: Move the additions to
2486         namespace __gnu_internal outside of namespace std; trivial
2487         formatting fixes.
2488
2489 2004-06-28  Benjamin Kosnik  <bkoz@redhat.com>
2490
2491         * include/debug/safe_base.h (__gnu_debug::_Safe_sequence_base):
2492         Revert -Weffc++ changes that defined copy ctory and or assignment
2493         operator.
2494         * libsupc++/tinfo.cc (__upcast_result): Same.
2495
2496 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2497
2498         * src/localename.cc (locale::_Impl::_Impl): Slightly improve
2499         the algorithm used to name the categories.
2500
2501 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
2502
2503         * include/Makefile.am: Give a .gch extension to
2504         the PCH files, not only to the directory.
2505         * include/Makefile.in: Regenerate.
2506
2507 2004-06-28  Paolo Carlini  <pcarlini@suse.de>
2508
2509         * config/locale/gnu/monetary_members.cc
2510         (moneypunct<wchar_t>::_M_initialize_moneypunct): Clean up
2511         assignments of _M_decimal_point and _M_thousands_sep.
2512
2513 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
2514
2515         * docs/html/17_intro/contribute.html: Update some links.
2516         * docs/html/17_intro/porting-howto.html: Likewise.
2517         * docs/html/17_intro/porting-howto.xml: Likewise.
2518         * docs/html/18_support/howto.html: Likewise.
2519         * docs/html/21_strings/howto.html: Likewise.
2520         * docs/html/27_io/howto.html: Likewise.
2521         * docs/html/configopts.html: Likewise.
2522         * docs/html/ext/howto.html: Likewise.
2523         * docs/html/faq/index.html: Likewise.
2524         * docs/html/install.html: Don't mention 2.x compilers.
2525
2526 2004-06-27  Paolo Carlini  <pcarlini@suse.de>
2527
2528         * include/ext/rope: Trivial formatting fixes.
2529         * include/ext/ropeimpl.h: Likewise.
2530
2531 2004-06-26  Paolo Carlini  <pcarlini@suse.de>
2532
2533         PR libstdc++/16210
2534         * acinclude.m4 (GLIBCXX_ENABLE_LONG_LONG): Do not check for the
2535         availability of strto(u)ll, not used anymore in the iostreams.
2536         * configure: Regenerate.
2537
2538 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
2539
2540         PR libstdc++/16182
2541         * linkage.m4 (GLIBCXX_CHECK_BUILTIN_MATH_DEC): Revert to
2542         AC_DEFINE_UNQUOTED.
2543         * configure: Regenerate.
2544
2545 2004-06-25  Paul Brook  <paul@codesourcery.com>
2546
2547         * libsupc++/cxxabi.h: Define __ARM_EABI__
2548         (__guard): Use it.
2549         * libsupc++/guard.h (__cxa_guard_acquire, __cxa_guard_release): Ditto.
2550
2551 2004-06-25  Paul Brook  <paul@codesourcery.com>
2552
2553         * include/bits/concurrence.h: Still create mutex object when
2554         single-threaded.
2555
2556 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2557
2558         * include/bits/stl_algobase.h (fill, fill_n): Revert last
2559         change: actually we need to copy construct an object of type
2560         _Tp, not of type iterator_traits<>::value_type, therefore the
2561         code is ok.
2562
2563 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2564
2565         * include/bits/stl_algobase.h (fill, fill_n): Tighten the
2566         dispatch: use iterator_traits<>::value_type, not _Tp.
2567
2568 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2569
2570         * testsuite/25_algorithms/fill/1.cc: Tweak instantiations.
2571         * testsuite/25_algorithms/fill/2.cc: Likewise.
2572
2573 2004-06-25  Dan Nicolaescu  <dann@ics.uci.edu>
2574             Paolo Carlini  <pcarlini@suse.de>
2575
2576         * include/bits/stl_algobase.h (__fill, __fill_n): New helpers
2577         for fill and fill_n, respectively: when copying is cheap, use a
2578         temporary to avoid a memory read in each iteration.
2579
2580 2004-06-25  Paolo Carlini  <pcarlini@suse.de>
2581
2582         * testsuite/25_algorithms/fill/1.cc: New.
2583         * testsuite/25_algorithms/fill/2.cc: Likewise.
2584
2585 2004-06-25  Benjamin Kosnik  <bkoz@redhat.com>
2586
2587         * include/debug/formatter.h (__gnu_debug::_Error_formatter):
2588         Remove copy constructor and assignment operator.
2589
2590 2004-06-24  Benjamin Kosnik  <bkoz@redhat.com>
2591
2592         * include/bits/concurrence.h (__gnu_cxx::lock): New.
2593         * include/ext/pool_allocator.h (__pool_base::_Lock::_S_lock): Remove.
2594         (__pool_base::_M_get_mutex): New.
2595         * include/bits/allocator.h: Tweak.
2596         * src/allocator.cc (__pool_base::_M_get_free_list): Correct offset.
2597         * config/linker-map.gnu: Remove __pool_base::_Lock::_S_lock.
2598         * include/bits/stl_threads.h: Remove.
2599         * include/Makefile.am: Also here.
2600         * include/Makefile.in: Regenerate.
2601
2602         * src/locale_init.cc: Use __gnu_cxx::lock.
2603
2604         * src/allocator.cc: Move all instantiations...
2605         * src/allocator-inst.cc: ...here.
2606
2607 2004-06-23  Andrew Pinski  <apinski@apple.com>
2608
2609         * linkage.m4: Remove check for libmx.
2610         * configure: Regenerate.
2611
2612 2004-06-23  Paolo Carlini  <pcarlini@suse.de>
2613
2614         PR libstdc++/16154
2615         * include/bits/boost_concept_check.h (struct _TrivialIteratorConcept):
2616         Don't require the _DefaultConstructibleConcept.
2617         (struct _ForwardIteratorConcept): Require it here.
2618
2619 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
2620
2621         * include/bits/istream.tcc (getline): Make sure arguments passed
2622         to min/max have the same type.
2623         * include/bits/locale_facets.tcc (__verify_grouping): Likewise.
2624         * include/bits/stl_deque.h (_Deque_base::_Deque_base): Likewise.
2625
2626 2004-06-22  Benjamin Kosnik  <bkoz@redhat.com>
2627
2628         * docs/html/abi.html: Update links.
2629
2630 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
2631
2632         * testsuite/26_numerics/complex_inserters_extractors.cc,
2633         complex_value.cc, buggy_complex.cc: Move to...
2634         * testsuite/26_numerics/complex/: ... here.
2635         * testsuite/26_numerics/c99_classification_macros_c++.cc,
2636         c99_classification_macros_c.cc, c_math.cc, c_math_dynamic.cc,
2637         fabs_inline.cc: Move to...
2638         * testsuite/26_numerics/cmath/: ... here.
2639         * testsuite/26_numerics/binary_closure.cc, slice.cc,
2640         slice_array_assignment.cc, valarray.cc, valarray_const_bracket.cc,
2641         valarray_name_lookup.cc, valarray_operators.cc,
2642         valarray_subset_assignment.cc: Move to...
2643         * testsuite/26_numerics/valarray/: ... here (new dir).
2644         * testsuite/26_numerics/sum_diff.cc: Move to...
2645         * testsuite/26_numerics/numeric/: ... here (new dir).
2646
2647 2004-06-22  Paolo Carlini  <pcarlini@suse.de>
2648
2649         * include/std/std_istream.h (ignore(streamsize __n = 1,
2650         int_type __delim = traits_type::eof())): Split into...
2651         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2652         int_type __delim)): The first two can be much more simpler
2653         and efficient than the fully general case; also, the last
2654         two can take advantage of the same mechanism already used
2655         for getline.
2656         * include/bits/istream.tcc (ignore(streamsize __n = 1,
2657         int_type __delim = traits_type::eof()): Remove.
2658         (ignore(), ignore(streamsize __n), ignore(streamsize __n,
2659         int_type __delim)): New.
2660
2661 2004-06-21  Loren J. Rittle  <ljrittle@acm.org>
2662
2663         * config/linker-map.gnu: Use wildcards for
2664         __basic_file::sys_open(FILE*, _Ios_Openmode).
2665
2666 2004-06-20  Paolo Carlini  <pcarlini@suse.de>
2667
2668         * testsuite/27_io/basic_istream/ignore/char/3.cc: New.
2669
2670 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2671
2672         * include/ext/mt_allocator (__mt_alloc<>::_Tune): Add _M_align,
2673         the alignment requested.
2674         (__mt_alloc<>::_Tune::_Tune): Tweak consistently.
2675         (__mt_alloc<>::allocate): Use it instead of sizeof(_Block_record).
2676         (__mt_alloc<>::deallocate): Likewise.
2677
2678 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2679
2680         PR libstdc++/16020
2681         * include/debug/safe_base.h
2682         (_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
2683         _Safe_sequence_base::operator=): Provide definitions.
2684         * testsuite/23_containers/bitset/cons/16020.cc: New.
2685
2686 2004-06-18  Benjamin Kosnik  <bkoz@redhat.com>
2687
2688         * include/ext/pool_allocator.h: Qualify __throw_bad_alloc.
2689         (__pool_base): Remove unused template parameter.  Add
2690         protected. Move lock data into __pool_base::_Lock. Remove static
2691         on member functions.
2692         (__pool_base::_M_get_free_list): New.
2693         (__pool_alloc): Move _S_force new here.
2694         * src/allocator.cc: Move out of line __pool_base definitions here.
2695         * config/linker-map.gnu: Export bits from __pool_base.
2696
2697 2004-06-18  Paolo Carlini  <pcarlini@suse.de>
2698
2699         * config/locale/gnu/numeric_members.cc
2700         (numpunct<wchar_t>::_M_initialize_numpunct): Clean up
2701         assignments of _M_decimal_point and _M_thousands_sep.
2702         * config/locale/gnu/time_members.cc
2703         (__timepunct<wchar_t>::_M_initialize_timepunct): Clean up
2704         and reformat assignments of date and time fields.
2705
2706 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
2707
2708         * include/ext/rope (rope(_CharT, const allocator_type&)): Fix
2709         to use _Data_allocate.
2710         * include/ext/ropeimpl.h (rope<>::_S_leaf_concat_char_iter): Likewise.
2711         (rope<>::_S_substring): Likewise.
2712         (rope<>::rope(size_t, _CharT, const allocator_type&)): Likewise.
2713         (rope<>::c_str()): Likewise.
2714         (rope<>::replace_with_c_str()): Likewise.
2715
2716         * include/ext/ropeimpl.h (_Rope_iterator_base<>::_S_setbuf):
2717         Correctly qualify _S_leaf, _S_function, etc., with _Rope_constants::,
2718         not _RopeRep.
2719         (_Rope_iterator_base<>::_S_setcache): Likewise.
2720         (_Rope_iterator_base<>::_S_setcache_for_incr): Likewise.
2721         (rope<>::_S_substring): Likewise.
2722         (rope<>::_S_dump): Likewise.
2723         (rope<>::_S_fetch_ptr): Likewise.
2724         (rope<>::_S_compare): Likewise.
2725         (rope<>::replace_with_c_str()): Likewise.
2726
2727         * testsuite/ext/rope.cc: Rename to testsuite/ext/rope/1.cc.
2728         * testsuite/ext/rope/2.cc: New.
2729
2730 2004-06-16  Paolo Carlini  <pcarlini@suse.de>
2731             Matt Austern  <austern@apple.com>
2732
2733         * testsuite/ext/rope/3.cc: New.
2734
2735 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
2736
2737         * acinclude.m4: Remove useless multilib configury.
2738         * Makefile.am: Remove useless multilib rules.
2739         * aclocal.m4: Regenerate.
2740         * Makefile.in: Regenerate.
2741         * configure: Regenerate.
2742
2743 2004-06-15  Paolo Carlini  <pcarlini@suse.de>
2744
2745         * include/ext/hashtable.h: Trivial formatting fixes.
2746         * include/ext/rb_tree: Likewise.
2747
2748 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2749
2750         * include/ext/hash_map: Trivial formatting fixes.
2751         * include/ext/hash_set: Likewise.
2752         * include/ext/memory: Likewise.
2753         * include/ext/numeric: Likewise.
2754
2755 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
2756
2757         * Makefile.in: Regenerate with automake 1.8.5.
2758         * aclocal.m4: Same.
2759         * include/Makefile.in: Same.
2760         * libmath/Makefile.in: Same.
2761         * libsupc++/Makefile.in: Same.
2762         * po/Makefile.in: Same.
2763         * src/Makefile.in: Same.
2764         * testsuite/Makefile.in: Same.
2765
2766 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2767
2768         * include/ext/slist: Trivial formatting fixes.
2769
2770 2004-06-14  Paolo Carlini  <pcarlini@suse.de>
2771
2772         * include/bits/locale_facets.tcc (time_get<>::_M_extract_name):
2773         Don't use the 'magic number' 10 in the computation of __minlen;
2774         never access __name past __minlen; in the loop over __i3, don't
2775         decrease __nmatches and increase __i3 at once, only either of
2776         the two; tidy.
2777
2778 2004-06-13  Paolo Carlini  <pcarlini@suse.de>
2779
2780         * include/bits/locale_facets.tcc (time_get<>::do_get_time,
2781         time_get<>::do_get_date): Use only once _M_extract_via_format,
2782         instead of going through "%X"/"%x" and calling it two times
2783         (+ using widen).
2784
2785 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
2786
2787         * include/ext/algorithm: Trivial formatting fixes.
2788         * include/ext/functional: Likewise.
2789         * include/ext/hash_fun.h: Likewise.
2790         * include/ext/iterator: Likewise.
2791
2792 2004-06-12  Paolo Carlini  <pcarlini@suse.de>
2793
2794         * include/bits/basic_string.tcc (find(const _CharT*, size_type,
2795         size_type)): Reimplement using std::search.
2796         * src/string-inst.cc: Instantiate std::search for char/wchar_t.
2797
2798 2004-06-12  Dhruv Matani  <dhruvbird@gmx.net>
2799
2800         * testsuite/performance/21_strings/string_find.cc: New.
2801
2802 2004-06-10  Aaron W. LaFramboise  <aaronraolete36@aaronwl.com>
2803
2804         * include/bits/istream.tcc (istream::ignore): Fix for -Wuninitialized.
2805
2806 2004-06-10  Jan van Dijk  <jan@etpmod.phys.tue.nl>
2807
2808         * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
2809         this function return a value.
2810
2811 2004-06-09  Paolo Carlini  <pcarlini@suse.de>
2812
2813         PR libstdc++/15775
2814         * include/bits/stl_deque.h: Consistently with stl_set.h, define
2815         pointer as allocator's pointer, likewise for reference,
2816         const_pointer, and const_reference.
2817         * include/bits/stl_list.h: Likewise.
2818         * include/bits/stl_map.h: Likewise.
2819         * include/bits/stl_multimap.h: Likewise.
2820         * include/bits/stl_vector.h: Likewise.
2821
2822 2004-06-09  Benjamin Kosnik  <bkoz@redhat.com>
2823
2824         * crossconfig.m4: Remove signbit, signbitf, signbitl.
2825         * linkage.m4: Comment LIBMATHOBJS, tweak others.  AC_DEFINES for
2826         builtin math functions instead of AC_DEFINE_UNQUOTED.
2827         * configure: Regenerate.
2828
2829 2004-06-08  Benjamin Kosnik  <bkoz@redhat.com>
2830
2831         * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
2832         * docs/doxygen/mainpage.html: Remove links.
2833
2834 2004-06-08  Jason Merrill  <jason@redhat.com>
2835
2836         * config/linker-map.gnu: Use wildcards for
2837         __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
2838
2839 2004-06-08  Paolo Carlini  <pcarlini@suse.de>
2840
2841         * include/ext/pool_allocator.h: Convert to a global free-list,
2842         as per the original SGI/HP design: move the implementation
2843         details to struct __pool_base, from which __pool_alloc derives.
2844         * src/allocator.cc: Instantiate __pool_base.
2845
2846 2004-06-07  Dhruv Matani  <dhruvbird@gmx.net>
2847             Paolo Carlini  <pcarlini@suse.de>
2848
2849         * testsuite/testsuite_performance.h
2850         (resource_counter::allocated_memory): Make it return the right
2851         number of bytes requested by the allocators/application. This is
2852         the sbrk+mmaped memory.
2853
2854 2004-06-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2855
2856         * include/std/std_complex.h (log): Tidy.
2857
2858 2004-05-31  Benjamin Kosnik  <bkoz@redhat.com>
2859
2860         * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
2861         * testsuite/testsuite_abi.cc: Same.
2862         * configure.ac (libtool_VERSION): Bump to 6:1:0.
2863         * configure: Regenerate.
2864         * aclocal.m4: Regenerate.
2865
2866 2004-05-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2867
2868         * include/std/std_complex.h (complex<_Tp>): Properly indent
2869         to follow C++STYLE.
2870         (complex<>::__rep): New.
2871         (__complex_abs): New.  Dispatch to built-ins.
2872         (abs): Use them.
2873         (__complex_arg): New. Dispatch to built-ins.
2874         (arg): Use it.
2875         (__complex_cos): New. Dispatch to built-ins.
2876         (cos): Use it.
2877         (__complex_cosh): New. Dispatch to built-ins.
2878         (cosh): Use it.
2879         (__complex_exp): New. Dispatch to built-ins.
2880         (exp): Use it.
2881         (__complex_log): New. Dispatch to built-ins.
2882         (log): Use it.
2883         (__complex_sin): New. Dispatch to built-ins.
2884         (sin): Use it.
2885         (__complex_sinh): New. Dispatch to built-ins.
2886         (sinh): Use it.
2887         (__complex_sqrt): New. Dispatch to built-ins.
2888         (sqrt): Use it.
2889         (__complex_tan): New. Dispatch to built-ins.
2890         (tan): Use it.
2891         (__complex_tanh): New. Dispatch to built-ins.
2892         (tanh): Use it.
2893         (__complex_pow): New. Dispatch to built-ins.
2894         (pow): Use it.
2895
2896 2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
2897             Benjamin Kosnik  <bkoz@redhat.com>
2898
2899         PR libstdc++/14600
2900         * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
2901         * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
2902         * config/io/basic_file_stdio.cc (__basic_file::file): New.
2903         * config/io/basic_file_stdio.h: Define.
2904
2905 2004-05-27  Benjamin Kosnik  <bkoz@redhat.com>
2906
2907         PR libstdc++/15675
2908         * docs/html/documentation.html: Update doxygen links for 3.4.0.
2909
2910 2004-05-27  Jan Beulich  <jbeulich@novell.com>
2911
2912         * scripts/create_testsuite_files: Tweak.
2913
2914 2004-05-25  Benjamin Kosnik  <bkoz@redhat.com>
2915
2916         PR libstdc++/15489
2917         * scripts/create_testsuite_files: Revert xtype change, add non-GNU
2918         bits to do the same thing.
2919
2920 2004-05-24  Paolo Carlini  <pcarlini@suse.de>
2921
2922         * include/bits/istream.tcc (ignore): Correctly deal with
2923         n == numeric_limits<streamsize>::max().
2924         * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
2925
2926         * include/bits/istream.tcc (basic_istream<>::getline): Prefer
2927         '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
2928         __n == numeric_limits<>::min().
2929
2930         * include/bits/istream.tcc: Minor tweaks.
2931
2932         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
2933         Tighten.
2934         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
2935         Likewise.
2936         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
2937         Likewise.
2938         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
2939         Likewise.
2940         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
2941
2942 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2943
2944         PR libstdc++/12854
2945         Fixups for -Weffc++.
2946         * include/bits/basic_string.h (basic_string::operator=): Return
2947         pointer to this instead of result of assign. Although redundant,
2948         this doesn't impact resultant codegen.
2949
2950         * include/bits/locale_facets.h (__numpunct_cache): Declare
2951         assignment opxserator and copy constructor private.
2952         (__timepunct_cache): Same.
2953         (__moneypunct_cache): Same.
2954         (collate): Use member initialization list for _M_c_locale_collate.
2955         * config/locale/gnu/messages_members.h: Same.
2956         * config/locale/gnu/time_members.h (__timepunct): Same.
2957         * src/codecvt.cc: Use member initialization list to initialize
2958         _M_c_locale_codecvt.
2959         * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
2960         * config/os/gnu-linux/ctype_noninline.h: Same.
2961         * src/locale.cc (_Impl): Same.
2962         * src/locale_init.cc: Same.
2963         * src/localename.cc: Same.
2964
2965         * include/bits/basic_ios.h (basic_ios): Complete member
2966         initialization list.
2967         * include/bits/istream.tcc (basic_istream::sentry): Same.
2968         * include/bits/ostream.tcc (basic_ostream::sentry): Same.
2969         * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
2970         _M_pback to member initialization list.
2971         * include/std/std_streambuf.h: Same.
2972         * include/std/std_sstream.h: Same, for _M_mode.
2973         * src/ios.cc (ios_base): Same.
2974
2975         * include/ext/rope: Make derived classes match exception
2976
2977          specifications. Add copy constructors and assignment operators.
2978
2979         * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
2980         constructor and assignment operator protected.
2981         (_Safe_iterator_base): Same.
2982         * include/debug/formatter.h (_Error_formatter): Define copy
2983         constructor and assignment operator.
2984
2985         * include/backward/strstream: Declare assignment operator and copy
2986         constructor private.
2987
2988 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2989
2990         * testsuite/testsuite_hooks.h (func_callback): Declare copy
2991         constructor and assignment operator private.
2992         * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
2993         exception specifications of base class.
2994         * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
2995         * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
2996         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
2997
2998 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
2999
3000         * libsupc++/cxxabi.h: Remove duplicated and useless public and
3001         private keywords in class declarations. Format. Use
3002         stddef.h. Expose declarations to "C" compilation.
3003         * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
3004         assignment operator.
3005         (__dyncast_result): Same.
3006         * libsupc++/vec.cc (uncatch_exception): Same, use member
3007         initialization list.
3008
3009 2004-05-22  Benjamin Kosnik  <bkoz@redhat.com>
3010
3011         * testsuite/abi_check.cc: Add unistd.h.
3012
3013 2004-05-22  Paolo Carlini  <pcarlini@suse.de>
3014
3015         PR libstdc++/15565
3016         * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
3017         __int_to_char(unsigned long long)): Showpos is not relevant
3018         for unsigned types.
3019         * testsuite/22_locale/num_put/put/char/15565.cc: New.
3020         * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
3021
3022         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
3023         char.
3024         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
3025         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
3026         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
3027         * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
3028         * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
3029         * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
3030
3031 2004-05-21  Matthias Klose  <doko@debian.org>
3032
3033         * docs/doxygen/run_doxygen:  Bump required version.
3034
3035 2004-05-21  Benjamin Kosnik  <bkoz@redhat.com>
3036
3037         * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
3038         * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
3039
3040 2004-05-21  Paolo Carlini  <pcarlini@suse.de>
3041
3042         * include/bits/istream.tcc (ignore): Remove redundant line.
3043         (readsome): Tidy, closely following 27.6.1.3, p30.
3044
3045 2004-05-20  Paolo Carlini  <pcarlini@suse.de>
3046
3047         * include/bits/istream.tcc (operator>>(basic_istream<>&,
3048         basic_string<>&)): Use a temporary buffer, thus avoiding
3049         reallocation for common case.
3050         * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
3051         New.
3052         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
3053         Likewise.
3054
3055         * include/bits/istream.tcc: Const-ification of a few variables.
3056
3057         * include/bits/ostream.tcc: Trivial formatting fixes and
3058         const-ification of some variables.
3059
3060 2004-05-20  Benjamin Kosnik  <bkoz@redhat.com>
3061
3062         PR libstdc++/15123
3063         PR libstdc++/13928
3064         * docs/doxygen/Intro.3: Remove Allocators.3.
3065         Add new extension headers, extension namespace list.
3066         * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
3067         Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
3068         __gnu_debug::. Remove __policy_ renames.
3069         * docs/doxygen/guide.html: Add dot note.
3070         * docs/doxygen/stdheader.cc: Edit, add files.
3071         * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
3072
3073 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
3074
3075         * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
3076
3077 2004-05-18  Jan Beulich  <jbeulich@novell.com>
3078
3079         PR libstdc++/15489
3080         * scripts/create_testsuite_files: Also find source files through
3081         symbolic links.
3082
3083 2004-05-18  Jan Beulich  <jbeulich@novell.com>
3084
3085         PR libstdc++/15488
3086         * testsuite/lib/libstdc++.exp: Make test files writable.
3087
3088 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
3089
3090         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
3091         tweaks.
3092
3093 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
3094
3095         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
3096         allocation loop which removes blocks from the global free list
3097         from O(N) to O(1) when the required blocks are <= the number
3098         available.
3099
3100 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
3101
3102         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
3103
3104 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
3105
3106         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
3107         * testsuite/23_containers/deque/14340.cc: New.
3108         * testsuite/23_containers/list/14340.cc: New.
3109         * testsuite/23_containers/map/14340.cc: New.
3110         * testsuite/23_containers/multimap/14340.cc: New.
3111         * testsuite/23_containers/multiset/14340.cc: New.
3112         * testsuite/23_containers/set/14340.cc: New.
3113         * testsuite/23_containers/vector/14340.cc: New.
3114
3115 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
3116
3117         PR libstdc++/14340
3118         * include/debug/safe_iterator.h (_Safe_iterator converting
3119         constructor): Only allow declaration to instantiate when the
3120         incoming _Safe_iterator has exactly the right iterator type.
3121
3122 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
3123
3124         * include/bits/boost_concept_check.h: Fix old attribute syntax.
3125         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
3126         to pass concept-checks.
3127         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
3128         * testsuite/23_containers/set/modifiers/swap.cc: Same.
3129         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
3130
3131 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
3132
3133         * include/std/std_bitset.h: Minor formatting fixes.
3134
3135 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
3136
3137         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3138         Consistently update __bin._M_free[0].
3139         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
3140         __bin._M_free[0] to simplify the while loop (i.e., the number
3141         of iterations becomes known at the outset).
3142
3143 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
3144
3145         * include/std/std_bitset.h: Trivial formatting fixes.
3146
3147 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
3148             Ivan Godard  <igodard@pacbell.net>
3149
3150         PR libstdc++/15361
3151         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
3152         * testsuite/23_containers/bitset/ext/15361.cc: New.
3153
3154 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3155
3156         PR libstdc++/15046
3157         * crossconfig.m4: Add C99 math bits for linux crosses.
3158         * configure: Regenerate.
3159
3160 2004-05-13  Simon Marshall <simon.marshall@misys.com>
3161             Benjamin Kosnik  <bkoz@redhat.com>
3162
3163         PR libstdc++/15090
3164         * include/bits/locale_facets.h: Fix for -fno-for-scope.
3165         * include/debug/safe_sequence.h: Same.
3166         * include/debug/safe_iterator.tcc: Same.
3167         * src/debug.cc: Same.
3168         * src/locale.cc: Same.
3169         * src/locale_init.cc: Same.
3170         * src/localename.cc: Same.
3171         * config/locale/gnu/ctype_members.cc: Same.
3172         * config/locale/gnu/numeric_members.cc: Same.
3173         * testsuite/testsuite_abi.cc: Same.
3174         * testsuite/testsuite_hooks.cc: Same.
3175
3176 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
3177
3178         * docs/html/abi.html: Document effect of -fabi-version on value
3179         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
3180         Fix markup.
3181
3182 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3183
3184         PR libstdc++/15074
3185         * docs/html/faq/index.html: Update docs for libsupc++ usage.
3186
3187 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3188
3189         PR libstdc++/15412
3190         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
3191         __gnu_internal.
3192         (_GLIBCXX_mutex_address): Same.
3193         (_GLIBCXX_once): Same.
3194         (_GLIBCXX_mutex_init): Same.
3195         (_GLIBCXX_mutex_address_init): Same.
3196
3197 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
3198
3199         * docs/html/abi.html: New.
3200         * docs/html/abi.txt: Remove.
3201         * docs/html/documentation.html: Add link.
3202         * testsuite/Makefile.am: Add files.
3203         * testsuite/Makefile.in: Regenerated.
3204         * testsuite/abi_check.cc: Move and modify code into...
3205         * testsuite/testsuite_abi.cc: Add.
3206         * testsuite/testsuite_abi.h: Add.
3207
3208         * docs/html/17_intro/TODO: Update.
3209         * include/bits/stl_pair.h: Format.
3210
3211 2004-05-06  Matthias Klose  <doko@debian.org>
3212
3213         * include/backward/iterator.h:  Add GPL copyright info,
3214         with exception clause.
3215         * include/bits/boost_concept_check.h: Likewise.
3216         * include
3217         * libsupc++/tinfo.h: Likewise.
3218         * po/string_literals.cc: Likewise.
3219
3220 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
3221
3222         * acinclude.m4: Replace -W with more speaking -Wextra.
3223         * configure: Rebuilt.
3224
3225 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
3226
3227         Optimize locale::_M_impl->_M_names for the most common cases:
3228         !_M_names[0] means unnamed; !_M_names[1] means all the categories
3229         the same name (_M_names[0] && _M_names[1] means that the full set
3230         of _M_names must be processed, the general case).
3231         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
3232         Tweak, saving work when !_M_names[1].
3233         (locale::locale(const locale&, _Facet*): Simplify: now just setting
3234         _M_names[0] = 0 means unnamed.
3235         * src/locale.cc (locale::operator==): Deal first with the common,
3236         easy cases, otherwise fall back to locale::name().
3237         (locale::name()): Tweak, if !_M_names[0] just return "*".
3238         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
3239         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
3240         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
3241         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
3242         Simplify when !std::strchr, just updating _M_names[0]; clean up.
3243         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
3244         for the general case (full set of names), then do the usual work;
3245         clean up.
3246
3247         * src/locale.cc (locale::name()): Reserve space in __ret.
3248         * src/locale_init.cc (locale::global(const locale&)): Save
3249         the name in a temporary.
3250         * src/localename.cc (locale::locale(const char*)): Reserve space
3251         in __str.
3252
3253 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
3254
3255         * src/locale.cc (locale::operator==): Always avoid constructing
3256         locale::name(), directly compare pairs of _M_names.
3257
3258 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
3259
3260         * include/bits/istream.tcc: Fix comment.
3261
3262 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
3263
3264         * include/bits/stl_vector.h: Trivial formatting fixes.
3265         * include/bits/vector.tcc: Likewise.
3266
3267 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
3268
3269         PR libstdc++/15002 (continued again)
3270         * include/bits/istream.tcc (getline(basic_istream<>&,
3271         basic_string<>&, _CharT)): Use a temporary buffer, thus
3272         avoiding reallocation for common case.
3273
3274         * include/bits/basic_string.tcc (_S_construct(_InIterator,
3275         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
3276         of temporary buffer to a power of two.
3277
3278         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
3279
3280 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
3281
3282         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
3283         New.
3284         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
3285         Likewise.
3286         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
3287
3288 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
3289             Petur Runolfsson  <peturr02@ru.is>
3290
3291         PR libstdc++/15002 (continued)
3292         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
3293         streamsize, char_type)): Use traits::find/copy in a loop to speed
3294         up greatly the function in the common case (I/O buffer size >> 1).
3295
3296 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
3297
3298         * testsuite/27_io/basic_istream/getline/char/4.cc: New.
3299
3300         * include/bits/istream.tcc (getline(basic_istream<>&,
3301         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
3302         of sbumpc(), consistently with the other functions, thus also
3303         dealing correctly with the case of exceeded string::max_size().
3304
3305 2004-04-24  Matthias Klose  <doko@debian.org>
3306
3307         Jonathan Wakely  <cow@compsoc.man.ac.uk>
3308         * docs/html/configopts.html: Fix reference to allocator config option.
3309
3310 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
3311
3312         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
3313         * configure: Regenerate.
3314
3315 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
3316
3317         PR libstdc++/15047, libstdc++/11610
3318         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
3319         (libstdc++_init): Don't pass outdir to v3-copy-files.
3320
3321 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
3322
3323         * include/bits/deque.tcc: Trivial formatting fixes.
3324         * include/bits/stl_deque.h: Likewise.
3325         * include/bits/stl_list.h: Likewise.
3326         * include/bits/stl_tree.h: Likewise.
3327
3328 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
3329             Andrew Pinski  <pinskia@physics.uc.edu>
3330
3331         * include/bits/basic_string.tcc (_M_mutate): Don't compute
3332         __src unnecessarily.
3333
3334 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
3335
3336         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
3337         Clarify assertion, set test variable to false before assert.
3338         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
3339         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
3340         * testsuite/27_io/ios_base/storage/2.cc: Same.
3341
3342         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
3343         function returns.
3344         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
3345         * testsuite/27_io/fpos/14320-3.cc: Same.
3346
3347         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
3348         * testsuite/27_io/fpos/1.cc: Same.
3349         * testsuite/27_io/basic_stringstream/2.cc: Same.
3350         * testsuite/27_io/basic_stringbuf/4.cc: Same.
3351         * testsuite/27_io/basic_stringbuf/1.cc: Same.
3352         * testsuite/27_io/basic_stringbuf/2.cc: Same.
3353         * testsuite/27_io/basic_streambuf/2.cc: Same.
3354         * testsuite/27_io/basic_ostringstream/2.cc: Same.
3355         * testsuite/27_io/basic_ostream/2.cc: Same.
3356         * testsuite/27_io/basic_ofstream/2.cc: Same.
3357         * testsuite/27_io/basic_istringstream/2.cc: Same.
3358         * testsuite/27_io/basic_istream/2.cc: Same.
3359         * testsuite/27_io/basic_iostream/2.cc: Same.
3360         * testsuite/27_io/basic_ios/2.cc: Same.
3361         * testsuite/27_io/basic_ifstream/2.cc: Same.
3362         * testsuite/27_io/basic_fstream/2.cc: Same.
3363         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
3364
3365         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
3366         unsigned against zero.
3367         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
3368         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
3369
3370         * testsuite/18_support/new_delete_placement.cc: Initialize
3371         variables before first use.
3372         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
3373         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
3374         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
3375         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
3376         Same.
3377         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
3378         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
3379         Same.
3380         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
3381         * testsuite/27_io/types/2.cc: Same.
3382
3383         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
3384         file name.
3385         * testsuite/27_io/fpos/14775.cc: Same.
3386
3387 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
3388
3389         PR libstdc++/15002 (partial)
3390         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
3391         Special case __n2 == 1, not calling traits_type::assign/copy.
3392
3393 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
3394
3395         * include/bits/stl_bvector.h: Use _M_impl._M_start.
3396
3397 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
3398
3399         * include/bits/c++config (_GLIBCXX_STD): New.
3400         * src/list.cc: Use it.
3401         * include/std/std_bitset.h: Same.
3402         * include/bits/vector.tcc: Same.
3403         * include/bits/stl_set.h: Same.
3404         * include/bits/stl_multiset.h: Same.
3405         * include/bits/stl_multimap.h: Same.
3406         * include/bits/stl_map.h: Same.
3407         * include/bits/stl_list.h: Same.
3408         * include/bits/stl_vector.h: Same.
3409         * include/bits/stl_bvector.h: Same.
3410         * include/bits/stl_deque.h: Same.
3411         * include/bits/deque.tcc: Same.
3412         * include/bits/list.tcc: Same.
3413         * include/debug/vector: Same.
3414         * include/debug/set.h: Same.
3415         * include/debug/multiset.h: Same.
3416         * include/debug/multimap.h: Same.
3417         * include/debug/map.h: Same.
3418         * include/debug/list: Same.
3419         * include/debug/deque: Same.
3420         * include/debug/bitset: Same.
3421         * include/debug/formatter.h (__gnu_debug): Remove using directive.
3422         Add using declaration for std::type_info.
3423         * include/debug/safe_iterator.h: Add using declaration for
3424         std::iterator_traits and std::pair.
3425         * src/debug_list.cc: New.
3426         * src/Makefile.am: Add debug_list.cc.
3427         * src/Makefile.in: Regenerate.
3428         * config/linker-map.gnu: Add _List_node_base exports for std and
3429         __gnu_norm.
3430
3431         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
3432         idiom that other containers use.
3433         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
3434
3435 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3436
3437         PR libstdc++/14975
3438         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
3439         in case of error.
3440         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
3441         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
3442
3443 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3444
3445         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
3446         used anymore.
3447         * config.h.in: Regenerate.
3448
3449 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
3450
3451         * config/locale/generic/monetary_members.cc
3452         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
3453         btowc unnecessarily, just cast to wchar_t (the concerned chars
3454         all belong to the basic character set).
3455         * config/locale/generic/numeric_members.cc
3456         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3457         * config/locale/gnu/monetary_members.cc
3458         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
3459         * config/locale/gnu/numeric_members.cc
3460         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
3461
3462 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
3463
3464         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
3465         avoid constructing unnecessarily this->name().
3466
3467 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
3468
3469         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
3470         Change definition of CXX to use $(shell) instead of backticks.
3471         * testsuite/Makefile.in: Regenerate.
3472
3473 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
3474
3475         * testsuite/performance/20_util/allocator/list_sort_search.cc:
3476         Minor formatting fixes.
3477         * testsuite/performance/20_util/allocator/map_mt_find.cc:
3478         Likewise.
3479
3480 2004-04-12  Paolo Carlini <pcarlini@suse.de>
3481
3482         * config/locale/gnu/numeric_members.cc
3483         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
3484         in __uselocale, since btowc is called for chars belonging to
3485         the basic character set.
3486
3487 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
3488
3489         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
3490         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
3491         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
3492         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
3493         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
3494         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
3495         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
3496         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
3497         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
3498         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
3499         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
3500         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
3501         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
3502         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
3503         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
3504         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
3505         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
3506
3507 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
3508
3509         * config/locale/generic/time_members.cc
3510         (__timepunct<char>::_M_initialize_timepunct,
3511         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
3512         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
3513         * config/locale/gnu/time_members.cc
3514         (__timepunct<char>::_M_initialize_timepunct,
3515         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
3516         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
3517         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
3518
3519         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
3520         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
3521         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
3522         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
3523         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
3524         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
3525         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
3526         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
3527         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
3528         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
3529         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
3530         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
3531         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
3532         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
3533         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
3534         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
3535         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
3536         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
3537         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
3538         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
3539         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
3540         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
3541         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
3542         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
3543         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
3544         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
3545         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
3546         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
3547         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
3548         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
3549         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
3550         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
3551         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
3552         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
3553         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
3554         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
3555
3556         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
3557
3558 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
3559
3560         * config/locale/gnu/monetary_members.cc
3561         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
3562         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
3563         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
3564         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
3565         * config/locale/gnu/numeric_members.cc
3566         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
3567         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
3568
3569 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
3570
3571         Fixups for EDG front end.
3572         * include/ext/rope: Instead of non-existent function
3573         _Data_allocate, use allocator's allocate. Use this.
3574         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
3575         enumerations from _Rope_RopeRep here.
3576         * include/ext/ropeimpl.h: Same.
3577         * src/ext-inst.cc (_S_min_len): Fix up definition.
3578
3579         * config/locale/gnu/ctype_members.cc: Qualify base class members
3580         with this.
3581         * config/locale/generic/ctype_members.cc: Same.
3582         * config/locale/gnu/messages_members.h: Same.
3583         * config/locale/generic/messages_members.h: Same.
3584         * src/ctype.cc: Same.
3585         * include/bits/codecvt.h: Same.
3586
3587         * include/bits/boost_concept_check.h: Declare.
3588         (__error_type_must_be_an_unsigned_integer_type): Remove this.
3589         (__error_type_must_be_an_integer_type): Remove this.
3590         (__error_type_must_be_a_signed_integer_type): Remove this.
3591
3592         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
3593
3594         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
3595         specification to definition.
3596         (__cxa_allocate_exception): Same.
3597         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
3598         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
3599         (__cxa_get_globals): Same.
3600
3601         * libsupc++/del_op.cc: Add comment about freestanding.
3602
3603 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
3604
3605         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3606         The critical section is actually very small, only two assignments.
3607
3608 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
3609             Petur Runolfsson  <peturr02@ru.is>
3610
3611         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
3612         adapted from libstdc++/11378.
3613
3614 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
3615
3616         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
3617         some duplicated code.
3618         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
3619         in the single threaded case.
3620         * testsuite/performance/20_util/allocator/list_sort_search.cc:
3621         Reorder and renumber the tests consistently with the other testfiles.
3622         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3623         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3624         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3625
3626 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
3627
3628         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3629         Rearrange arithmetic to avoid computing two divisions at
3630         each deallocation.
3631
3632 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
3633
3634         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
3635         Streamline the second half, wrapping it in a single
3636         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
3637         conditionals inside loops.
3638
3639 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
3640
3641         PR libstdc++/14775
3642         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
3643         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
3644         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
3645         to _GLIBCXX_RES_LIMITS.
3646         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
3647         HAVE_LIMIT_*.
3648         * testsuite/testsuite_hooks.h: Declare set_file_limit.
3649         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
3650         and setrlimit(RLIMIT_FSIZE).
3651         * testsuite/27_io/fpos/14775.cc: New.
3652         * config.h.in: Regenerate.
3653         * configure: Likewise.
3654
3655 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
3656
3657         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
3658         In v3 uses of sscanf, the special floating-point numbers INF,
3659         INFINITY, etc., cannot occur in input, therefore, if the latter
3660         is too large, ERANGE is always stored in errno, no need of finitel.
3661
3662 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
3663
3664         PR libstdc++/14783
3665         * include/bits/stl_tree.h: Adjust initialization list order.
3666
3667 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
3668
3669         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
3670
3671 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
3672
3673         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
3674         on allocator behavior, the memory pointed by data2 may well be not
3675         trashed.
3676
3677 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
3678
3679         PR libstdc++/14245
3680         * include/bits/basic_string.tcc
3681         (basic_string::basic_string(const basic_string&)): Pass to
3682         _Rep::_M_grab the actual allocator of the string being constructed
3683         not the default constructed one.
3684
3685 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
3686
3687         libstdc++ PR/13598
3688         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
3689         (__enc_traits::_M_destroy): New.
3690         (__enc_traits::~__enc_traits): Use it.
3691         (__enc_traits::operator=): Use _M_destroy, _M_init.
3692         (__enc_traits::__enc_traits): Same.
3693
3694 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
3695
3696         * testsuite/ext/enc_filebuf/char/13598.cc: New.
3697
3698 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
3699
3700         * include/ext/mt_allocator.h: Uglify consistently names of
3701         variables, members and classes; tidy.
3702
3703 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
3704
3705         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
3706         Deallocation loop rewrote.
3707
3708 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
3709
3710         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3711         __mt_alloc<>::deallocate): Protect two instances of
3712         block->thread_id with __GTHREADS.
3713
3714 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
3715
3716         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
3717         default argument in constructors.
3718         (_Rb_tree::_M_empty_initialize): Remove.
3719
3720 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
3721
3722         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
3723         * testsuite/23_containers/set/operators/1_neg.cc: Same.
3724
3725 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3726
3727         * include/bits/cpp_type_traits.h: Changed __is_pod
3728         completely. Now, it does not use any of the previous type_traits
3729         to detect the pod types, and it also detects function pointers as
3730         POD types.
3731
3732         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
3733         which encapsulates the internal implementation of an rb_tree. Made
3734         the allocator a base class of this class instead of the rb_tree,
3735         which was not conforming. This _Rb_tree_impl class is also
3736         specialized on whether the _Compare parameter is a POD type or
3737         not. If so, then it maintains the comparison function as a data
3738         member, otherwise it makes the _Compare parameter a base class of
3739         itself. Also, _M_key_compare is now a function instead of a data
3740         member, so that the above trick can work properly. Delegated the
3741         initialization of the other data members to this newly created
3742         class. Also, now other member functions of rb_tree must refer to
3743         _M_key_compare as _M_impl._M_key_compare(). The other data members
3744         (*) can be referenced to as _M_impl.(*), where
3745         (*) includes _M_header, and _M_node_count.
3746
3747 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
3748
3749         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
3750         Add _M_min_bin, the size in bytes of the smallest bin.
3751         (__mt_alloc<>::tune()): Tweak accordingly.
3752         (__mt_alloc<>::tune(size_t, ...)): Likewise.
3753         (__mt_alloc<>::block_record): Change to a union: members next
3754         and thread_id are never used at the same time.
3755         (__mt_alloc<>::allocate): Update consistently.
3756         (__mt_alloc<>::deallocate): Likewise.
3757         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
3758         _S_bin_size for the configurable _M_min_size.
3759
3760 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3761
3762         * include/bits/stl_list.h: Created a _List_impl class and made it
3763         derive from the allocator, instead of the list deriving from the
3764         allocator class, which was not conformant. Changed all references
3765         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
3766         as above (changed all references to the concerned variables).
3767
3768 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3769
3770         * include/bits/stl_deque.h: Created a _Deque_impl class and made
3771         it derive from the allocator, instead of the deque deriving from
3772         the allocator class, which was not conformant. Changed all
3773         references to the _M_start, _M_finish, _M_map, and _M_map_size to
3774         _M_impl.*.
3775         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
3776         qualification in 2 places where it was missing.
3777         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
3778         above.
3779         * include/bits/deque.tcc: Same as above (changed all references to
3780         the concerned variables).
3781
3782 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3783
3784         * include/bits/stl_vector.h: Created a _Vector_impl class and made
3785         it derive from the allocator, instead of the _Vector_base class,
3786         deriving from the allocator which was not conformant. Changed all
3787         references to the _M_start, _M_finish, and _M_end_of_storage to
3788         _M_impl.*.
3789         * include/bits/vector.tcc: Same as above (changed all references
3790         to the concerned variables).
3791
3792 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
3793
3794         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
3795         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
3796         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
3797
3798 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
3799
3800         * include/ext/malloc_allocator.h: Fixed the construct function to
3801         call global placement new instead of assignment. Added a check
3802         after the return from malloc to check whether returned pointer is
3803         NULL, and if so, throw std::bad_alloc().
3804         * include/ext/debug_allocator.h: Added a check in the deallocate
3805         function to check whether the user has passed a NULL pointer or
3806         not.
3807
3808 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
3809
3810         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
3811
3812 2004-03-24  Andreas Schwab  <schwab@suse.de>
3813
3814         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
3815         warning from IA64 assembler.
3816
3817 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
3818
3819         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
3820         function call __builtin_ctz instead of the while loop.
3821         (allocate) -> If condition has __builtin_expect.
3822         (deallocate) -> Ditto.
3823         Renamed a few left-over variables and typedefs according to the
3824         C++STYLE mentioned in the documentation.
3825         Protected calls to __gthread* by __gthread_active_p(), whose value
3826         is cached in the local variable __threads_active.
3827
3828 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
3829
3830         * testsuite/performance/20_util/allocator/producer_consumer.cc:
3831         Use linear algorithm for producer.
3832
3833 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
3834
3835         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
3836         __mt_alloc<>::deallocate): Avoid redundant conditionals.
3837
3838 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
3839
3840         * include/bits/locale_facets.h: Tweaks for 80 column.
3841         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
3842         (__moneypunct_cache::_M_cache): Same.
3843         (num_get): Don't inherit from __num_base.
3844         (num_put): Same.
3845         (money_get): Don't inherit from money_base.
3846         (money_put): Same.
3847         (__timepunct::_M_am_pm_format): New.
3848         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
3849         (time_get::_M_extract_name): Same.
3850         (time_get::_M_extract_via_format): Same.
3851         * include/bits/locale_facets.tcc: Tweaks for 80 column.
3852         Use _M_getloc instead of getloc.
3853         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
3854         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
3855         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
3856
3857 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
3858
3859         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
3860         * configure: Regenerate.
3861         * config/allocator/pool_allocator_base.h: New.
3862         * include/ext/pool_allocator.h: Convert to a standard-conforming
3863         allocator.
3864         * src/allocator.cc: Tweak instantiations.
3865         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
3866         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
3867         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
3868         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
3869         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
3870         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
3871
3872 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>