]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/ChangeLog
filter.sed: Rename _GLIBCXX_STD to std.
[thirdparty/gcc.git] / libstdc++-v3 / ChangeLog
CommitLineData
57ffad2b
BK
12004-06-08 Benjamin Kosnik <bkoz@redhat.com>
2
3 * docs/doxygen/filter.sed: Rename _GLIBCXX_STD to std.
4 * docs/doxygen/mainpage.html: Remove links.
5
37f3105a
JM
62004-06-08 Jason Merrill <jason@redhat.com>
7
8 * config/linker-map.gnu: Use wildcards for
9 __basic_file::{xsgetn,xsputn,seekoff,xsputn_2}.
10
5f1a5ede
PC
112004-06-08 Paolo Carlini <pcarlini@suse.de>
12
13 * include/ext/pool_allocator.h: Convert to a global free-list,
14 as per the original SGI/HP design: move the implementation
15 details to struct __pool_base, from which __pool_alloc derives.
16 * src/allocator.cc: Instantiate __pool_base.
17
345b912f
DM
182004-06-07 Dhruv Matani <dhruvbird@gmx.net>
19 Paolo Carlini <pcarlini@suse.de>
20
21 * testsuite/testsuite_performance.h
22 (resource_counter::allocated_memory): Make it return the right
23 number of bytes requested by the allocators/application. This is
24 the sbrk+mmaped memory.
25
b53dcf3e
GDR
262004-06-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
27
28 * include/std/std_complex.h (log): Tidy.
29
7c9fee34
BK
302004-05-31 Benjamin Kosnik <bkoz@redhat.com>
31
32 * config/linker-map.gnu (GLIBCXX_3.4.1): Add.
33 * testsuite/testsuite_abi.cc: Same.
34 * configure.ac (libtool_VERSION): Bump to 6:1:0.
35 * configure: Regenerate.
36 * aclocal.m4: Regenerate.
37
a4ddde0d
GDR
382004-05-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
39
40 * include/std/std_complex.h (complex<_Tp>): Properly indent
41 to follow C++STYLE.
42 (complex<>::__rep): New.
43 (__complex_abs): New. Dispatch to built-ins.
44 (abs): Use them.
45 (__complex_arg): New. Dispatch to built-ins.
46 (arg): Use it.
47 (__complex_cos): New. Dispatch to built-ins.
48 (cos): Use it.
49 (__complex_cosh): New. Dispatch to built-ins.
50 (cosh): Use it.
51 (__complex_exp): New. Dispatch to built-ins.
52 (exp): Use it.
53 (__complex_log): New. Dispatch to built-ins.
54 (log): Use it.
55 (__complex_sin): New. Dispatch to built-ins.
56 (sin): Use it.
57 (__complex_sinh): New. Dispatch to built-ins.
58 (sinh): Use it.
59 (__complex_sqrt): New. Dispatch to built-ins.
60 (sqrt): Use it.
61 (__complex_tan): New. Dispatch to built-ins.
62 (tan): Use it.
63 (__complex_tanh): New. Dispatch to built-ins.
64 (tanh): Use it.
65 (__complex_pow): New. Dispatch to built-ins.
66 (pow): Use it.
67
803cb0b5
RK
682004-05-29 Richard B. Kreckel <Richard.Kreckel@Framatome-ANP.com>
69 Benjamin Kosnik <bkoz@redhat.com>
70
71 PR libstdc++/14600
72 * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
73 * include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
74 * config/io/basic_file_stdio.cc (__basic_file::file): New.
75 * config/io/basic_file_stdio.h: Define.
76
e8a382b7
BK
772004-05-27 Benjamin Kosnik <bkoz@redhat.com>
78
79 PR libstdc++/15675
80 * docs/html/documentation.html: Update doxygen links for 3.4.0.
81
a9c70186
JB
822004-05-27 Jan Beulich <jbeulich@novell.com>
83
84 * scripts/create_testsuite_files: Tweak.
85
9874adaf
BK
862004-05-25 Benjamin Kosnik <bkoz@redhat.com>
87
88 PR libstdc++/15489
89 * scripts/create_testsuite_files: Revert xtype change, add non-GNU
90 bits to do the same thing.
91
b1c5b5a0
PC
922004-05-24 Paolo Carlini <pcarlini@suse.de>
93
94 * include/bits/istream.tcc (ignore): Correctly deal with
95 n == numeric_limits<streamsize>::max().
96 * testsuite/27_io/basic_istream/ignore/char/2.cc: New.
97
98 * include/bits/istream.tcc (basic_istream<>::getline): Prefer
99 '_M_gcount + 1 < __n' to '--__n; _M_gcount < __n', just in case
100 __n == numeric_limits<>::min().
101
102 * include/bits/istream.tcc: Minor tweaks.
103
104 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
105 Tighten.
106 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
107 Likewise.
108 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
109 Likewise.
110 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
111 Likewise.
112 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
113
26c691a8
BK
1142004-05-22 Benjamin Kosnik <bkoz@redhat.com>
115
116 PR libstdc++/12854
117 Fixups for -Weffc++.
118 * include/bits/basic_string.h (basic_string::operator=): Return
119 pointer to this instead of result of assign. Although redundant,
120 this doesn't impact resultant codegen.
121
122 * include/bits/locale_facets.h (__numpunct_cache): Declare
123 assignment opxserator and copy constructor private.
124 (__timepunct_cache): Same.
125 (__moneypunct_cache): Same.
126 (collate): Use member initialization list for _M_c_locale_collate.
127 * config/locale/gnu/messages_members.h: Same.
128 * config/locale/gnu/time_members.h (__timepunct): Same.
129 * src/codecvt.cc: Use member initialization list to initialize
130 _M_c_locale_codecvt.
131 * src/ctype.cc: Same, with _M_c_locale_ctype and _M_narrow_ok.
132 * config/os/gnu-linux/ctype_noninline.h: Same.
133 * src/locale.cc (_Impl): Same.
134 * src/locale_init.cc: Same.
135 * src/localename.cc: Same.
136
137 * include/bits/basic_ios.h (basic_ios): Complete member
138 initialization list.
139 * include/bits/istream.tcc (basic_istream::sentry): Same.
140 * include/bits/ostream.tcc (basic_ostream::sentry): Same.
141 * include/bits/fstream.tcc (basic_filebuf): Add _M_lock and
142 _M_pback to member initialization list.
143 * include/std/std_streambuf.h: Same.
144 * include/std/std_sstream.h: Same, for _M_mode.
145 * src/ios.cc (ios_base): Same.
146
147 * include/ext/rope: Make derived classes match exception
148
149 specifications. Add copy constructors and assignment operators.
150
151 * include/debug/safe_base.h (_Safe_sequence_base): Declare copy
152 constructor and assignment operator protected.
153 (_Safe_iterator_base): Same.
154 * include/debug/formatter.h (_Error_formatter): Define copy
155 constructor and assignment operator.
156
157 * include/backward/strstream: Declare assignment operator and copy
158 constructor private.
159
f4a1faa5
BK
1602004-05-22 Benjamin Kosnik <bkoz@redhat.com>
161
162 * testsuite/testsuite_hooks.h (func_callback): Declare copy
163 constructor and assignment operator private.
164 * testsuite/23_containers/deque/cons/clear_allocator.cc: Match
165 exception specifications of base class.
166 * testsuite/23_containers/list/cons/clear_allocator.cc: Same.
167 * testsuite/23_containers/vector/cons/clear_allocator.cc: Same.
168 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
169
52ceb039
BK
1702004-05-22 Benjamin Kosnik <bkoz@redhat.com>
171
172 * libsupc++/cxxabi.h: Remove duplicated and useless public and
173 private keywords in class declarations. Format. Use
174 stddef.h. Expose declarations to "C" compilation.
175 * libsupc++/tinfo.cc (__upcast_result): Add copy constructor and
176 assignment operator.
177 (__dyncast_result): Same.
178 * libsupc++/vec.cc (uncatch_exception): Same, use member
179 initialization list.
180
6ad70bf2
BK
1812004-05-22 Benjamin Kosnik <bkoz@redhat.com>
182
183 * testsuite/abi_check.cc: Add unistd.h.
184
fea6ecb7
PC
1852004-05-22 Paolo Carlini <pcarlini@suse.de>
186
187 PR libstdc++/15565
188 * include/bits/locale_facets.tcc (__int_to_char(unsigned long),
189 __int_to_char(unsigned long long)): Showpos is not relevant
190 for unsigned types.
191 * testsuite/22_locale/num_put/put/char/15565.cc: New.
192 * testsuite/22_locale/num_put/put/wchar_t/15565.cc: New.
193
194 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Use L for the fill
195 char.
196 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Likewise.
197 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Likewise.
198 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
199 * testsuite/22_locale/num_put/put/wchar_t/5.cc: Likewise.
200 * testsuite/22_locale/num_put/put/wchar_t/6.cc: Likewise.
201 * testsuite/22_locale/num_put/put/wchar_t/8.cc: Likewise.
202
2461ecbe
MK
2032004-05-21 Matthias Klose <doko@debian.org>
204
205 * docs/doxygen/run_doxygen: Bump required version.
206
a3e14d39
BK
2072004-05-21 Benjamin Kosnik <bkoz@redhat.com>
208
209 * docs/html/abi.html (libgcc_s): Additions suggested by Matthias Klose.
210 * docs/doxygen/Intro.3: Subtractions suggested by Phil Edwards.
211
32da6208
PC
2122004-05-21 Paolo Carlini <pcarlini@suse.de>
213
214 * include/bits/istream.tcc (ignore): Remove redundant line.
215 (readsome): Tidy, closely following 27.6.1.3, p30.
216
3adf6cad
PC
2172004-05-20 Paolo Carlini <pcarlini@suse.de>
218
219 * include/bits/istream.tcc (operator>>(basic_istream<>&,
220 basic_string<>&)): Use a temporary buffer, thus avoiding
221 reallocation for common case.
222 * testsuite/21_strings/basic_string/inserters_extractors/char/11.cc:
223 New.
224 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc:
225 Likewise.
226
227 * include/bits/istream.tcc: Const-ification of a few variables.
228
229 * include/bits/ostream.tcc: Trivial formatting fixes and
230 const-ification of some variables.
231
66fda8b2
BK
2322004-05-20 Benjamin Kosnik <bkoz@redhat.com>
233
234 PR libstdc++/15123
235 PR libstdc++/13928
236 * docs/doxygen/Intro.3: Remove Allocators.3.
237 Add new extension headers, extension namespace list.
238 * docs/doxygen/run_doxygen (problematic): Remove Allocators.3
239 Rename GLIBCXXSTD names to std::. Rename __gnu_debug to
240 __gnu_debug::. Remove __policy_ renames.
241 * docs/doxygen/guide.html: Add dot note.
242 * docs/doxygen/stdheader.cc: Edit, add files.
243 * docs/doxygen/user.cfg.in: Regenerate with Doxygen 1.3.7.
244
c6618c03
JW
2452004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
246
247 * include/ext/stdio_filebuf.h: Update comments to reflect PR 11691.
248
b79634e3
JB
2492004-05-18 Jan Beulich <jbeulich@novell.com>
250
251 PR libstdc++/15489
252 * scripts/create_testsuite_files: Also find source files through
253 symbolic links.
254
2552004-05-18 Jan Beulich <jbeulich@novell.com>
256
257 PR libstdc++/15488
258 * testsuite/lib/libstdc++.exp: Make test files writable.
259
2ab20654
PC
2602004-05-18 Paolo Carlini <pcarlini@suse.de>
261
262 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Minor
263 tweaks.
264
2652004-05-18 Dhruv Matani <dhruvbird@gmx.net>
266
267 * include/ext/mt_allocator.h:(__mt_alloc::allocate): Re-write
268 allocation loop which removes blocks from the global free list
269 from O(N) to O(1) when the required blocks are <= the number
270 available.
271
319da9da
JW
2722004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
273
274 * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
275
261e5b9e
BK
2762004-05-17 Benjamin Kosnik <bkoz@redhat.com>
277
278 * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
279 * testsuite/23_containers/deque/14340.cc: New.
280 * testsuite/23_containers/list/14340.cc: New.
281 * testsuite/23_containers/map/14340.cc: New.
282 * testsuite/23_containers/multimap/14340.cc: New.
283 * testsuite/23_containers/multiset/14340.cc: New.
284 * testsuite/23_containers/set/14340.cc: New.
285 * testsuite/23_containers/vector/14340.cc: New.
286
2872004-05-17 Douglas Gregor <gregod@cs.rpi.edu>
288
289 PR libstdc++/14340
290 * include/debug/safe_iterator.h (_Safe_iterator converting
291 constructor): Only allow declaration to instantiate when the
292 incoming _Safe_iterator has exactly the right iterator type.
293
b2342b54
JW
2942004-05-17 Jonathan Wakely <redi@gcc.gnu.org>
295
296 * include/bits/boost_concept_check.h: Fix old attribute syntax.
297 * testsuite/23_containers/map/modifiers/swap.cc: Define operator<
298 to pass concept-checks.
299 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
300 * testsuite/23_containers/set/modifiers/swap.cc: Same.
301 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
302
5a4db26d
PC
3032004-05-16 Paolo Carlini <pcarlini@suse.de>
304
305 * include/std/std_bitset.h: Minor formatting fixes.
306
08f7c2eb
PC
3072004-05-16 Paolo Carlini <pcarlini@suse.de>
308
309 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
310 Consistently update __bin._M_free[0].
311 (__mt_alloc<>::allocate): When __bin._M_first[0] != NULL use
312 __bin._M_free[0] to simplify the while loop (i.e., the number
313 of iterations becomes known at the outset).
314
5c33bb62
PC
3152004-05-15 Paolo Carlini <pcarlini@suse.de>
316
317 * include/std/std_bitset.h: Trivial formatting fixes.
318
394ef95e
PC
3192004-05-14 Paolo Carlini <pcarlini@suse.de>
320 Ivan Godard <igodard@pacbell.net>
321
322 PR libstdc++/15361
323 * include/std/std_bitset.h (_Base_bitset<_Nw>::_M_do_find_next): Fix.
324 * testsuite/23_containers/bitset/ext/15361.cc: New.
325
7549d7f2
BK
3262004-05-13 Benjamin Kosnik <bkoz@redhat.com>
327
328 PR libstdc++/15046
329 * crossconfig.m4: Add C99 math bits for linux crosses.
330 * configure: Regenerate.
331
95b147fe
SM
3322004-05-13 Simon Marshall <simon.marshall@misys.com>
333 Benjamin Kosnik <bkoz@redhat.com>
334
335 PR libstdc++/15090
336 * include/bits/locale_facets.h: Fix for -fno-for-scope.
337 * include/debug/safe_sequence.h: Same.
338 * include/debug/safe_iterator.tcc: Same.
339 * src/debug.cc: Same.
340 * src/locale.cc: Same.
341 * src/locale_init.cc: Same.
342 * src/localename.cc: Same.
343 * config/locale/gnu/ctype_members.cc: Same.
344 * config/locale/gnu/numeric_members.cc: Same.
345 * testsuite/testsuite_abi.cc: Same.
346 * testsuite/testsuite_hooks.cc: Same.
347
d7f30833
JW
3482004-05-13 Jonathan Wakely <redi@gcc.gnu.org>
349
350 * docs/html/abi.html: Document effect of -fabi-version on value
351 of __GXX_ABI_VERSION, and that it's defined in c-cppbuiltin.c.
352 Fix markup.
353
4b351c6e
BK
3542004-05-13 Benjamin Kosnik <bkoz@redhat.com>
355
356 PR libstdc++/15074
357 * docs/html/faq/index.html: Update docs for libsupc++ usage.
358
5c61a863
BK
3592004-05-13 Benjamin Kosnik <bkoz@redhat.com>
360
361 PR libstdc++/15412
362 * include/bits/stl_threads.h (_GLIBCXX_mutex): Move to namespace
363 __gnu_internal.
364 (_GLIBCXX_mutex_address): Same.
365 (_GLIBCXX_once): Same.
366 (_GLIBCXX_mutex_init): Same.
367 (_GLIBCXX_mutex_address_init): Same.
368
4b260c20
BK
3692004-05-13 Benjamin Kosnik <bkoz@redhat.com>
370
371 * docs/html/abi.html: New.
372 * docs/html/abi.txt: Remove.
373 * docs/html/documentation.html: Add link.
374 * testsuite/Makefile.am: Add files.
375 * testsuite/Makefile.in: Regenerated.
376 * testsuite/abi_check.cc: Move and modify code into...
377 * testsuite/testsuite_abi.cc: Add.
378 * testsuite/testsuite_abi.h: Add.
379
380 * docs/html/17_intro/TODO: Update.
381 * include/bits/stl_pair.h: Format.
382
ce120bb2
MK
3832004-05-06 Matthias Klose <doko@debian.org>
384
385 * include/backward/iterator.h: Add GPL copyright info,
386 with exception clause.
387 * include/bits/boost_concept_check.h: Likewise.
388 * include
389 * libsupc++/tinfo.h: Likewise.
390 * po/string_literals.cc: Likewise.
391
dc7c62ae
AT
3922004-05-03 Andreas Tobler <a.tobler@schweiz.ch>
393
394 * acinclude.m4: Replace -W with more speaking -Wextra.
395 * configure: Rebuilt.
396
4df9c41d
PC
3972004-05-03 Paolo Carlini <pcarlini@suse.de>
398
399 Optimize locale::_M_impl->_M_names for the most common cases:
400 !_M_names[0] means unnamed; !_M_names[1] means all the categories
401 the same name (_M_names[0] && _M_names[1] means that the full set
402 of _M_names must be processed, the general case).
403 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name):
404 Tweak, saving work when !_M_names[1].
405 (locale::locale(const locale&, _Facet*): Simplify: now just setting
406 _M_names[0] = 0 means unnamed.
407 * src/locale.cc (locale::operator==): Deal first with the common,
408 easy cases, otherwise fall back to locale::name().
409 (locale::name()): Tweak, if !_M_names[0] just return "*".
410 (locale::_Impl::_Impl(const _Impl&, size_t): Tweak, early stop
411 copying __imp._M_names if !__imp._M_names[0] or !__imp._M_names[1].
412 * src/locale_init.cc (locale::_Impl::_Impl(size_t)): Tweak.
413 * src/localename.cc (locale::_Impl::_Impl(const char*, size_t):
414 Simplify when !std::strchr, just updating _M_names[0]; clean up.
415 (locale::_Impl::_M_replace_categories): When !_M_names[1] prepare
416 for the general case (full set of names), then do the usual work;
417 clean up.
418
419 * src/locale.cc (locale::name()): Reserve space in __ret.
420 * src/locale_init.cc (locale::global(const locale&)): Save
421 the name in a temporary.
422 * src/localename.cc (locale::locale(const char*)): Reserve space
423 in __str.
424
59639106
PC
4252004-04-29 Paolo Carlini <pcarlini@suse.de>
426
427 * src/locale.cc (locale::operator==): Always avoid constructing
428 locale::name(), directly compare pairs of _M_names.
429
479864fe
PC
4302004-04-26 Paolo Carlini <pcarlini@suse.de>
431
432 * include/bits/istream.tcc: Fix comment.
433
874e7baa
PC
4342004-04-26 Paolo Carlini <pcarlini@suse.de>
435
436 * include/bits/stl_vector.h: Trivial formatting fixes.
437 * include/bits/vector.tcc: Likewise.
438
247791f5
PC
4392004-04-25 Paolo Carlini <pcarlini@suse.de>
440
441 PR libstdc++/15002 (continued again)
442 * include/bits/istream.tcc (getline(basic_istream<>&,
443 basic_string<>&, _CharT)): Use a temporary buffer, thus
444 avoiding reallocation for common case.
445
446 * include/bits/basic_string.tcc (_S_construct(_InIterator,
447 _InIterator, const _Alloc&, input_iterator_tag)): Tweak size
448 of temporary buffer to a power of two.
449
450 * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.
451
c26fa757
PC
4522004-04-25 Paolo Carlini <pcarlini@suse.de>
453
454 * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc:
455 New.
456 * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc:
457 Likewise.
458 * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
459
062bf895
PC
4602004-04-24 Paolo Carlini <pcarlini@suse.de>
461 Petur Runolfsson <peturr02@ru.is>
462
463 PR libstdc++/15002 (continued)
464 * include/bits/istream.tcc (basic_istream<>::getline(char_type*,
465 streamsize, char_type)): Use traits::find/copy in a loop to speed
466 up greatly the function in the common case (I/O buffer size >> 1).
467
4682004-04-24 Paolo Carlini <pcarlini@suse.de>
469
470 * testsuite/27_io/basic_istream/getline/char/4.cc: New.
471
472 * include/bits/istream.tcc (getline(basic_istream<>&,
473 basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead
474 of sbumpc(), consistently with the other functions, thus also
475 dealing correctly with the case of exceeded string::max_size().
476
adabbcf4
MK
4772004-04-24 Matthias Klose <doko@debian.org>
478
479 Jonathan Wakely <cow@compsoc.man.ac.uk>
480 * docs/html/configopts.html: Fix reference to allocator config option.
481
fc2ae431
AP
4822004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
483
484 * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
485 * configure: Regenerate.
486
d8fe7b29
DJ
4872004-04-23 Daniel Jacobowitz <drow@mvista.com>
488
489 PR libstdc++/15047, libstdc++/11610
490 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download.
491 (libstdc++_init): Don't pass outdir to v3-copy-files.
492
0d8c9baf
PC
4932004-04-21 Paolo Carlini <pcarlini@suse.de>
494
495 * include/bits/deque.tcc: Trivial formatting fixes.
496 * include/bits/stl_deque.h: Likewise.
497 * include/bits/stl_list.h: Likewise.
498 * include/bits/stl_tree.h: Likewise.
499
0a746019
PC
5002004-04-21 Paolo Carlini <pcarlini@suse.de>
501 Andrew Pinski <pinskia@physics.uc.edu>
502
503 * include/bits/basic_string.tcc (_M_mutate): Don't compute
504 __src unnecessarily.
505
3dd50c74
BK
5062004-04-19 Benjamin Kosnik <bkoz@redhat.com>
507
508 * testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
509 Clarify assertion, set test variable to false before assert.
510 * testsuite/27_io/basic_istringstream/str/char/1.cc: Same.
511 * testsuite/27_io/basic_stringstream/str/char/1.cc: Same.
512 * testsuite/27_io/ios_base/storage/2.cc: Same.
513
514 * testsuite/27_io/basic_filebuf/imbue/char/13171-4.cc: Fix
515 function returns.
516 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Same.
517 * testsuite/27_io/fpos/14320-3.cc: Same.
518
519 * testsuite/27_io/basic_filebuf/2.cc: Instantiate in namespace std.
520 * testsuite/27_io/fpos/1.cc: Same.
521 * testsuite/27_io/basic_stringstream/2.cc: Same.
522 * testsuite/27_io/basic_stringbuf/4.cc: Same.
523 * testsuite/27_io/basic_stringbuf/1.cc: Same.
524 * testsuite/27_io/basic_stringbuf/2.cc: Same.
525 * testsuite/27_io/basic_streambuf/2.cc: Same.
526 * testsuite/27_io/basic_ostringstream/2.cc: Same.
527 * testsuite/27_io/basic_ostream/2.cc: Same.
528 * testsuite/27_io/basic_ofstream/2.cc: Same.
529 * testsuite/27_io/basic_istringstream/2.cc: Same.
530 * testsuite/27_io/basic_istream/2.cc: Same.
531 * testsuite/27_io/basic_iostream/2.cc: Same.
532 * testsuite/27_io/basic_ios/2.cc: Same.
533 * testsuite/27_io/basic_ifstream/2.cc: Same.
534 * testsuite/27_io/basic_fstream/2.cc: Same.
535 * testsuite/ext/stdio_filebuf/char/1.cc: Same, in namespace __gnu_cxx.
536
537 * testsuite/21_strings/basic_string/capacity/1.cc: Don't compare
538 unsigned against zero.
539 * testsuite/21_strings/basic_string/capacity/wchar_t/1.cc: Same.
540 * testsuite/21_strings/basic_string/capacity/char/1.cc: Same.
541
542 * testsuite/18_support/new_delete_placement.cc: Initialize
543 variables before first use.
544 * testsuite/21_strings/char_traits/requirements/wchar_t/1.cc: Same.
545 * testsuite/21_strings/char_traits/requirements/char/1.cc: Same.
546 * testsuite/21_strings/char_traits/requirements/short/1.cc: Same.
547 * testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
548 Same.
549 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_badbit_throw.cc: Same.
550 * testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
551 Same.
552 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/exceptions_failbit_throw.cc: Same.
553 * testsuite/27_io/types/2.cc: Same.
554
555 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: Fix temporary
556 file name.
557 * testsuite/27_io/fpos/14775.cc: Same.
558
41b8e86c
PC
5592004-04-19 Paolo Carlini <pcarlini@suse.de>
560
561 PR libstdc++/15002 (partial)
562 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
563 Special case __n2 == 1, not calling traits_type::assign/copy.
564
f178c2d6
BK
5652004-04-17 Benjamin Kosnik <bkoz@redhat.com>
566
567 * include/bits/stl_bvector.h: Use _M_impl._M_start.
568
390e4c0d
BK
5692004-04-16 Benjamin Kosnik <bkoz@redhat.com>
570
571 * include/bits/c++config (_GLIBCXX_STD): New.
572 * src/list.cc: Use it.
573 * include/std/std_bitset.h: Same.
574 * include/bits/vector.tcc: Same.
575 * include/bits/stl_set.h: Same.
576 * include/bits/stl_multiset.h: Same.
577 * include/bits/stl_multimap.h: Same.
578 * include/bits/stl_map.h: Same.
579 * include/bits/stl_list.h: Same.
580 * include/bits/stl_vector.h: Same.
581 * include/bits/stl_bvector.h: Same.
582 * include/bits/stl_deque.h: Same.
583 * include/bits/deque.tcc: Same.
584 * include/bits/list.tcc: Same.
585 * include/debug/vector: Same.
586 * include/debug/set.h: Same.
587 * include/debug/multiset.h: Same.
588 * include/debug/multimap.h: Same.
589 * include/debug/map.h: Same.
590 * include/debug/list: Same.
591 * include/debug/deque: Same.
592 * include/debug/bitset: Same.
593 * include/debug/formatter.h (__gnu_debug): Remove using directive.
594 Add using declaration for std::type_info.
595 * include/debug/safe_iterator.h: Add using declaration for
596 std::iterator_traits and std::pair.
597 * src/debug_list.cc: New.
598 * src/Makefile.am: Add debug_list.cc.
599 * src/Makefile.in: Regenerate.
600 * config/linker-map.gnu: Add _List_node_base exports for std and
601 __gnu_norm.
602
603 * include/bits/stl_bvector.h (_Bvector_base): Use _Bvector_impl
604 idiom that other containers use.
605 * testsuite/23_containers/vector/bool/clear_allocator.cc: New.
606
2f228199
PC
6072004-04-16 Paolo Carlini <pcarlini@suse.de>
608
609 PR libstdc++/14975
610 * include/bits/fstream.tcc (basic_filebuf::imbue): Zero _M_codecvt
611 in case of error.
612 * testsuite/27_io/basic_filebuf/imbue/char/14975-1.cc: New.
613 * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc: New.
614
af55af57
PC
6152004-04-16 Paolo Carlini <pcarlini@suse.de>
616
617 * acconfig.h: Remove _GLIBCXX_USE_LONG_DOUBLE entry, not
618 used anymore.
619 * config.h.in: Regenerate.
620
6212004-04-16 Paolo Carlini <pcarlini@suse.de>
622
623 * config/locale/generic/monetary_members.cc
624 (moneypunct<wchar_t>::_M_initialize_moneypunct): Avoid calling
625 btowc unnecessarily, just cast to wchar_t (the concerned chars
626 all belong to the basic character set).
627 * config/locale/generic/numeric_members.cc
628 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
629 * config/locale/gnu/monetary_members.cc
630 (moneypunct<wchar_t>::_M_initialize_moneypunct): Likewise.
631 * config/locale/gnu/numeric_members.cc
632 (numpunct<wchar_t>::_M_initialize_numpunct): Likewise.
633
d7ed521b
PC
6342004-04-15 Paolo Carlini <pcarlini@suse.de>
635
636 * src/locale.cc (locale::operator==): When _M_impl == __rhs._M_impl
637 avoid constructing unnecessarily this->name().
638
76e9802c
ZW
6392004-04-14 Zack Weinberg <zack@codesourcery.com>
640
641 * testsuite/Makefile.am: Add definition of AM_CXXFLAGS.
642 Change definition of CXX to use $(shell) instead of backticks.
643 * testsuite/Makefile.in: Regenerate.
644
e0fb1c5c
DM
6452004-04-12 Dhruv Matani <dhruvbird@gmx.net>
646
647 * testsuite/performance/20_util/allocator/list_sort_search.cc:
648 Minor formatting fixes.
649 * testsuite/performance/20_util/allocator/map_mt_find.cc:
650 Likewise.
651
92861ad4
PC
6522004-04-12 Paolo Carlini <pcarlini@suse.de>
653
654 * config/locale/gnu/numeric_members.cc
655 (numpunct<wchar_t>::_M_initialize_numpunct): No need to wrap
656 in __uselocale, since btowc is called for chars belonging to
657 the basic character set.
658
895510be
PC
6592004-04-09 Paolo Carlini <pcarlini@suse.de>
660
661 * testsuite/22_locale/messages/members/char/1.cc: Remove junk.
662 * testsuite/22_locale/messages/members/char/2.cc: Ditto.
663 * testsuite/22_locale/messages/members/char/3.cc: Ditto.
664 * testsuite/22_locale/num_get/get/char/1.cc: Ditto.
665 * testsuite/22_locale/num_get/get/char/2.cc: Ditto.
666 * testsuite/22_locale/num_get/get/char/3.cc: Ditto.
667 * testsuite/22_locale/num_get/get/wchar_t/1.cc: Ditto.
668 * testsuite/22_locale/num_get/get/wchar_t/2.cc: Ditto.
669 * testsuite/22_locale/num_get/get/wchar_t/3.cc: Ditto.
670 * testsuite/22_locale/num_put/put/char/1.cc: Ditto.
671 * testsuite/22_locale/num_put/put/char/2.cc: Ditto.
672 * testsuite/22_locale/num_put/put/char/3.cc: Ditto.
673 * testsuite/22_locale/num_put/put/wchar_t/1.cc: Ditto.
674 * testsuite/22_locale/num_put/put/wchar_t/2.cc: Ditto.
675 * testsuite/22_locale/num_put/put/wchar_t/3.cc: Ditto.
676 * testsuite/22_locale/numpunct/members/char/1.cc: Ditto.
677 * testsuite/22_locale/numpunct/members/wchar_t/1.cc: Ditto.
678
ba98a8d8
PC
6792004-04-07 Paolo Carlini <pcarlini@suse.de>
680
681 * config/locale/generic/time_members.cc
682 (__timepunct<char>::_M_initialize_timepunct,
683 __timepunct<wchar_t>::_M_initialize_timepunct): the correct
684 _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
685 * config/locale/gnu/time_members.cc
686 (__timepunct<char>::_M_initialize_timepunct,
687 __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
688 * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
689 * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
690
691 * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
692 * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
693 * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
694 * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
695 * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
696 * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
697 * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
698 * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
699 * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
700 * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
701 * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
702 * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
703 * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
704 * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
705 * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
706 * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
707 * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
708 * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
709 * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
710 * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
711 * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
712 * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
713 * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
714 * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
715 * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
716 * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
717 * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
718 * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
719 * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
720 * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
721 * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
722 * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
723 * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
724 * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
725 * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
726 * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
727
728 * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
729
f332a090
PC
7302004-04-07 Paolo Carlini <pcarlini@suse.de>
731
732 * config/locale/gnu/monetary_members.cc
733 (moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
734 _NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
735 and __MON_GROUPING to _NL_NUMERIC_DECIMAL_POINT_WC,
736 _NL_NUMERIC_THOUSANDS_SEP_WC, and GROUPING.
737 * config/locale/gnu/numeric_members.cc
738 (numpunct<char>::_M_initialize_numpunct): Prefer DECIMAL_POINT
739 and THOUSANDS_SEP to the deprecated RADIXCHAR and THOUSEP.
740
563ae04f
BK
7412004-04-06 Benjamin Kosnik <bkoz@redhat.com>
742
743 Fixups for EDG front end.
744 * include/ext/rope: Instead of non-existent function
745 _Data_allocate, use allocator's allocate. Use this.
746 (namespace _Rope_constants): Move _S_max_rope_depth, and _Tag
747 enumerations from _Rope_RopeRep here.
748 * include/ext/ropeimpl.h: Same.
749 * src/ext-inst.cc (_S_min_len): Fix up definition.
76e9802c 750
563ae04f
BK
751 * config/locale/gnu/ctype_members.cc: Qualify base class members
752 with this.
753 * config/locale/generic/ctype_members.cc: Same.
754 * config/locale/gnu/messages_members.h: Same.
755 * config/locale/generic/messages_members.h: Same.
756 * src/ctype.cc: Same.
757 * include/bits/codecvt.h: Same.
76e9802c 758
563ae04f
BK
759 * include/bits/boost_concept_check.h: Declare.
760 (__error_type_must_be_an_unsigned_integer_type): Remove this.
761 (__error_type_must_be_an_integer_type): Remove this.
76e9802c 762 (__error_type_must_be_a_signed_integer_type): Remove this.
563ae04f
BK
763
764 * config/io/basic_file_stdio.cc (__basic_file::sys_open): Remove cast.
765
766 * libsupc++/eh_alloc.cc (__cxa_free_exception): Add exception
767 specification to definition.
768 (__cxa_allocate_exception): Same.
769 * libsupc++/eh_catch.cc (__cxa_begin_catch): Same.
770 * libsupc++/eh_globals.cc (__cxa_get_globals_fast): Same.
76e9802c
ZW
771 (__cxa_get_globals): Same.
772
563ae04f
BK
773 * libsupc++/del_op.cc: Add comment about freestanding.
774
268d3b18
PC
7752004-04-05 Paolo Carlini <pcarlini@suse.de>
776
777 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
778 The critical section is actually very small, only two assignments.
779
9f35e4aa
PC
7802004-04-04 Paolo Carlini <pcarlini@suse.de>
781 Petur Runolfsson <peturr02@ru.is>
782
783 * testsuite/performance/27_io/filebuf_sputn_unbuf.cc: New,
784 adapted from libstdc++/11378.
785
c8333c0f
PC
7862004-04-03 Paolo Carlini <pcarlini@suse.de>
787
788 * include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
789 some duplicated code.
790 (__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
791 in the single threaded case.
792 * testsuite/performance/20_util/allocator/list_sort_search.cc:
793 Reorder and renumber the tests consistently with the other testfiles.
794 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
795 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
796 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
797
ab40b100
PC
7982004-04-02 Paolo Carlini <pcarlini@suse.de>
799
800 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
801 Rearrange arithmetic to avoid computing two divisions at
802 each deallocation.
803
354d4c68
PC
8042004-04-01 Paolo Carlini <pcarlini@suse.de>
805
806 * include/ext/mt_allocator.h (__mt_alloc<>::_S_initialize):
807 Streamline the second half, wrapping it in a single
808 '#ifdef __GTHREADS if (__gthread_active_p())' and avoiding
809 conditionals inside loops.
810
2ae6e982
PC
8112004-04-01 Paolo Carlini <pcarlini@suse.de>
812
813 PR libstdc++/14775
814 * acconfig.h: Rename _GLIBCXX_MEM_LIMITS to _GLIBCXX_RES_LIMITS.
815 * acinclude.m4 (GLIBCXX_CHECK_SETRLIMIT): Call
816 GLIBCXX_CHECK_SETRLIMIT_ancilliary for FSIZE too, adjust define
817 to _GLIBCXX_RES_LIMITS.
818 (GLIBCXX_CHECK_SETRLIMIT_ancilliary): Rename HAVE_MEMLIMIT_* to
819 HAVE_LIMIT_*.
820 * testsuite/testsuite_hooks.h: Declare set_file_limit.
821 * testsuite/testsuite_hooks.cc: Define it, using getrlimit
822 and setrlimit(RLIMIT_FSIZE).
823 * testsuite/27_io/fpos/14775.cc: New.
824 * config.h.in: Regenerate.
825 * configure: Likewise.
826
e004c331
PC
8272004-03-31 Paolo Carlini <pcarlini@suse.de>
828
829 * config/locale/generic/c_locale.cc (__convert_to_v(long double&)):
830 In v3 uses of sscanf, the special floating-point numbers INF,
831 INFINITY, etc., cannot occur in input, therefore, if the latter
832 is too large, ERANGE is always stored in errno, no need of finitel.
833
06ce7726
BK
8342004-03-30 Benjamin Kosnik <bkoz@redhat.com>
835
836 PR libstdc++/14783
837 * include/bits/stl_tree.h: Adjust initialization list order.
838
7be1c3fb
LR
8392004-03-29 Loren J. Rittle <ljrittle@acm.org>
840
841 * testsuite/thread/pthread7-rope.cc: Update comment to reflect test.
842
63041e68
PC
8432004-03-29 Paolo Carlini <pcarlini@suse.de>
844
845 * testsuite/thread/pthread7-rope.cc: Fix, unpredictably, depending
846 on allocator behavior, the memory pointed by data2 may well be not
847 trashed.
848
f26e5597
CB
8492004-03-28 Chavdar Botev <cbotev@yahoo.com>
850
851 PR libstdc++/14245
852 * include/bits/basic_string.tcc
853 (basic_string::basic_string(const basic_string&)): Pass to
854 _Rep::_M_grab the actual allocator of the string being constructed
855 not the default constructed one.
856
a5f105b5
BK
8572004-03-27 Benjamin Kosnik <bkoz@redhat.com>
858
859 libstdc++ PR/13598
860 * config/locale/ieee_1003.1-2001/codecvt_specializations.h
861 (__enc_traits::_M_destroy): New.
862 (__enc_traits::~__enc_traits): Use it.
863 (__enc_traits::operator=): Use _M_destroy, _M_init.
864 (__enc_traits::__enc_traits): Same.
865
8662004-03-27 Petur Runolfsson <peturr02@ru.is>
867
868 * testsuite/ext/enc_filebuf/char/13598.cc: New.
869
6f52a889
PC
8702004-03-27 Paolo Carlini <pcarlini@suse.de>
871
872 * include/ext/mt_allocator.h: Uglify consistently names of
873 variables, members and classes; tidy.
874
8752004-03-27 Dhruv Matani <dhruvbird@gmx.net>
876
877 * include/ext/mt_allocator.h (__mt_alloc<>::deallocate):
878 Deallocation loop rewrote.
879
dd95381f
PC
8802004-03-26 Paolo Carlini <pcarlini@suse.de>
881
882 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
883 __mt_alloc<>::deallocate): Protect two instances of
884 block->thread_id with __GTHREADS.
885
8bd22a3c
BK
8862004-03-25 Gawain Bolton <gp.bolton@computer.org>
887
888 * include/bits/stl_tree.h (_Rb_tree_impl): Add _Node_allocator
889 default argument in constructors.
890 (_Rb_tree::_M_empty_initialize): Remove.
76e9802c 891
8bd22a3c 8922004-03-25 Benjamin Kosnik <bkoz@redhat.com>
76e9802c 893
8bd22a3c
BK
894 * testsuite/23_containers/map/operators/1_neg.cc: Adjust line numbers.
895 * testsuite/23_containers/set/operators/1_neg.cc: Same.
896
8972004-03-25 Dhruv Matani <dhruvbird@gmx.net>
898
899 * include/bits/cpp_type_traits.h: Changed __is_pod
900 completely. Now, it does not use any of the previous type_traits
901 to detect the pod types, and it also detects function pointers as
902 POD types.
903
904 * include/bits/stl_tree.h: Introduced a new class _Rb_tree_impl,
905 which encapsulates the internal implementation of an rb_tree. Made
906 the allocator a base class of this class instead of the rb_tree,
907 which was not conforming. This _Rb_tree_impl class is also
908 specialized on whether the _Compare parameter is a POD type or
909 not. If so, then it maintains the comparison function as a data
910 member, otherwise it makes the _Compare parameter a base class of
911 itself. Also, _M_key_compare is now a function instead of a data
912 member, so that the above trick can work properly. Delegated the
913 initialization of the other data members to this newly created
914 class. Also, now other member functions of rb_tree must refer to
915 _M_key_compare as _M_impl._M_key_compare(). The other data members
916 (*) can be referenced to as _M_impl.(*), where
917 (*) includes _M_header, and _M_node_count.
918
90ceccd4
PC
9192004-03-25 Paolo Carlini <pcarlini@suse.de>
920
921 * include/ext/mt_allocator.h (__mt_alloc<>::tune):
922 Add _M_min_bin, the size in bytes of the smallest bin.
923 (__mt_alloc<>::tune()): Tweak accordingly.
924 (__mt_alloc<>::tune(size_t, ...)): Likewise.
925 (__mt_alloc<>::block_record): Change to a union: members next
926 and thread_id are never used at the same time.
927 (__mt_alloc<>::allocate): Update consistently.
928 (__mt_alloc<>::deallocate): Likewise.
929 (__mt_alloc<>::_S_initialize): Update setups of _S_binmap and
930 _S_bin_size for the configurable _M_min_size.
931
03f9ea44
DM
9322004-03-25 Dhruv Matani <dhruvbird@gmx.net>
933
934 * include/bits/stl_list.h: Created a _List_impl class and made it
935 derive from the allocator, instead of the list deriving from the
936 allocator class, which was not conformant. Changed all references
937 from this->_M_node to this->_M_impl._M_node * bits/list.tcc: Same
938 as above (changed all references to the concerned variables).
939
9402004-03-25 Dhruv Matani <dhruvbird@gmx.net>
941
942 * include/bits/stl_deque.h: Created a _Deque_impl class and made
943 it derive from the allocator, instead of the deque deriving from
944 the allocator class, which was not conformant. Changed all
945 references to the _M_start, _M_finish, _M_map, and _M_map_size to
946 _M_impl.*.
947 (_Deque_base<_Tp,_Alloc>::~_Deque_base()): Added this->
948 qualification in 2 places where it was missing.
949 (_Deque_base<_Tp,_Alloc>::_M_initialize_map(size_t)): Same as
950 above.
951 * include/bits/deque.tcc: Same as above (changed all references to
952 the concerned variables).
953
9542004-03-25 Dhruv Matani <dhruvbird@gmx.net>
955
956 * include/bits/stl_vector.h: Created a _Vector_impl class and made
957 it derive from the allocator, instead of the _Vector_base class,
958 deriving from the allocator which was not conformant. Changed all
959 references to the _M_start, _M_finish, and _M_end_of_storage to
960 _M_impl.*.
961 * include/bits/vector.tcc: Same as above (changed all references
962 to the concerned variables).
963
9642004-03-25 Dhruv Matani <dhruvbird@gmx.net>
965
966 * testsuite/23_containers/deque/cons/clear_allocator.cc: New.
967 * testsuite/23_containers/list/cons/clear_allocator.cc: New.
968 * testsuite/23_containers/vector/cons/clear_allocator.cc: New.
76e9802c 969
58c95921
DM
9702004-03-24 Dhruv Matani <dhruvbird@gmx.net>
971
03f9ea44
DM
972 * include/ext/malloc_allocator.h: Fixed the construct function to
973 call global placement new instead of assignment. Added a check
974 after the return from malloc to check whether returned pointer is
975 NULL, and if so, throw std::bad_alloc().
976 * include/ext/debug_allocator.h: Added a check in the deallocate
977 function to check whether the user has passed a NULL pointer or
978 not.
76e9802c 979
8367b9c1
BK
9802004-03-24 Benjamin Kosnik <bkoz@redhat.com>
981
982 * docs/html/20_util/allocator.html: Add bitmap_allocator links.
983
d62c1a1f
AS
9842004-03-24 Andreas Schwab <schwab@suse.de>
985
986 * testsuite/lib/prune.exp (prune_g++_output): Ignore errata
987 warning from IA64 assembler.
988
71f9a9d1 9892004-03-24 Dhruv Matani <dhruvbird@gmx.net>
76e9802c 990
71f9a9d1
DM
991 * include/ext/bitmap_allocator.h: (_Bit_scan_forward) -> Made this
992 function call __builtin_ctz instead of the while loop.
993 (allocate) -> If condition has __builtin_expect.
994 (deallocate) -> Ditto.
995 Renamed a few left-over variables and typedefs according to the
996 C++STYLE mentioned in the documentation.
997 Protected calls to __gthread* by __gthread_active_p(), whose value
998 is cached in the local variable __threads_active.
999
b4a76c01
FY
10002004-03-24 Felix Yen <fwy@alumni.brown.edu>
1001
1002 * testsuite/performance/20_util/allocator/producer_consumer.cc:
1003 Use linear algorithm for producer.
76e9802c 1004
affb18b2
PC
10052004-03-24 Paolo Carlini <pcarlini@suse.de>
1006
1007 * include/ext/mt_allocator.h (__mt_alloc<>::allocate,
1008 __mt_alloc<>::deallocate): Avoid redundant conditionals.
1009
586b5f20
BK
10102004-03-23 Benjamin Kosnik <bkoz@redhat.com>
1011
1012 * include/bits/locale_facets.h: Tweaks for 80 column.
1013 (__numpunct_cache::_M_cache): Move to locale_facets.tcc.
1014 (__moneypunct_cache::_M_cache): Same.
1015 (num_get): Don't inherit from __num_base.
1016 (num_put): Same.
1017 (money_get): Don't inherit from money_base.
1018 (money_put): Same.
1019 (__timepunct::_M_am_pm_format): New.
1020 (time_get::_M_extract_num): Return iterator, use ios_base as argument.
1021 (time_get::_M_extract_name): Same.
1022 (time_get::_M_extract_via_format): Same.
1023 * include/bits/locale_facets.tcc: Tweaks for 80 column.
1024 Use _M_getloc instead of getloc.
1025 * testsuite/22_locale/money_put/put/char/9780-3.cc: New.
1026 * testsuite/22_locale/num_put/put/char/9780-2.cc: New.
1027 * testsuite/22_locale/time_put/put/char/9780-1.cc: New.
1028
29d4adf4
PC
10292004-03-22 Paolo Carlini <pcarlini@suse.de>
1030
1031 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Add pool_allocator.
1032 * configure: Regenerate.
1033 * config/allocator/pool_allocator_base.h: New.
1034 * include/ext/pool_allocator.h: Convert to a standard-conforming
1035 allocator.
1036 * src/allocator.cc: Tweak instantiations.
1037 * testsuite/performance/20_util/allocator/insert.cc: Add __pool_alloc.
1038 * testsuite/performance/20_util/allocator/insert_insert.cc: Ditto.
1039 * testsuite/performance/20_util/allocator/list_sort_search.cc: Ditto.
1040 * testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
1041 * testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
1042 * testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.
1043
fea41ef9
HPN
10442004-03-22 Hans-Peter Nilsson <hp@axis.com>
1045
1046 * config/cpu/cris/atomicity.h (__atomic_add): Remove "static
1047 inline" and attribute-unused. Qualify parameter __mem with
1048 "volatile".
1049 (__exchange_and_add): Ditto. Add back memory clobber to asm.
1050
9c024d9c
PC
10512004-03-20 Paolo Carlini <pcarlini@suse.de>
1052
1053 * testsuite/27_io/basic_istream/extractors_arithmetic/char/2.cc:
1054 Remove junk.
1055 * testsuite/27_io/basic_istream/extractors_arithmetic/char/3.cc:
1056 Likewise.
1057 * testsuite/27_io/basic_istream/extractors_arithmetic/char/6.cc:
1058 Likewise.
1059 * testsuite/27_io/basic_istream/extractors_arithmetic/char/7.cc:
1060 Likewise.
1061 * testsuite/27_io/basic_istream/extractors_arithmetic/char/8.cc:
1062 Likewise.
1063 * testsuite/27_io/basic_istream/extractors_arithmetic/char/9.cc:
1064 Likewise.
1065 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
1066 Likewise.
1067 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
1068 Likewise.
1069 * testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
1070 Likewise.
1071 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
76e9802c 1072 Likewise.
9c024d9c 1073
2787b59a
PC
10742004-03-20 Paolo Carlini <pcarlini@suse.de>
1075
1076 * include/std/std_valarray.h: Document DR389 [Ready].
1077 * docs/html/ext/howto.html: Add an entry for DR389.
1078
1b1a632b
ME
10792004-03-19 Michael Eager <eager@mvista.com>
1080
1081 * config/cpu/mips/atomicity.h: Prevent reg loads between LL and
1082 SC instructions.
1083
28f2a265
PC
10842004-03-19 Paolo Carlini <pcarlini@suse.de>
1085
1086 * testsuite/22_locale/num_get/get/char/11.cc: Remove redundant
1087 static_cast-s.
1088 * testsuite/22_locale/num_get/get/char/12.cc: Likewise.
1089 * testsuite/22_locale/num_get/get/char/13.cc: Likewise.
1090 * testsuite/22_locale/num_get/get/char/14.cc: Likewise.
1091 * testsuite/22_locale/num_get/get/char/15.cc: Likewise.
1092 * testsuite/22_locale/num_get/get/wchar_t/11.cc: Likewise.
1093 * testsuite/22_locale/num_get/get/wchar_t/12.cc: Likewise.
1094 * testsuite/22_locale/num_get/get/wchar_t/13.cc: Likewise.
1095 * testsuite/22_locale/num_get/get/wchar_t/14.cc: Likewise.
1096 * testsuite/22_locale/num_get/get/wchar_t/15.cc: Likewise.
1097
8268bba6
PC
10982004-03-19 Paolo Carlini <pcarlini@suse.de>
1099 Petur Runolfsson <peturr02@ru.is>
1100
1101 PR libstdc++/12077
1102 * include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
1103 no way to find out the conversion used by the underlying FILE*.
1104 * testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
1105 * testsuite/27_io/objects/char/9.cc: Tweak.
1106
59d35672
PC
11072004-03-19 Paolo Carlini <pcarlini@suse.de>
1108
1109 PR libstdc++/14648
1110 * include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
1111 memory allocation/deallocation calls.
1112 * testsuite/ext/14648.cc: New.
1113
ab7ac222
PS
11142004-03-19 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
1115
1116 PR libstdc++/14647
1117 * include/backward/bvector.h (bit_vector): Allocator is in std
1118 namespace.
1119
d54bc1d8
PE
11202004-03-19 Phil Edwards <phil@codesourcery.com>
1121
1122 * acinclude.m4 (GLIBCXX_CHECK_WCHAR_T_SUPPORT): Set LIBICONV,
1123 not libiconv. SUBST this variable as well.
1124 * testsuite/Makefile.am (site.exp): New target, based on that
1125 created by automake. Also set libiconv.
1126
1127 * configure, Makefile.in, include/Makefile.in, libmath/Makefile.in,
1128 libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in,
1129 testsuite/Makefile.in: Regenerate.
1130
87599abd
BK
11312004-03-16 Benjamin Kosnik <bkoz@redhat.com>
1132
1133 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): Default setting is
1134 new_allocator for all hosts.
1135 * configure: Regenerate.
76e9802c 1136
e20036e2
PC
11372004-03-16 Paolo Carlini <pcarlini@suse.de>
1138
1139 * testsuite/22_locale/num_put/put/char/4.cc: Fix for 64-bit pointers.
1140 * testsuite/22_locale/num_put/put/wchar_t/4.cc: Likewise.
76e9802c 1141
33674f00
PC
11422004-03-15 Paolo Carlini <pcarlini@suse.de>
1143
1144 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1145 Adjust the logic underlying the parsing of symbol to deal
1146 correctly with an optional sign component (i.e., when either
76e9802c 1147 negative_sign or positive_sign is empty)
33674f00
PC
1148 * testsuite/22_locale/money_get/get/char/19.cc: New.
1149 * testsuite/22_locale/money_get/get/wchar_t/19.cc: New.
1150
11512004-03-15 Paolo Carlini <pcarlini@suse.de>
1152
1153 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1154 Do not accept an incomplete currency symbol.
1155 * testsuite/22_locale/money_get/get/char/18.cc: New.
1156 * testsuite/22_locale/money_get/get/wchar_t/18.cc: New.
1157
8b0d6051
BK
11582004-03-13 Benjamin Kosnik <bkoz@redhat.com>
1159
1160 * config/allocator: New.
1161 * config/allocator/bitmap_allocator_base.h: New.
1162 * config/allocator/malloc_allocator_base.h: New.
1163 * config/allocator/mt_allocator_base.h: New.
1164 * config/allocator/new_allocator_base.h: New.
1165 * include/bits/allocator.h: Include c++allocator.h.
1166 * acinclude.m4 (GLIBCXX_ENABLE_ALLOCATOR): New.
1167 * aclocal.m4: Regenerate.
76e9802c 1168 * configure.ac: Use GLIBCXX_ENABLE_ALLOCATOR.
8b0d6051
BK
1169 * configure: Regenerate.
1170 * include/Makefile.am (host_headers_extra): Add c++allocator.h.
1171 * include/Makefile.in: Regenerate.
1172 * docs/html/configopts.html: Add enable-libstdcxx-allocator.
1173
eef56029
BK
11742004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1175
1176 * include/bits/allocator.h: Revert.
1177
d4cd08dd
PC
11782004-03-12 Paolo Carlini <pcarlini@suse.de>
1179
1180 * docs/html/ext/howto.html: Add entry for DR 253 [Ready].
1181 * include/bits/gslice_array.h: Add comment about DR 253.
1182 * include/bits/indirect_array.h: Likewise.
1183 * include/bits/mask_array.h: Likewise.
1184 * include/bits/slice_array.h: Likewise.
1185
ce7df2fd
BK
11862004-03-12 Benjamin Kosnik <bkoz@redhat.com>
1187
1188 * testsuite/20_util/allocator/14176.cc: New.
1189 * include/ext/mt_allocator.h: Formatting fixes.
76e9802c 1190
009368db
DM
11912004-03-11 Dhruv Matani <dhruvbird@HotPOP.com>
1192
1193 * include/Makefile.am (ext_headers): Add
1194 ${ext_srcdir}/bitmap_allocator.h .
1195 * include/Makefile.in: Regenerate.
1196 * docs/html/ext/ballocator_doc.txt: New file.
1197 * include/ext/bitmap_allocator.h: New file.
76e9802c 1198 * testsuite/performance/20_util/allocator/list_sort_search.cc: Add
ce7df2fd 1199 test.
009368db
DM
1200 * testsuite/performance/20_util/allocator/map_mt_find.cc: Likewise.
1201 * testsuite/performance/20_util/allocator/producer_consumer.cc: Add
1202 test for the bitmap_allocator<>.
1203 * testsuite/performance/20_util/allocator/insert.cc: Likewise.
1204 * testsuite/performance/20_util/allocator/insert_insert.cc: Likewise.
1205 * testsuite/performance/20_util/allocator/map_thread.cc: Likewise.
1206
c6feb697
PC
12072004-03-11 Paolo Carlini <pcarlini@suse.de>
1208
1209 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1210 pow(const _Tp&, const complex&), pow(const complex&,
1211 const complex&)): Fully qualify with std:: a few calls.
1212 * testsuite/26_numerics/complex/13450.cc: Minor tweak.
1213
e3628001 12142004-03-11 Steven Bosscher <stevenb@suse.de>
b7c34954
SB
1215
1216 PR libstdc++/11706
1217 * include/c_std/cmath.tcc (__cmath_power): Define inline.
1218
8ab705be
KC
12192004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1220
1221 * configure.ac: Bump AC_PREREQ to 2.59.
1222
f69535d2
PC
12232004-03-10 Paolo Carlini <pcarlini@suse.de>
1224
1225 * testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
1226
52ddaf41
PK
12272004-03-10 Paul Kienzle <pkienzle@nist.gov>
1228 Paolo Carlini <pcarlini@suse.de>
1229
1230 PR libstdc++/13450
1231 * include/std/std_complex.h (pow(const complex&, const _Tp&),
1232 pow(const _Tp&, const complex&)): Use cmath pow only when safe.
1233 * testsuite/26_numerics/complex/13450.cc: New.
1234
1235 * testsuite/26_numerics/cmath/overloads.C: Rename to overloads.cc.
1236 * testsuite/26_numerics/complex/pow.C: Rename to pow.cc and fix.
1237
ecc7568d
JQ
12382004-03-10 Jerry Quinn <jlquinn@optonline.net>
1239
52ddaf41 1240 PR libstdc++/3247
ecc7568d
JQ
1241 * include/bits/gslice_array.h (gslice_array()): Make public.
1242 (operator=(gslice_array)): Make public. Implement.
1243 * include/bits/indirect_array.h (indirect_array()): Make public.
1244 * include/bits/mask_array.h (mask_array()): Make public.
1245 (operator=(mask_array)): Make public. Implement.
1246 * include/bits/valarray_array.tcc (__valarray_copy):
1247 Comment. Add versions for gslice_array and mask_array.
1248 * testsuite/26_numerics/valarray_subset_assignment.cc: New test.
1249
6dde938c
BK
12502004-03-09 Benjamin Kosnik <bkoz@redhat.com>
1251
1252 * testsuite/23_containers/deque/modifiers/swap.cc: Add in bits for
1253 non-weak systems.
1254 * testsuite/23_containers/vector/modifiers/swap.cc: Same.
1255 * testsuite/23_containers/set/modifiers/swap.cc: Same.
1256 * testsuite/23_containers/multiset/modifiers/swap.cc: Same.
1257 * testsuite/23_containers/multimap/modifiers/swap.cc: Same.
1258 * testsuite/23_containers/map/modifiers/swap.cc: Same.
1259 * testsuite/23_containers/list/modifiers/swap.cc: Same.
1260
1261 * testsuite/22_locale/locale/cons/12658_thread.cc: Catch exceptions.
1262
f1c4ca32 12632004-03-08 Benjamin Kosnik <bkoz@redhat.com>
76e9802c 1264
f1c4ca32
BK
1265 PR c++/13658
1266 * testsuite/23_containers/deque/modifiers/swap.cc: New.
1267 * testsuite/23_containers/list/modifiers/swap.cc: New.
1268 * testsuite/23_containers/map/modifiers/swap.cc: New.
1269 * testsuite/23_containers/multimap/modifiers/swap.cc: New.
1270 * testsuite/23_containers/multiset/modifiers/swap.cc: New.
1271 * testsuite/23_containers/set/modifiers/swap.cc: New.
1272 * testsuite/23_containers/vector/modifiers/swap.cc: New.
76e9802c 1273
5a66cfb2
PR
12742004-03-08 Petur Runolfsson <peturr02@ru.is>
1275
1276 PR libstdc++/12658
1277 * testsuite/22_locale/locale/cons/12658_thread.cc: New.
1278
1d4eb925
PC
12792004-03-08 Paolo Carlini <pcarlini@suse.de>
1280
1281 * docs/html/ext/howto.html: Add entry for DR 103 [WP].
1282 * include/bits/stl_multiset.h: Add comment about DR 103.
1283 * include/bits/stl_set.h: Likewise.
1284
f1c89270
PC
12852004-03-08 Paolo Carlini <pcarlini@suse.de>
1286
1287 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1288 The value _space_ indicates that at least one space is required
1289 at that position.
1290 * testsuite/22_locale/money_get/get/char/17.cc: New.
1291 * testsuite/22_locale/money_get/get/wchar_t/17.cc: New.
1292
1293 * testsuite/22_locale/money_get/get/char/7.cc: Minor tweaks.
1294 * testsuite/22_locale/money_get/get/wchar_t/7.cc: Likewise.
1295
1296 * include/bits/locale_facets.tcc (money_get<>::do_get(long_double&)):
1297 Remove redundant conditional on __str.size().
76e9802c 1298
f5fb3886
BK
12992004-03-08 Benjamin Kosnik <bkoz@redhat.com>
1300
1301 * include/bits/allocator.h: Switch defaults to mt_alloc.
1302
c0bec71b
BK
13032004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1304
1305 * include/ext/mt_allocator.h (_S_initialize): If
1306 !__GTHREAD_MUTEX_INIT, then initialize _S_thread_freelist_mutex.
1307
f83295ba
BK
13082004-03-06 Benjamin Kosnik <bkoz@redhat.com>
1309
1310 PR libstdc++/12658
1311 * src/locale_init.cc (locale::locale): Lock critical regions with
1312 external mutexes.
76e9802c
ZW
1313 (locale::global): Same.
1314 * include/bits/concurrence.h (__glibcxx_mutex_define_initialized):
f83295ba
BK
1315 Add in once bits for cases without __GTHREAD_MUTEX_INIT.
1316 (__glibcxx_mutex_lock): Same.
1317
1318 * config/cpu/generic/atomicity.h: Remove
1319 _GLIBCXX_NEED_GENERIC_MUTEX, use concurrence.h.
1320 * src/misc-inst.cc: Move all locking bits out of this file.
1321
1322 * config/os/hpux/os_defines.h: Remove _GLIBCXX_INST_ATOMICITY_LOCK.
1323 * src/misc-inst.cc: Same.
1324 * config/cpu/hppa/atomicity.h: Same.
1325
1326 * config/linker-map.gnu: Remove types in the signature of atomic
1327 exports, as they may vary.
76e9802c 1328
0c2cc7b3
PC
13292004-03-06 Paolo Carlini <pcarlini@suse.de>
1330
1331 * include/bits/locale_facets.tcc: Tweak the comment preceding
1332 has_facet: doesn't throw.
1333
73da19bb
PC
13342004-03-06 Paolo Carlini <pcarlini@suse.de>
1335
1336 * testsuite/22_locale/money_get/get/char/1.cc: Clean up.
1337 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
1338 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
1339 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
1340 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
1341 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
1342 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
1343 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
1344
ce345590
PC
13452004-03-06 Paolo Carlini <pcarlini@suse.de>
1346
1347 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1348 num_get<>::_M_extract_int, num_get<>::do_get(bool&),
1349 __pad<>::_S_pad): Prefer plain operator== to traits::eq().
1350 * testsuite/testsuite_character.h (struct __gnu_test::character):
1351 Provide operator==.
1352 * testsuite/testsuite_hooks.h (struct __gnu_test::pod_char):
1353 Likewise.
1354
35bd3c28
PC
13552004-03-05 Paolo Carlini <pcarlini@suse.de>
1356
1357 * testsuite/27_io/fpos/14320-2.cc: Remove xfail.
1358
80e39f4a
BK
13592004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1360
1361 * testsuite/23_containers/multiset/insert/1.cc: Test result string.
1362
1363 * testsuite/23_containers/bitset/invalidation/1.cc: Main always
76e9802c 1364 returns 0.
80e39f4a
BK
1365 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1366 * testsuite/23_containers/list/invalidation/1.cc: Same.
1367 * testsuite/23_containers/list/invalidation/2.cc: Same.
1368 * testsuite/23_containers/list/invalidation/3.cc: Same.
1369 * testsuite/23_containers/list/invalidation/4.cc: Same.
1370 * testsuite/23_containers/map/invalidation/2.cc: Same.
1371 * testsuite/23_containers/multimap/invalidation/1.cc: Same.
1372 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1373 * testsuite/23_containers/multiset/invalidation/1.cc: Same.
1374 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
1375 * testsuite/23_containers/set/invalidation/1.cc: Same.
1376 * testsuite/23_containers/set/invalidation/2.cc: Same.
1377 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1378 * testsuite/23_containers/vector/invalidation/2.cc: Same.
1379 * testsuite/23_containers/vector/invalidation/3.cc: Same.
1380 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1381
2aa89cbb
PC
13822004-03-04 Paolo Carlini <pcarlini@suse.de>
1383
1384 * scripts/testsuite_flags.in: Add "-D_GLIBCXX_ASSERT" to
1385 CXXFLAGS_save.
1386 * testsuite/lib/libstdc++.exp: Don't add it conditionally to
76e9802c 1387 DEFAULT_CXXFLAGS.
2aa89cbb
PC
1388 * testsuite/18_support/numeric_limits.cc: Remove "-D_GLIBCXX_ASSERT"
1389 from the dg-options.
1390 * testsuite/23_containers/vector/invalidation/1.cc: Likewise.
1391 * testsuite/23_containers/vector/invalidation/2.cc: Likewise.
1392 * testsuite/23_containers/vector/invalidation/3.cc: Likewise.
1393 * testsuite/23_containers/vector/invalidation/4.cc: Likewise.
1394 * testsuite/23_containers/vector/resize/1.cc: Likewise.
1395 * testsuite/26_numerics/complex_value.cc: Likewise.
1396 * testsuite/27_io/ios_base/storage/1.cc: Likewise.
1397 * testsuite/27_io/ios_base/storage/2.cc: Likewise.
1398 * testsuite/27_io/ios_base/storage/3.cc: Likewise.
1399 * testsuite/27_io/manipulators/standard/char/2.cc: Likewise.
1400 * testsuite/27_io/objects/char/5.cc: Likewise.
1401 * testsuite/27_io/objects/wchar_t/5.cc: Likewise.
1402 * testsuite/backward/11460.cc: Likewise.
1403 * testsuite/thread/pthread7-rope.cc: Likewise.
1404
1405 * testsuite/21_strings/basic_string/compare/char/1.cc: Add
1406 missing test variable.
1407 * testsuite/21_strings/basic_string/compare/wchar_t/1.cc: Add
1408 missing test variable.
1409
f90e600a
BK
14102004-03-04 Benjamin Kosnik <bkoz@redhat.com>
1411
1412 * testsuite/20_util/allocator/1.cc: Provide explicit
1413 instantiations for non-weak systems.
1414 * testsuite/20_util/binders.cc: Same.
1415 * testsuite/20_util/allocator/8230.cc: Same.
1416 * testsuite/20_util/allocator/10378.cc: Same.
1417 * testsuite/22_locale/ctype/is/wchar_t/2.cc: Same.
1418 * testsuite/22_locale/ctype/is/char/2.cc: Same.
1419 * testsuite/thread/pthread7-rope.cc: Same.
76e9802c
ZW
1420 * testsuite/thread/pthread6.cc: Same.
1421 * testsuite/thread/pthread5.cc: Same.
1422 * testsuite/thread/pthread4.cc: Same.
f90e600a
BK
1423 * testsuite/thread/pthread1.cc: Same.
1424 * testsuite/ext/rope.cc: Same.
1425 * testsuite/ext/hash_set.cc: Same.
76e9802c 1426 * testsuite/ext/hash_map.cc: Same.
f90e600a
BK
1427 * testsuite/ext/concept_checks.cc: Same.
1428 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/9874.cc: Same.
1429 * testsuite/25_algorithms/unique/2.cc: Same.
1430 * testsuite/25_algorithms/unique/1.cc: Same.
1431 * testsuite/25_algorithms/rotate.cc: Same.
1432 * testsuite/25_algorithms/min_max.cc: Same.
76e9802c 1433 * testsuite/25_algorithms/equal.cc: Same.
f90e600a
BK
1434 * testsuite/24_iterators/rel_ops.cc: Same.
1435 * testsuite/24_iterators/iterator.cc: Same.
1436 * testsuite/24_iterators/insert_iterator.cc: Same.
1437 * testsuite/24_iterators/front_insert_iterator.cc: Same.
1438 * testsuite/24_iterators/back_insert_iterator.cc: Same.
1439 * testsuite/23_containers/vector/resize/1.cc: Same.
1440 * testsuite/23_containers/vector/modifiers/2.cc: Same.
1441 * testsuite/23_containers/vector/modifiers/1.cc: Same.
1442 * testsuite/23_containers/vector/invalidation/4.cc: Same.
1443 * testsuite/23_containers/vector/invalidation/3.cc: Same.
76e9802c 1444 * testsuite/23_containers/vector/invalidation/2.cc: Same.
f90e600a
BK
1445 * testsuite/23_containers/vector/invalidation/1.cc: Same.
1446 * testsuite/23_containers/vector/element_access/1.cc: Same.
1447 * testsuite/23_containers/vector/cons/6513.cc: Same.
1448 * testsuite/23_containers/vector/cons/3.cc: Same.
1449 * testsuite/23_containers/vector/cons/2.cc: Same.
1450 * testsuite/23_containers/vector/cons/1.cc: Same.
1451 * testsuite/23_containers/vector/capacity/8230.cc: Same.
1452 * testsuite/23_containers/vector/capacity/1.cc: Same.
1453 * testsuite/23_containers/vector/bool/6886.cc: Same.
1454 * testsuite/23_containers/stack/members/7158.cc: Same.
1455 * testsuite/23_containers/set/invalidation/2.cc: Same.
1456 * testsuite/23_containers/set/invalidation/1.cc: Same.
1457 * testsuite/23_containers/queue/members/7157.cc: Same.
1458 * testsuite/23_containers/priority_queue/members/7161.cc: Same.
1459 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
76e9802c 1460 * testsuite/23_containers/multiset/invalidation/2.cc: Same.
f90e600a
BK
1461 * testsuite/23_containers/multiset/insert/1.cc: Same.
1462 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1463 * testsuite/23_containers/multimap/invalidation/2.cc: Same.
1464 * testsuite/23_containers/map/operators/1.cc: Same.
1465 * testsuite/23_containers/map/invalidation/2.cc: Same.
1466 * testsuite/23_containers/map/invalidation/1.cc: Same.
1467 * testsuite/23_containers/map/insert/1.cc: Same.
1468 * testsuite/23_containers/list/operators/4.cc: Same.
1469 * testsuite/23_containers/list/operators/3.cc: Same.
1470 * testsuite/23_containers/list/operators/2.cc: Same.
1471 * testsuite/23_containers/list/operators/1.cc: Same.
1472 * testsuite/23_containers/list/modifiers/3.cc: Same.
1473 * testsuite/23_containers/list/modifiers/2.cc: Same.
1474 * testsuite/23_containers/list/modifiers/1.cc: Same.
1475 * testsuite/23_containers/list/invalidation/4.cc: Same.
1476 * testsuite/23_containers/list/invalidation/3.cc: Same.
1477 * testsuite/23_containers/list/invalidation/2.cc: Same.
76e9802c 1478 * testsuite/23_containers/list/invalidation/1.cc: Same.
f90e600a
BK
1479 * testsuite/23_containers/list/cons/9.cc: Same.
1480 * testsuite/23_containers/list/cons/8.cc: Same.
1481 * testsuite/23_containers/list/cons/7.cc: Same.
1482 * testsuite/23_containers/list/cons/6.cc: Same.
1483 * testsuite/23_containers/list/cons/5.cc: Same.
1484 * testsuite/23_containers/list/cons/4.cc: Same.
1485 * testsuite/23_containers/list/cons/3.cc: Same.
1486 * testsuite/23_containers/list/cons/2.cc: Same.
1487 * testsuite/23_containers/list/cons/1.cc: Same.
1488 * testsuite/23_containers/list/capacity/1.cc: Same.
1489 * testsuite/23_containers/deque/operators/1.cc: Same.
1490 * testsuite/23_containers/deque/invalidation/4.cc: Same.
1491 * testsuite/23_containers/deque/invalidation/3.cc: Same.
1492 * testsuite/23_containers/deque/invalidation/2.cc: Same.
1493 * testsuite/23_containers/deque/invalidation/1.cc: Same.
1494 * testsuite/23_containers/deque/cons/2.cc: Same.
1495 * testsuite/23_containers/deque/cons/1.cc: Same.
1496
1497 * src/allocator.cc: Add char, wchar_t instantiations
1498 to match extern template declarations in memory.h.
1499
ced3ad4d
PC
15002004-03-03 Paolo Carlini <pcarlini@suse.de>
1501
1502 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1503 Fix warning regression.
1504
039e3c5c
PC
15052004-03-03 Paolo Carlini <pcarlini@suse.de>
1506
1507 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1508 Deal properly with empty __digits and negative frac_digits,
1509 clean-up a bit.
1510
0d957d26
JW
15112004-03-03 Jonathan Wakely <redi@gcc.gnu.org>
1512
1513 * docs/html/documentation.html: Regenerate.
1514
0b1d67d2
PC
15152004-03-02 Paolo Carlini <pcarlini@suse.de>
1516
1517 PR libstdc++/14320
1518 * include/bits/postypes.h (class streamoff): Remove, now
1519 streamoff is just typedef a 64 bit signed integer type.
1520 (class fpos): Tweak consistently.
1521 * testsuite/27_io/fpos/14320-1.cc: New.
1522 * testsuite/27_io/fpos/14320-2.cc: New.
1523 * testsuite/27_io/fpos/14320-3.cc: New.
1524 * testsuite/27_io/fpos/14320-4.cc: New.
1525 * testsuite/27_io/fpos/14320-5.cc: New.
1526 * testsuite/27_io/fpos/mbstate_t/4_neg.cc: xfail for now.
1527
59564c5e
PC
15282004-03-02 Paolo Carlini <pcarlini@suse.de>
1529
1530 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1531 Reorganize a bit the main parsing loop, thus early detecting
1532 an empty value component.
1533 * testsuite/22_locale/money_get/get/char/16.cc: New.
1534 * testsuite/22_locale/money_get/get/wchar_t/16.cc: New.
1535
ec2075e9
BK
15362004-03-02 Benjamin Kosnik <bkoz@redhat.com>
1537
1538 Support automake 1.8.2
1539 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override.
1540 * po/Makefile.am (EXTRA_DIST): New.
1541 * po/Makefile.in: Regenerate.
1542 * Makefile.in: Same.
1543 * include/Makefile.in: Same.
1544 * libmath/Makefile.in: Same.
1545 * libsupc++/Makefile.in: Same.
1546 * src/Makefile.in: Same.
1547 * testsuite/Makefile.in: Same.
1548
1549 * include/Makefile.am (${host_builddir}/gthr-posix.h): Use
1550 __GXX_WEAK__ instead of SUPPORTS_WEAK.
1551 (${host_builddir}/gthr-default.h): Same.
1552 (${host_builddir}/gthr.h): Same.
1553 * acinclude.m4 (GLIBCXX_ENABLE_THREAD): Remove
1554 _GLIBCXX_SUPPORTS_WEAK, as this behavior can be modified via
1555 -fno-weak.
1556 * aclocal.m4: Regenerate.
1557 * acconfig.h: Remove _GLIBCXX_SUPPORTS_WEAK.
1558 * config.h.in: Regenerate.
1559 * configure: Same.
76e9802c 1560
f214923c
BK
15612004-03-01 Benjamin Kosnik <bkoz@redhat.com>
1562
ec2075e9 1563 Support autoconf 2.59
f214923c
BK
1564 * acinclude.m4: Quote correctly.
1565 * aclocal.m4: Regenerate.
1566 * linkage.m4: Same.
1567
67283362
BK
15682004-03-01 Benjamin Kosnik <bkoz@redhat.com>
1569
1570 * docs/html/test.html: Add multilib RUNTESTFLAGS example.
1571
1572 * docs/html/18_support/howto.html: Add bit about writing to
1573 stderr, mostly by Zack.
76e9802c 1574
98e953f5
PC
15752004-03-01 Paolo Carlini <pcarlini@suse.de>
1576
1577 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1578 money_get<>::do_get(string_type&)): ... and two more.
1579
b19fb27d
PC
15802004-03-01 Paolo Carlini <pcarlini@suse.de>
1581
1582 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1583 Fix thinkos in the switch from string_type& to string& as last
1584 argument.
1585
08ff96c3
PC
15862004-03-01 Paolo Carlini <pcarlini@suse.de>
1587
1588 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1589 Also when parsing exponent sign, first look for thousands_sep
1590 and decimal_point; tweak a bit.
1591 * testsuite/22_locale/num_get/get/char/15.cc: New.
1592 * testsuite/22_locale/num_get/get/wchar_t/15.cc: New.
76e9802c 1593
08ff96c3
PC
1594 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1595 num_get<>::_M_extract_int): Reorder some conditionals.
1596
15972004-03-01 Paolo Carlini <pcarlini@suse.de>
1598
1599 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1600 Consistently with numpunct, enforce the requirements in
1601 22.2.6.3, p3 for the thousands separators; tweak a bit.
1602 * testsuite/22_locale/money_get/get/char/15.cc: New.
1603 * testsuite/22_locale/money_get/get/wchar_t/15.cc: New.
76e9802c 1604
1152b861
DB
16052004-03-01 David Billinghurst <David.Billinghurst@riotinto.com>
1606
76e9802c 1607 * testsuite/lib/libstdc++.exp (v3-list-tests): Use
1152b861
DB
1608 testsuite_files from correct multilib blddir when running
1609 testsuite.
1610
8b425082
PE
16112004-02-29 Phil Edwards <phil@codesourcery.com>
1612
1613 * testsuite/Makefile.am (check-abi, check-abi-verbose): Copy
1614 the summary file to the logfile.
1615 * testsuite/Makefile.in: Regenerate.
1616
3a1a4ed2
JDA
16172004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1618
1619 * config/cpu/hppa/atomicity.h (__atomic_add): Make first argument
1620 volatile.
1621 * config/os/hpux/os_defines.h (_GLIBCXX_INST_ATOMICITY_LOCK): Use
1622 __GXX_WEAK__ instead of _GLIBCXX_SUPPORTS_WEAK.
1623
0e1b98cc
PC
16242004-02-28 Paolo Carlini <pcarlini@suse.de>
1625
1626 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
1627 According to 22.2.3.1, p2, 'units' may be followed by 'e' with
1628 no 'decimal-point' in the middle: in this case too we must fix
1629 up __found_grouping; slightly tweak.
1630 * testsuite/22_locale/num_get/get/char/14.cc: New.
1631 * testsuite/22_locale/num_get/get/wchar_t/14.cc: New.
1632
58adf39c 16332004-02-27 Eric Christopher <echristo@redhat.com>
76e9802c 1634 Phil Edwards <phil@codesourcery.com>
58adf39c
EC
1635
1636 * testsuite/22_locale/collate/compare/wchar_t/2.cc,
1637 testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
1638 testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
1639 testsuite/22_locale/collate/hash/wchar_t/2.cc,
1640 testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
1641 testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
1642 testsuite/22_locale/collate/transform/wchar_t/2.cc,
1643 testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
1644 testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
1645 Use dg-require-iconv.
1646 * testsuite/lib/libstdc++.exp: Load target-supports.exp.
1647
23834577 16482004-02-27 Phil Edwards <phil@codesourcery.com>
76e9802c 1649 Eric Christopher <echristo@redhat.com>
23834577
PE
1650
1651 * testsuite/config/default.exp: Update with comments.
1652 (${tool}_target_compile): New wrapper routine.
1653 * testsuite/lib/dg-options.exp: New file, with dg-require-iconv.
1654 * testsuite/lib/libstdc++.exp: Update with comments and cosmetic
1655 fixes.
1656 (load_gcc_lib, v3track): New routines.
1657 (v3-init): Rename to libstdc++_init.
1658 * testsuite/libstdc++-dg/normal.exp: No longer call v3-init.
1659 Move DEFAULT_CXXFLAGS handling into libstdc++_init.
1660
00d04db6
BK
16612004-02-27 Benjamin Kosnik <bkoz@redhat.com>
1662
1663 * config/cpu/hppa/atomicity.h: Include c++config.h to get defines.
1664
1665 * src/misc-inst.cc (_S_atomicity_lock): Move to __gnu_cxx.
1666
1667 * config/os/irix/irix5.2/atomicity.h: Merge..
1668 * config/os/irix/irix6.5/atomicity.h: Merge..
1669 * config/os/irix/atomicity.h: ...into this.
1670 * config/os/irix/atomic_word.h: New.
1671 * configure.host: Set atomic_word_dir for irix.
1672
1673 * hppa/atomicity.h: Change __Atomicity_lock to _Atomicity_lock.
1674 * i386/atomicity.h: Same.
1675 * m68k/atomicity.h: Same.
1676 * sparc/atomicity.h: Same.
1677
c284a126
DE
16782004-02-27 David Edelsohn <edelsohn@gnu.org>
1679
1680 * config/os/aix/atomicity.h: Use __gnu_cxx namespace. Remove
00d04db6 1681 static, and inline keywords.
c284a126 1682
a8ea7389
PC
16832004-02-27 Paolo Carlini <pcarlini@suse.de>
1684
1685 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1686 num_get<>::_M_extract_int, money_get<>::_M_extract): If appropriate,
1687 call reserve on the __tmp_gruping string.
1688 (num_get<>::_M_extract_float): Don't append unnecessarily a
1689 char() to the returned string.
1690 * include/bits/locale_facets.tcc: Trivial reformattings.
1691
f4bdbead
PC
16922004-02-27 Paolo Carlini <pcarlini@suse.de>
1693
1694 * include/bits/locale_facets.h (money_get<>::_M_extract):
1695 Change signature: now takes a plain string&.
1696 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1697 Update consistently the definition; use the moneypunct cache
1698 to parse the value; use swap to change __units.
1699 (money_get<>::do_get(long double&)): Update call of _M_extract,
1700 avoid ctype::narrow, not correct wrt the standard.
1701 (money_get<>::do_get(string_type&)): Likewise, update call
1702 of _M_extract, use ctype::widen.
1703 * src/locale-inst.cc: Tweak instantiations of _M_extract.
1704
40fcf31b
BK
17052004-02-26 Ian Lance Taylor <ian@wasabisystems.com>
1706
1707 * testsuite/demangle/abi_examples/01.cc: Expect error -2.
1708 * testsuite/demangle/abi_examples/02.cc: Likewise.
1709 * testsuite/demangle/regression/cw-11.cc: Likewise.
1710 * testsuite/demangle/regression/cw-16.cc: Change two expected
1711 results to match libiberty demangler output.
1712
17132004-02-26 Benjamin Kosnik <bkoz@redhat.com>
1714
1715 PR libstdc++/10246
76e9802c
ZW
1716 * libsupc++/Makefile.am: Use libiberty demangler.
1717 (c_sources): Add cp-demangle.c.
1718 * libsupc++/Makefile.in: Regenerate.
1719 * src/Makefile.am (sources): Remove demangle.cc.
1720 * src/Makefile.in: Regenerate.
1721 * include/Makefile.am (bits_headers): Move demangle.h.
40fcf31b 1722 (ext_headers): ...here.
76e9802c
ZW
1723 * include/Makefile.in: Regenerate.
1724 * include/bits/demangle.h: Move...
40fcf31b 1725 * include/ext/demangle.h: ...here.
76e9802c 1726 * src/demangle.cc: Remove.
40fcf31b
BK
1727
17282004-02-26 Benjamin Kosnik <bkoz@redhat.com>
76e9802c
ZW
1729
1730 * include/bits/demangle.h: Add type template parameter to all
1731 templates with just an Allocator template parameter.
1732
2c5d0ae8
BK
17332004-02-25 Benjamin Kosnik <bkoz@redhat.com>
1734
1735 * include/bits/atomicity.h: New, forward declarations for __atomic_add
1736 and __exchange_and_add.
1737 * config/cpu/generic/atomic_word.h: New, typdef for atomic word.
1738 * config/cpu/cris/atomic_word.h: Same.
1739 * config/cpu/sparc/atomic_word.h: Same.
1740 * include/bits/ios_base.h (_Callback_list::_M_remove_reference):
1741 Qualifiy with __gnu_cxx.
1742 (_Callback_list::_M_add_reference): Same.
1743 * include/bits/locale_classes.h (locale::facet::_M_add_reference): Add.
1744 (locale::facet::_M_remove_reference): Same.
1745 (locale::_Impl::_M_add_reference): Add.
1746 (locale::_Impl::_M_remove_reference): Same.
1747 * include/bits/basic_string.h (basic_string::_Rep::_M_refcopy): Same.
1748 (basic_string::_Rep::_M_dispose): Same.
1749 * src/ios.cc (ios_base::xalloc): Same.
1750 * src/ios_init.cc (ios_base::Init::Init): Same.
1751 (ios_base::Init::~Init): Same.
1752 * src/locale.cc (locale::id::_M_id): Same.
1753 * config/cpu/i486/atomicity.h: Use __gnu_cxx namespace. Remove
00d04db6 1754 static, and inline keywords.
2c5d0ae8
BK
1755 * config/cpu/alpha/atomicity.h: Same.
1756 * config/cpu/cris/atomicity.h: Same.
1757 * config/cpu/generic/atomicity.h: Same.
1758 * config/cpu/hppa/atomicity.h: Same.
1759 * config/cpu/i386/atomicity.h: Same.
1760 * config/cpu/ia64/atomicity.h: Same.
1761 * config/cpu/m68k/atomicity.h: Same.
1762 * config/cpu/mips/atomicity.h: Same.
1763 * config/cpu/powerpc/atomicity.h: Same.
1764 * config/cpu/s390/atomicity.h: Same.
1765 * config/cpu/sparc/atomicity.h: Same.
76e9802c 1766
2c5d0ae8
BK
1767 * src/Makefile.am (host_sources): Add atomicity.cc.
1768 (atomicity.cc): New rule.
1769 * src/Makefile.in: Regenerate.
1770 * include/Makefile.am (host_headers): Remove host atomicity.h.
1771 (host_headers): Add atomic_word.h.
1772 (bits_headers): Add bits atomicity.h.
1773 Change ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1774 * include/Makefile.in: Regenerate.
1775 * configure.host (atomic_word_dir): Add.
1776 * configure.ac: Substitute ATOMIC_WORD_SRCDIR. Change
1777 ATOMICITY_INC_SRCDIR to ATOMICITY_SRCDIR.
1778 * configure: Regenerate.
1779 * config/linker-map.gnu: Export __exchange_and_add, and __atomic_add.
1780
1781 * testsuite/27_io/ios_base/cons/assign_neg.cc: Adjust line numbers.
76e9802c
ZW
1782 * testsuite/27_io/ios_base/cons/copy_neg.cc: Same.
1783
cec0e70b
JW
17842004-02-25 Jonathan Wakely <redi@gcc.gnu.org>
1785
1786 * docs/html/20_util/howto.html, docs/html/20_util/allocator.html,
1787 docs/html/ext/howto.html, docs/html/ext/mt_allocator.html:
1788 Fix markup, more <link> tags.
1789
bb9f8a85
CW
17902004-02-25 Carlo Wood <carlo@alinoe.com>
1791
1792 * bits/demangle.h
1793 namespace __gnu_cxx::demangler
1794 (session<Allocator>::qualifier_list_Allocator): Add
1795 (session<Allocator>::M_qualifier_list_alloc): Add
1796 (session<Allocator>::decode_type_with_postfix):
1797 Use M_qualifier_list_alloc instead of calling operator new/delete.
1798
b79cef06
PC
17992004-02-24 Paolo Carlini <pcarlini@suse.de>
1800
1801 PR libstdc++/14252
1802 * include/bits/postypes.h (class streamoff): Add operator++(),
1803 operator++(int), operator--() and operator--(int).
1804 * testsuite/27_io/fpos/14252.cc: New.
1805
212063a8
RS
18062004-02-24 Richard Sandiford <rsandifo@redhat.com>
1807
1808 * include/bits/locale_facets.tcc (num_get::_M_extract_int): Fix bounds
1809 error in handling of hex constants.
1810
031e658e
PC
18112004-02-24 Paolo Carlini <pcarlini@suse.de>
1812
1813 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1814 Prefer basic_string::append to operator+= and a temporary.
1815
6f94dea7
BK
18162004-02-23 Benjamin Kosnik <bkoz@redhat.com>
1817
1818 * libsupc++/vterminate.cc (__gnu_cxx::__verbose_terminate_handler):
1819 Only use fputs, not write.
76e9802c 1820
20d0a40e 18212004-02-23 Benjamin Kosnik <bkoz@redhat.com>
f263b26e
BK
1822
1823 * include/ext/malloc_allocator.h: Add operators ==, !=.
1824 * include/ext/new_allocator.h: Add operators ==, !=.
1825 * include/ext/mt_allocator.h (__mt_alloc::tune): New.
1826 (__mt_alloc::_S_get_options): New.
76e9802c 1827 (__mt_alloc::_S_set_options): New.
f263b26e
BK
1828 (__mt_alloc::_S_thread_key_destr): To _S_destroy_thread_key.
1829 (__mt_alloc::_S_no_of_bins): To _S_bin_size.
1830 Move functions out of line, simplify, format.
1831 * src/allocator.cc: Simplify explicit instantiations.
1832 * include/bits/allocator.h: Tweak.
76e9802c 1833
20da06ef
PC
18342004-02-22 Paolo Carlini <pcarlini@suse.de>
1835
1836 * include/bits/locale_facets.tcc (money_put<>::_M_insert):
1837 Restructure formatting of value component, first dealing with
1838 the non-decimal digits; use reserve.
1839
18402004-02-22 Paolo Carlini <pcarlini@suse.de>
1841
1842 * include/bits/locale_facets.h (class money_get): Inherit
1843 from money_base too; tweak declaration of _M_extract, now
1844 parameterized on _Intl too.
1845 * include/bits/locale_facets.tcc (money_get<>::_M_extract):
1846 Update definition to use the cache; call reserve on __res to
1847 avoid multiple reallocations; fix parsing of sign component
1848 according to 22.2.6.1.2, p3.
1849 (money_get<>::do_get(long double&),
76e9802c 1850 money_get<>::do_get(string_type&)): Update calls of _M_extract.
20da06ef
PC
1851 * src/locale-inst.cc: Add instantiations of
1852 money_get::_M_extract<false> and money_get::_M_extract<true>.
1853 * testsuite/22_locale/money_get/get/char/14.cc: New.
1854 * testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.
76e9802c 1855
afc3bb58
MM
18562004-02-21 Mark Mitchell <mark@codesourcery.com>
1857
1858 * libsupc++/vterminate.cc
1859 (__gnu_cxx::__verbose_terminate_handler): Guard against recursive
1860 calls to terminate.
1861 * src/demangle.cc (__cxa_demangle): Wrap in try-catch block.
1862
1863 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1864 not set RLIMIT_AS on HP-UX.
1865
e1efc7a0
MM
18662004-02-21 Mark Mitchell <mark@codesourcery.com>
1867
1868 * testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
1869 not set RLIMIT_AS on HP-UX.
1870
fe932e50
PC
18712004-02-21 Paolo Carlini <pcarlini@suse.de>
1872
1873 * include/bits/locale_facets.h (class money_base): Add { _S_minus,
1874 _S_zero, _S_end } enum, _S_atoms.
1875 (struct __moneypunct_cache<>): Parameterize on _Intl too; add
1876 _M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
1877 _M_negative_sign_size, _M_atoms; tweak constructor consistently.
1878 (__moneypunct_cache<>::~__moneypunct_cache): Update.
1879 (__moneypunct_cache<>::_M_cache): Fill the cache.
1880 (class moneypunct): Tweak __cache_type typedef.
1881 (class money_put): Inherit from money_base too; tweak declaration
1882 of _M_insert, now parameterized on _Intl.
1883 * include/bits/locale_facets.tcc
1884 (struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
1885 (money_put<>::_M_insert): Update definition to use the cache;
1886 call reserve on __res to avoid multiple reallocations.
1887 (money_put<>::do_put(long double),
1888 money_put<>::do_put(const string_type&): Update calls of _M_insert.
1889 * config/locale/generic/monetary_members.cc
1890 (moneypunct<char, true>::_M_initialize_moneypunct,
1891 moneypunct<char, false>::_M_initialize_moneypunct,
1892 moneypunct<wchar_t, true>::_M_initialize_moneypunct,
1893 moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
1894 * config/locale/gnu/monetary_members.cc: Likewise.
1895 * config/locale/gnu/monetary_members.cc
1896 (moneypunct<wchar_t, true>::~moneypunct(),
1897 moneypunct<wchar_t, false>::~moneypunct()): Likewise.
1898 * src/globals_locale.cc: Tweak fake_money_cache_c.
1899 * src/locale-inst.cc: Add instantiations for
1900 money_put::_M_insert<false> and money_put::_M_insert<true> and
1901 __moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
1902 * src/locale_facets.cc: Define money_base::_S_atoms.
1903 * src/locale_init.cc: Update placement new of
1904 __moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
1905 __moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
1906
1907 * config/locale/generic/numeric_members.cc: Clean up.
1908 * config/locale/gnu/numeric_members.cc: Likewise.
1909 * testsuite/22_locale/money_put/put/char/1.cc: Likewise.
1910 * testsuite/22_locale/money_put/put/char/2.cc: Likewise.
1911 * testsuite/22_locale/money_put/put/char/3.cc: Likewise.
1912 * testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
1913 * testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
1914 * testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
1915
f196bdc4
MM
19162004-02-20 Mark Mitchell <mark@codesourcery.com>
1917
1918 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
1919 FIFO for writing with ios_base::in|ios_base::out.
1920 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
1921 * testsuite/27_io/objects/char/7.cc: Likewise.
1922 * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
1923 with "r+".
1924
2df93cf3
DE
19252004-02-19 David Edelsohn <edelsohn@gnu.org>
1926
1927 * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
1928 from iso-8859-1 to ISO8859-1.
1929 * 22_locale/collate/compare/wchar_t/wrapped_env.cc: Same.
1930 * 22_locale/collate/compare/wchar_t/wrapped_locale.cc: Same.
1931 * 22_locale/collate/hash/wchar_t/2.cc: Same.
1932 * 22_locale/collate/hash/wchar_t/wrapped_env.cc: Same.
1933 * 22_locale/collate/hash/wchar_t/wrapped_locale.cc: Same.
1934 * 22_locale/collate/transform/wchar_t/2.cc: Same.
1935 * 22_locale/collate/transform/wchar_t/wrapped_env.cc: Same.
1936 * 22_locale/collate/transform/wchar_t/wrapped_locale.cc: Same.
1937
2ddf25f2
PC
19382004-02-18 Paolo Carlini <pcarlini@suse.de>
1939
1940 * include/bits/locale_facets.h (money_get<>::_M_extract):
1941 New, helper for do_get.
1942 (money_put<>::_M_insert): Likewise, for do_put.
1943 * include/bits/locale_facets.tcc (money_get<>::_M_extract,
1944 money_put<>::_M_insert): Define.
1945 (money_get<>::do_get(long double&), money_get<>::do_get(
1946 string_type&), money_put::do_put(long double),
1947 money_put::do_put(const string_type&)): Use the helpers.
1948
94b8de97
PC
19492004-02-18 Paolo Carlini <pcarlini@suse.de>
1950
1951 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
1952 Rewrite, avoiding recursion.
1953 (__gnu_internal::xwrite): Minor tweaks.
1954
4d0bdcd6
SO
19552004-02-17 Stefan Olsson <stefan@xapa.se>
1956
1957 * include/ext/mt_allocator.h: Removed the last
1958 pointer. Deallocated blocks are now added to the front of
1959 freelists as proposed by Felix Yen. This gives roughly 10%
1960 performance boost and saves some memory.
1961 * docs/html/ext/mt_allocator.html: Change due to that deallocated
1962 blocks now are added to the front of freelists. The reason to this
1963 approach is also explained.
bb9f8a85 1964
6d4925e3
PC
19652004-02-17 Paolo Carlini <pcarlini@suse.de>
1966
1967 * include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
1968 num_get<>::_M_extract_int, money_get<>::do_get): Simplify
1969 grouping fidelity conditional.
1970
3e9b6cf4
PC
19712004-02-16 Paolo Carlini <pcarlini@suse.de>
1972
1973 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
1974 Qualify exception with std::.
1975 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Ditto.
1976 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
1977 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
1978 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
1979 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
1980
835abbf7
PC
19812004-02-16 Paolo Carlini <pcarlini@suse.de>
1982
1983 * testsuite/ext/enc_filebuf/char/13189.cc: Don't check
1984 for now that the catch block is not reached.
1985 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
1986
b7e64db2
PC
19872004-02-16 Paolo Carlini <pcarlini@suse.de>
1988
1989 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
1990 Fix parsing of the remaining sign characters.
1991 * 22_locale/money_get/get/char/2.cc: Tweak: now, correctly,
1992 the input is scanned 'til eof.
1993 * 22_locale/money_get/get/char/4.cc: Likewise.
1994 * 22_locale/money_get/get/wchar_t/2.cc: Likewise.
1995 * 22_locale/money_get/get/wchar_t/4.cc: Likewise.
1996 * 22_locale/money_get/get/char/8.cc: Tweak: override do_neg_format,
1997 not do_pos_format: the former is the only one that matters during
1998 input.
1999 * 22_locale/money_get/get/wchar_t/8.cc: Likewise.
2000
2001 * 22_locale/money_get/get/char/6.cc: Minor tweak.
2002 * 22_locale/money_get/get/wchar_t/6.cc: Likewise.
2003
230377dc
DA
20042004-02-15 David Asher <david.asher@cavium.com>
2005
2006 PR libstdc++/11352
2007 * include/bits/locale_facets.tcc (__pad<>::_S_pad): Don't
2008 access __olds beyond __oldlen.
2009
45cbe93c
PC
20102004-02-14 Paolo Carlini <pcarlini@suse.de>
2011
2012 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make
2013 sure the exception is actually thrown.
2014 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2015 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2016 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2017
ac3cadf0
PC
20182004-02-14 Paolo Carlini <pcarlini@suse.de>
2019
2020 PR libstdc++/13858
2021 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external):
2022 In case of conversion errors, throw ios_failure; simplify.
2023 * testsuite/27_io/basic_filebuf/overflow/char/13858.cc: New.
2024 * testsuite/27_io/basic_filebuf/overflow/wchar_t/13858.cc: Ditto.
2025 * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Tweak,
2026 previously we didn't throw in case of conversion errors, instead
2027 just returned eof().
2028 * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto.
2029 * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto.
2030 * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto.
2031
2032 * include/bits/fstream.tcc (basic_filebuf<>::overflow):
2033 Trivial simplification of a conditional.
2034
2e9a1f6b
PC
20352004-02-12 Paolo Carlini <pcarlini@suse.de>
2036
2037 PR libstdc++/13731 (final part: writev)
20da06ef 2038 * config/io/basic_file_stdio.cc (__gnu_internal::xwritev):
2e9a1f6b
PC
2039 New, a wrapper around writev() handling partial writes.
2040 (__basic_file<char>::xwrite): Move to __gnu_internal and make
2041 static.
2042 (__basic_file<char>::xsputn): Update call.
76e9802c 2043 (__basic_file<char>::xsputn_2): Likewise.
20da06ef 2044 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2e9a1f6b
PC
2045 Don't declare, now static.
2046
1c86f39d
BK
20472004-02-11 Stefan Olsson <stefan@xapa.se>
2048
2049 * docs/html/ext/mt_allocator.html: New.
2050
20512004-02-11 Benjamin Kosnik <bkoz@redhat.com>
2052
2053 * docs/html/20_util/allocator.html: New file, consolidate
2054 allocator information here. Revamp.
2055 * docs/html/documentation.html: Change links.
2056 * docs/html/20_util/howto.html: Same.
2057 * docs/html/ext/howto.html: Same.
2058
98e96784
PC
20592004-02-11 Paolo Carlini <pcarlini@suse.de>
2060
2061 PR libstdc++/13731 (first part: write)
2062 * config/io/basic_file_stdio.h (__basic_file<char>::xwrite):
2063 New, declare.
2064 * config/io/basic_file_stdio.cc (__basic_file<char>::xwrite):
2065 Define it: a wrapper around write() handling partial write.
2066 (__basic_file<char>::xsputn): Use it.
2067 (__basic_file<char>::xsputn_2): Likewise.
2068
a2af66c1
PC
20692004-02-11 Paolo Carlini <pcarlini@suse.de>
2070 Petur Runolfsson <peturr02@ru.is>
2071
2072 PR libstdc++/14078
2073 * include/std/std_istream.h (operator>>(__istream_type& (*)
2074 (__istream_type&)), operator>>(__ios_type& (*)(__ios_type&)),
2075 operator>>(ios_base& (*)(ios_base&))): Declare inline.
2076 * include/std/std_ostream.h (operator<<(__ostream_type& (*)
2077 (__ostream_type&)), operator<<(__ios_type& (*)(__ios_type&)),
2078 operator<<(ios_base& (*) (ios_base&))): Likewise.
2079 * testsuite/performance/27_io/fmtflags_manipulators.cc: New.
2080
64bd39cc
LR
20812004-02-10 Loren J. Rittle <ljrittle@acm.org>
2082
2083 PR libstdc++/14098
2084 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2085 __gnu_cxx::stdio_sync_filebuf<char, std::char_traits<char> >.
2086
d318a8ba
LR
2087 PR libstdc++/14097
2088 * config/linker-map.gnu: Add typeinfo and typeinfo name for
2089 __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >.
2090
a39c16dd
LR
20912004-02-09 Loren J. Rittle <ljrittle@acm.org>
2092
2093 * include/ext/pool_allocator.h: Include c++config.h.
2094
1ef00312
SO
20952004-02-09 Stefan Olsson <stefan@xapa.se>
2096
2097 * include/ext/mt_allocator.h: thread_id is unused in non threaded
2098 applications and now has a ifdef to remove it completely on
2099 compilers without thread support. Include stdlib.h due to a
2100 compiler warning on getenv().
2101
1b81e1b5
PB
21022004-02-09 Paul Brook <paul@codesourcery.com>
2103
2104 * libstdc++-v3/configure.host: Explicitly check for atomicity.h file.
2105
cf0d2c40
PC
21062004-02-09 Paolo Carlini <pcarlini@suse.de>
2107
2108 PR libstdc++/14071
2109 * src/locale_init.cc (locale::global(const locale&)): Use
2110 locale::name() in order to decide whether calling setlocale.
2111 * testsuite/22_locale/locale/global_locale_objects/14071.cc: New.
2112
2113 * include/bits/locale_classes.h (locale::_Impl::_M_check_same_name()):
2114 Avoid computing &= unnecessarily.
2115
664fc5df
JW
21162004-02-09 James E Wilson <wilson@specifixinc.com>
2117
2118 PR libstdc++/5625
2119 * libsuspc++/eh_personality.cc (PERSONALITY_FUNCTION): Use
2120 __builtin_extend_pointer.
2121
86fd2b51
PC
21222004-02-09 Paolo Carlini <pcarlini@suse.de>
2123
2124 PR libstdc++/14072
2125 * include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
2126 Don't leave dangling pointers.
2127 * testsuite/27_io/basic_ios/imbue/14072.cc: New.
2128 * testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
2129 facet is needed in the final test.
2130
f19e9e4d
BI
21312004-02-09 Bernardo Innocenti <bernie@develer.com>
2132
2133 * crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
2134 * configure: Regenerate.
2135
c3862806
RH
21362004-02-08 Richard Henderson <rth@redhat.com>
2137
2138 PR libstdc++/14026
76e9802c 2139 * libsupc++/eh_catch.cc (__cxa_begin_catch): Don't adjust
c3862806
RH
2140 uncaughtExceptions during nested catch rethrow.
2141 * testsuite/18_support/14026.cc: New.
2142
fd95f498
PC
21432004-02-08 Paolo Carlini <pcarlini@suse.de>
2144
2145 * include/bits/basic_string.tcc (assign(const _CharT*, size_type)):
2146 When working in place remember to set the state to sharable
2147 (otherwise, _M_mutate does it).
2148
ed6814f7
BI
21492004-02-08 Bernardo Innocenti <bernie@develer.com>
2150
2151 * include/bits/allocator.h, include/bits/basic_ios.h,
2152 include/bits/basic_ios.tcc, include/bits/basic_string.h,
2153 include/bits/basic_string.tcc, include/bits/boost_concept_check.h,
2154 include/bits/char_traits.h, include/bits/codecvt.h,
2155 include/bits/concurrence.h, include/bits/cpp_type_traits.h,
2156 include/bits/demangle.h, include/bits/deque.tcc,
2157 include/bits/fstream.tcc, include/bits/functexcept.h,
2158 include/bits/gslice.h, include/bits/gslice_array.h,
2159 include/bits/indirect_array.h, include/bits/ios_base.h,
2160 include/bits/istream.tcc, include/bits/list.tcc,
2161 include/bits/locale_classes.h, include/bits/locale_facets.h,
2162 include/bits/locale_facets.tcc, include/bits/localefwd.h,
2163 include/bits/mask_array.h, include/bits/ostream.tcc,
2164 include/bits/postypes.h, include/bits/slice_array.h,
2165 include/bits/sstream.tcc, include/bits/stl_algo.h,
2166 include/bits/stl_algobase.h, include/bits/stl_bvector.h,
2167 include/bits/stl_construct.h, include/bits/stl_deque.h,
2168 include/bits/stl_function.h, include/bits/stl_heap.h,
2169 include/bits/stl_iterator.h, include/bits/stl_iterator_base_funcs.h,
2170 include/bits/stl_list.h, include/bits/stl_map.h,
2171 include/bits/stl_multimap.h, include/bits/stl_multiset.h,
2172 include/bits/stl_numeric.h, include/bits/stl_pair.h,
2173 include/bits/stl_queue.h, include/bits/stl_raw_storage_iter.h,
2174 include/bits/stl_relops.h, include/bits/stl_set.h,
2175 include/bits/stl_stack.h, include/bits/stl_tempbuf.h,
2176 include/bits/stl_threads.h, include/bits/stl_tree.h,
2177 include/bits/stl_uninitialized.h, include/bits/stl_vector.h,
2178 include/bits/stream_iterator.h, include/bits/streambuf.tcc,
2179 include/bits/streambuf_iterator.h,include/bits/stringfwd.h,
2180 include/bits/type_traits.h, include/bits/valarray_after.h,
2181 include/bits/valarray_array.h, include/bits/valarray_array.tcc,
2182 include/bits/valarray_before.h, include/bits/vector.tcc: Remove
2183 trailing whitespace.
2184
eee54836
PC
21852004-02-06 Paolo Carlini <pcarlini@suse.de>
2186
2187 * include/bits/basic_string.h: Fix comment.
2188
15d72060
PC
21892004-02-06 Paolo Carlini <pcarlini@suse.de>
2190
2191 * include/bits/stl_construct.h: Wrap overlong lines, reformat
2192 according to the coding standards.
2193 * include/bits/stl_pair.h: Likewise.
2194 * include/bits/stl_raw_storage_iter.h: Likewise.
2195 * include/bits/stl_stack.h: Likewise.
2196 * include/bits/stl_uninitialized.h: Likewise.
2197 * include/bits/stream_iterator.h: Likewise.
2198 * include/bits/streambuf_iterator.h: Likewise.
2199 * include/bits/type_traits.h: Likewise.
2200
c5dd98f3
PC
22012004-02-06 Paolo Carlini <pcarlini@suse.de>
2202
2203 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2204 Adjust timings.
2205
462f4a81
LR
22062004-02-05 Loren J. Rittle <ljrittle@acm.org>
2207
2208 * scripts/check_performance: Support PCH.
2209
fbdf188d
LR
2210 * scripts/check_performance (CXX): Add -DNOTHREAD.
2211 * testsuite/performance/20_util/allocator/insert.cc: Integrate
2212 threaded tests from insert_insert.cc. Tweak iterations,
2213 remove special cases.
2214 * testsuite/performance/20_util/allocator/insert_insert.cc:
2215 Make all tests single-threaded. Tweak iterations.
2216 * testsuite/performance/20_util/allocator/map_thread.cc:
2217 Tweak iterations.
2218 * testsuite/performance/20_util/allocator/producer_consumer.cc:
2219 Likewise.
2220
0314451d
GK
22212004-02-05 Geoffrey Keating <geoffk@apple.com>
2222
2223 PR 12179
2224 * .cvsignore: New.
2225 * acinclude.m4 (GLIBCXX_EXPORT_INSTALL_INFO): Use 'gcc', not
2226 'gcc-lib'. Add comment about poorly-named variables.
2227 * aclocal.m4: Regenerate.
2228 * configure: Regenerate.
2229
d9010fca
PC
22302004-02-05 Paolo Carlini <pcarlini@suse.de>
2231
2232 * include/bits/locale_facets.tcc (money_get::do_get(string_type&)):
2233 Thousands-sep are always optional; thousands-sep are not allowed
2234 after the decimal_point.
2235 * testsuite/22_locale/money_get/get/char/12.cc: New.
2236 * testsuite/22_locale/money_get/get/char/13.cc: New.
2237 * testsuite/22_locale/money_get/get/wchar_t/12.cc: New.
2238 * testsuite/22_locale/money_get/get/wchar_t/13.cc: New.
2239
2240 * testsuite/22_locale/money_get/get/char/1.cc: Clean-up.
2241 * testsuite/22_locale/money_get/get/char/2.cc: Likewise.
2242 * testsuite/22_locale/money_get/get/char/3.cc: Likewise.
2243 * testsuite/22_locale/money_get/get/char/4.cc: Likewise.
2244 * testsuite/22_locale/money_get/get/wchar_t/1.cc: Likewise.
2245 * testsuite/22_locale/money_get/get/wchar_t/2.cc: Likewise.
2246 * testsuite/22_locale/money_get/get/wchar_t/3.cc: Likewise.
2247 * testsuite/22_locale/money_get/get/wchar_t/4.cc: Likewise.
2248
2249 * testsuite/22_locale/money_get/get/char/9.cc: Fix citation from
2250 the standard.
2251 * testsuite/22_locale/money_get/get/wchar_t/9.cc: Likewise.
2252
d232925f
RS
22532004-02-05 Richard Sandiford <rsandifo@redhat.com>
2254
2255 * config/os/irix/irix6.5/os_defines.h (_GLIBCXX_FIONREAD_TAKES_OFF_T):
2256 Define.
2257 * config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc): Use
2258 it to decide whether FIONREAD should take an off_t or int argument.
2259
92ff3e43
PC
22602004-02-05 Paolo Carlini <pcarlini@suse.de>
2261
2262 * include/bits/stl_function.h: Minor formatting changes.
2263
9fe7e2b7
ZW
22642004-02-04 Zack Weinberg <zack@codesourcery.com>
2265
2266 Revert previous change to config/abi/*/baseline_symbols.txt.
2267
6a734d61
BK
22682004-02-04 Benjamin Kosnik <bkoz@redhat.com>
2269 Zack Weinberg <zack@codesourcery.com>
2270
2271 * config/io/basic_file_stdio.cc (__gnu_internal::fopen_mode):
2272 New function.
2273 (__basic_file<char>::sys_open, __basic_file<char>::open): Use it.
2274 (__basic_file<char>::_M_open_mode): Delete.
2275 * config/io/basic_file_stdio.cc: Delete declaration of _M_open_mode.
2276
2277 * testsuite/27_io/basic_filebuf/close/char/9964.cc
2278 * testsuite/27_io/basic_filebuf/open/char/9507.cc:
2279 Correct flags to filebuf::open calls.
2280
2281 * config/abi/alpha-freebsd5/baseline_symbols.txt
2282 * config/abi/alpha-linux-gnu/baseline_symbols.txt
2283 * config/abi/hppa-linux-gnu/baseline_symbols.txt
2284 * config/abi/i386-freebsd4/baseline_symbols.txt
2285 * config/abi/i386-freebsd5/baseline_symbols.txt
2286 * config/abi/i486-linux-gnu/baseline_symbols.txt
2287 * config/abi/ia64-linux-gnu/baseline_symbols.txt
2288 * config/abi/mips-linux-gnu/baseline_symbols.txt
2289 * config/abi/sparc-freebsd5/baseline_symbols.txt
2290 * config/abi/sparc-linux-gnu/baseline_symbols.txt
2291 * config/abi/x86_64-linux-gnu/baseline_symbols.txt:
2292 Remove entry for __basic_file<char>::_M_open_mode.
2293
f63fd68b
LR
22942004-02-04 Loren J. Rittle <ljrittle@acm.org>
2295
2296 * testsuite/performance/20_util/allocator/insert.cc (main): Tweak.
2297
de8a2f87
BK
22982004-02-04 Felix Yen <fwy@alumni.brown.edu>
2299
2300 * testsuite/performance/20_util/producer_consumer.cc: New.
2301 * testsuite/performance/20_util/allocator/insert_insert.cc: Two loops.
6a734d61 2302
de8a2f87 23032004-02-04 Benjamin Kosnik <bkoz@redhat.com>
6a734d61 2304
de8a2f87 2305 * testsuite/performance/20_util/allocator.cc: Move to..
6a734d61 2306 * testsuite/performance/20_util/allocator/insert.cc: ...here.
de8a2f87
BK
2307 * testsuite/performance/20_util/allocator_thread.cc: Move to...
2308 * testsuite/performance/20_util/allocator/insert_insert.cc: ...here.
2309 * testsuite/performance/20_util/allocator_map_thread.cc: Move to...
2310 * testsuite/performance/20_util/allocator/map_thread.cc: ...here.
6a734d61 2311
772fec9a
JW
23122004-02-04 Jonathan Wakely <redi@gcc.gnu.org>
2313
2314 * docs/html/faq/index.html: Recommend using LD_LIBRARY_PATH.
2315 * docs/html/faq/index.txt: Regenerate.
2316
56766e0d
DM
23172004-02-04 Dhruv Matani <dhruvbird@gmx.net>
2318
2319 * include/ext/debug_allocator.h: _M_extra now stands for the
2320 number of extra objects instead of the number of extra bytes.
2321 (debug_allocator::allocate): Adjust.
2322 (debug_allocator::deallocate): Adjust.
2323
2324 * include/ext/pool_allocator.h: Fix typo.
2325
22269632
FY
23262004-02-03 Felix Yen <fwy@alumni.brown.edu>
2327 Benjamin Kosnik <bkoz@redhat.com>
6a734d61 2328
22269632
FY
2329 * testsuite/performance/20_util/allocator.cc: Add map,
2330 deque, set tests.
2331 * testsuite/performance/20_util/allocator_thread.cc: Same.
6a734d61 2332
129e9210
PC
23332004-02-03 Paolo Carlini <pcarlini@suse.de>
2334
2335 * include/bits/basic_string.h (insert(iterator)): Remove,
2336 non-standard and already scheduled for removal.
2337
83042fca
PC
23382004-02-03 Paolo Carlini <pcarlini@suse.de>
2339
2340 * include/bits/stl_iterator_base_funcs.h: Minor formatting
2341 and indentation tweaks.
2342 * include/bits/stl_iterator_base_types.h: Likewise.
2343 * include/bits/stl_list.h: Likewise.
2344 * include/bits/stl_map.h: Likewise.
2345 * include/bits/stl_tempbuf.h: Likewise.
2346
06a81b60
JQ
23472004-02-02 Jerry Quinn <jlquinn@optonline.net>
2348
2349 * include/bits/gslice.h, include/bits/gslice_array.h,
2350 include/bits/indirect_array.h, include/bits/mask_array.h,
2351 include/bits/slice_array.h, include/bits/stl_numeric.h,
2352 include/std/std_valarray.h: Update copyright years.
2353
7fb397a4
JQ
23542004-02-02 Jerry Quinn <jlquinn@optonline.net>
2355
2356 * include/bits/gslice.h (gslice): Document.
2357 * include/bits/gslice_array.h (gslice_array): Document.
2358 * include/bits/indirect_array (indirect_array): Document.
2359 * include/bits/mask_array (mask_array): Document.
2360 * include/bits/slice_array.h (slice,slice_array): Document.
2361 * include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
2362 adjacent_difference): Document
2363 * include/std/std_valarray.h (valarray): Document.
2364
7f7fb4ef
BK
23652004-02-02 Benjamin Kosnik <bkoz@redhat.com>
2366
6a734d61
BK
2367 * docs/html/19_diagnostics/howto.html: Move verbose terminate
2368 documentation...
2369 * docs/html/18_support/howto.html: Here.
2370 * docs/html/documentation.html: Add reference here.
2371
9924f721
PC
23722004-02-02 Paolo Carlini <pcarlini@suse.de>
2373
2374 * config/locale/gnu/c++locale_internal.h: Remove prototypes
2375 of no longer used GLIBC thread locale functions.
2376
2ba43229 23772004-02-02 Eric Christopher <echristo@redhat.com>
6a734d61 2378 Zack Weinberg <zack@codesourcery.com>
16dd5cfe
EC
2379
2380 * testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
6a734d61
BK
2381 -finput-charset.
2382 * testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
2383 * testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
16dd5cfe 2384 * testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
6a734d61
BK
2385 * testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
2386 * testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
2387 * testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
2388 * testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
2389 * testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
16dd5cfe
EC
2390 Ditto.
2391
7c920151
PC
23922004-02-02 Paolo Carlini <pcarlini@suse.de>
2393
2394 * include/bits/stl_function.h: Additional minor tweaks.
2395 * include/bits/stl_multiset.h: Likewise.
2396
2397 * include/bits/stl_queue.h: Minor tweaks.
2398
dcec0389
PC
23992004-02-02 Paolo Carlini <pcarlini@suse.de>
2400
2401 PR libstdc++/13976 (continued)
2402 * include/ext/malloc_allocator.h (malloc_allocator::deallocate):
2403 Make the second parameter unnamed, to void unused parameter
2404 warnings.
2405 * include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
2406
90f8b692
PC
24072004-02-02 Paolo Carlini <pcarlini@suse.de>
2408
2409 PR libstdc++/13976
2410 * include/ext/malloc_allocator.h (malloc_allocator::allocate):
2411 Make the second parameter unnamed, to void unused parameter
2412 warnings.
2413 * include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
2414 * include/ext/new_allocator.h (new_allocator::allocate): Ditto.
2415
737ab798
PC
24162004-02-01 Paolo Carlini <pcarlini@suse.de>
2417
2418 * include/bits/stl_algo.h: Additional minor tweaks.
2419 * include/bits/stl_map.h: Likewise.
2420 * include/bits/stl_multimap.h: Likewise.
2421 * include/bits/stl_multiset.h: Likewise.
2422 * include/bits/stl_set.h: Likewise.
2423 * include/bits/stl_tree.h: Likewise.
2424
64ebadac
PC
24252004-02-01 Paolo Carlini <pcarlini@suse.de>
2426
2427 * include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
2428 Remove, unused.
2429
afd4cbbb
PC
24302004-02-01 Paolo Carlini <pcarlini@suse.de>
2431
2432 * include/bits/stl_function.h: Additional minor tweaks.
2433
f6592a9e
PC
24342004-02-01 Paolo Carlini <pcarlini@suse.de>
2435
2436 * include/bits/deque.tcc: Wrap overlong lines, constify
2437 a few variables, reformat according to the coding standards.
2438 * include/bits/list.tcc: Likewise.
2439 * include/bits/stl_deque.h: Likewise.
2440 * include/bits/stl_function.h: Likewise.
2441 * include/bits/stl_iterator.h: Likewise.
2442 * include/bits/stl_iterator_base_funcs.h: Likewise.
2443 * include/bits/stl_iterator_base_types.h: Likewise.
2444 * include/bits/stl_list.h: Likewise.
2445 * include/bits/stl_map.h: Likewise.
2446 * include/bits/stl_multimap.h: Likewise.
2447 * include/bits/stl_multiset.h: Likewise.
2448 * include/bits/stl_relops.h: Likewise.
2449 * include/bits/stl_set.h: Likewise.
2450
62e67651
PC
24512004-02-01 Paolo Carlini <pcarlini@suse.de>
2452
2453 * include/bits/stl_bvector.h: Wrap overlong lines, constify
2454 a few variables, reformat according to the coding standards.
2455 * include/bits/stl_tree.h: Likewise.
2456
8f7ca398
PC
24572004-01-31 Paolo Carlini <pcarlini@suse.de>
2458
2459 * include/bits/stl_algo.h: Minor additional reformat, add
2460 copyright year.
2461 * include/bits/stl_algobase.h: Add copyright year.
2462
ffa67767
PC
24632004-01-31 Paolo Carlini <pcarlini@suse.de>
2464
2465 * include/bits/stl_algo.h: Wrap overlong lines, constify
2466 a few variables, reformat according to the coding standards.
2467 * include/bits/stl_algobase.h: Likewise.
2468 * include/bits/stl_heap.h: Likewise.
2469
8de63ee0
PC
24702004-01-31 Paolo Carlini <pcarlini@suse.de>
2471
2472 * include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
2473
2474 * include/bits/basic_string.h: Fix two comments.
2475
af3fb3d6
PB
24762004-01-31 Per Bothner <per@bothner.com>
2477
2478 * include/ext/mt_allocator.h
2479 (__mt_alloc::_S_thread_freelist_mutex): Guard with
2480 __GTHREAD_MUTEX_INIT.
2481
24f33069
PC
24822004-01-31 Paolo Carlini <pcarlini@suse.de>
2483
2484 * include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
2485
7c960b3d
PC
24862004-01-30 Paolo Carlini <pcarlini@suse.de>
2487
2488 * testsuite/21_strings/basic_string/cons/char/6.cc: New.
2489 * testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
2490 * testsuite/performance/21_strings/string_cons_input_iterator.cc: New.
16dd5cfe 2491
7b1d1edf
FY
24922004-01-30 Felix Yen <fwy@alumni.brown.edu>
2493
2494 * testsuite/performance/20_util/allocator_thread.cc (do_loop):
2495 Don't use clear, but instead assign. Use insert.
2496
c9732ce7
BK
24972004-01-30 Benjamin Kosnik <bkoz@redhat.com>
2498
2499 * src/demangle.cc: Add instantiations.
2500 * src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
2501 * src/Makefile.in: Regenerate.
16dd5cfe 2502
25d24447
DE
25032004-01-30 David Edelsohn <edelsohn@gnu.org>
2504
2505 * src/allocator.cc: Protect _S_get_thread_id() and
2506 _S_thread_key_destr() with #ifdef __GTHREADS.
2507
33e95e9d
PC
25082004-01-30 Paolo Carlini <pcarlini@suse.de>
2509
2510 Reshuffle performance testsuite.
2511 * testsuite/performance/allocator.cc, allocator_map_thread.cc,
2512 allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
2513 cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
2514 fstream_seek_write.cc, ifstream_extract_float.cc,
2515 ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
2516 list_create_fill_sort.cc, map_create_fill.cc,
2517 narrow_widen_char.cc, narrow_widen_wchar_t.cc,
2518 ofstream_insert_float.cc, ofstream_insert_int.cc,
2519 string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
2520 wchar_t_out.cc: Split into...
2521 * testsuite/performance/20_util/allocator.cc: New.
2522 * testsuite/performance/20_util/allocator_map_thread.cc: New.
2523 * testsuite/performance/20_util/allocator_thread.cc: New.
2524 * testsuite/performance/21_strings/string_append: New.
2525 * testsuite/performance/22_locale/is_wchar_t.cc: New.
2526 * testsuite/performance/22_locale/narrow_widen_char.cc: New.
2527 * testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
2528 * testsuite/performance/22_locale/wchar_t_in.cc: New.
2529 * testsuite/performance/22_locale/wchar_t_length.cc: New.
2530 * testsuite/performance/22_locale/wchar_t_out.cc: New.
2531 * testsuite/performance/23_containers/container_benchmark.cc: New.
2532 * testsuite/performance/23_containers/list_create_fill_sort.cc: New.
2533 * testsuite/performance/23_containers/map_create_fill.cc: New.
2534 * testsuite/performance/26_numerics/complex_norm.cc: New.
2535 * testsuite/performance/27_io/cout_insert_int.cc: New.
2536 * testsuite/performance/27_io/filebuf_copy.cc: New.
2537 * testsuite/performance/27_io/filebuf_sputc.cc: New.
2538 * testsuite/performance/27_io/fstream_seek_write.cc: New.
2539 * testsuite/performance/27_io/ifstream_extract_float.cc: New.
2540 * testsuite/performance/27_io/ifstream_extract_int.cc: New.
2541 * testsuite/performance/27_io/ifstream_getline.cc: New.
2542 * testsuite/performance/27_io/ofstream_insert_float.cc: New.
2543 * testsuite/performance/27_io/ofstream_insert_int.cc: New.
2544
d1615643
PC
25452004-01-30 Paolo Carlini <pcarlini@suse.de>
2546
2547 * include/bits/basic_string.tcc (_Rep::_S_create):
2548 Never allocate a string bigger than max_size(); always keep
2549 __capacity and __size in sync to avoid memory leaks at
2550 deallocation time.
2551
690495b0
PC
25522004-01-30 Paolo Carlini <pcarlini@suse.de>
2553
2554 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2555 _InIterator, const _Alloc&, input_iterator_tag)): Simplify
2556 the double loop, streamline.
2557
2558 * include/bits/basic_string.tcc: Very minor tweaks.
2559
f64f4406
LR
25602004-01-30 Loren J. Rittle <ljrittle@acm.org>
2561
2562 * scripts/check_performance: Only compile with $THREAD_FLAG
2563 when test is marked to require it. Allow multiple
2564 compilations/executions of marked tests.
2565 * testsuite/testsuite_performance.h (report_performance):
2566 Report dynamic thread support status.
2567 (report_header): Likewise.
2568 * testsuite/performance/allocator.cc: Stabilize iteration
2569 count. Support more allocators. Mark each allocator test to
2570 run and report independently.
2571 * testsuite/performance/allocator_map_thread.cc: Likewise.
2572 * testsuite/performance/allocator_thread.cc: Likewise.
2573
917a9fd4
SW
25742004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
2575
2576 * config/local/generic/c_locale.h: Change ::malloc() to new char[].
bb9f8a85
CW
2577 * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
2578 * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
917a9fd4
SW
2579 std::get_temporary_buffer() instead of duplicating its code.
2580 Update to C++STYLE conventions.
bb9f8a85 2581 * include/std/std_memory.h (get_temporary_buffer): Use ::operator
917a9fd4
SW
2582 new() instead of std::malloc().
2583 (return_temporary_buffer): Use ::operator delete() instead of
2584 std::free().
2585
6efc84f4
BK
25862004-01-29 Benjamin Kosnik <bkoz@redhat.com>
2587
2588 * include/bits/allocator.h: Temporary switch to new_allocator as
2589 the default to unjam bootstraps.
16dd5cfe 2590
ba9d552e
BK
25912004-01-28 Benjamin Kosnik <bkoz@redhat.com>
2592
2593 * include/Makefile.am (bits_headers): Remove allocator_traits.h.
2594 * include/Makefile.in: Regenerate.
2595 * include/bits/allocator_traits.h: Remove.
2596 * include/bits/allocator.h: Remove allocator_traits.h include, and
2597 relevant comments.
2598 (allocator): Empty base class, inherit from the underlying allocator.
2599 * src/allocator-inst.cc: Move __pool_alloc instantiation to...
2600 * src/allocator.cc: ...here. New. For the underlying allocators.
2601 Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
2602 * config/linker-map.gnu: Remove __pool_alloc bits.
2603 * src/Makefile.am (sources): Add allocator.cc.
2604 * src/Makefile.in: Regenerate.
2605 * testsuite/20_util/allocator/1.cc: Split second test into...
16dd5cfe 2606 * testsuite/20_util/allocator/8230.cc: ...this.
ba9d552e
BK
2607 * include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
2608 typedef to use std::allocatore. Format.
2609 * include/ext/pool_allocator.h: Remove allocator_traits.h include,
2610 _Alloc_traits.
2611 * include/ext/mt_allocator.h (__gnu_cxx): Qualify
2612 __throw_bad_alloc calls. Don't include <memory>.
2613 * include/ext/malloc_allocator.h: Remove <memory> include.
2614 * include/ext/new_allocator.h (new_allocator): Same.
2615 * include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
2616 declaration. Switch __alloc to _Alloc.
2617 * include/ext/hashtable.h: Remove __alloc.
2618 * include/backward/alloc.h: Only inject allocator, not
2619 implementation details.
2620
2621 * include/ext/mt_allocator.h: Replace free with delete.
16dd5cfe 2622
ff4cf05b
BK
26232004-01-28 Benjamin Kosnik <bkoz@redhat.com>
2624
2625 * src/globals_io.cc: Change to __gnu_internal namespace.
2626 * src/globals_locale.cc: Same.
2627 * src/locale_init.cc: Same.
2628 * src/ios_init.cc: Same.
16dd5cfe 2629
f15f99a1
SO
26302004-01-28 Stefan Olsson <stefan@snon.net>
2631
8de63ee0 2632 * include/ext/mt_allocator.h: Replaced all malloc() calls with
f15f99a1
SO
2633 operator new(). Added support for the env variable
2634 GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
2635 one in allocate() as well). Fix typos.
2636
234e0d31
PC
26372004-01-28 Paolo Carlini <pcarlini@suse.de>
2638
2639 * include/bits/basic_string.h (_S_create(size_t,
2640 const _Alloc&): Change signature to take two size_type
2641 arguments.
2642 * include/bits/basic_string.tcc (_S_construct(_InIterator,
2643 _InIterator, const _Alloc&, input_iterator_tag)): Update
2644 call, tweak a bit.
2645 (_S_construct(_InIterator, _InIterator, const _Alloc&,
2646 forward_iterator_tag)): Likewise.
2647 (_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
2648 (_M_mutate(size_type, size_type, size_type)): Don't
2649 implement the exponential growth policy, demand it to
2650 _S_create, update call and simplify.
2651 (_M_clone(const _Alloc&, size_type)): Likewise.
2652 (_S_create(size_type, size_type, const _Alloc&)): Implement
2653 the growth policy, simplify otherwise.
2654
2655 * include/bits/basic_string.h (_Rep::operator[]): Tweak
2656 signature to take a size_type, consistently with the other
2657 members.
16dd5cfe 2658
62b21ea0
BK
26592004-01-27 Benjamin Kosnik <bkoz@redhat.com>
2660
2661 * testsuite/27_io/ios_base/storage/11584.cc: Correct new and
2662 delete declarations, add include and test variable.
2663
0b563420
JQ
26642003-01-27 Jerry Quinn <jlquinn@optonline.net>
2665
2666 * include/bits/codecvt.h, include/bits/locale_facets.h,
2667 include/bits/postypes.h, include/bits/stl_bvector.h,
2668 include/bits/stl_multiset.h, include/bits/stl_set.h,
2669 include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
2670 include/std/std_complex.h: Document.
2671
2a837cf8
JQ
26722004-01-27 Jerry Quinn <jlquinn@optonline.net>
2673
2674 PR libstdc++/11584
2675 * include/bits/ios_base.h (ios_base::_M_grow_words): Add
6a734d61 2676 iword/pword selector.
2a837cf8
JQ
2677 (ios_base::iword, ios_base::pword): Use it.
2678 * src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
6a734d61 2679 iword or pword member on alloc failure.
2a837cf8
JQ
2680 * testsuite/27_io/ios_base/storage/11584.cc: New test.
2681
6e198ee0
UW
26822004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
2683 PJ Darcy <darcypj@us.ibm.com>
2684
2685 * configure.host: Add support for *-tpf.
2686 * crossconfig.m4: Likewise.
2687 * configure: Regenerate.
2688 * config/os/tpf: New directory.
2689 * config/os/tpf/os_defines.h: New file.
2690 * config/os/tpf/ctype_base.h: Likewise.
2691 * config/os/tpf/ctype_inline.h: Likewise.
2692 * config/os/tpf/ctype_noninline.h: Likewise.
2693
51b6facb
PC
26942004-01-27 Paolo Carlini <pcarlini@suse.de>
2695
2696 PR libstdc++/13884
2697 * include/bits/sstream.tcc: Guard use of extern template.
16dd5cfe 2698
a3af79ea
PC
26992004-01-27 Paolo Carlini <pcarlini@suse.de>
2700
2701 * include/bits/basic_string.tcc
2702 (basic_string(const basic_string&, size_type, size_type),
2703 basic_string(const basic_string&, size_type, size_type,
2704 const _Alloc&)): Avoid unnecessarily constructing iterators.
2705
ba9119ec
PC
27062004-01-26 Paolo Carlini <pcarlini@suse.de>
2707
2708 * config/locale/generic/c_locale.cc: Fix throw messages
2709 to use the __N marker.
2710 * config/locale/gnu/c_locale.cc: Likewise.
2711 * config/locale/ieee_1003.1-2001/codecvt_specializations.h:
2712 Likewise.
2713 * docs/html/17_intro/C++STYLE: Likewise.
2714 * include/bits/basic_ios.tcc: Likewise.
2715 * include/bits/fstream.tcc: Likewise.
2716 * include/bits/vector.tcc: Likewise.
2717 * include/ext/ropeimpl.h: Likewise.
2718 * include/std/std_bitset.h: Likewise.
2719 * src/ios.cc: Likewise.
2720 * src/locale.cc: Likewise.
2721 * src/localename.cc: Likewise.
2722
0e50667c
PC
27232004-01-26 Paolo Carlini <pcarlini@suse.de>
2724
2725 * include/bits/basic_string.h (_M_replace_aux): Use the
2726 __N marker in throw message.
2727 * include/bits/basic_string.tcc (assign(const _CharT*,
2728 size_type), insert(size_type, const _CharT*, size_type),
2729 replace(size_type, size_type, const _CharT*, size_type),
2730 reserve, _Rep::_S_create, resize, _M_replace_dispatch):
2731 Likewise.
2732
2733 * include/bits/basic_string.h, include/bits/basic_string.tcc:
2734 Fold overlong lines, minor formatting changes.
2735
4d39d873
PC
27362004-01-26 Paolo Carlini <pcarlini@suse.de>
2737
2738 * include/bits/basic_string.h (replace(iterator, iterator,
2739 const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
2740 (replace(iterator, iterator, const _CharT*)): Ditto.
2741 (replace(iterator, iterator, const _CharT*, size_type)):
2742 Add missing _GLIBCXX_DEBUG_PEDASSERT.
2743
2cb612d1
PC
27442004-01-26 Paolo Carlini <pcarlini@suse.de>
2745
2746 * include/bits/basic_string.tcc (replace(size_type,
2747 size_type, const _CharT*, size_type)): Implement optimized
2748 in-place algorithm for non-overlapping ranges.
2749 * testsuite/21_strings/basic_string/replace/char/6.cc: New.
2750 * testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
2751
2752 * include/bits/basic_string.tcc (insert(size_type,
2753 const _CharT*, size_type)): Tweak slightly.
2754
f942e78d
AS
27552004-01-26 Andreas Schwab <schwab@suse.de>
2756
2757 * config/locale/gnu/monetary_members.cc: Restore locale before
2758 rethrowing exception.
2759
91eab378
PC
27602004-01-25 Paolo Carlini <pcarlini@suse.de>
2761
2762 * include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
2763 Define inline here.
2764 * include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
2765 Move inline.
2766
2767 * include/bits/basic_string.tcc: Very minor tweaks.
2768
9c519c93
PC
27692004-01-25 Paolo Carlini <pcarlini@suse.de>
2770
2771 * testsuite/performance/string_append.cc: Increase number
2772 of iterations.
2773
30f315cd
PC
27742004-01-25 Paolo Carlini <pcarlini@suse.de>
2775
2776 * include/bits/basic_string.h (erase(size_type, size_type),
2777 erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
2778 instead, thus avoiding redundant check for length_error.
2779
2780 * include/bits/basic_string.h: Tweak some comments.
2781
bb9909b0
PC
27822004-01-24 Paolo Carlini <pcarlini@suse.de>
2783
2784 * include/bits/basic_string.tcc (operator+(const _CharT*,
2785 const basic_string&)): No need to go through the append
2786 taking two iterators.
2787
04cc8aef
PC
27882004-01-24 Paolo Carlini <pcarlini@suse.de>
2789
2790 * include/bits/basic_string.tcc (rfind(_CharT, size_type)):
2791 Revert last change to use std::min: machine language is worse.
2792 (find_last_of(const _CharT*, size_type, size_type)): Ditto.
2793 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2794 (find_last_not_of(_CharT, size_type)): Ditto.
2795
2796 * include/bits/basic_string.tcc (insert(size_type, const _CharT*,
2797 size_type)): Discard the value returned by _M_check.
2798 (replace(size_type, size_type, const _CharT*, size_type)): Ditto.
2799 (append(const basic_string&, size_type, size_type)): Ditto.
2800 (copy(_CharT*, size_type, size_type)): Ditto.
2801 (compare(size_type, size_type, const basic_string&)): Ditto.
2802 (compare(size_type, size_type, const basic_string&,
2803 size_type, size_type)): Ditto.
2804 (compare(size_type, size_type, const _CharT*)): Ditto.
2805 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2806
8865bf80
PC
28072004-01-24 Paolo Carlini <pcarlini@suse.de>
2808
2809 * include/bits/basic_string.h (insert(size_type,
2810 const basic_string&, size_type, size_type)): Define inline here.
2811 * include/bits/basic_string.tcc (insert(size_type,
2812 const basic_string&, size_type, size_type)): Move inline.
2813
fefe561e
PC
28142004-01-24 Paolo Carlini <pcarlini@suse.de>
2815
2816 * include/bits/basic_string.h (assign(const basic_string&,
2817 size_type, size_type)): Define inline here.
2818 (replace(size_type, size_type, const basic_string&,
2819 size_type, size_type)): Ditto.
2820 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2821 _InputIterator, __false_type)): Only declare.
2822 (_M_replace(iterator, iterator, _InputIterator,
2823 _InputIterator)): Remove.
2824 * include/bits/basic_string.tcc (assign(const basic_string&,
2825 size_type, size_type)): Move inline.
2826 (replace(size_type, size_type, const basic_string&,
2827 size_type, size_type)): Ditto.
2828 (_M_replace_dispatch(iterator, iterator, _InputIterator,
2829 _InputIterator, __false_type)): Define, now does also what
2830 _M_replace did before.
2831 * src/string-inst.cc (_M_replace): Don't instantiate.
2832
2833 * include/bits/basic_string.tcc (find(const _CharT*,
2834 size_type, size_type)): Tidy.
2835 (rfind(_CharT, size_type)): Ditto.
2836 (find_first_not_of(const _CharT*, size_type, size_type)): Ditto.
2837 (find_first_not_of(_CharT, size_type)): Ditto.
2838 (find_last_not_of(const _CharT*, size_type, size_type)): Ditto.
2839 (find_last_not_of(_CharT, size_type)): Ditto.
2840
72afd981
PC
28412004-01-23 Paolo Carlini <pcarlini@suse.de>
2842
2843 PR libstdc++/13838
2844 * include/debug/bitset (operator|=): Fix typo.
2845 * testsuite/23_containers/bitset/operations/13838.cc: New.
2846
251804e6
PC
28472004-01-23 Paolo Carlini <pcarlini@suse.de>
2848
2849 * include/bits/basic_string.tcc (insert(size_type,
2850 const _CharT*, size_type __n)): Fix length_error check.
2851 (replace(size_type, size_type, const _CharT*, size_type):
2852 Ditto; call _M_replace_safe.
2853 (_M_replace_aux(size_type, size_type, size_type, _CharT):
2854 Fix length_error check.
2855 (_M_replace(iterator, iterator, _InputIterator,
2856 _InputIterator)): Ditto, tweak.
2857 (_M_replace_safe(size_type, size_type, const _CharT*,
2858 size_type)): Remove length_error check.
2859
2860 * include/bits/basic_string.tcc (append(const basic_string&),
2861 append(const basic_string&, size_type, size_type)): Tweak
2862 comment.
2863
2864 * include/bits/basic_string.tcc (copy(_CharT*, size_type,
2865 size_type)): If __n == 0 don't call traits::copy.
2866
3cfb44c2
SO
28672004-01-23 Stefan Olsson <stefan@snon.net>
2868
2869 * include/ext/mt_allocator.h: Reduce lock contention.
2870
22352844
PC
28712004-01-23 Paolo Carlini <pcarlini@suse.de>
2872
2873 PR libstdc++/13831
2874 * include/bits/fstream.tcc (underflow): Remove unused
2875 variable.
2876 * include/bits/streambuf_iterator.h (equal): Ditto.
2877 * include/bits/locale_facets.h (_M_convert_from_char):
2878 Ditto.
2879
129057c1
KG
28802004-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2881
2882 PR c/13814
2883 * config/linker-map.gnu (nan): Delete.
2884 * libmath/mathconf.h (NAN, nan): Delete.
2885 * linkage.m4 (nan): Don't check for it.
2886 * libmath/nan.c: Delete file.
2887
2888 * config.h.in, configure: Regenerate.
2889
0e707673
PC
28902004-01-23 Paolo Carlini <pcarlini@suse.de>
2891
2892 * include/bits/basic_string.h (push_back(_CharT)):
2893 Call _M_replace_aux.
2894 (insert(size_type, const basic_string&)): Trivial tweak.
2895 (insert(size_type, size_type, _CharT)): Call _M_replace_aux.
2896 (insert(iterator, _CharT)): Ditto.
2897 (erase(size_type, size_type)): Ditto.
2898 (erase(iterator)): Ditto.
2899 (erase(iterator, iterator)): Ditto.
2900 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2901
402b0954
LR
29022004-01-23 Loren J. Rittle <ljrittle@acm.org>
2903
2904 libstdc++/13823
2905 * testsuite/performance/allocator_map_thread.cc: New test.
2906
ba46e66a
PC
29072004-01-22 Paolo Carlini <pcarlini@suse.de>
2908
2909 * include/bits/locale_facets.tcc
2910 (money_put::do_put(..., long double)): Use the basic_string
2911 constructor for char arrays, not that for C-strings, to pass
2912 __digits to do_put(..., const string_type&): __ws isn't
2913 null-terminated.
2914
7bb9b33b
PC
29152004-01-22 Paolo Carlini <pcarlini@suse.de>
2916
2917 * include/bits/basic_string.h (_M_replace_safe): Change
2918 signatures to take size_types and const _CharT*.
2919 (_M_replace_aux): Likewise, takes size_types instead of
2920 iterators.
2921 (append(size_type, _CharT)): Update call.
2922 (assign(size_type, _CharT)): Ditto.
2923 (replace(iterator, iterator, size_type, _CharT)): Ditto.
2924 (_M_replace_dispatch(iterator, iterator, _Integer,
2925 _Integer, __true_type)): Ditto.
2926 * include/bits/basic_string.tcc (assign(const _CharT*,
2927 size_type)): Ditto.
2928 (insert(size_type, const _CharT*, size_type)): Ditto.
2929 (replace(size_type, size_type, const _CharT*,
2930 size_type)): Ditto.
2931 (_M_replace(iterator, iterator, _InputIterator,
2932 _InputIterator)): Ditto.
2933 (append(const basic_string&)): Ditto.
2934 (append(const basic_string&, size_type, size_type): Ditto.
2935 (append(const _CharT*, size_type): Ditto.
2936 (_M_replace_safe, _M_replace_safe): Change definitions
2937 accordingly, simplify.
2938 * string-inst.cc (_M_replace_safe): Don't instantiate.
2939
3e7782b2
PC
29402004-01-21 Paolo Carlini <pcarlini@suse.de>
2941
2942 * include/bits/basic_string.tcc (append(const basic_string&)):
2943 Revert previous change.
2944 (append(const basic_string&, size_type, size_type)): Revert
2945 previous change, use _M_check and _M_limit.
2946
e03a6fb7
PC
29472004-01-21 Paolo Carlini <pcarlini@suse.de>
2948
2949 * include/bits/basic_string.h (_M_check): Change to return
2950 a checked __pos and take an additional const char* argument.
2951 (_M_fold): Rename to _M_limit, change to return a size_type,
2952 corresponding to the __off limited to the actual length.
2953 (insert(size_type, size_type, _CharT)): Update call, call
2954 replace.
2955 (insert(iterator, _CharT)): Call replace(iterator, iterator,
2956 size_type, _CharT) instead.
2957 (erase(size_type, size_type)): Update calls.
2958 (replace(size_type, size_type, size_type, _CharT)): Ditto.
2959 (substr(size_type, size_type)): Use _M_check.
2960 * include/bits/basic_string.tcc (basic_string(const basic_string&,
2961 size_type, size_type)): Update calls.
2962 (basic_string(const basic_string&, size_type, size_type,
2963 const _Alloc&)): Ditto.
2964 (assign(const basic_string&, size_type, size_type)): Use the
2965 new _M_check and _M_limit.
2966 (insert(size_type, const basic_string&, size_type, size_type):
2967 Ditto.
2968 (insert(size_type, const _CharT*, size_type)): Ditto.
2969 (replace(size_type, size_type, const _CharT*, size_type): Ditto.
2970 (replace(size_type, size_type, const basic_string&,
2971 size_type, size_type)): Ditto.
2972 (append(const basic_string&)): Ditto.
2973 (append(const basic_string&, size_type, size_type)): Ditto.
2974 (copy(_CharT*, size_type, size_type)): Ditto.
2975 (compare(size_type, size_type, const basic_string&)): Ditto.
2976 (compare(size_type, size_type, const basic_string&,size_type,
2977 size_type)): Ditto.
2978 (compare(size_type, size_type, const _CharT*)): Ditto.
2979 (compare(size_type, size_type, const _CharT*, size_type)): Ditto.
2980
cec73eb5
SO
29812004-01-19 Stefan Olsson <stefan@snon.net>
2982
2983 * include/ext/mt_allocator.h: If a thread, when it dies, still has
2984 memory on it's freelist this memory is not returned to global
2985 list. Simplification of deallocate so that memory is always
2986 returned to the calling thread id's freelist instead of to
2987 global. Fix typos. Add volatile where appropriate.
2988
87d11ccc
LR
29892004-01-19 Loren J. Rittle <ljrittle@acm.org>
2990
2991 * testsuite/ext/stdio_filebuf/char/10063-2.cc: Treat unbuffered.
2992 * testsuite/ext/stdio_filebuf/char/10063-3.cc: New test. Like -2 but
2993 use __gnu_cxx::stdio_sync_filebuf<char> instead; allow buffered stream.
2994
f18be892
PC
29952004-01-19 Paolo Carlini <pcarlini@suse.de>
2996
2997 * src/debug.cc: Make sure all the names are prefixed with
2998 double (or single) underscore.
2999
33d4e9b2
PC
30002004-01-19 Paolo Carlini <pcarlini@suse.de>
3001
3002 * src/debug.cc: Trivial formatting change.
3003
954b12d2
PC
30042004-01-19 Paolo Carlini <pcarlini@suse.de>
3005
3006 * include/bits/basic_string.tcc (_S_construct(size_type,
3007 _CharT, const _Alloc&)): Remove redundant try/catch.
3008 (_M_mutate(size_type, size_type, size_type)): Ditto.
3009 (_M_clone(const _Alloc&, size_type)): Ditto.
16dd5cfe 3010
acbab5bf
PC
30112004-01-18 Paolo Carlini <pcarlini@suse.de>
3012
3013 * include/bits/basic_string.h (c_str()): Simplify, due to
3014 21.3.4 the internal representation is always kept null-terminated.
3015 * include/bits/basic_string.tcc (_M_clone): Null-terminate.
3016 * testsuite/21_strings/basic_string/element_access/char/4.cc: New.
3017 * testsuite/21_strings/basic_string/element_access/wchar_t/4.cc:
3018 Ditto.
3019
9c96a689
PC
30202004-01-18 Paolo Carlini <pcarlini@suse.de>
3021
3022 * include/bits/basic_string.h (append(size_type, _CharT)):
3023 Moved inline, just call _M_replace_aux, no source iterators at
3024 risk of being clobbered.
3025 (assign(size_type, _CharT)): Call directly _M_replace_aux.
3026 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3027 input_iterator_tag)): Remove fifth unused argument.
3028 (_M_replace_dispatch(iterator, iterator, _InputIterator,
3029 _InputIterator, __false_type)): Update call.
3030 * include/bits/basic_string.tcc (replace(size_type, size_type,
3031 const _CharT*, size_type)): Update call.
3032 (_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
3033 throw string literal.
3034 (_M_replace_safe(iterator, iterator, _ForwardIterator,
3035 _ForwardIterator)): Likewise.
3036 (_M_replace(iterator, iterator, _InputIterator, _InputIterator,
3037 input_iterator_tag)): Remove fifth unused argument.
3038 (append(size_type __n, _CharT __c)): Move inline.
3039 * src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
3040 const C*, const C*, input_iterator_tag)): Remove fifth unused
3041 argument.
3042
d517f626
BK
30432004-01-16 Benjamin Kosnik <bkoz@redhat.com>
3044
3045 * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
16dd5cfe 3046 * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
d517f626 3047
701b701b
DS
30482004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
3049
3050 * testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
3051 mkfifo for mingw32.
3052
2913770f
SO
30532004-01-15 Stefan Olsson <stefan@snon.net>
3054
3055 * include/ext/mt_allocator.h: Reuse thread id's as soon as
3056 possible by changing the behaviour of thread_freelist to do
3057 push_front when threads die instead of push_back.
3058
47f62b27
PC
30592004-01-14 Paolo Carlini <pcarlini@suse.de>
3060
3061 * include/bits/locale_facets.h (struct __numpunct_cache):
3062 Add member _M_grouping_size, caching the length of _M_grouping.
3063 (__numpunct_cache<>::_M_cache): Assign the latter.
3064 (__verify_grouping): Move declaration...
3065 * include/bits/locale_facets.tcc (__verify_grouping):
3066 ... here, change signature to take a const char* and a size_t
3067 for the grouping; not a template anymore.
3068 (__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
16dd5cfe 3069 Likewise change signature and tweak consistently.
47f62b27
PC
3070 (num_get::_M_extract_float, num_get::_M_extract_int,
3071 num_put::_M_insert_int, num_put::_M_insert_float,
3072 money_get::do_get(string_type&), money_get::do_put(string_type)):
16dd5cfe 3073 Update callers.
47f62b27 3074 * config/locale/generic/numeric_members.cc
16dd5cfe 3075 (numpunct<>::_M_initialize_numpunct): Assign the new member.
47f62b27 3076 * config/locale/gnu/numeric_members.cc
16dd5cfe 3077 (numpunct<>::_M_initialize_numpunct): Likewise.
47f62b27
PC
3078 * src/locale-inst.cc (__add_grouping): Tweak signature.
3079 (__verify_grouping): Don't instantiate, not a template anymore.
3080
3081 * include/bits/locale_facets.h: Rename _M_truename_len ->
3082 _M_truename_size, _M_falsename_len -> _M_falsename_size.
3083 * include/bits/locale_facets.tcc: Likewise.
3084 * config/locale/generic/numeric_members.cc: Likewise.
3085 * config/locale/gnu/numeric_members.cc: Likewise.
3086
41f24725
SO
30872004-01-14 Stefan Olsson <stefan@snon.net>
3088
3089 * include/ext/mt_allocator.h: Fixups.
3090 * testsuite/performance/allocator.cc: Enable __mt_alloc tests.
3091 * testsuite/performance/allocator_thread.cc: Same.
16dd5cfe 3092
070ce57b
BK
30932004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3094
3095 * testsuite/performance/ifstream_extract_float.cc: Add higher
3096 precision tests.
3097 * testsuite/performance/ofstream_insert_float.cc: Same.
16dd5cfe 3098
c9513590
PC
30992004-01-13 Paolo Carlini <pcarlini@suse.de>
3100
3101 * src/locale-misc-inst.cc (__convert_from_v(long),
3102 __convert_from_v(unsigned long), __convert_from_v(long long),
3103 __convert_from_v(unsigned long long)): Remove, unused.
3104
60af005f
BK
31052004-01-13 Benjamin Kosnik <bkoz@redhat.com>
3106
3107 * testsuite/performance/ifstream_extract_float.cc: New.
3108 * testsuite/performance/ofstream_insert_float.cc: Float generation
3109 matches above.
3110
3111 * 20_util/auto_ptr.cc, auto_ptr_neg.cc: Break into...
3112 * 20_util/auto_ptr/1.cc: ...this.
3113 * 20_util/auto_ptr/2.cc: Same.
3114 * 20_util/auto_ptr/3.cc: Same.
3115 * 20_util/auto_ptr/3946.cc: Same.
3116 * 20_util/auto_ptr/4.cc: Same.
3117 * 20_util/auto_ptr/5.cc: Same.
3118 * 20_util/auto_ptr/6.cc: Same.
3119 * 20_util/auto_ptr/7.cc: Same.
3120 * 20_util/auto_ptr/assign_neg.cc
3121 * 20_util/pairs.cc: Break into...
3122 * 20_util/pair/1.cc: ...this.
3123 * 20_util/pair/2.cc: Same.
3124 * 20_util/pair/3.cc: Same.
3125 * 20_util/pair/4.cc: Same.
3126
d8ef7dec
PC
31272004-01-13 Paolo Carlini <pcarlini@suse.de>
3128
3129 * include/bits/locale_facets.tcc (num_get::do_get(void*&)):
3130 Set correctly just basefield, the only group that matters.
3131
5640461d
PC
31322004-01-13 Paolo Carlini <pcarlini@suse.de>
3133
3134 * include/ext/rope (_Rope_rep_alloc_base): Eliminate.
3135 (_Rope_rep_base): Inherit directly from the rope allocator;
3136 use rebinding instead of _Alloc_traits; pick up data member
3137 from _Rope_rep_alloc_base.
3138 (_Rope_alloc_base): Eliminate.
3139 (_Rope_base): Inherit directly from the rope allocator; use
3140 rebinding instead of _Alloc_traits; pick up data member from
3141 _Rope_alloc_base.
3142 (rope::_S_new_RopeLeaf, rope::_S_new_RopeConcatenation,
3143 rope::_S_new_RopeFunction, rope::_S_new_RopeSubstring): Tweak.
3144
95c9624f
PC
31452004-01-13 Paolo Carlini <pcarlini@suse.de>
3146
3147 PR libstdc++/13650
3148 * include/bits/basic_string.tcc (compare(size_type, size_type,
3149 const _CharT*, size_type)): Implement correctly the resolution
3150 of DR 5: basically, s is a char array, -not- a C string.
3151 * include/bits/basic_string.h: Tweak some comments.
3152 * testsuite/21_strings/basic_string/compare/char/13650.cc: New.
3153 * testsuite/21_strings/basic_string/compare/wchar_t/13650.cc: New.
3154
c91de77a
AT
31552004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
3156
3157 * testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
3158 Solaris.
3159
300b3317
PC
31602004-01-12 Paolo Carlini <pcarlini@suse.de>
3161
3162 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
3163 Use try_mkfifo.
3164 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
3165 Likewise.
3166
dc6798f8
PC
31672004-01-12 Paolo Carlini <pcarlini@suse.de>
3168
3169 * include/bits/locale_facets.h (struct __numpunct_cache):
3170 Add members _M_truename_len and _M_falsename_len, caching
3171 the lengths of _M_truename and _M_falsename.
3172 (__numpunct_cache<>::_M_cache): Assign the latter.
3173 * include/bits/locale_facets.tcc (num_get::do_get(bool&),
3174 num_put::do_put(bool)): Use the new members, thus avoiding
3175 computing string lengths again and again.
3176 * config/locale/generic/numeric_members.cc
3177 (numpunct<>::_M_initialize_numpunct): Assign the new members.
3178 * config/locale/gnu/numeric_members.cc
3179 (numpunct<>::_M_initialize_numpunct): Likewise.
3180
ea1ea21a
MM
31812004-01-12 Mark Mitchell <mark@codesourcery.com>
3182
3183 * testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
3184 * testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
3185 it.
3186 * testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
3187 and remove Cygwin XFAIL.
3188 * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
3189 * testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
3190 * testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
3191 * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
3192 Likewise.
3193 * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
3194 * testsuite/27_io/objects/char/7.cc: Likewise.
3195 * testsuite/27_io/objects/char/9661-1.cc: Likewise.
3196 * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
3197 * testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
3198
3b3bfc0e
GDR
31992004-01-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
3200
3201 * include/std/std_complex.h (std::complex<>::real): Return a
3202 reference. Add non-const overload.
3203 (std::complex<>::real): Likewise.
3204 (std::real): Likewise.
3205 (std::imag): Likewise.
3206 (std::operator+): Tidy.
3207 (std::operator-): Likewise.
3208 (std::operator*): Likewise.
3209 (std::operator/): Likewise.
3210 (std::operator>>): Likewise.
3211
09625c16
PC
32122004-01-11 Paolo Carlini <pcarlini@suse.de>
3213
3214 PR libstdc++/13582
3215 * include/bits/fstream.tcc (imbue): Exploit the external
3216 buffer to imbue 'on the fly' a new locale and convert its
3217 remainder with the new codecvt facet.
3218 (underflow): Tweak slightly to deal with this special case.
3219 * testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
3220 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
3221 * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
3222 * testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
3223 * testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
16dd5cfe 3224
a8d65349
PC
32252004-01-10 Paolo Carlini <pcarlini@suse.de>
3226
3227 * docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
3228 Import Revision 28.
3229
b656faa8
PC
32302004-01-10 Paolo Carlini <pcarlini@suse.de>
3231
3232 PR libstdc++/13630
3233 * include/bits/locale_classes.h (class locale): Fix category
3234 typedef.
3235 * testsuite/22_locale/locale/13630.cc: Add.
3236
f88e4715
GB
32372004-01-10 Giovanni Bajo <giovannibajo@gcc.gnu.org>
3238
3239 * include/bits/locale_facets.h: Make a name really dependent. This
3240 will be needed when Core Issue 224 is implemented.
3241
64cb2c4a
PC
32422004-01-09 Paolo Carlini <pcarlini@suse.de>
3243
3244 * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
3245 * testsuite/performance/allocator_thread.cc: Likewise.
3246
158960ba
BK
32472004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3248
3249 * crossconfig.m4: Add LFS, io bits to linux cross config.
3250 * acconfig.h: Remove obsolete bits, reorder.
3251 * config.h.in: Regenerate.
3252 * aclocal.m4: Same.
3253 * configure: Same.
16dd5cfe 3254
e135a038
BK
32552004-01-07 Gawain Bolton <gp.bolton@computer.org>
3256
3257 * include/bits/stl_list.h:
3258 * include/bits/list.tc:
3259 * src/list.cc:
6a734d61
BK
3260 Performance enhancements for destructor, push_front(),
3261 push_back(), pop_front(), pop_back(), sort()
3262 Eliminated static_casts where possible.
3263 Moved code out of header files into new src/list.cc
3264 implementation file for library where possible.
3265 Remove inheritance from iterator class and create separate
3266 classes for non-constant and constant iterators.
e135a038 3267 * include/bits/stl_tree.h (_Rb_tree class):
16dd5cfe 3268 * src/tree.cc:
6a734d61
BK
3269 Only erase contents in destructor.
3270 Eliminate unnecessary initialization in assignment operator.
3271 Optimize for the nominal case by not checking whether
3272 container is empty in clear().
3273 Re-order test in _M_insert() to improve performance.
3274 Move initialization of new node's left & right pointers to
3275 src/tree.cc to where new node's colour is initialized
3276 and to reduce the amount of inline code.
3277 Use _M_leftmost() and _M_end() to improve readability where
3278 appropriate.
3279 Create separate classes for non-constant and constant
3280 iterators to clarify code, avoid extra template parameters and
3281 casting away constness.
16dd5cfe 3282
e135a038
BK
32832004-01-07 Benjamin Kosnik <bkoz@redhat.com>
3284
3285 * src/Makefile.am (sources): Add list.cc, tree.cc.
3286 * src/stl_tree.cc: Move to...
3287 * src/tree.cc: ...here.
3288 * src/list.cc: Add.
3289 * config/linker-map.gnu: Tweaks.
3290 * testsuite/23_containers/map/operators/1_neg.cc: Add excess errors.
3291 * testsuite/23_containers/set/operators/1_neg.cc: Add excess errors.
3292
3293 * bits/stl_vector.h: Column wrap comments.
16dd5cfe 3294
677e7ddc
LR
32952004-01-07 Loren J. Rittle <ljrittle@acm.org>
3296
3297 (re-open) PR libstdc++/12658
3298 * src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
3299 (locale::global): Likewise.
3300
d8f5bd50
PC
33012004-01-07 Paolo Carlini <pcarlini@suse.de>
3302
3303 * testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
3304 Remove redundant #include.
3305 * testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
3306 * testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
3307 re-enable normal testing.
3308 * testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
3309 #include.
3310 * testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
3311 * testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
3312 Likewise.
3313 * testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
3314 Likewise.
3315 * testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
3316 Likewise.
3317 * testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
3318 Likewise.
3319 * testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
3320 Likewise.
3321 * testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
3322 Likewise.
3323 * testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
3324 Likewise.
3325 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
3326 More properly, #include <locale>.
3327 * testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
3328 Remove redundant #include.
3329 * testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
3330 * testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
3331 redundant DejaGnu directive.
3332 * testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
3333 redundant #include.
3334
b61f9bf0 33352004-01-06 Benjamin Kosnik <bkoz@redhat.com>
6a734d61 3336 Stefan Olsson <stefan@snon.net>
b61f9bf0
BK
3337
3338 * scripts/check_performance: Use -pthread.
3339 * testsuite/performance/allocator.cc: Tweaks, add list.
3340 * testsuite/performance/allocator_thread.cc: New.
3341
b74a6851 33422004-01-06 Jerry Quinn <jlquinn@optonline.net>
9a01c9b0
JQ
3343
3344 * include/bits/locale_facets.h: Document public classes and
3345 functions.
3346 * include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
3347 Add comment.
3348
b80115c4
PC
33492004-01-06 Paolo Carlini <pcarlini@suse.de>
3350
3351 * testsuite/27_io/basic_istream/extractors_other/char/1.cc:
3352 Remove redundant #includes.
3353 * testsuite/27_io/basic_istream/extractors_other/char/2.cc:
3354 Likewise.
3355 * testsuite/27_io/basic_istream/extractors_other/char/3.cc:
3356 Likewise.
3357 * testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
3358 * testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
3359 * testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
3360 * testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
3361 * testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
3362 * testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
3363 * testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
3364 * testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
3365 * testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
3366 * testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
3367 * testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
3368 * testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
3369 * testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
3370 * testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
3371 * testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
3372 Likewise.
3373 * testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
3374 Likewise.
3375 * testsuite/27_io/basic_istream/readsome/char/8258.cc:
3376 Likewise.
3377 * testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
3378 Likewise.
3379 * testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
3380 Likewise.
3381 * testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
3382 * testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
3383 * testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
3384
22ed0590 33852004-01-04 Paolo Carlini <pcarlini@suse.de>
223b5084
PC
3386
3387 * testsuite/27_io/basic_istream/extractors_arithmetic/char/01.cc:
3388 Remove redundant #includes.
3389 * testsuite/27_io/basic_istream/extractors_arithmetic/char/02.cc:
3390 Likewise.
3391 * testsuite/27_io/basic_istream/extractors_arithmetic/char/03.cc:
3392 Likewise.
3393 * testsuite/27_io/basic_istream/extractors_arithmetic/char/06.cc:
3394 Likewise.
3395 * testsuite/27_io/basic_istream/extractors_arithmetic/char/07.cc:
3396 Likewise.
3397 * testsuite/27_io/basic_istream/extractors_arithmetic/char/08.cc:
3398 Likewise.
3399 * testsuite/27_io/basic_istream/extractors_arithmetic/char/09.cc:
3400 Likewise.
3401 * testsuite/27_io/basic_istream/extractors_arithmetic/char/10.cc:
3402 Likewise.
3403 * testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc:
3404 Likewise.
3405 * testsuite/27_io/basic_istream/extractors_arithmetic/char/13.cc:
3406 Likewise.
3407 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/1.cc:
3408 Likewise.
3409 * testsuite/27_io/basic_ostream/inserters_arithmetic/char/2.cc:
3410 Likewise.
3411 * testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/1.cc:
3412 Likewise.
3413
4f8163b1
MM
34142004-01-04 Mark Mitchell <mark@codesourcery.com>
3415
3416 PR c++/12226
3417 * testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
3418 constructor.
3419 * testsuite/27_io/basic_fstream/4.cc: Likewise.
3420 * testsuite/27_io/basic_ifstream/4.cc: Likewise.
3421 * testsuite/27_io/basic_ios/4.cc: Likewise.
3422 * testsuite/27_io/basic_iostream/4.cc: Likewise.
3423 * testsuite/27_io/basic_istream/4.cc: Likewise.
3424 * testsuite/27_io/basic_istingstream/4.cc: Likewise.
3425 * testsuite/27_io/basic_ofstream/4.cc: Likewise.
3426 * testsuite/27_io/basic_ostream/4.cc: Likewise.
3427 * testsuite/27_io/basic_ostringstream/4.cc: Likewise.
3428 * testsuite/27_io/basic_stringbuf/5.cc: Likewise.
3429 * testsuite/27_io/basic_stringstream/4.cc: Likewise.
3430
17fa5560
PC
34312004-01-04 Paolo Carlini <pcarlini@suse.de>
3432
3433 * config/locale/generic/numeric_members.cc (_M_initialize_numpunct):
3434 Avoid unnecessarily zero terminating _M_atoms_out and _M_atoms_in;
3435 always use double underscored names.
3436 * config/locale/gnu/numeric_members.cc (_M_initialize_numpunct):
3437 Likewise.
3438 * include/bits/locale_facets.h (struct __numpunct_cache):
3439 Dimension _M_atoms_out and _M_atoms_in one position smaller.
3440 (__numpunct_cache<>::_M_cache): Don't zero terminate _M_atoms_out
3441 and _M_atoms_in.