OSDN Git Service

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