OSDN Git Service

7ec7e3c057d05aa374104e0883b477ff05ff4cb5
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / ChangeLog
1 2004-05-18  Paolo Carlini  <pcarlini@suse.de>
2
3         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
4         tweaks.
5
6 2004-05-18  Dhruv Matani  <dhruvbird@gmx.net>
7
8         * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
9         allocation loop which removes blocks from the global free list
10         from O(N) to O(1) when the required blocks are <= the number
11         available.
12
13 2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>
14
15         * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
16
17 2004-05-17  Benjamin Kosnik  <bkoz@redhat.com>
18
19         * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
20         * testsuite/23_containers/deque/14340.cc: New.
21         * testsuite/23_containers/list/14340.cc: New.
22         * testsuite/23_containers/map/14340.cc: New.
23         * testsuite/23_containers/multimap/14340.cc: New.
24         * testsuite/23_containers/multiset/14340.cc: New.
25         * testsuite/23_containers/set/14340.cc: New.
26         * testsuite/23_containers/vector/14340.cc: New.
27
28 2004-05-17  Douglas Gregor   <gregod@cs.rpi.edu>
29
30         PR libstdc++/14340 
31         * include/debug/safe_iterator.h (_Safe_iterator converting 
32         constructor): Only allow declaration to instantiate when the 
33         incoming _Safe_iterator has exactly the right iterator type.
34
35 2004-05-17  Jonathan Wakely  <redi@gcc.gnu.org>
36
37         * include/bits/boost_concept_check.h: Fix old attribute syntax.
38         * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
39         to pass concept-checks.
40         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
41         * testsuite/23_containers/set/modifiers/swap.cc: Same.
42         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
43
44 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
45
46         * include/std/std_bitset.h: Minor formatting fixes.
47
48 2004-05-16  Paolo Carlini  <pcarlini@suse.de>
49
50         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
51         Consistently update __bin._M_free[0].
52         (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
53         __bin._M_free[0] to simplify the while loop (i.e., the number
54         of iterations becomes known at the outset).
55
56 2004-05-15  Paolo Carlini  <pcarlini@suse.de>
57
58         * include/std/std_bitset.h: Trivial formatting fixes.
59
60 2004-05-14  Paolo Carlini  <pcarlini@suse.de>
61             Ivan Godard  <igodard@pacbell.net>
62
63         PR libstdc++/15361
64         * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
65         * testsuite/23_containers/bitset/ext/15361.cc: New.
66
67 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
68
69         PR libstdc++/15046
70         * crossconfig.m4: Add C99 math bits for linux crosses.
71         * configure: Regenerate.
72         
73 2004-05-13  Simon Marshall <simon.marshall@misys.com>
74             Benjamin Kosnik  <bkoz@redhat.com>
75
76         PR libstdc++/15090
77         * include/bits/locale_facets.h: Fix for -fno-for-scope.
78         * include/debug/safe_sequence.h: Same.
79         * include/debug/safe_iterator.tcc: Same.
80         * src/debug.cc: Same.
81         * src/locale.cc: Same.
82         * src/locale_init.cc: Same.
83         * src/localename.cc: Same.
84         * config/locale/gnu/ctype_members.cc: Same.
85         * config/locale/gnu/numeric_members.cc: Same.
86         * testsuite/testsuite_abi.cc: Same.
87         * testsuite/testsuite_hooks.cc: Same.
88         
89 2004-05-13  Jonathan Wakely  <redi@gcc.gnu.org>
90         
91         * docs/html/abi.html: Document effect of -fabi-version on value
92         of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
93         Fix markup.
94
95 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
96
97         PR libstdc++/15074      
98         * docs/html/faq/index.html: Update docs for libsupc++ usage.
99
100 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
101
102         PR libstdc++/15412
103         * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
104         __gnu_internal.
105         (_GLIBCXX_mutex_address): Same.
106         (_GLIBCXX_once): Same.  
107         (_GLIBCXX_mutex_init): Same.
108         (_GLIBCXX_mutex_address_init): Same.
109         
110 2004-05-13  Benjamin Kosnik  <bkoz@redhat.com>
111         
112         * docs/html/abi.html: New.
113         * docs/html/abi.txt: Remove.
114         * docs/html/documentation.html: Add link.
115         * testsuite/Makefile.am: Add files.
116         * testsuite/Makefile.in: Regenerated.
117         * testsuite/abi_check.cc: Move and modify code into...
118         * testsuite/testsuite_abi.cc: Add.
119         * testsuite/testsuite_abi.h: Add.
120
121         * docs/html/17_intro/TODO: Update.
122         * include/bits/stl_pair.h: Format.
123         
124 2004-05-06  Matthias Klose  <doko@debian.org>
125
126         * include/backward/iterator.h:  Add GPL copyright info,
127         with exception clause.
128         * include/bits/boost_concept_check.h: Likewise.
129         * include
130         * libsupc++/tinfo.h: Likewise.
131         * po/string_literals.cc: Likewise.
132         
133 2004-05-03  Andreas Tobler  <a.tobler@schweiz.ch>
134
135         * acinclude.m4: Replace -W with more speaking -Wextra.
136         * configure: Rebuilt.
137
138 2004-05-03  Paolo Carlini  <pcarlini@suse.de>
139
140         Optimize locale::_M_impl->_M_names for the most common cases:
141         !_M_names[0] means unnamed; !_M_names[1] means all the categories
142         the same name (_M_names[0] && _M_names[1] means that the full set
143         of _M_names must be processed, the general case).
144         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
145         Tweak, saving work when !_M_names[1].
146         (locale::locale(const locale&, _Facet*): Simplify: now just setting
147         _M_names[0] = 0 means unnamed.
148         * src/locale.cc (locale::operator==): Deal first with the common,
149         easy cases, otherwise fall back to locale::name().
150         (locale::name()): Tweak, if !_M_names[0] just return "*".
151         (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
152         copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
153         * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
154         * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
155         Simplify when !std::strchr, just updating _M_names[0]; clean up.
156         (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
157         for the general case (full set of names), then do the usual work;
158         clean up.
159
160         * src/locale.cc (locale::name()): Reserve space in __ret.
161         * src/locale_init.cc (locale::global(const locale&)): Save
162         the name in a temporary.
163         * src/localename.cc (locale::locale(const char*)): Reserve space
164         in __str.
165
166 2004-04-29  Paolo Carlini  <pcarlini@suse.de>
167
168         * src/locale.cc (locale::operator==): Always avoid constructing
169         locale::name(), directly compare pairs of _M_names.
170
171 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
172
173         * include/bits/istream.tcc: Fix comment.
174
175 2004-04-26  Paolo Carlini  <pcarlini@suse.de>
176
177         * include/bits/stl_vector.h: Trivial formatting fixes.
178         * include/bits/vector.tcc: Likewise.
179
180 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
181
182         PR libstdc++/15002 (continued again)
183         * include/bits/istream.tcc (getline(basic_istream<>&,
184         basic_string<>&, _CharT)): Use a temporary buffer, thus
185         avoiding reallocation for common case.
186
187         * include/bits/basic_string.tcc (_S_construct(_InIterator,
188         _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
189         of temporary buffer to a power of two.
190
191         * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
192
193 2004-04-25  Paolo Carlini  <pcarlini@suse.de>
194
195         * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
196         New.
197         * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
198         Likewise.
199         * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
200
201 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
202             Petur Runolfsson  <peturr02@ru.is>
203
204         PR libstdc++/15002 (continued)
205         * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
206         streamsize, char_type)): Use traits::find/copy in a loop to speed
207         up greatly the function in the common case (I/O buffer size >> 1).
208
209 2004-04-24  Paolo Carlini  <pcarlini@suse.de>
210
211         * testsuite/27_io/basic_istream/getline/char/4.cc: New. 
212
213         * include/bits/istream.tcc (getline(basic_istream<>&,
214         basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
215         of sbumpc(), consistently with the other functions, thus also
216         dealing correctly with the case of exceeded string::max_size().
217
218 2004-04-24  Matthias Klose  <doko@debian.org>
219
220         Jonathan Wakely  <cow@compsoc.man.ac.uk>
221         * docs/html/configopts.html: Fix reference to allocator config option.
222
223 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
224
225         * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
226         * configure: Regenerate.
227
228 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
229
230         PR libstdc++/15047, libstdc++/11610
231         * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
232         (libstdc++_init): Don't pass outdir to v3-copy-files.
233
234 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
235
236         * include/bits/deque.tcc: Trivial formatting fixes.
237         * include/bits/stl_deque.h: Likewise.
238         * include/bits/stl_list.h: Likewise.
239         * include/bits/stl_tree.h: Likewise.
240
241 2004-04-21  Paolo Carlini  <pcarlini@suse.de>
242             Andrew Pinski  <pinskia@physics.uc.edu>
243
244         * include/bits/basic_string.tcc (_M_mutate): Don't compute
245         __src unnecessarily.
246
247 2004-04-19  Benjamin Kosnik  <bkoz@redhat.com>
248
249         * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc: 
250         Clarify assertion, set test variable to false before assert.
251         * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
252         * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
253         * testsuite/27_io/ios_base/storage/2.cc: Same.
254         
255         * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
256         function returns.
257         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
258         * testsuite/27_io/fpos/14320-3.cc: Same.
259         
260         * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
261         * testsuite/27_io/fpos/1.cc: Same.
262         * testsuite/27_io/basic_stringstream/2.cc: Same.
263         * testsuite/27_io/basic_stringbuf/4.cc: Same.
264         * testsuite/27_io/basic_stringbuf/1.cc: Same.
265         * testsuite/27_io/basic_stringbuf/2.cc: Same.
266         * testsuite/27_io/basic_streambuf/2.cc: Same.
267         * testsuite/27_io/basic_ostringstream/2.cc: Same.
268         * testsuite/27_io/basic_ostream/2.cc: Same.
269         * testsuite/27_io/basic_ofstream/2.cc: Same.
270         * testsuite/27_io/basic_istringstream/2.cc: Same.
271         * testsuite/27_io/basic_istream/2.cc: Same.
272         * testsuite/27_io/basic_iostream/2.cc: Same.
273         * testsuite/27_io/basic_ios/2.cc: Same.
274         * testsuite/27_io/basic_ifstream/2.cc: Same.
275         * testsuite/27_io/basic_fstream/2.cc: Same.
276         * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
277
278         * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
279         unsigned against zero.
280         * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
281         * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
282
283         * testsuite/18_support/new_delete_placement.cc: Initialize
284         variables before first use.
285         * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
286         * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
287         * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
288         * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc: 
289         Same.
290         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
291         * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc: 
292         Same.
293         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
294         * testsuite/27_io/types/2.cc: Same.
295
296         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
297         file name.      
298         * testsuite/27_io/fpos/14775.cc: Same.
299         
300 2004-04-19  Paolo Carlini  <pcarlini@suse.de>
301
302         PR libstdc++/15002 (partial)
303         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
304         Special case __n2 == 1, not calling traits_type::assign/copy. 
305
306 2004-04-17  Benjamin Kosnik  <bkoz@redhat.com>
307
308         * include/bits/stl_bvector.h: Use _M_impl._M_start.
309         
310 2004-04-16  Benjamin Kosnik  <bkoz@redhat.com>
311         
312         * include/bits/c++config (_GLIBCXX_STD): New.
313         * src/list.cc: Use it.
314         * include/std/std_bitset.h: Same.
315         * include/bits/vector.tcc: Same.
316         * include/bits/stl_set.h: Same.
317         * include/bits/stl_multiset.h: Same.
318         * include/bits/stl_multimap.h: Same.
319         * include/bits/stl_map.h: Same.
320         * include/bits/stl_list.h: Same.
321         * include/bits/stl_vector.h: Same.
322         * include/bits/stl_bvector.h: Same.
323         * include/bits/stl_deque.h: Same.
324         * include/bits/deque.tcc: Same.
325         * include/bits/list.tcc: Same.
326         * include/debug/vector: Same.
327         * include/debug/set.h: Same.
328         * include/debug/multiset.h: Same.
329         * include/debug/multimap.h: Same.
330         * include/debug/map.h: Same.
331         * include/debug/list: Same.
332         * include/debug/deque: Same.
333         * include/debug/bitset: Same.   
334         * include/debug/formatter.h (__gnu_debug): Remove using directive.
335         Add using declaration for std::type_info.
336         * include/debug/safe_iterator.h: Add using declaration for
337         std::iterator_traits and std::pair.
338         * src/debug_list.cc: New.
339         * src/Makefile.am: Add debug_list.cc.
340         * src/Makefile.in: Regenerate.
341         * config/linker-map.gnu: Add _List_node_base exports for std and
342         __gnu_norm.
343
344         * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
345         idiom that other containers use.
346         * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
347                         
348 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
349
350         PR libstdc++/14975
351         * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
352         in case of error.
353         * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
354         * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
355
356 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
357
358         * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
359         used anymore.
360         * config.h.in: Regenerate.
361
362 2004-04-16  Paolo Carlini  <pcarlini@suse.de>
363
364         * config/locale/generic/monetary_members.cc
365         (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
366         btowc unnecessarily, just cast to wchar_t (the concerned chars
367         all belong to the basic character set).
368         * config/locale/generic/numeric_members.cc
369         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
370         * config/locale/gnu/monetary_members.cc
371         (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
372         * config/locale/gnu/numeric_members.cc
373         (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
374
375 2004-04-15  Paolo Carlini  <pcarlini@suse.de>
376
377         * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
378         avoid constructing unnecessarily this->name().
379
380 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
381
382         * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
383         Change definition of CXX to use $(shell) instead of backticks.
384         * testsuite/Makefile.in: Regenerate.
385
386 2004-04-12  Dhruv Matani  <dhruvbird@gmx.net>
387
388         * testsuite/performance/20_util/allocator/list_sort_search.cc:
389         Minor formatting fixes.
390         * testsuite/performance/20_util/allocator/map_mt_find.cc:
391         Likewise.
392
393 2004-04-12  Paolo Carlini <pcarlini@suse.de>
394
395         * config/locale/gnu/numeric_members.cc
396         (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
397         in __uselocale, since btowc is called for chars belonging to
398         the basic character set.
399
400 2004-04-09  Paolo Carlini  <pcarlini@suse.de>
401
402         * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
403         * testsuite/22_locale/messages/members/char/2.cc: Ditto.
404         * testsuite/22_locale/messages/members/char/3.cc: Ditto.
405         * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
406         * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
407         * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
408         * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
409         * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
410         * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
411         * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
412         * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
413         * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
414         * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
415         * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
416         * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
417         * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
418         * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
419
420 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
421
422         * config/locale/generic/time_members.cc
423         (__timepunct<char>::_M_initialize_timepunct,
424         __timepunct<wchar_t>::_M_initialize_timepunct): the correct
425         _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
426         * config/locale/gnu/time_members.cc
427         (__timepunct<char>::_M_initialize_timepunct,
428         __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
429         * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
430         * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
431
432         * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
433         * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
434         * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
435         * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
436         * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
437         * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
438         * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
439         * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
440         * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
441         * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
442         * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
443         * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
444         * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
445         * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
446         * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
447         * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
448         * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
449         * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
450         * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
451         * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
452         * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
453         * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
454         * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
455         * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
456         * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
457         * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
458         * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
459         * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
460         * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
461         * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
462         * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
463         * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
464         * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
465         * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
466         * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
467         * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
468
469         * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
470
471 2004-04-07  Paolo Carlini  <pcarlini@suse.de>
472
473         * config/locale/gnu/monetary_members.cc
474         (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
475         _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
476         and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
477         _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
478         * config/locale/gnu/numeric_members.cc
479         (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
480         and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
481
482 2004-04-06  Benjamin Kosnik  <bkoz@redhat.com>
483
484         Fixups for EDG front end.
485         * include/ext/rope: Instead of non-existent function
486         _Data_allocate, use allocator's allocate. Use this.
487         (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
488         enumerations from _Rope_RopeRep here.
489         * include/ext/ropeimpl.h: Same.
490         * src/ext-inst.cc (_S_min_len): Fix up definition.
491
492         * config/locale/gnu/ctype_members.cc: Qualify base class members
493         with this.
494         * config/locale/generic/ctype_members.cc: Same.
495         * config/locale/gnu/messages_members.h: Same.
496         * config/locale/generic/messages_members.h: Same.
497         * src/ctype.cc: Same.
498         * include/bits/codecvt.h: Same.
499
500         * include/bits/boost_concept_check.h: Declare.
501         (__error_type_must_be_an_unsigned_integer_type): Remove this.
502         (__error_type_must_be_an_integer_type): Remove this.
503         (__error_type_must_be_a_signed_integer_type): Remove this.
504
505         * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
506
507         * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
508         specification to definition.
509         (__cxa_allocate_exception): Same.
510         * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
511         * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
512         (__cxa_get_globals): Same.
513
514         * libsupc++/del_op.cc: Add comment about freestanding.
515
516 2004-04-05  Paolo Carlini  <pcarlini@suse.de>
517
518         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
519         The critical section is actually very small, only two assignments.
520
521 2004-04-04  Paolo Carlini  <pcarlini@suse.de>
522             Petur Runolfsson  <peturr02@ru.is>
523
524         * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
525         adapted from libstdc++/11378.
526
527 2004-04-03  Paolo Carlini  <pcarlini@suse.de>
528
529         * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
530         some duplicated code.
531         (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
532         in the single threaded case.
533         * testsuite/performance/20_util/allocator/list_sort_search.cc:
534         Reorder and renumber the tests consistently with the other testfiles.
535         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
536         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
537         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
538
539 2004-04-02  Paolo Carlini  <pcarlini@suse.de>
540
541         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
542         Rearrange arithmetic to avoid computing two divisions at
543         each deallocation.
544
545 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
546
547         * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
548         Streamline the second half, wrapping it in a single
549         '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
550         conditionals inside loops.
551
552 2004-04-01  Paolo Carlini  <pcarlini@suse.de>
553
554         PR libstdc++/14775
555         * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
556         * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
557         GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
558         to _GLIBCXX_RES_LIMITS.
559         (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
560         HAVE_LIMIT_*.
561         * testsuite/testsuite_hooks.h: Declare set_file_limit.
562         * testsuite/testsuite_hooks.cc: Define it, using getrlimit
563         and setrlimit(RLIMIT_FSIZE).
564         * testsuite/27_io/fpos/14775.cc: New.
565         * config.h.in: Regenerate.
566         * configure: Likewise.
567
568 2004-03-31  Paolo Carlini  <pcarlini@suse.de>
569
570         * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
571         In v3 uses of sscanf, the special floating-point numbers INF,
572         INFINITY, etc., cannot occur in input, therefore, if the latter
573         is too large, ERANGE is always stored in errno, no need of finitel.
574
575 2004-03-30  Benjamin Kosnik  <bkoz@redhat.com>
576
577         PR libstdc++/14783
578         * include/bits/stl_tree.h: Adjust initialization list order.
579
580 2004-03-29  Loren J. Rittle  <ljrittle@acm.org>
581
582         * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
583
584 2004-03-29  Paolo Carlini  <pcarlini@suse.de>
585
586         * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
587         on allocator behavior, the memory pointed by data2 may well be not
588         trashed.
589
590 2004-03-28  Chavdar Botev  <cbotev@yahoo.com>
591
592         PR libstdc++/14245
593         * include/bits/basic_string.tcc
594         (basic_string::basic_string(const basic_string&)): Pass to
595         _Rep::_M_grab the actual allocator of the string being constructed
596         not the default constructed one.
597
598 2004-03-27  Benjamin Kosnik  <bkoz@redhat.com>
599
600         libstdc++ PR/13598
601         * config/locale/ieee_1003.1-2001/codecvt_specializations.h
602         (__enc_traits::_M_destroy): New.
603         (__enc_traits::~__enc_traits): Use it.
604         (__enc_traits::operator=): Use _M_destroy, _M_init.
605         (__enc_traits::__enc_traits): Same.
606
607 2004-03-27  Petur Runolfsson  <peturr02@ru.is>
608
609         * testsuite/ext/enc_filebuf/char/13598.cc: New.
610
611 2004-03-27  Paolo Carlini  <pcarlini@suse.de>
612
613         * include/ext/mt_allocator.h: Uglify consistently names of
614         variables, members and classes; tidy.
615
616 2004-03-27  Dhruv Matani  <dhruvbird@gmx.net>
617
618         * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
619         Deallocation loop rewrote.
620
621 2004-03-26  Paolo Carlini  <pcarlini@suse.de>
622
623         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
624         __mt_alloc<>::deallocate): Protect two instances of
625         block->thread_id with __GTHREADS.
626
627 2004-03-25  Gawain Bolton  <gp.bolton@computer.org>
628
629         * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
630         default argument in constructors.
631         (_Rb_tree::_M_empty_initialize): Remove.
632
633 2004-03-25  Benjamin Kosnik  <bkoz@redhat.com>
634
635         * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
636         * testsuite/23_containers/set/operators/1_neg.cc: Same.
637
638 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
639
640         * include/bits/cpp_type_traits.h: Changed __is_pod
641         completely. Now, it does not use any of the previous type_traits
642         to detect the pod types, and it also detects function pointers as
643         POD types.
644
645         * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
646         which encapsulates the internal implementation of an rb_tree. Made
647         the allocator a base class of this class instead of the rb_tree,
648         which was not conforming. This _Rb_tree_impl class is also
649         specialized on whether the _Compare parameter is a POD type or
650         not. If so, then it maintains the comparison function as a data
651         member, otherwise it makes the _Compare parameter a base class of
652         itself. Also, _M_key_compare is now a function instead of a data
653         member, so that the above trick can work properly. Delegated the
654         initialization of the other data members to this newly created
655         class. Also, now other member functions of rb_tree must refer to
656         _M_key_compare as _M_impl._M_key_compare(). The other data members
657         (*) can be referenced to as _M_impl.(*), where
658         (*) includes _M_header, and _M_node_count.
659
660 2004-03-25  Paolo Carlini  <pcarlini@suse.de>
661
662         * include/ext/mt_allocator.h (__mt_alloc<>::tune):
663         Add _M_min_bin, the size in bytes of the smallest bin.
664         (__mt_alloc<>::tune()): Tweak accordingly.
665         (__mt_alloc<>::tune(size_t, ...)): Likewise.
666         (__mt_alloc<>::block_record): Change to a union: members next
667         and thread_id are never used at the same time.
668         (__mt_alloc<>::allocate): Update consistently.
669         (__mt_alloc<>::deallocate): Likewise.
670         (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
671         _S_bin_size for the configurable _M_min_size.
672
673 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
674
675         * include/bits/stl_list.h: Created a _List_impl class and made it
676         derive from the allocator, instead of the list deriving from the
677         allocator class, which was not conformant. Changed all references
678         from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
679         as above (changed all references to the concerned variables).
680
681 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
682
683         * include/bits/stl_deque.h: Created a _Deque_impl class and made
684         it derive from the allocator, instead of the deque deriving from
685         the allocator class, which was not conformant. Changed all
686         references to the _M_start, _M_finish, _M_map, and _M_map_size to
687         _M_impl.*.
688         (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
689         qualification in 2 places where it was missing.
690         (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
691         above.
692         * include/bits/deque.tcc: Same as above (changed all references to
693         the concerned variables).
694
695 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
696
697         * include/bits/stl_vector.h: Created a _Vector_impl class and made
698         it derive from the allocator, instead of the _Vector_base class,
699         deriving from the allocator which was not conformant. Changed all
700         references to the _M_start, _M_finish, and _M_end_of_storage to
701         _M_impl.*.
702         * include/bits/vector.tcc: Same as above (changed all references
703         to the concerned variables).
704
705 2004-03-25  Dhruv Matani  <dhruvbird@gmx.net>
706
707         * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
708         * testsuite/23_containers/list/cons/clear_allocator.cc: New.
709         * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
710
711 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
712
713         * include/ext/malloc_allocator.h: Fixed the construct function to
714         call global placement new instead of assignment. Added a check
715         after the return from malloc to check whether returned pointer is
716         NULL, and if so, throw std::bad_alloc().
717         * include/ext/debug_allocator.h: Added a check in the deallocate
718         function to check whether the user has passed a NULL pointer or
719         not.
720
721 2004-03-24  Benjamin Kosnik  <bkoz@redhat.com>
722
723         * docs/html/20_util/allocator.html: Add bitmap_allocator links.
724
725 2004-03-24  Andreas Schwab  <schwab@suse.de>
726
727         * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
728         warning from IA64 assembler.
729
730 2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>
731
732         * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
733         function call __builtin_ctz instead of the while loop.
734         (allocate) -> If condition has __builtin_expect.
735         (deallocate) -> Ditto.
736         Renamed a few left-over variables and typedefs according to the
737         C++STYLE mentioned in the documentation.
738         Protected calls to __gthread* by __gthread_active_p(), whose value
739         is cached in the local variable __threads_active.
740
741 2004-03-24  Felix Yen  <fwy@alumni.brown.edu>
742
743         * testsuite/performance/20_util/allocator/producer_consumer.cc:
744         Use linear algorithm for producer.
745
746 2004-03-24  Paolo Carlini  <pcarlini@suse.de>
747
748         * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
749         __mt_alloc<>::deallocate): Avoid redundant conditionals.
750
751 2004-03-23  Benjamin Kosnik  <bkoz@redhat.com>
752
753         * include/bits/locale_facets.h: Tweaks for 80 column.
754         (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
755         (__moneypunct_cache::_M_cache): Same.
756         (num_get): Don't inherit from __num_base.
757         (num_put): Same.
758         (money_get): Don't inherit from money_base.
759         (money_put): Same.
760         (__timepunct::_M_am_pm_format): New.
761         (time_get::_M_extract_num): Return iterator, use ios_base as argument.
762         (time_get::_M_extract_name): Same.
763         (time_get::_M_extract_via_format): Same.
764         * include/bits/locale_facets.tcc: Tweaks for 80 column.
765         Use _M_getloc instead of getloc.
766         * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
767         * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
768         * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
769
770 2004-03-22  Paolo Carlini  <pcarlini@suse.de>
771
772         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
773         * configure: Regenerate.
774         * config/allocator/pool_allocator_base.h: New.
775         * include/ext/pool_allocator.h: Convert to a standard-conforming
776         allocator.
777         * src/allocator.cc: Tweak instantiations.
778         * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
779         * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
780         * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
781         * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
782         * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
783         * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
784
785 2004-03-22  Hans-Peter Nilsson  <hp@axis.com>
786
787         * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
788         inline" and attribute-unused.  Qualify parameter __mem with
789         "volatile".
790         (__exchange_and_add): Ditto.  Add back memory clobber to asm.
791
792 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
793
794         * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
795         Remove junk.
796         * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
797         Likewise.
798         * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
799         Likewise.
800         * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
801         Likewise.
802         * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
803         Likewise.
804         * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
805         Likewise.
806         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
807         Likewise.
808         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
809         Likewise.
810         * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
811         Likewise.
812         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
813         Likewise.
814
815 2004-03-20  Paolo Carlini  <pcarlini@suse.de>
816
817         * include/std/std_valarray.h: Document DR389 [Ready].
818         * docs/html/ext/howto.html: Add an entry for DR389.
819
820 2004-03-19  Michael Eager  <eager@mvista.com>
821
822         * config/cpu/mips/atomicity.h:  Prevent reg loads between LL and
823         SC instructions.
824
825 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
826
827         * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
828         static_cast-s.
829         * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
830         * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
831         * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
832         * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
833         * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
834         * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
835         * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
836         * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
837         * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
838
839 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
840             Petur Runolfsson  <peturr02@ru.is>
841
842         PR libstdc++/12077
843         * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
844         no way to find out the conversion used by the underlying FILE*.
845         * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
846         * testsuite/27_io/objects/char/9.cc: Tweak.
847
848 2004-03-19  Paolo Carlini  <pcarlini@suse.de>
849
850         PR libstdc++/14648
851         * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
852         memory allocation/deallocation calls.
853         * testsuite/ext/14648.cc: New.
854
855 2004-03-19  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>
856
857         PR libstdc++/14647
858         * include/backward/bvector.h (bit_vector): Allocator is in std
859         namespace.
860
861 2004-03-19  Phil Edwards  <phil@codesourcery.com>
862
863         * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT):  Set LIBICONV,
864         not libiconv.  SUBST this variable as well.
865         * testsuite/Makefile.am (site.exp):  New target, based on that
866         created by automake.  Also set libiconv.
867
868         * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
869         libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
870         testsuite/Makefile.in:  Regenerate.
871
872 2004-03-16  Benjamin Kosnik  <bkoz@redhat.com>
873
874         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
875         new_allocator for all hosts.
876         * configure: Regenerate.
877
878 2004-03-16  Paolo Carlini  <pcarlini@suse.de>
879
880         * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
881         * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
882
883 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
884
885         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
886         Adjust the logic underlying the parsing of symbol to deal
887         correctly with an optional sign component (i.e., when either
888         negative_sign or positive_sign is empty)
889         * testsuite/22_locale/money_get/get/char/19.cc: New.
890         * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
891
892 2004-03-15  Paolo Carlini  <pcarlini@suse.de>
893
894         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
895         Do not accept an incomplete currency symbol.
896         * testsuite/22_locale/money_get/get/char/18.cc: New.
897         * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
898
899 2004-03-13  Benjamin Kosnik  <bkoz@redhat.com>
900
901         * config/allocator: New.
902         * config/allocator/bitmap_allocator_base.h: New.
903         * config/allocator/malloc_allocator_base.h: New.
904         * config/allocator/mt_allocator_base.h: New.
905         * config/allocator/new_allocator_base.h: New.
906         * include/bits/allocator.h: Include c++allocator.h.
907         * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
908         * aclocal.m4: Regenerate.
909         * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
910         * configure: Regenerate.
911         * include/Makefile.am (host_headers_extra): Add c++allocator.h.
912         * include/Makefile.in: Regenerate.
913         * docs/html/configopts.html: Add enable-libstdcxx-allocator.
914
915 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
916
917         * include/bits/allocator.h: Revert.
918
919 2004-03-12  Paolo Carlini  <pcarlini@suse.de>
920
921         * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
922         * include/bits/gslice_array.h: Add comment about DR 253.
923         * include/bits/indirect_array.h: Likewise.
924         * include/bits/mask_array.h: Likewise.
925         * include/bits/slice_array.h: Likewise.
926
927 2004-03-12  Benjamin Kosnik  <bkoz@redhat.com>
928
929         * testsuite/20_util/allocator/14176.cc: New.
930         * include/ext/mt_allocator.h: Formatting fixes.
931
932 2004-03-11  Dhruv Matani  <dhruvbird@HotPOP.com>
933
934         * include/Makefile.am (ext_headers): Add
935         ${ext_srcdir}/bitmap_allocator.h .
936         * include/Makefile.in: Regenerate.
937         * docs/html/ext/ballocator_doc.txt: New file.
938         * include/ext/bitmap_allocator.h: New file.
939         * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
940         test.
941         * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
942         * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
943         test for the bitmap_allocator<>.
944         * testsuite/performance/20_util/allocator/insert.cc: Likewise.
945         * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
946         * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
947
948 2004-03-11  Paolo Carlini  <pcarlini@suse.de>
949
950         * include/std/std_complex.h (pow(const complex&, const _Tp&),
951         pow(const _Tp&, const complex&), pow(const complex&,
952         const complex&)): Fully qualify with std:: a few calls.
953         * testsuite/26_numerics/complex/13450.cc: Minor tweak.
954
955 2004-03-11  Steven Bosscher  <stevenb@suse.de>
956
957         PR libstdc++/11706
958         * include/c_std/cmath.tcc (__cmath_power): Define inline.
959
960 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
961
962         * configure.ac: Bump AC_PREREQ to 2.59.
963
964 2004-03-10  Paolo Carlini  <pcarlini@suse.de>
965
966         * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
967
968 2004-03-10  Paul Kienzle  <pkienzle@nist.gov>
969             Paolo Carlini  <pcarlini@suse.de>
970
971         PR libstdc++/13450
972         * include/std/std_complex.h (pow(const complex&, const _Tp&),
973         pow(const _Tp&, const complex&)): Use cmath pow only when safe.
974         * testsuite/26_numerics/complex/13450.cc: New.
975
976         * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
977         * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
978
979 2004-03-10  Jerry Quinn  <jlquinn@optonline.net>
980
981         PR libstdc++/3247
982         * include/bits/gslice_array.h (gslice_array()): Make public.
983         (operator=(gslice_array)): Make public.  Implement.
984         * include/bits/indirect_array.h (indirect_array()): Make public.
985         * include/bits/mask_array.h (mask_array()): Make public.
986         (operator=(mask_array)): Make public.  Implement.
987         * include/bits/valarray_array.tcc (__valarray_copy):
988         Comment.  Add versions for gslice_array and mask_array.
989         * testsuite/26_numerics/valarray_subset_assignment.cc:  New test.
990
991 2004-03-09  Benjamin Kosnik  <bkoz@redhat.com>
992
993         * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
994         non-weak systems.
995         * testsuite/23_containers/vector/modifiers/swap.cc: Same.
996         * testsuite/23_containers/set/modifiers/swap.cc: Same.
997         * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
998         * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
999         * testsuite/23_containers/map/modifiers/swap.cc: Same.
1000         * testsuite/23_containers/list/modifiers/swap.cc: Same.
1001
1002         * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1003
1004 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1005
1006         PR c++/13658
1007         * testsuite/23_containers/deque/modifiers/swap.cc: New.
1008         * testsuite/23_containers/list/modifiers/swap.cc: New.
1009         * testsuite/23_containers/map/modifiers/swap.cc: New.
1010         * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1011         * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1012         * testsuite/23_containers/set/modifiers/swap.cc: New.
1013         * testsuite/23_containers/vector/modifiers/swap.cc: New.
1014
1015 2004-03-08  Petur Runolfsson  <peturr02@ru.is>
1016
1017         PR libstdc++/12658
1018         * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1019
1020 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
1021
1022         * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1023         * include/bits/stl_multiset.h: Add comment about DR 103.
1024         * include/bits/stl_set.h: Likewise.
1025
1026 2004-03-08  Paolo Carlini  <pcarlini@suse.de>
1027
1028         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1029         The value _space_ indicates that at least one space is required
1030         at that position.
1031         * testsuite/22_locale/money_get/get/char/17.cc: New.
1032         * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1033
1034         * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1035         * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1036
1037         * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1038         Remove redundant conditional on __str.size().
1039
1040 2004-03-08  Benjamin Kosnik  <bkoz@redhat.com>
1041
1042         * include/bits/allocator.h: Switch defaults to mt_alloc.
1043
1044 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
1045
1046         * include/ext/mt_allocator.h (_S_initialize): If
1047         !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1048
1049 2004-03-06  Benjamin Kosnik  <bkoz@redhat.com>
1050
1051         PR libstdc++/12658
1052         * src/locale_init.cc (locale::locale): Lock critical regions with
1053         external mutexes.
1054         (locale::global): Same.
1055         * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
1056         Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1057         (__glibcxx_mutex_lock): Same.
1058
1059         * config/cpu/generic/atomicity.h: Remove
1060         _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1061         * src/misc-inst.cc: Move all locking bits out of this file.
1062
1063         * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1064         * src/misc-inst.cc: Same.
1065         * config/cpu/hppa/atomicity.h: Same.
1066
1067         * config/linker-map.gnu: Remove types in the signature of atomic
1068         exports, as they may vary.
1069
1070 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1071
1072         * include/bits/locale_facets.tcc: Tweak the comment preceding
1073         has_facet: doesn't throw.
1074
1075 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1076
1077         * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1078         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1079         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1080         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1081         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1082         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1083         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1084         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1085
1086 2004-03-06  Paolo Carlini  <pcarlini@suse.de>
1087
1088         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1089         num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1090         __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1091         * testsuite/testsuite_character.h (struct __gnu_test::character):
1092         Provide operator==.
1093         * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1094         Likewise.
1095
1096 2004-03-05  Paolo Carlini  <pcarlini@suse.de>
1097
1098         * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1099
1100 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
1101
1102         * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1103
1104         * testsuite/23_containers/bitset/invalidation/1.cc: Main always
1105         returns 0.
1106         * testsuite/23_containers/deque/invalidation/4.cc: Same.
1107         * testsuite/23_containers/list/invalidation/1.cc: Same.
1108         * testsuite/23_containers/list/invalidation/2.cc: Same.
1109         * testsuite/23_containers/list/invalidation/3.cc: Same.
1110         * testsuite/23_containers/list/invalidation/4.cc: Same.
1111         * testsuite/23_containers/map/invalidation/2.cc: Same.
1112         * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1113         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1114         * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1115         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1116         * testsuite/23_containers/set/invalidation/1.cc: Same.
1117         * testsuite/23_containers/set/invalidation/2.cc: Same.
1118         * testsuite/23_containers/vector/invalidation/1.cc: Same.
1119         * testsuite/23_containers/vector/invalidation/2.cc: Same.
1120         * testsuite/23_containers/vector/invalidation/3.cc: Same.
1121         * testsuite/23_containers/vector/invalidation/4.cc: Same.
1122
1123 2004-03-04  Paolo Carlini  <pcarlini@suse.de>
1124
1125         * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1126         CXXFLAGS_save.
1127         * testsuite/lib/libstdc++.exp: Don't add it conditionally to
1128         DEFAULT_CXXFLAGS.
1129         * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1130         from the dg-options.
1131         * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1132         * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1133         * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1134         * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1135         * testsuite/23_containers/vector/resize/1.cc: Likewise.
1136         * testsuite/26_numerics/complex_value.cc: Likewise.
1137         * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1138         * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1139         * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1140         * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1141         * testsuite/27_io/objects/char/5.cc: Likewise.
1142         * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1143         * testsuite/backward/11460.cc: Likewise.
1144         * testsuite/thread/pthread7-rope.cc: Likewise.
1145
1146         * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1147         missing test variable.
1148         * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1149         missing test variable.
1150
1151 2004-03-04  Benjamin Kosnik  <bkoz@redhat.com>
1152
1153         * testsuite/20_util/allocator/1.cc: Provide explicit
1154         instantiations for non-weak systems.
1155         * testsuite/20_util/binders.cc: Same.
1156         * testsuite/20_util/allocator/8230.cc: Same.
1157         * testsuite/20_util/allocator/10378.cc: Same.
1158         * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1159         * testsuite/22_locale/ctype/is/char/2.cc: Same.
1160         * testsuite/thread/pthread7-rope.cc: Same.
1161         * testsuite/thread/pthread6.cc: Same.
1162         * testsuite/thread/pthread5.cc: Same.
1163         * testsuite/thread/pthread4.cc: Same.
1164         * testsuite/thread/pthread1.cc: Same.
1165         * testsuite/ext/rope.cc: Same.
1166         * testsuite/ext/hash_set.cc: Same.
1167         * testsuite/ext/hash_map.cc: Same.
1168         * testsuite/ext/concept_checks.cc: Same.
1169         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
1170         * testsuite/25_algorithms/unique/2.cc: Same.
1171         * testsuite/25_algorithms/unique/1.cc: Same.
1172         * testsuite/25_algorithms/rotate.cc: Same.
1173         * testsuite/25_algorithms/min_max.cc: Same.
1174         * testsuite/25_algorithms/equal.cc: Same.
1175         * testsuite/24_iterators/rel_ops.cc: Same.
1176         * testsuite/24_iterators/iterator.cc: Same.
1177         * testsuite/24_iterators/insert_iterator.cc: Same.
1178         * testsuite/24_iterators/front_insert_iterator.cc: Same.
1179         * testsuite/24_iterators/back_insert_iterator.cc: Same.
1180         * testsuite/23_containers/vector/resize/1.cc: Same.
1181         * testsuite/23_containers/vector/modifiers/2.cc: Same.
1182         * testsuite/23_containers/vector/modifiers/1.cc: Same.
1183         * testsuite/23_containers/vector/invalidation/4.cc: Same.
1184         * testsuite/23_containers/vector/invalidation/3.cc: Same.
1185         * testsuite/23_containers/vector/invalidation/2.cc: Same.
1186         * testsuite/23_containers/vector/invalidation/1.cc: Same.
1187         * testsuite/23_containers/vector/element_access/1.cc: Same.
1188         * testsuite/23_containers/vector/cons/6513.cc: Same.
1189         * testsuite/23_containers/vector/cons/3.cc: Same.
1190         * testsuite/23_containers/vector/cons/2.cc: Same.
1191         * testsuite/23_containers/vector/cons/1.cc: Same.
1192         * testsuite/23_containers/vector/capacity/8230.cc: Same.
1193         * testsuite/23_containers/vector/capacity/1.cc: Same.
1194         * testsuite/23_containers/vector/bool/6886.cc: Same.
1195         * testsuite/23_containers/stack/members/7158.cc: Same.
1196         * testsuite/23_containers/set/invalidation/2.cc: Same.
1197         * testsuite/23_containers/set/invalidation/1.cc: Same.
1198         * testsuite/23_containers/queue/members/7157.cc: Same.
1199         * testsuite/23_containers/priority_queue/members/7161.cc: Same.
1200         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1201         * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1202         * testsuite/23_containers/multiset/insert/1.cc: Same.
1203         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1204         * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1205         * testsuite/23_containers/map/operators/1.cc: Same.
1206         * testsuite/23_containers/map/invalidation/2.cc: Same.
1207         * testsuite/23_containers/map/invalidation/1.cc: Same.
1208         * testsuite/23_containers/map/insert/1.cc: Same.
1209         * testsuite/23_containers/list/operators/4.cc: Same.
1210         * testsuite/23_containers/list/operators/3.cc: Same.
1211         * testsuite/23_containers/list/operators/2.cc: Same.
1212         * testsuite/23_containers/list/operators/1.cc: Same.
1213         * testsuite/23_containers/list/modifiers/3.cc: Same.
1214         * testsuite/23_containers/list/modifiers/2.cc: Same.
1215         * testsuite/23_containers/list/modifiers/1.cc: Same.
1216         * testsuite/23_containers/list/invalidation/4.cc: Same.
1217         * testsuite/23_containers/list/invalidation/3.cc: Same.
1218         * testsuite/23_containers/list/invalidation/2.cc: Same.
1219         * testsuite/23_containers/list/invalidation/1.cc: Same.
1220         * testsuite/23_containers/list/cons/9.cc: Same.
1221         * testsuite/23_containers/list/cons/8.cc: Same.
1222         * testsuite/23_containers/list/cons/7.cc: Same.
1223         * testsuite/23_containers/list/cons/6.cc: Same.
1224         * testsuite/23_containers/list/cons/5.cc: Same.
1225         * testsuite/23_containers/list/cons/4.cc: Same.
1226         * testsuite/23_containers/list/cons/3.cc: Same.
1227         * testsuite/23_containers/list/cons/2.cc: Same.
1228         * testsuite/23_containers/list/cons/1.cc: Same.
1229         * testsuite/23_containers/list/capacity/1.cc: Same.
1230         * testsuite/23_containers/deque/operators/1.cc: Same.
1231         * testsuite/23_containers/deque/invalidation/4.cc: Same.
1232         * testsuite/23_containers/deque/invalidation/3.cc: Same.
1233         * testsuite/23_containers/deque/invalidation/2.cc: Same.
1234         * testsuite/23_containers/deque/invalidation/1.cc: Same.
1235         * testsuite/23_containers/deque/cons/2.cc: Same.
1236         * testsuite/23_containers/deque/cons/1.cc: Same.
1237
1238         * src/allocator.cc: Add char, wchar_t instantiations
1239         to match extern template declarations in memory.h.
1240
1241 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
1242
1243         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1244         Fix warning regression.
1245
1246 2004-03-03  Paolo Carlini  <pcarlini@suse.de>
1247
1248         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1249         Deal properly with empty __digits and negative frac_digits,
1250         clean-up a bit.
1251
1252 2004-03-03  Jonathan Wakely  <redi@gcc.gnu.org>
1253
1254         * docs/html/documentation.html: Regenerate.
1255
1256 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
1257
1258         PR libstdc++/14320
1259         * include/bits/postypes.h (class streamoff): Remove, now
1260         streamoff is just typedef a 64 bit signed integer type.
1261         (class fpos): Tweak consistently.
1262         * testsuite/27_io/fpos/14320-1.cc: New.
1263         * testsuite/27_io/fpos/14320-2.cc: New.
1264         * testsuite/27_io/fpos/14320-3.cc: New.
1265         * testsuite/27_io/fpos/14320-4.cc: New.
1266         * testsuite/27_io/fpos/14320-5.cc: New.
1267         * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
1268
1269 2004-03-02  Paolo Carlini  <pcarlini@suse.de>
1270
1271         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1272         Reorganize a bit the main parsing loop, thus early detecting
1273         an empty value component.
1274         * testsuite/22_locale/money_get/get/char/16.cc: New.
1275         * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
1276
1277 2004-03-02  Benjamin Kosnik  <bkoz@redhat.com>
1278
1279         Support automake 1.8.2
1280         * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
1281         * po/Makefile.am (EXTRA_DIST): New.
1282         * po/Makefile.in: Regenerate.
1283         * Makefile.in: Same.
1284         * include/Makefile.in: Same.
1285         * libmath/Makefile.in: Same.
1286         * libsupc++/Makefile.in: Same.
1287         * src/Makefile.in: Same.
1288         * testsuite/Makefile.in: Same.
1289
1290         * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
1291         __GXX_WEAK__ instead of SUPPORTS_WEAK.
1292         (${host_builddir}/gthr-default.h): Same.
1293         (${host_builddir}/gthr.h): Same.
1294         * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
1295         _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
1296         -fno-weak.
1297         * aclocal.m4: Regenerate.
1298         * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
1299         * config.h.in: Regenerate.
1300         * configure: Same.
1301
1302 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
1303
1304         Support autoconf 2.59
1305         * acinclude.m4: Quote correctly.
1306         * aclocal.m4: Regenerate.
1307         * linkage.m4: Same.
1308
1309 2004-03-01  Benjamin Kosnik  <bkoz@redhat.com>
1310
1311         * docs/html/test.html: Add multilib RUNTESTFLAGS example.
1312
1313         * docs/html/18_support/howto.html: Add bit about writing to
1314         stderr, mostly by Zack.
1315
1316 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
1317
1318         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1319         money_get<>::do_get(string_type&)): ... and two more.
1320
1321 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
1322
1323         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1324         Fix thinkos in the switch from string_type& to string& as last
1325         argument.
1326
1327 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
1328
1329         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1330         Also when parsing exponent sign, first look for thousands_sep
1331         and decimal_point; tweak a bit.
1332         * testsuite/22_locale/num_get/get/char/15.cc: New.
1333         * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
1334
1335         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1336         num_get<>::_M_extract_int): Reorder some conditionals.
1337
1338 2004-03-01  Paolo Carlini  <pcarlini@suse.de>
1339
1340         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1341         Consistently with numpunct, enforce the requirements in
1342         22.2.6.3, p3 for the thousands separators; tweak a bit.
1343         * testsuite/22_locale/money_get/get/char/15.cc: New.
1344         * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
1345
1346 2004-03-01  David Billinghurst <David.Billinghurst@riotinto.com>
1347
1348         * testsuite/lib/libstdc++.exp (v3-list-tests): Use
1349         testsuite_files from correct multilib blddir when running
1350         testsuite.
1351
1352 2004-02-29  Phil Edwards  <phil@codesourcery.com>
1353
1354         * testsuite/Makefile.am (check-abi, check-abi-verbose):  Copy
1355         the summary file to the logfile.
1356         * testsuite/Makefile.in:  Regenerate.
1357
1358 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1359
1360         * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
1361         volatile.
1362         * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
1363         __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
1364
1365 2004-02-28  Paolo Carlini  <pcarlini@suse.de>
1366
1367         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1368         According to 22.2.3.1, p2, 'units' may be followed by 'e' with
1369         no 'decimal-point' in the middle: in this case too we must fix
1370         up __found_grouping; slightly tweak.
1371         * testsuite/22_locale/num_get/get/char/14.cc: New.
1372         * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
1373
1374 2004-02-27  Eric Christopher  <echristo@redhat.com>
1375             Phil Edwards  <phil@codesourcery.com>
1376
1377         * testsuite/22_locale/collate/compare/wchar_t/2.cc,
1378         testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
1379         testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
1380         testsuite/22_locale/collate/hash/wchar_t/2.cc,
1381         testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
1382         testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
1383         testsuite/22_locale/collate/transform/wchar_t/2.cc,
1384         testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
1385         testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1386         Use dg-require-iconv.
1387         * testsuite/lib/libstdc++.exp:  Load target-supports.exp.
1388
1389 2004-02-27  Phil Edwards  <phil@codesourcery.com>
1390             Eric Christopher  <echristo@redhat.com>
1391
1392         * testsuite/config/default.exp:  Update with comments.
1393         (${tool}_target_compile):  New wrapper routine.
1394         * testsuite/lib/dg-options.exp:  New file, with dg-require-iconv.
1395         * testsuite/lib/libstdc++.exp:  Update with comments and cosmetic
1396         fixes.
1397         (load_gcc_lib, v3track):  New routines.
1398         (v3-init):  Rename to libstdc++_init.
1399         * testsuite/libstdc++-dg/normal.exp:  No longer call v3-init.
1400         Move DEFAULT_CXXFLAGS handling into libstdc++_init.
1401
1402 2004-02-27  Benjamin Kosnik  <bkoz@redhat.com>
1403
1404         * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
1405
1406         * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
1407
1408         * config/os/irix/irix5.2/atomicity.h: Merge..
1409         * config/os/irix/irix6.5/atomicity.h: Merge..
1410         * config/os/irix/atomicity.h: ...into this.
1411         * config/os/irix/atomic_word.h: New.
1412         * configure.host: Set atomic_word_dir for irix.
1413
1414         * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
1415         * i386/atomicity.h: Same.
1416         * m68k/atomicity.h: Same.
1417         * sparc/atomicity.h: Same.
1418
1419 2004-02-27  David Edelsohn  <edelsohn@gnu.org>
1420
1421         * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
1422         static, and inline keywords.
1423
1424 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
1425
1426         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1427         num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
1428         call reserve on the __tmp_gruping string.
1429         (num_get<>::_M_extract_float): Don't append unnecessarily a
1430         char() to the returned string.
1431         * include/bits/locale_facets.tcc: Trivial reformattings.
1432
1433 2004-02-27  Paolo Carlini  <pcarlini@suse.de>
1434
1435         * include/bits/locale_facets.h (money_get<>::_M_extract):
1436         Change signature: now takes a plain string&.
1437         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1438         Update consistently the definition; use the moneypunct cache
1439         to parse the value; use swap to change __units.
1440         (money_get<>::do_get(long double&)): Update call of _M_extract,
1441         avoid ctype::narrow, not correct wrt the standard.
1442         (money_get<>::do_get(string_type&)): Likewise, update call
1443         of _M_extract, use ctype::widen.
1444         * src/locale-inst.cc: Tweak instantiations of _M_extract.
1445
1446 2004-02-26  Ian Lance Taylor  <ian@wasabisystems.com>
1447
1448         * testsuite/demangle/abi_examples/01.cc: Expect error -2.
1449         * testsuite/demangle/abi_examples/02.cc: Likewise.
1450         * testsuite/demangle/regression/cw-11.cc: Likewise.
1451         * testsuite/demangle/regression/cw-16.cc: Change two expected
1452         results to match libiberty demangler output.
1453
1454 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
1455
1456         PR libstdc++/10246
1457         * libsupc++/Makefile.am: Use libiberty demangler.
1458         (c_sources): Add cp-demangle.c.
1459         * libsupc++/Makefile.in: Regenerate.
1460         * src/Makefile.am (sources): Remove demangle.cc.
1461         * src/Makefile.in: Regenerate.
1462         * include/Makefile.am (bits_headers): Move demangle.h.
1463         (ext_headers): ...here.
1464         * include/Makefile.in: Regenerate.
1465         * include/bits/demangle.h: Move...
1466         * include/ext/demangle.h: ...here.
1467         * src/demangle.cc: Remove.
1468
1469 2004-02-26  Benjamin Kosnik  <bkoz@redhat.com>
1470
1471         * include/bits/demangle.h: Add type template parameter to all
1472         templates with just an Allocator template parameter.
1473
1474 2004-02-25  Benjamin Kosnik  <bkoz@redhat.com>
1475
1476         * include/bits/atomicity.h: New, forward declarations for __atomic_add
1477         and __exchange_and_add.
1478         * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
1479         * config/cpu/cris/atomic_word.h: Same.
1480         * config/cpu/sparc/atomic_word.h: Same.
1481         * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
1482         Qualifiy with __gnu_cxx.
1483         (_Callback_list::_M_add_reference): Same.
1484         * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
1485         (locale::facet::_M_remove_reference): Same.
1486         (locale::_Impl::_M_add_reference): Add.
1487         (locale::_Impl::_M_remove_reference): Same.
1488         * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
1489         (basic_string::_Rep::_M_dispose): Same.
1490         * src/ios.cc (ios_base::xalloc): Same.
1491         * src/ios_init.cc (ios_base::Init::Init): Same.
1492         (ios_base::Init::~Init): Same.
1493         * src/locale.cc (locale::id::_M_id): Same.
1494         * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
1495         static, and inline keywords.
1496         * config/cpu/alpha/atomicity.h: Same.
1497         * config/cpu/cris/atomicity.h: Same.
1498         * config/cpu/generic/atomicity.h: Same.
1499         * config/cpu/hppa/atomicity.h: Same.
1500         * config/cpu/i386/atomicity.h: Same.
1501         * config/cpu/ia64/atomicity.h: Same.
1502         * config/cpu/m68k/atomicity.h: Same.
1503         * config/cpu/mips/atomicity.h: Same.
1504         * config/cpu/powerpc/atomicity.h: Same.
1505         * config/cpu/s390/atomicity.h: Same.
1506         * config/cpu/sparc/atomicity.h: Same.
1507
1508         * src/Makefile.am (host_sources): Add atomicity.cc.
1509         (atomicity.cc): New rule.
1510         * src/Makefile.in: Regenerate.
1511         * include/Makefile.am (host_headers): Remove host atomicity.h.
1512         (host_headers): Add atomic_word.h.
1513         (bits_headers): Add bits atomicity.h.
1514         Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1515         * include/Makefile.in: Regenerate.
1516         * configure.host (atomic_word_dir): Add.
1517         * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
1518         ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1519         * configure: Regenerate.
1520         * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
1521
1522         * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
1523         * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1524
1525 2004-02-25  Jonathan Wakely  <redi@gcc.gnu.org>
1526
1527         * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
1528         docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
1529         Fix markup, more <link> tags.
1530
1531 2004-02-25  Carlo Wood  <carlo@alinoe.com>
1532
1533         * bits/demangle.h
1534         namespace __gnu_cxx::demangler
1535         (session<Allocator>::qualifier_list_Allocator): Add
1536         (session<Allocator>::M_qualifier_list_alloc): Add
1537         (session<Allocator>::decode_type_with_postfix):
1538         Use M_qualifier_list_alloc instead of calling operator new/delete.
1539
1540 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
1541
1542         PR libstdc++/14252
1543         * include/bits/postypes.h (class streamoff): Add operator++(),
1544         operator++(int), operator--() and operator--(int).
1545         * testsuite/27_io/fpos/14252.cc: New.
1546
1547 2004-02-24  Richard Sandiford  <rsandifo@redhat.com>
1548
1549         * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
1550         error in handling of hex constants.
1551
1552 2004-02-24  Paolo Carlini  <pcarlini@suse.de>
1553
1554         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1555         Prefer basic_string::append to operator+= and a temporary.
1556
1557 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
1558
1559         * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
1560         Only use fputs, not write.
1561
1562 2004-02-23  Benjamin Kosnik  <bkoz@redhat.com>
1563
1564         * include/ext/malloc_allocator.h: Add operators ==, !=.
1565         * include/ext/new_allocator.h: Add operators ==, !=.
1566         * include/ext/mt_allocator.h (__mt_alloc::tune): New.
1567         (__mt_alloc::_S_get_options): New.
1568         (__mt_alloc::_S_set_options): New.
1569         (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
1570         (__mt_alloc::_S_no_of_bins): To _S_bin_size.
1571         Move functions out of line, simplify, format.
1572         * src/allocator.cc: Simplify explicit instantiations.
1573         * include/bits/allocator.h: Tweak.
1574
1575 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
1576
1577         * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1578         Restructure formatting of value component, first dealing with
1579         the non-decimal digits; use reserve.
1580
1581 2004-02-22  Paolo Carlini  <pcarlini@suse.de>
1582
1583         * include/bits/locale_facets.h (class money_get): Inherit
1584         from money_base too; tweak declaration of _M_extract, now
1585         parameterized on _Intl too.
1586         * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1587         Update definition to use the cache; call reserve on __res to
1588         avoid multiple reallocations; fix parsing of sign component
1589         according to 22.2.6.1.2, p3.
1590         (money_get<>::do_get(long double&),
1591         money_get<>::do_get(string_type&)): Update calls of _M_extract.
1592         * src/locale-inst.cc:  Add instantiations of
1593         money_get::_M_extract<false> and money_get::_M_extract<true>.
1594         * testsuite/22_locale/money_get/get/char/14.cc: New.
1595         * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
1596
1597 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
1598
1599         * libsupc++/vterminate.cc
1600         (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
1601         calls to terminate.
1602         * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
1603
1604         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1605         not set RLIMIT_AS on HP-UX.
1606
1607 2004-02-21  Mark Mitchell  <mark@codesourcery.com>
1608
1609         * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1610         not set RLIMIT_AS on HP-UX.
1611
1612 2004-02-21  Paolo Carlini  <pcarlini@suse.de>
1613
1614         * include/bits/locale_facets.h (class money_base): Add { _S_minus,
1615         _S_zero, _S_end } enum, _S_atoms.
1616         (struct __moneypunct_cache<>): Parameterize on _Intl too; add
1617         _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
1618         _M_negative_sign_size, _M_atoms; tweak constructor consistently.
1619         (__moneypunct_cache<>::~__moneypunct_cache): Update.
1620         (__moneypunct_cache<>::_M_cache): Fill the cache.
1621         (class moneypunct): Tweak __cache_type typedef.
1622         (class money_put): Inherit from money_base too; tweak declaration
1623         of _M_insert, now parameterized on _Intl.
1624         * include/bits/locale_facets.tcc
1625         (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
1626         (money_put<>::_M_insert): Update definition to use the cache;
1627         call reserve on __res to avoid multiple reallocations.
1628         (money_put<>::do_put(long double),
1629         money_put<>::do_put(const string_type&): Update calls of _M_insert.
1630         * config/locale/generic/monetary_members.cc
1631         (moneypunct<char, true>::_M_initialize_moneypunct,
1632         moneypunct<char, false>::_M_initialize_moneypunct,
1633         moneypunct<wchar_t, true>::_M_initialize_moneypunct,
1634         moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
1635         * config/locale/gnu/monetary_members.cc: Likewise.
1636         * config/locale/gnu/monetary_members.cc
1637         (moneypunct<wchar_t, true>::~moneypunct(),
1638         moneypunct<wchar_t, false>::~moneypunct()): Likewise.
1639         * src/globals_locale.cc: Tweak fake_money_cache_c.
1640         * src/locale-inst.cc: Add instantiations for
1641         money_put::_M_insert<false> and money_put::_M_insert<true> and
1642         __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
1643         * src/locale_facets.cc: Define money_base::_S_atoms.
1644         * src/locale_init.cc: Update placement new of
1645         __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
1646         __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
1647
1648         * config/locale/generic/numeric_members.cc: Clean up.
1649         * config/locale/gnu/numeric_members.cc: Likewise.
1650         * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
1651         * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
1652         * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
1653         * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
1654         * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1655         * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1656
1657 2004-02-20  Mark Mitchell  <mark@codesourcery.com>
1658
1659         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
1660         FIFO for writing with ios_base::in|ios_base::out.
1661         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1662         * testsuite/27_io/objects/char/7.cc: Likewise.
1663         * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
1664         with "r+".
1665
1666 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
1667
1668         * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
1669         from iso-8859-1 to ISO8859-1.
1670         * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
1671         * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
1672         * 22_locale/collate/hash/wchar_t/2.cc: Same.
1673         * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
1674         * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
1675         * 22_locale/collate/transform/wchar_t/2.cc: Same.
1676         * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
1677         * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
1678
1679 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
1680
1681         * include/bits/locale_facets.h (money_get<>::_M_extract):
1682         New, helper for do_get.
1683         (money_put<>::_M_insert): Likewise, for do_put.
1684         * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1685         money_put<>::_M_insert): Define.
1686         (money_get<>::do_get(long double&), money_get<>::do_get(
1687         string_type&), money_put::do_put(long double),
1688         money_put::do_put(const string_type&)): Use the helpers.
1689
1690 2004-02-18  Paolo Carlini  <pcarlini@suse.de>
1691
1692         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1693         Rewrite, avoiding recursion.
1694         (__gnu_internal::xwrite): Minor tweaks.
1695
1696 2004-02-17  Stefan Olsson  <stefan@xapa.se>
1697
1698         * include/ext/mt_allocator.h: Removed the last
1699         pointer. Deallocated blocks are now added to the front of
1700         freelists as proposed by Felix Yen.  This gives roughly 10%
1701         performance boost and saves some memory.
1702         * docs/html/ext/mt_allocator.html: Change due to that deallocated
1703         blocks now are added to the front of freelists. The reason to this
1704         approach is also explained.
1705
1706 2004-02-17  Paolo Carlini  <pcarlini@suse.de>
1707
1708         * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1709         num_get<>::_M_extract_int, money_get<>::do_get): Simplify
1710         grouping fidelity conditional.
1711
1712 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
1713
1714         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
1715         Qualify exception with std::.
1716         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
1717         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1718         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1719         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1720         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1721
1722 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
1723
1724         * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
1725         for now that the catch block is not reached.
1726         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
1727
1728 2004-02-16  Paolo Carlini  <pcarlini@suse.de>
1729
1730         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1731         Fix parsing of the remaining sign characters.
1732         * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
1733         the input is scanned 'til eof.
1734         * 22_locale/money_get/get/char/4.cc: Likewise.
1735         * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
1736         * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
1737         * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
1738         not do_pos_format: the former is the only one that matters during
1739         input.
1740         * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
1741
1742         * 22_locale/money_get/get/char/6.cc: Minor tweak.
1743         * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
1744
1745 2004-02-15  David Asher  <david.asher@cavium.com>
1746
1747         PR libstdc++/11352
1748         * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
1749         access __olds beyond __oldlen.
1750
1751 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
1752
1753         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
1754         sure the exception is actually thrown.
1755         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1756         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1757         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1758
1759 2004-02-14  Paolo Carlini  <pcarlini@suse.de>
1760
1761         PR libstdc++/13858
1762         * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
1763         In case of conversion errors, throw ios_failure; simplify.
1764         * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
1765         * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1766         * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
1767         previously we didn't throw in case of conversion errors, instead
1768         just returned eof().
1769         * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1770         * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1771         * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1772
1773         * include/bits/fstream.tcc (basic_filebuf<>::overflow):
1774         Trivial simplification of a conditional.
1775
1776 2004-02-12  Paolo Carlini  <pcarlini@suse.de>
1777
1778         PR libstdc++/13731 (final part: writev)
1779         * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1780         New, a wrapper around writev() handling partial writes.
1781         (__basic_file<char>::xwrite): Move to __gnu_internal and make
1782         static.
1783         (__basic_file<char>::xsputn): Update call.
1784         (__basic_file<char>::xsputn_2): Likewise.
1785         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
1786         Don't declare, now static.
1787
1788 2004-02-11  Stefan Olsson  <stefan@xapa.se>
1789
1790         * docs/html/ext/mt_allocator.html: New.
1791
1792 2004-02-11  Benjamin Kosnik  <bkoz@redhat.com>
1793
1794         * docs/html/20_util/allocator.html: New file, consolidate
1795         allocator information here. Revamp.
1796         * docs/html/documentation.html: Change links.
1797         * docs/html/20_util/howto.html: Same.
1798         * docs/html/ext/howto.html: Same.
1799
1800 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
1801
1802         PR libstdc++/13731 (first part: write)
1803         * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
1804         New, declare.
1805         * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
1806         Define it: a wrapper around write() handling partial write.
1807         (__basic_file<char>::xsputn): Use it.
1808         (__basic_file<char>::xsputn_2): Likewise.
1809
1810 2004-02-11  Paolo Carlini  <pcarlini@suse.de>
1811             Petur Runolfsson  <peturr02@ru.is>
1812
1813         PR libstdc++/14078
1814         * include/std/std_istream.h (operator>>(__istream_type& (*)
1815         (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
1816         operator>>(ios_base& (*)(ios_base&))): Declare inline.
1817         * include/std/std_ostream.h (operator<<(__ostream_type& (*)
1818         (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
1819         operator<<(ios_base& (*) (ios_base&))): Likewise.
1820         * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
1821
1822 2004-02-10  Loren J. Rittle  <ljrittle@acm.org>
1823
1824         PR libstdc++/14098
1825         * config/linker-map.gnu: Add typeinfo and typeinfo name for
1826         __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
1827
1828         PR libstdc++/14097
1829         * config/linker-map.gnu: Add typeinfo and typeinfo name for
1830         __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
1831
1832 2004-02-09  Loren J. Rittle  <ljrittle@acm.org>
1833
1834         * include/ext/pool_allocator.h: Include c++config.h.
1835
1836 2004-02-09  Stefan Olsson  <stefan@xapa.se>
1837
1838         * include/ext/mt_allocator.h: thread_id is unused in non threaded
1839         applications and now has a ifdef to remove it completely on
1840         compilers without thread support. Include stdlib.h due to a
1841         compiler warning on getenv().
1842
1843 2004-02-09  Paul Brook  <paul@codesourcery.com>
1844
1845         * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
1846
1847 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
1848
1849         PR libstdc++/14071
1850         * src/locale_init.cc (locale::global(const locale&)): Use
1851         locale::name() in order to decide whether calling setlocale.
1852         * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
1853
1854         * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
1855         Avoid computing &= unnecessarily.
1856
1857 2004-02-09  James E Wilson  <wilson@specifixinc.com>
1858
1859         PR libstdc++/5625
1860         * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
1861         __builtin_extend_pointer.
1862
1863 2004-02-09  Paolo Carlini  <pcarlini@suse.de>
1864
1865         PR libstdc++/14072
1866         * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
1867         Don't leave dangling pointers.
1868         * testsuite/27_io/basic_ios/imbue/14072.cc: New.
1869         * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
1870         facet is needed in the final test.
1871
1872 2004-02-09  Bernardo Innocenti  <bernie@develer.com>
1873
1874         * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
1875         * configure: Regenerate.
1876
1877 2004-02-08  Richard Henderson  <rth@redhat.com>
1878
1879         PR libstdc++/14026
1880         * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
1881         uncaughtExceptions during nested catch rethrow.
1882         * testsuite/18_support/14026.cc: New.
1883
1884 2004-02-08  Paolo Carlini  <pcarlini@suse.de>
1885
1886         * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
1887         When working in place remember to set the state to sharable
1888         (otherwise, _M_mutate does it).
1889
1890 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
1891
1892         * include/bits/allocator.h, include/bits/basic_ios.h,
1893         include/bits/basic_ios.tcc, include/bits/basic_string.h,
1894         include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
1895         include/bits/char_traits.h, include/bits/codecvt.h,
1896         include/bits/concurrence.h, include/bits/cpp_type_traits.h,
1897         include/bits/demangle.h, include/bits/deque.tcc,
1898         include/bits/fstream.tcc, include/bits/functexcept.h,
1899         include/bits/gslice.h, include/bits/gslice_array.h,
1900         include/bits/indirect_array.h, include/bits/ios_base.h,
1901         include/bits/istream.tcc, include/bits/list.tcc,
1902         include/bits/locale_classes.h, include/bits/locale_facets.h,
1903         include/bits/locale_facets.tcc, include/bits/localefwd.h,
1904         include/bits/mask_array.h, include/bits/ostream.tcc,
1905         include/bits/postypes.h, include/bits/slice_array.h,
1906         include/bits/sstream.tcc, include/bits/stl_algo.h,
1907         include/bits/stl_algobase.h, include/bits/stl_bvector.h,
1908         include/bits/stl_construct.h, include/bits/stl_deque.h,
1909         include/bits/stl_function.h, include/bits/stl_heap.h,
1910         include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
1911         include/bits/stl_list.h, include/bits/stl_map.h,
1912         include/bits/stl_multimap.h, include/bits/stl_multiset.h,
1913         include/bits/stl_numeric.h, include/bits/stl_pair.h,
1914         include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
1915         include/bits/stl_relops.h, include/bits/stl_set.h,
1916         include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
1917         include/bits/stl_threads.h, include/bits/stl_tree.h,
1918         include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
1919         include/bits/stream_iterator.h, include/bits/streambuf.tcc,
1920         include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
1921         include/bits/type_traits.h, include/bits/valarray_after.h,
1922         include/bits/valarray_array.h, include/bits/valarray_array.tcc,
1923         include/bits/valarray_before.h, include/bits/vector.tcc: Remove
1924         trailing whitespace.
1925
1926 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
1927
1928         * include/bits/basic_string.h: Fix comment.
1929
1930 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
1931
1932         * include/bits/stl_construct.h: Wrap overlong lines, reformat
1933         according to the coding standards.
1934         * include/bits/stl_pair.h: Likewise.
1935         * include/bits/stl_raw_storage_iter.h: Likewise.
1936         * include/bits/stl_stack.h: Likewise.
1937         * include/bits/stl_uninitialized.h: Likewise.
1938         * include/bits/stream_iterator.h: Likewise.
1939         * include/bits/streambuf_iterator.h: Likewise.
1940         * include/bits/type_traits.h: Likewise.
1941
1942 2004-02-06  Paolo Carlini  <pcarlini@suse.de>
1943
1944         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
1945         Adjust timings.
1946
1947 2004-02-05  Loren J. Rittle  <ljrittle@acm.org>
1948
1949         * scripts/check_performance: Support PCH.
1950
1951         * scripts/check_performance (CXX): Add -DNOTHREAD.
1952         * testsuite/performance/20_util/allocator/insert.cc: Integrate
1953         threaded tests from insert_insert.cc.  Tweak iterations,
1954         remove special cases.
1955         * testsuite/performance/20_util/allocator/insert_insert.cc:
1956         Make all tests single-threaded. Tweak iterations.
1957         * testsuite/performance/20_util/allocator/map_thread.cc:
1958         Tweak iterations.
1959         * testsuite/performance/20_util/allocator/producer_consumer.cc:
1960         Likewise.
1961
1962 2004-02-05  Geoffrey Keating  <geoffk@apple.com>
1963
1964         PR 12179
1965         * .cvsignore: New.
1966         * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
1967         'gcc-lib'.  Add comment about poorly-named variables.
1968         * aclocal.m4: Regenerate.
1969         * configure: Regenerate.
1970
1971 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
1972
1973         * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1974         Thousands-sep are always optional; thousands-sep are not allowed
1975         after the decimal_point.
1976         * testsuite/22_locale/money_get/get/char/12.cc: New.
1977         * testsuite/22_locale/money_get/get/char/13.cc: New.
1978         * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
1979         * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
1980
1981         * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
1982         * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1983         * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1984         * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1985         * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1986         * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1987         * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1988         * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1989
1990         * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
1991         the standard.
1992         * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
1993
1994 2004-02-05  Richard Sandiford  <rsandifo@redhat.com>
1995
1996         * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
1997         Define.
1998         * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
1999         it to decide whether FIONREAD should take an off_t or int argument.
2000
2001 2004-02-05  Paolo Carlini  <pcarlini@suse.de>
2002
2003         * include/bits/stl_function.h: Minor formatting changes.
2004
2005 2004-02-04  Zack Weinberg  <zack@codesourcery.com>
2006
2007         Revert previous change to config/abi/*/baseline_symbols.txt.
2008
2009 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
2010             Zack Weinberg  <zack@codesourcery.com>
2011
2012         * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2013         New function.
2014         (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2015         (__basic_file<char>::_M_open_mode): Delete.
2016         * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2017
2018         * testsuite/27_io/basic_filebuf/close/char/9964.cc
2019         * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2020         Correct flags to filebuf::open calls.
2021
2022         * config/abi/alpha-freebsd5/baseline_symbols.txt
2023         * config/abi/alpha-linux-gnu/baseline_symbols.txt
2024         * config/abi/hppa-linux-gnu/baseline_symbols.txt
2025         * config/abi/i386-freebsd4/baseline_symbols.txt
2026         * config/abi/i386-freebsd5/baseline_symbols.txt
2027         * config/abi/i486-linux-gnu/baseline_symbols.txt
2028         * config/abi/ia64-linux-gnu/baseline_symbols.txt
2029         * config/abi/mips-linux-gnu/baseline_symbols.txt
2030         * config/abi/sparc-freebsd5/baseline_symbols.txt
2031         * config/abi/sparc-linux-gnu/baseline_symbols.txt
2032         * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2033         Remove entry for __basic_file<char>::_M_open_mode.
2034
2035 2004-02-04  Loren J. Rittle  <ljrittle@acm.org>
2036
2037         * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2038
2039 2004-02-04  Felix Yen  <fwy@alumni.brown.edu>
2040
2041         * testsuite/performance/20_util/producer_consumer.cc: New.
2042         * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
2043
2044 2004-02-04  Benjamin Kosnik  <bkoz@redhat.com>
2045
2046         * testsuite/performance/20_util/allocator.cc: Move to..
2047         * testsuite/performance/20_util/allocator/insert.cc: ...here.
2048         * testsuite/performance/20_util/allocator_thread.cc: Move to...
2049         * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2050         * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2051         * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
2052
2053 2004-02-04  Jonathan Wakely  <redi@gcc.gnu.org>
2054
2055         * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2056         * docs/html/faq/index.txt: Regenerate.
2057
2058 2004-02-04  Dhruv Matani  <dhruvbird@gmx.net>
2059
2060         * include/ext/debug_allocator.h: _M_extra now stands for the
2061         number of extra objects instead of the number of extra bytes.
2062         (debug_allocator::allocate): Adjust.
2063         (debug_allocator::deallocate): Adjust.
2064
2065         * include/ext/pool_allocator.h: Fix typo.
2066
2067 2004-02-03  Felix Yen  <fwy@alumni.brown.edu>
2068             Benjamin Kosnik  <bkoz@redhat.com>
2069
2070         * testsuite/performance/20_util/allocator.cc: Add map,
2071         deque, set tests.
2072         * testsuite/performance/20_util/allocator_thread.cc: Same.
2073
2074 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
2075
2076         * include/bits/basic_string.h (insert(iterator)): Remove,
2077         non-standard and already scheduled for removal.
2078
2079 2004-02-03  Paolo Carlini  <pcarlini@suse.de>
2080
2081         * include/bits/stl_iterator_base_funcs.h: Minor formatting
2082         and indentation tweaks.
2083         * include/bits/stl_iterator_base_types.h: Likewise.
2084         * include/bits/stl_list.h: Likewise.
2085         * include/bits/stl_map.h: Likewise.
2086         * include/bits/stl_tempbuf.h: Likewise.
2087
2088 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
2089
2090         * include/bits/gslice.h, include/bits/gslice_array.h,
2091         include/bits/indirect_array.h, include/bits/mask_array.h,
2092         include/bits/slice_array.h, include/bits/stl_numeric.h,
2093         include/std/std_valarray.h:  Update copyright years.
2094
2095 2004-02-02  Jerry Quinn  <jlquinn@optonline.net>
2096
2097         * include/bits/gslice.h (gslice):  Document.
2098         * include/bits/gslice_array.h (gslice_array):  Document.
2099         * include/bits/indirect_array (indirect_array):  Document.
2100         * include/bits/mask_array (mask_array):  Document.
2101         * include/bits/slice_array.h (slice,slice_array):  Document.
2102         * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2103         adjacent_difference):  Document
2104         * include/std/std_valarray.h (valarray):  Document.
2105
2106 2004-02-02  Benjamin Kosnik  <bkoz@redhat.com>
2107
2108         * docs/html/19_diagnostics/howto.html: Move verbose terminate
2109         documentation...
2110         * docs/html/18_support/howto.html: Here.
2111         * docs/html/documentation.html: Add reference here.
2112
2113 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2114
2115         * config/locale/gnu/c++locale_internal.h: Remove prototypes
2116         of no longer used GLIBC thread locale functions.
2117
2118 2004-02-02  Eric Christopher  <echristo@redhat.com>
2119             Zack Weinberg  <zack@codesourcery.com>
2120
2121         * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
2122         -finput-charset.
2123         * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2124         * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
2125         * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
2126         * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2127         * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2128         * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2129         * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2130         * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
2131         Ditto.
2132
2133 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2134
2135         * include/bits/stl_function.h: Additional minor tweaks.
2136         * include/bits/stl_multiset.h: Likewise.
2137
2138         * include/bits/stl_queue.h: Minor tweaks.
2139
2140 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2141
2142         PR libstdc++/13976 (continued)
2143         * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2144         Make the second parameter unnamed, to void unused parameter
2145         warnings.
2146         * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2147
2148 2004-02-02  Paolo Carlini  <pcarlini@suse.de>
2149
2150         PR libstdc++/13976
2151         * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2152         Make the second parameter unnamed, to void unused parameter
2153         warnings.
2154         * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2155         * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2156
2157 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2158
2159         * include/bits/stl_algo.h: Additional minor tweaks.
2160         * include/bits/stl_map.h: Likewise.
2161         * include/bits/stl_multimap.h: Likewise.
2162         * include/bits/stl_multiset.h: Likewise.
2163         * include/bits/stl_set.h: Likewise.
2164         * include/bits/stl_tree.h: Likewise.
2165
2166 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2167
2168         * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
2169         Remove, unused.
2170
2171 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2172
2173         * include/bits/stl_function.h: Additional minor tweaks.
2174
2175 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2176
2177         * include/bits/deque.tcc: Wrap overlong lines, constify
2178         a few variables, reformat according to the coding standards.
2179         * include/bits/list.tcc: Likewise.
2180         * include/bits/stl_deque.h: Likewise.
2181         * include/bits/stl_function.h: Likewise.
2182         * include/bits/stl_iterator.h: Likewise.
2183         * include/bits/stl_iterator_base_funcs.h: Likewise.
2184         * include/bits/stl_iterator_base_types.h: Likewise.
2185         * include/bits/stl_list.h: Likewise.
2186         * include/bits/stl_map.h: Likewise.
2187         * include/bits/stl_multimap.h: Likewise.
2188         * include/bits/stl_multiset.h: Likewise.
2189         * include/bits/stl_relops.h: Likewise.
2190         * include/bits/stl_set.h: Likewise.
2191
2192 2004-02-01  Paolo Carlini  <pcarlini@suse.de>
2193
2194         * include/bits/stl_bvector.h: Wrap overlong lines, constify
2195         a few variables, reformat according to the coding standards.
2196         * include/bits/stl_tree.h: Likewise.
2197
2198 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2199
2200         * include/bits/stl_algo.h: Minor additional reformat, add
2201         copyright year.
2202         * include/bits/stl_algobase.h: Add copyright year.
2203
2204 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2205
2206         * include/bits/stl_algo.h: Wrap overlong lines, constify
2207         a few variables, reformat according to the coding standards.
2208         * include/bits/stl_algobase.h: Likewise.
2209         * include/bits/stl_heap.h: Likewise.
2210
2211 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2212
2213         * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
2214
2215         * include/bits/basic_string.h: Fix two comments.
2216
2217 2004-01-31  Per Bothner  <per@bothner.com>
2218
2219         * include/ext/mt_allocator.h
2220         (__mt_alloc::_S_thread_freelist_mutex): Guard with
2221         __GTHREAD_MUTEX_INIT.
2222
2223 2004-01-31  Paolo Carlini  <pcarlini@suse.de>
2224
2225         * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
2226
2227 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
2228
2229         * testsuite/21_strings/basic_string/cons/char/6.cc: New.
2230         * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
2231         * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
2232
2233 2004-01-30  Felix Yen  <fwy@alumni.brown.edu>
2234
2235         * testsuite/performance/20_util/allocator_thread.cc (do_loop):
2236         Don't use clear, but instead assign. Use insert.
2237
2238 2004-01-30  Benjamin Kosnik  <bkoz@redhat.com>
2239
2240         * src/demangle.cc: Add instantiations.
2241         * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
2242         * src/Makefile.in: Regenerate.
2243
2244 2004-01-30  David Edelsohn  <edelsohn@gnu.org>
2245
2246         * src/allocator.cc: Protect _S_get_thread_id() and
2247         _S_thread_key_destr() with #ifdef __GTHREADS.
2248
2249 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
2250
2251         Reshuffle performance testsuite.
2252         * testsuite/performance/allocator.cc, allocator_map_thread.cc,
2253         allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
2254         cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
2255         fstream_seek_write.cc, ifstream_extract_float.cc,
2256         ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
2257         list_create_fill_sort.cc, map_create_fill.cc,
2258         narrow_widen_char.cc, narrow_widen_wchar_t.cc,
2259         ofstream_insert_float.cc, ofstream_insert_int.cc,
2260         string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
2261         wchar_t_out.cc: Split into...
2262         * testsuite/performance/20_util/allocator.cc: New.
2263         * testsuite/performance/20_util/allocator_map_thread.cc: New.
2264         * testsuite/performance/20_util/allocator_thread.cc: New.
2265         * testsuite/performance/21_strings/string_append: New.
2266         * testsuite/performance/22_locale/is_wchar_t.cc: New.
2267         * testsuite/performance/22_locale/narrow_widen_char.cc: New.
2268         * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
2269         * testsuite/performance/22_locale/wchar_t_in.cc: New.
2270         * testsuite/performance/22_locale/wchar_t_length.cc: New.
2271         * testsuite/performance/22_locale/wchar_t_out.cc: New.
2272         * testsuite/performance/23_containers/container_benchmark.cc: New.
2273         * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
2274         * testsuite/performance/23_containers/map_create_fill.cc: New.
2275         * testsuite/performance/26_numerics/complex_norm.cc: New.
2276         * testsuite/performance/27_io/cout_insert_int.cc: New.
2277         * testsuite/performance/27_io/filebuf_copy.cc: New.
2278         * testsuite/performance/27_io/filebuf_sputc.cc: New.
2279         * testsuite/performance/27_io/fstream_seek_write.cc: New.
2280         * testsuite/performance/27_io/ifstream_extract_float.cc: New.
2281         * testsuite/performance/27_io/ifstream_extract_int.cc: New.
2282         * testsuite/performance/27_io/ifstream_getline.cc: New.
2283         * testsuite/performance/27_io/ofstream_insert_float.cc: New.
2284         * testsuite/performance/27_io/ofstream_insert_int.cc: New.
2285
2286 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
2287
2288         * include/bits/basic_string.tcc (_Rep::_S_create):
2289         Never allocate a string bigger than max_size(); always keep
2290         __capacity and __size in sync to avoid memory leaks at
2291         deallocation time.
2292
2293 2004-01-30  Paolo Carlini  <pcarlini@suse.de>
2294
2295         * include/bits/basic_string.tcc (_S_construct(_InIterator,
2296         _InIterator, const _Alloc&, input_iterator_tag)): Simplify
2297         the double loop, streamline.
2298
2299         * include/bits/basic_string.tcc: Very minor tweaks.
2300
2301 2004-01-30  Loren J. Rittle  <ljrittle@acm.org>
2302
2303         * scripts/check_performance: Only compile with $THREAD_FLAG
2304         when test is marked to require it.  Allow multiple
2305         compilations/executions of marked tests.
2306         * testsuite/testsuite_performance.h (report_performance):
2307         Report dynamic thread support status.
2308         (report_header): Likewise.
2309         * testsuite/performance/allocator.cc: Stabilize iteration
2310         count.  Support more allocators.  Mark each allocator test to
2311         run and report independently.
2312         * testsuite/performance/allocator_map_thread.cc: Likewise.
2313         * testsuite/performance/allocator_thread.cc: Likewise.
2314
2315 2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>
2316
2317         * config/local/generic/c_locale.h: Change ::malloc() to new char[].
2318         * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
2319         * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
2320         std::get_temporary_buffer() instead of duplicating its code.
2321         Update to C++STYLE conventions.
2322         * include/std/std_memory.h (get_temporary_buffer): Use ::operator
2323         new() instead of std::malloc().
2324         (return_temporary_buffer): Use ::operator delete() instead of
2325         std::free().
2326
2327 2004-01-29  Benjamin Kosnik  <bkoz@redhat.com>
2328
2329         * include/bits/allocator.h: Temporary switch to new_allocator as
2330         the default to unjam bootstraps.
2331
2332 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
2333
2334         * include/Makefile.am (bits_headers): Remove allocator_traits.h.
2335         * include/Makefile.in: Regenerate.
2336         * include/bits/allocator_traits.h: Remove.
2337         * include/bits/allocator.h: Remove allocator_traits.h include, and
2338         relevant comments.
2339         (allocator): Empty base class, inherit from the underlying allocator.
2340         * src/allocator-inst.cc: Move __pool_alloc instantiation to...
2341         * src/allocator.cc: ...here. New. For the underlying allocators.
2342         Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
2343         * config/linker-map.gnu: Remove __pool_alloc bits.
2344         * src/Makefile.am (sources): Add allocator.cc.
2345         * src/Makefile.in: Regenerate.
2346         * testsuite/20_util/allocator/1.cc: Split second test into...
2347         * testsuite/20_util/allocator/8230.cc: ...this.
2348         * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
2349         typedef to use std::allocatore. Format.
2350         * include/ext/pool_allocator.h: Remove allocator_traits.h include,
2351         _Alloc_traits.
2352         * include/ext/mt_allocator.h (__gnu_cxx): Qualify
2353         __throw_bad_alloc calls. Don't include <memory>.
2354         * include/ext/malloc_allocator.h: Remove <memory> include.
2355         * include/ext/new_allocator.h (new_allocator): Same.
2356         * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
2357         declaration. Switch __alloc to _Alloc.
2358         * include/ext/hashtable.h: Remove __alloc.
2359         * include/backward/alloc.h: Only inject allocator, not
2360         implementation details.
2361
2362         * include/ext/mt_allocator.h: Replace free with delete.
2363
2364 2004-01-28  Benjamin Kosnik  <bkoz@redhat.com>
2365
2366         * src/globals_io.cc: Change to __gnu_internal namespace.
2367         * src/globals_locale.cc: Same.
2368         * src/locale_init.cc: Same.
2369         * src/ios_init.cc: Same.
2370
2371 2004-01-28  Stefan Olsson  <stefan@snon.net>
2372
2373         * include/ext/mt_allocator.h: Replaced all malloc() calls with
2374         operator new(). Added support for the env variable
2375         GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
2376         one in allocate() as well). Fix typos.
2377
2378 2004-01-28  Paolo Carlini  <pcarlini@suse.de>
2379
2380         * include/bits/basic_string.h (_S_create(size_t,
2381         const _Alloc&): Change signature to take two size_type
2382         arguments.
2383         * include/bits/basic_string.tcc (_S_construct(_InIterator,
2384         _InIterator, const _Alloc&, input_iterator_tag)): Update
2385         call, tweak a bit.
2386         (_S_construct(_InIterator, _InIterator, const _Alloc&,
2387         forward_iterator_tag)): Likewise.
2388         (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
2389         (_M_mutate(size_type, size_type, size_type)): Don't
2390         implement the exponential growth policy, demand it to
2391         _S_create, update call and simplify.
2392         (_M_clone(const _Alloc&, size_type)): Likewise.
2393         (_S_create(size_type, size_type, const _Alloc&)): Implement
2394         the growth policy, simplify otherwise.
2395
2396         * include/bits/basic_string.h (_Rep::operator[]): Tweak
2397         signature to take a size_type, consistently with the other
2398         members.
2399
2400 2004-01-27  Benjamin Kosnik  <bkoz@redhat.com>
2401
2402         * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
2403         delete declarations, add include and test variable.
2404
2405 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
2406
2407         * include/bits/codecvt.h, include/bits/locale_facets.h,
2408         include/bits/postypes.h, include/bits/stl_bvector.h,
2409         include/bits/stl_multiset.h, include/bits/stl_set.h,
2410         include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
2411         include/std/std_complex.h:  Document.
2412
2413 2004-01-27  Jerry Quinn  <jlquinn@optonline.net>
2414
2415         PR libstdc++/11584
2416         * include/bits/ios_base.h (ios_base::_M_grow_words):  Add
2417         iword/pword selector.
2418         (ios_base::iword, ios_base::pword):  Use it.
2419         * src/ios.cc (ios_base::_M_grow_words):  Clear _M_word_zero
2420         iword or pword member on alloc failure.
2421         * testsuite/27_io/ios_base/storage/11584.cc:  New test.
2422
2423 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
2424             PJ Darcy  <darcypj@us.ibm.com>
2425
2426         * configure.host: Add support for *-tpf.
2427         * crossconfig.m4: Likewise.
2428         * configure: Regenerate.
2429         * config/os/tpf: New directory.
2430         * config/os/tpf/os_defines.h: New file.
2431         * config/os/tpf/ctype_base.h: Likewise.
2432         * config/os/tpf/ctype_inline.h: Likewise.
2433         * config/os/tpf/ctype_noninline.h: Likewise.
2434
2435 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
2436
2437         PR libstdc++/13884
2438         * include/bits/sstream.tcc: Guard use of extern template.
2439
2440 2004-01-27  Paolo Carlini  <pcarlini@suse.de>
2441
2442         * include/bits/basic_string.tcc
2443         (basic_string(const basic_string&, size_type, size_type),
2444         basic_string(const basic_string&, size_type, size_type,
2445         const _Alloc&)): Avoid unnecessarily constructing iterators.
2446
2447 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
2448
2449         * config/locale/generic/c_locale.cc: Fix throw messages
2450         to use the __N marker.
2451         * config/locale/gnu/c_locale.cc: Likewise.
2452         * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2453         Likewise.
2454         * docs/html/17_intro/C++STYLE: Likewise.
2455         * include/bits/basic_ios.tcc: Likewise.
2456         * include/bits/fstream.tcc: Likewise.
2457         * include/bits/vector.tcc: Likewise.
2458         * include/ext/ropeimpl.h: Likewise.
2459         * include/std/std_bitset.h: Likewise.
2460         * src/ios.cc: Likewise.
2461         * src/locale.cc: Likewise.
2462         * src/localename.cc: Likewise.
2463
2464 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
2465
2466         * include/bits/basic_string.h (_M_replace_aux): Use the
2467         __N marker in throw message.
2468         * include/bits/basic_string.tcc (assign(const _CharT*,
2469         size_type), insert(size_type, const _CharT*, size_type),
2470         replace(size_type, size_type, const _CharT*, size_type),
2471         reserve, _Rep::_S_create, resize, _M_replace_dispatch):
2472         Likewise.
2473
2474         * include/bits/basic_string.h, include/bits/basic_string.tcc:
2475         Fold overlong lines, minor formatting changes.
2476
2477 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
2478
2479         * include/bits/basic_string.h (replace(iterator, iterator,
2480         const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
2481         (replace(iterator, iterator, const _CharT*)): Ditto.
2482         (replace(iterator, iterator, const _CharT*, size_type)):
2483         Add missing _GLIBCXX_DEBUG_PEDASSERT.
2484
2485 2004-01-26  Paolo Carlini  <pcarlini@suse.de>
2486
2487         * include/bits/basic_string.tcc (replace(size_type,
2488         size_type, const _CharT*, size_type)): Implement optimized
2489         in-place algorithm for non-overlapping ranges.
2490         * testsuite/21_strings/basic_string/replace/char/6.cc: New.
2491         * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
2492
2493         * include/bits/basic_string.tcc (insert(size_type,
2494         const _CharT*, size_type)): Tweak slightly.
2495
2496 2004-01-26  Andreas Schwab  <schwab@suse.de>
2497
2498         * config/locale/gnu/monetary_members.cc: Restore locale before
2499         rethrowing exception.
2500
2501 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
2502
2503         * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2504         Define inline here.
2505         * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
2506         Move inline.
2507
2508         * include/bits/basic_string.tcc: Very minor tweaks.
2509
2510 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
2511
2512         * testsuite/performance/string_append.cc: Increase number
2513         of iterations.
2514
2515 2004-01-25  Paolo Carlini  <pcarlini@suse.de>
2516
2517         * include/bits/basic_string.h (erase(size_type, size_type),
2518         erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
2519         instead, thus avoiding redundant check for length_error.
2520
2521         * include/bits/basic_string.h: Tweak some comments.
2522
2523 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
2524
2525         * include/bits/basic_string.tcc (operator+(const _CharT*,
2526         const basic_string&)): No need to go through the append
2527         taking two iterators.
2528
2529 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
2530
2531         * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
2532         Revert last change to use std::min: machine language is worse.
2533         (find_last_of(const _CharT*, size_type, size_type)): Ditto.
2534         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2535         (find_last_not_of(_CharT, size_type)): Ditto.
2536
2537         * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
2538         size_type)): Discard the value returned by _M_check.
2539         (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
2540         (append(const basic_string&, size_type, size_type)): Ditto.
2541         (copy(_CharT*, size_type, size_type)): Ditto.
2542         (compare(size_type, size_type, const basic_string&)): Ditto.
2543         (compare(size_type, size_type, const basic_string&,
2544         size_type, size_type)): Ditto.
2545         (compare(size_type, size_type, const _CharT*)): Ditto.
2546         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2547
2548 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
2549
2550         * include/bits/basic_string.h (insert(size_type,
2551         const basic_string&, size_type, size_type)): Define inline here.
2552         * include/bits/basic_string.tcc (insert(size_type,
2553         const basic_string&, size_type, size_type)): Move inline.
2554
2555 2004-01-24  Paolo Carlini  <pcarlini@suse.de>
2556
2557         * include/bits/basic_string.h (assign(const basic_string&,
2558         size_type, size_type)): Define inline here.
2559         (replace(size_type, size_type, const basic_string&,
2560         size_type, size_type)): Ditto.
2561         (_M_replace_dispatch(iterator, iterator, _InputIterator,
2562         _InputIterator, __false_type)): Only declare.
2563         (_M_replace(iterator, iterator, _InputIterator,
2564         _InputIterator)): Remove.
2565         * include/bits/basic_string.tcc (assign(const basic_string&,
2566         size_type, size_type)): Move inline.
2567         (replace(size_type, size_type, const basic_string&,
2568         size_type, size_type)): Ditto.
2569         (_M_replace_dispatch(iterator, iterator, _InputIterator,
2570         _InputIterator, __false_type)): Define, now does also what
2571         _M_replace did before.
2572         * src/string-inst.cc (_M_replace): Don't instantiate.
2573
2574         * include/bits/basic_string.tcc (find(const _CharT*,
2575         size_type, size_type)): Tidy.
2576         (rfind(_CharT, size_type)): Ditto.
2577         (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
2578         (find_first_not_of(_CharT, size_type)): Ditto.
2579         (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2580         (find_last_not_of(_CharT, size_type)): Ditto.
2581
2582 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
2583
2584         PR libstdc++/13838
2585         * include/debug/bitset (operator|=): Fix typo.
2586         * testsuite/23_containers/bitset/operations/13838.cc: New.
2587
2588 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
2589
2590         * include/bits/basic_string.tcc (insert(size_type,
2591         const _CharT*, size_type __n)): Fix length_error check.
2592         (replace(size_type, size_type, const _CharT*, size_type):
2593         Ditto; call _M_replace_safe.
2594         (_M_replace_aux(size_type, size_type, size_type, _CharT):
2595         Fix length_error check.
2596         (_M_replace(iterator, iterator, _InputIterator,
2597         _InputIterator)): Ditto, tweak.
2598         (_M_replace_safe(size_type, size_type, const _CharT*,
2599         size_type)): Remove length_error check.
2600
2601         * include/bits/basic_string.tcc (append(const basic_string&),
2602         append(const basic_string&, size_type, size_type)): Tweak
2603         comment.
2604
2605         * include/bits/basic_string.tcc (copy(_CharT*, size_type,
2606         size_type)): If __n == 0 don't call traits::copy.
2607
2608 2004-01-23  Stefan Olsson  <stefan@snon.net>
2609
2610         * include/ext/mt_allocator.h: Reduce lock contention.
2611
2612 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
2613
2614         PR libstdc++/13831
2615         * include/bits/fstream.tcc (underflow): Remove unused
2616         variable.
2617         * include/bits/streambuf_iterator.h (equal): Ditto.
2618         * include/bits/locale_facets.h (_M_convert_from_char):
2619         Ditto.
2620
2621 2004-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2622
2623         PR c/13814
2624         * config/linker-map.gnu (nan): Delete.
2625         * libmath/mathconf.h (NAN, nan): Delete.
2626         * linkage.m4 (nan): Don't check for it.
2627         * libmath/nan.c: Delete file.
2628
2629         * config.h.in, configure: Regenerate.
2630
2631 2004-01-23  Paolo Carlini  <pcarlini@suse.de>
2632
2633         * include/bits/basic_string.h (push_back(_CharT)):
2634         Call _M_replace_aux.
2635         (insert(size_type, const basic_string&)): Trivial tweak.
2636         (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
2637         (insert(iterator, _CharT)): Ditto.
2638         (erase(size_type, size_type)): Ditto.
2639         (erase(iterator)): Ditto.
2640         (erase(iterator, iterator)): Ditto.
2641         (replace(size_type, size_type, size_type, _CharT)): Ditto.
2642
2643 2004-01-23  Loren J. Rittle  <ljrittle@acm.org>
2644
2645         libstdc++/13823
2646         * testsuite/performance/allocator_map_thread.cc: New test.
2647
2648 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
2649
2650         * include/bits/locale_facets.tcc
2651         (money_put::do_put(..., long double)): Use the basic_string
2652         constructor for char arrays, not that for C-strings, to pass
2653         __digits to do_put(..., const string_type&): __ws isn't
2654         null-terminated.
2655
2656 2004-01-22  Paolo Carlini  <pcarlini@suse.de>
2657
2658         * include/bits/basic_string.h (_M_replace_safe): Change
2659         signatures to take size_types and const _CharT*.
2660         (_M_replace_aux): Likewise, takes size_types instead of
2661         iterators.
2662         (append(size_type, _CharT)): Update call.
2663         (assign(size_type, _CharT)): Ditto.
2664         (replace(iterator, iterator, size_type, _CharT)): Ditto.
2665         (_M_replace_dispatch(iterator, iterator, _Integer,
2666         _Integer, __true_type)): Ditto.
2667         * include/bits/basic_string.tcc (assign(const _CharT*,
2668         size_type)): Ditto.
2669         (insert(size_type, const _CharT*, size_type)): Ditto.
2670         (replace(size_type, size_type, const _CharT*,
2671         size_type)): Ditto.
2672         (_M_replace(iterator, iterator, _InputIterator,
2673         _InputIterator)): Ditto.
2674         (append(const basic_string&)): Ditto.
2675         (append(const basic_string&, size_type, size_type): Ditto.
2676         (append(const _CharT*, size_type): Ditto.
2677         (_M_replace_safe, _M_replace_safe): Change definitions
2678         accordingly, simplify.
2679         * string-inst.cc (_M_replace_safe): Don't instantiate.
2680
2681 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
2682
2683         * include/bits/basic_string.tcc (append(const basic_string&)):
2684         Revert previous change.
2685         (append(const basic_string&, size_type, size_type)): Revert
2686         previous change, use _M_check and _M_limit.
2687
2688 2004-01-21  Paolo Carlini  <pcarlini@suse.de>
2689
2690         * include/bits/basic_string.h (_M_check): Change to return
2691         a checked __pos and take an additional const char* argument.
2692         (_M_fold): Rename to _M_limit, change to return a size_type,
2693         corresponding to the __off limited to the actual length.
2694         (insert(size_type, size_type, _CharT)): Update call, call
2695         replace.
2696         (insert(iterator, _CharT)): Call replace(iterator, iterator,
2697         size_type, _CharT) instead.
2698         (erase(size_type, size_type)): Update calls.
2699         (replace(size_type, size_type, size_type, _CharT)): Ditto.
2700         (substr(size_type, size_type)): Use _M_check.
2701         * include/bits/basic_string.tcc (basic_string(const basic_string&,
2702         size_type, size_type)): Update calls.
2703         (basic_string(const basic_string&, size_type, size_type,
2704         const _Alloc&)): Ditto.
2705         (assign(const basic_string&, size_type, size_type)): Use the
2706         new _M_check and _M_limit.
2707         (insert(size_type, const basic_string&, size_type, size_type):
2708         Ditto.
2709         (insert(size_type, const _CharT*, size_type)): Ditto.
2710         (replace(size_type, size_type, const _CharT*, size_type): Ditto.
2711         (replace(size_type, size_type, const basic_string&,
2712         size_type, size_type)): Ditto.
2713         (append(const basic_string&)): Ditto.
2714         (append(const basic_string&, size_type, size_type)): Ditto.
2715         (copy(_CharT*, size_type, size_type)): Ditto.
2716         (compare(size_type, size_type, const basic_string&)): Ditto.
2717         (compare(size_type, size_type, const basic_string&,size_type,
2718         size_type)): Ditto.
2719         (compare(size_type, size_type, const _CharT*)): Ditto.
2720         (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2721
2722 2004-01-19  Stefan Olsson  <stefan@snon.net>
2723
2724         * include/ext/mt_allocator.h: If a thread, when it dies, still has
2725         memory on it's freelist this memory is not returned to global
2726         list. Simplification of deallocate so that memory is always
2727         returned to the calling thread id's freelist instead of to
2728         global. Fix typos. Add volatile where appropriate.
2729
2730 2004-01-19  Loren J. Rittle  <ljrittle@acm.org>
2731
2732         * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
2733         * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test.  Like -2 but
2734         use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
2735
2736 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
2737
2738         * src/debug.cc: Make sure all the names are prefixed with
2739         double (or single) underscore.
2740
2741 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
2742
2743         * src/debug.cc: Trivial formatting change.
2744
2745 2004-01-19  Paolo Carlini  <pcarlini@suse.de>
2746
2747         * include/bits/basic_string.tcc (_S_construct(size_type,
2748         _CharT, const _Alloc&)): Remove redundant try/catch.
2749         (_M_mutate(size_type, size_type, size_type)): Ditto.
2750         (_M_clone(const _Alloc&, size_type)): Ditto.
2751
2752 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
2753
2754         * include/bits/basic_string.h (c_str()): Simplify, due to
2755         21.3.4 the internal representation is always kept null-terminated.
2756         * include/bits/basic_string.tcc (_M_clone): Null-terminate.
2757         * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
2758         * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
2759         Ditto.
2760
2761 2004-01-18  Paolo Carlini  <pcarlini@suse.de>
2762
2763         * include/bits/basic_string.h (append(size_type, _CharT)):
2764         Moved inline, just call _M_replace_aux, no source iterators at
2765         risk of being clobbered.
2766         (assign(size_type, _CharT)): Call directly _M_replace_aux.
2767         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
2768         input_iterator_tag)): Remove fifth unused argument.
2769         (_M_replace_dispatch(iterator, iterator, _InputIterator,
2770         _InputIterator, __false_type)): Update call.
2771         * include/bits/basic_string.tcc (replace(size_type, size_type,
2772         const _CharT*, size_type)): Update call.
2773         (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
2774         throw string literal.
2775         (_M_replace_safe(iterator, iterator, _ForwardIterator,
2776         _ForwardIterator)): Likewise.
2777         (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
2778         input_iterator_tag)): Remove fifth unused argument.
2779         (append(size_type __n, _CharT __c)): Move inline.
2780         * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
2781         const C*, const C*, input_iterator_tag)): Remove fifth unused
2782         argument.
2783
2784 2004-01-16  Benjamin Kosnik  <bkoz@redhat.com>
2785
2786         * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
2787         * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
2788
2789 2004-01-16  Danny Smith  <dannysmith@users.sourceforge.net>
2790
2791         * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
2792         mkfifo for mingw32.
2793
2794 2004-01-15  Stefan Olsson  <stefan@snon.net>
2795
2796         * include/ext/mt_allocator.h: Reuse thread id's as soon as
2797         possible by changing the behaviour of thread_freelist to do
2798         push_front when threads die instead of push_back.
2799
2800 2004-01-14  Paolo Carlini  <pcarlini@suse.de>
2801
2802         * include/bits/locale_facets.h (struct __numpunct_cache):
2803         Add member _M_grouping_size, caching the length of _M_grouping.
2804         (__numpunct_cache<>::_M_cache): Assign the latter.
2805         (__verify_grouping): Move declaration...
2806         * include/bits/locale_facets.tcc (__verify_grouping):
2807         ... here, change signature to take a const char* and a size_t
2808         for the grouping; not a template anymore.
2809         (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
2810         Likewise change signature and tweak consistently.
2811         (num_get::_M_extract_float, num_get::_M_extract_int,
2812         num_put::_M_insert_int, num_put::_M_insert_float,
2813         money_get::do_get(string_type&), money_get::do_put(string_type)):
2814         Update callers.
2815         * config/locale/generic/numeric_members.cc
2816         (numpunct<>::_M_initialize_numpunct): Assign the new member.
2817         * config/locale/gnu/numeric_members.cc
2818         (numpunct<>::_M_initialize_numpunct): Likewise.
2819         * src/locale-inst.cc (__add_grouping): Tweak signature.
2820         (__verify_grouping): Don't instantiate, not a template anymore.
2821
2822         * include/bits/locale_facets.h: Rename _M_truename_len ->
2823         _M_truename_size, _M_falsename_len -> _M_falsename_size.
2824         * include/bits/locale_facets.tcc: Likewise.
2825         * config/locale/generic/numeric_members.cc: Likewise.
2826         * config/locale/gnu/numeric_members.cc: Likewise.
2827
2828 2004-01-14  Stefan Olsson  <stefan@snon.net>
2829
2830         * include/ext/mt_allocator.h: Fixups.
2831         * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
2832         * testsuite/performance/allocator_thread.cc: Same.
2833
2834 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
2835
2836         * testsuite/performance/ifstream_extract_float.cc: Add higher
2837         precision tests.
2838         * testsuite/performance/ofstream_insert_float.cc: Same.
2839
2840 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
2841
2842         * src/locale-misc-inst.cc (__convert_from_v(long),
2843         __convert_from_v(unsigned long), __convert_from_v(long long),
2844         __convert_from_v(unsigned long long)): Remove, unused.
2845
2846 2004-01-13  Benjamin Kosnik  <bkoz@redhat.com>
2847
2848         * testsuite/performance/ifstream_extract_float.cc: New.
2849         * testsuite/performance/ofstream_insert_float.cc: Float generation
2850         matches above.
2851
2852         * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
2853         * 20_util/auto_ptr/1.cc: ...this.
2854         * 20_util/auto_ptr/2.cc: Same.
2855         * 20_util/auto_ptr/3.cc: Same.
2856         * 20_util/auto_ptr/3946.cc: Same.
2857         * 20_util/auto_ptr/4.cc: Same.
2858         * 20_util/auto_ptr/5.cc: Same.
2859         * 20_util/auto_ptr/6.cc: Same.
2860         * 20_util/auto_ptr/7.cc: Same.
2861         * 20_util/auto_ptr/assign_neg.cc
2862         * 20_util/pairs.cc: Break into...
2863         * 20_util/pair/1.cc: ...this.
2864         * 20_util/pair/2.cc: Same.
2865         * 20_util/pair/3.cc: Same.
2866         * 20_util/pair/4.cc: Same.
2867
2868 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
2869
2870         * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
2871         Set correctly just basefield, the only group that matters.
2872
2873 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
2874
2875         * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
2876         (_Rope_rep_base): Inherit directly from the rope allocator;
2877         use rebinding instead of _Alloc_traits; pick up data member
2878         from _Rope_rep_alloc_base.
2879         (_Rope_alloc_base): Eliminate.
2880         (_Rope_base): Inherit directly from the rope allocator; use
2881         rebinding instead of _Alloc_traits; pick up data member from
2882         _Rope_alloc_base.
2883         (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
2884         rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
2885
2886 2004-01-13  Paolo Carlini  <pcarlini@suse.de>
2887
2888         PR libstdc++/13650
2889         * include/bits/basic_string.tcc (compare(size_type, size_type,
2890         const _CharT*, size_type)): Implement correctly the resolution
2891         of DR 5: basically, s is a char array, -not- a C string.
2892         * include/bits/basic_string.h: Tweak some comments.
2893         * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
2894         * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
2895
2896 2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>
2897
2898         * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
2899         Solaris.
2900
2901 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
2902
2903         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
2904         Use try_mkfifo.
2905         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
2906         Likewise.
2907
2908 2004-01-12  Paolo Carlini  <pcarlini@suse.de>
2909
2910         * include/bits/locale_facets.h (struct __numpunct_cache):
2911         Add members _M_truename_len and _M_falsename_len, caching
2912         the lengths of _M_truename and _M_falsename.
2913         (__numpunct_cache<>::_M_cache): Assign the latter.
2914         * include/bits/locale_facets.tcc (num_get::do_get(bool&),
2915         num_put::do_put(bool)): Use the new members, thus avoiding
2916         computing string lengths again and again.
2917         * config/locale/generic/numeric_members.cc
2918         (numpunct<>::_M_initialize_numpunct): Assign the new members.
2919         * config/locale/gnu/numeric_members.cc
2920         (numpunct<>::_M_initialize_numpunct): Likewise.
2921
2922 2004-01-12  Mark Mitchell  <mark@codesourcery.com>
2923
2924         * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
2925         * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
2926         it.
2927         * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
2928         and remove Cygwin XFAIL.
2929         * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
2930         * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
2931         * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
2932         * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
2933         Likewise.
2934         * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
2935         * testsuite/27_io/objects/char/7.cc: Likewise.
2936         * testsuite/27_io/objects/char/9661-1.cc: Likewise.
2937         * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
2938         * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
2939
2940 2004-01-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2941
2942         * include/std/std_complex.h (std::complex<>::real): Return a
2943         reference. Add non-const overload.
2944         (std::complex<>::real): Likewise.
2945         (std::real): Likewise.
2946         (std::imag): Likewise.
2947         (std::operator+): Tidy.
2948         (std::operator-): Likewise.
2949         (std::operator*): Likewise.
2950         (std::operator/): Likewise.
2951         (std::operator>>): Likewise.
2952
2953 2004-01-11  Paolo Carlini  <pcarlini@suse.de>
2954
2955         PR libstdc++/13582
2956         * include/bits/fstream.tcc (imbue): Exploit the external
2957         buffer to imbue 'on the fly' a new locale and convert its
2958         remainder with the new codecvt facet.
2959         (underflow): Tweak slightly to deal with this special case.
2960         * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
2961         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
2962         * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
2963         * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
2964         * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
2965
2966 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
2967
2968         * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
2969         Import Revision 28.
2970
2971 2004-01-10  Paolo Carlini  <pcarlini@suse.de>
2972
2973         PR libstdc++/13630
2974         * include/bits/locale_classes.h (class locale): Fix category
2975         typedef.
2976         * testsuite/22_locale/locale/13630.cc: Add.
2977
2978 2004-01-10  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2979
2980         * include/bits/locale_facets.h: Make a name really dependent. This
2981         will be needed when Core Issue 224 is implemented.
2982
2983 2004-01-09  Paolo Carlini  <pcarlini@suse.de>
2984
2985         * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
2986         * testsuite/performance/allocator_thread.cc: Likewise.
2987
2988 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
2989
2990         * crossconfig.m4: Add LFS, io bits to linux cross config.
2991         * acconfig.h: Remove obsolete bits, reorder.
2992         * config.h.in: Regenerate.
2993         * aclocal.m4: Same.
2994         * configure: Same.
2995
2996 2004-01-07  Gawain Bolton  <gp.bolton@computer.org>
2997
2998         * include/bits/stl_list.h:
2999         * include/bits/list.tc:
3000         * src/list.cc:
3001         Performance enhancements for destructor, push_front(),
3002         push_back(), pop_front(), pop_back(), sort()
3003         Eliminated static_casts where possible.
3004         Moved code out of header files into new src/list.cc
3005         implementation file for library where possible.
3006         Remove inheritance from iterator class and create separate
3007         classes for non-constant and constant iterators.
3008         * include/bits/stl_tree.h (_Rb_tree class):
3009         * src/tree.cc:
3010         Only erase contents in destructor.
3011         Eliminate unnecessary initialization in assignment operator.
3012         Optimize for the nominal case by not checking whether
3013         container is empty in clear().
3014         Re-order test in _M_insert() to improve performance.
3015         Move initialization of new node's left & right pointers to
3016         src/tree.cc to where new node's colour is initialized
3017         and to reduce the amount of inline code.
3018         Use  _M_leftmost() and _M_end() to improve readability where
3019         appropriate.
3020         Create separate classes for non-constant and constant
3021         iterators to clarify code, avoid extra template parameters and
3022         casting away constness.
3023
3024 2004-01-07  Benjamin Kosnik  <bkoz@redhat.com>
3025
3026         * src/Makefile.am (sources): Add list.cc, tree.cc.
3027         * src/stl_tree.cc: Move to...
3028         * src/tree.cc: ...here.
3029         * src/list.cc: Add.
3030         * config/linker-map.gnu: Tweaks.
3031         * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3032         * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3033
3034         * bits/stl_vector.h: Column wrap comments.
3035
3036 2004-01-07  Loren J. Rittle  <ljrittle@acm.org>
3037
3038         (re-open) PR libstdc++/12658
3039         * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3040         (locale::global): Likewise.
3041
3042 2004-01-07  Paolo Carlini  <pcarlini@suse.de>
3043
3044         * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3045         Remove redundant #include.
3046         * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3047         * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3048         re-enable normal testing.
3049         * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3050         #include.
3051         * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3052         * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3053         Likewise.
3054         * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3055         Likewise.
3056         * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3057         Likewise.
3058         * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3059         Likewise.
3060         * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3061         Likewise.
3062         * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3063         Likewise.
3064         * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3065         Likewise.
3066         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3067         More properly, #include <locale>.
3068         * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3069         Remove redundant #include.
3070         * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3071         * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3072         redundant DejaGnu directive.
3073         * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3074         redundant #include.
3075
3076 2004-01-06  Benjamin Kosnik  <bkoz@redhat.com>
3077             Stefan Olsson  <stefan@snon.net>
3078
3079         * scripts/check_performance: Use -pthread.
3080         * testsuite/performance/allocator.cc: Tweaks, add list.
3081         * testsuite/performance/allocator_thread.cc: New.
3082
3083 2004-01-06  Jerry Quinn  <jlquinn@optonline.net>
3084
3085         * include/bits/locale_facets.h: Document public classes and
3086         functions.
3087         * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3088         Add comment.
3089
3090 2004-01-06  Paolo Carlini  <pcarlini@suse.de>
3091
3092         * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3093         Remove redundant #includes.
3094         * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3095         Likewise.
3096         * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3097         Likewise.
3098         * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3099         * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3100         * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3101         * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
3102         * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
3103         * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
3104         * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
3105         * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
3106         * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
3107         * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
3108         * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
3109         * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
3110         * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
3111         * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
3112         * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
3113         Likewise.
3114         * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
3115         Likewise.
3116         * testsuite/27_io/basic_istream/readsome/char/8258.cc:
3117         Likewise.
3118         * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
3119         Likewise.
3120         * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
3121         Likewise.
3122         * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
3123         * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
3124         * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
3125
3126 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
3127
3128         * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3129         Remove redundant #includes.
3130         * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
3131         Likewise.
3132         * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
3133         Likewise.
3134         * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
3135         Likewise.
3136         * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
3137         Likewise.
3138         * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
3139         Likewise.
3140         * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3141         Likewise.
3142         * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3143         Likewise.
3144         * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3145         Likewise.
3146         * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3147         Likewise.
3148         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
3149         Likewise.
3150         * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
3151         Likewise.
3152         * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3153         Likewise.
3154
3155 2004-01-04  Mark Mitchell  <mark@codesourcery.com>
3156
3157         PR c++/12226
3158         * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
3159         constructor.
3160         * testsuite/27_io/basic_fstream/4.cc: Likewise.
3161         * testsuite/27_io/basic_ifstream/4.cc: Likewise.
3162         * testsuite/27_io/basic_ios/4.cc: Likewise.
3163         * testsuite/27_io/basic_iostream/4.cc: Likewise.
3164         * testsuite/27_io/basic_istream/4.cc: Likewise.
3165         * testsuite/27_io/basic_istingstream/4.cc: Likewise.
3166         * testsuite/27_io/basic_ofstream/4.cc: Likewise.
3167         * testsuite/27_io/basic_ostream/4.cc: Likewise.
3168         * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
3169         * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
3170         * testsuite/27_io/basic_stringstream/4.cc: Likewise.
3171
3172 2004-01-04  Paolo Carlini  <pcarlini@suse.de>
3173
3174         * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
3175         Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
3176         always use double underscored names.
3177         * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
3178         Likewise.
3179         * include/bits/locale_facets.h (struct __numpunct_cache):
3180         Dimension _M_atoms_out and _M_atoms_in one position smaller.
3181         (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
3182         and _M_atoms_in.